[MDEV-11906] sys_vars.innodb_flush_method_basic test case fails Created: 2017-01-24  Updated: 2021-02-12  Resolved: 2021-02-12

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - InnoDB, Tests
Affects Version/s: 10.2
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Lixun Peng Assignee: Jan Lindström (Inactive)
Resolution: Cannot Reproduce Votes: 0
Labels: innodb, tests
Environment:

Ubuntu 16.04



 Description   

sys_vars.innodb_flush_method_basic 'innodb' [ fail ]
        Test ended at 2017-01-25 02:11:30
 
CURRENT_TEST: sys_vars.innodb_flush_method_basic
--- /u01/MariaDB/mysql-test/suite/sys_vars/r/innodb_flush_method_basic.result	2016-12-21 02:12:43.794847583 +0800
+++ /u01/MariaDB/mysql-test/suite/sys_vars/r/innodb_flush_method_basic.reject	2017-01-25 02:11:30.073003363 +0800
@@ -1,7 +1,7 @@
 '#---------------------BS_STVARS_029_01----------------------#'
 SELECT COUNT(@@GLOBAL.innodb_flush_method);
 COUNT(@@GLOBAL.innodb_flush_method)
-0
+1
 0 Expected
 '#---------------------BS_STVARS_029_02----------------------#'
 SET @@GLOBAL.innodb_flush_method=1;
@@ -9,18 +9,18 @@
 Expected error 'Read only variable'
 SELECT COUNT(@@GLOBAL.innodb_flush_method);
 COUNT(@@GLOBAL.innodb_flush_method)
-0
+1
 0 Expected
 '#---------------------BS_STVARS_029_03----------------------#'
 SELECT @@GLOBAL.innodb_flush_method = VARIABLE_VALUE
 FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
 WHERE VARIABLE_NAME='innodb_flush_method';
 @@GLOBAL.innodb_flush_method = VARIABLE_VALUE
-NULL
+1
 1 Expected
 SELECT COUNT(@@GLOBAL.innodb_flush_method);
 COUNT(@@GLOBAL.innodb_flush_method)
-0
+1
 0 Expected
 SELECT COUNT(VARIABLE_VALUE)
 FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES 
@@ -31,12 +31,12 @@
 '#---------------------BS_STVARS_029_04----------------------#'
 SELECT @@innodb_flush_method = @@GLOBAL.innodb_flush_method;
 @@innodb_flush_method = @@GLOBAL.innodb_flush_method
-NULL
+1
 1 Expected
 '#---------------------BS_STVARS_029_05----------------------#'
 SELECT COUNT(@@innodb_flush_method);
 COUNT(@@innodb_flush_method)
-0
+1
 0 Expected
 SELECT COUNT(@@local.innodb_flush_method);
 ERROR HY000: Variable 'innodb_flush_method' is a GLOBAL variable
@@ -46,7 +46,7 @@
 Expected error 'Variable is a GLOBAL variable'
 SELECT COUNT(@@GLOBAL.innodb_flush_method);
 COUNT(@@GLOBAL.innodb_flush_method)
-0
+1
 0 Expected
 SELECT innodb_flush_method = @@SESSION.innodb_flush_method;
 ERROR 42S22: Unknown column 'innodb_flush_method' in 'field list'
 
mysqltest: Result length mismatch



 Comments   
Comment by Jan Lindström (Inactive) [ 2017-01-25 ]

I can't repeat this, do you have something special on the system e.g. O_DIRECT ?

Comment by Lixun Peng [ 2017-01-25 ]

jplindst
I didn't change anything, I just build the 10.2 branch in my machine, and get this results.

Comment by Marko Mäkelä [ 2021-02-12 ]

I don’t remember seeing this failure on our CI systems. Moreover, MDEV-12218 in MariaDB 10.3.7 changed the way how this parameter is parsed.

Generated at Thu Feb 08 07:53:34 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.