[MDEV-23891] Different query plans on machines with different disk types Created: 2020-10-06  Updated: 2021-09-30  Resolved: 2020-12-14

Status: Closed
Project: MariaDB Server
Component/s: Optimizer
Affects Version/s: 10.4.13
Fix Version/s: N/A

Type: Bug Priority: Critical
Reporter: suresh ramagiri Assignee: Sergei Petrunia
Resolution: Cannot Reproduce Votes: 1
Labels: None


 Description   

One of our customers, found that changing the atomic_write_supported (to either 0 or 1) in the file "storage/innobase/os/os0file", getting different explain plan for the same query. This test is carried out on the MariaDB 10.4.13.

This is reproducible, we got the obfuscated data from the customer and steps in repeating locally.

This issue is reproducible on a machine with rotational disk type.

Here are the steps to reproduce the issue:

  • Assuming mysqld server is already running
  • drop table if exists table1
  • drop table if exists table2
  • Stop mysqld server
  • Set the value of atomic_write_supported (to either 0 or 1) in the file "storage/innobase/os/os0file.cc" on line 7655
  • Compile and build MariaDB
  • Start mysqld server
  • Load data files (as shown below for ex)

     mysql -u root test < table1_obfuscated.sql &
     mysql -u root test < table2_obfuscated.sql &
    

  • Restart server (optional)
  • Run the query from "ObfuscatedQuery.rtf"

NOTE: It is very important to drop tables and reload data everytime atomic_write_supported variable is modified to reproduce the issue consistently.

I will share obfuscated data and query separately.



 Comments   
Comment by Sergei Petrunia [ 2020-10-13 ]

Note: tried to reproduce last week but didn't succeed.

Generated at Thu Feb 08 09:25:50 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.