MDEV-14808 innodb_fts.sync fails in buildbot with wrong result

AUTO_INCREMENT values are nondeterministic after crash recovery.
While MDEV-6076 guarantees that the AUTO_INCREMENT values of committed
transactions will not roll back, it is possible that the AUTO_INCREMENT
values will be durably incremented for incomplete transactions. So
changing the test case to avoid showing the result of AUTO_INCREMENT value.
parent e64a3df4
...@@ -99,17 +99,17 @@ SET debug_dbug = '+d,fts_instrument_sync_debug,fts_write_node_crash'; ...@@ -99,17 +99,17 @@ SET debug_dbug = '+d,fts_instrument_sync_debug,fts_write_node_crash';
INSERT INTO t1(title) VALUES('mysql'); INSERT INTO t1(title) VALUES('mysql');
ERROR HY000: Lost connection to MySQL server during query ERROR HY000: Lost connection to MySQL server during query
After restart After restart
SELECT * FROM t1 WHERE MATCH(title) AGAINST ('mysql database'); SELECT title FROM t1 WHERE MATCH(title) AGAINST ('mysql database');
FTS_DOC_ID title title
1 database database
SET @old_dbug = @@SESSION.debug_dbug; SET @old_dbug = @@SESSION.debug_dbug;
SET debug_dbug = '+d,fts_instrument_sync_debug'; SET debug_dbug = '+d,fts_instrument_sync_debug';
INSERT INTO t1(title) VALUES('mysql'); INSERT INTO t1(title) VALUES('mysql');
SET debug_dbug = @old_dbug; SET debug_dbug = @old_dbug;
SELECT * FROM t1 WHERE MATCH(title) AGAINST ('mysql database'); SELECT title FROM t1 WHERE MATCH(title) AGAINST ('mysql database');
FTS_DOC_ID title title
1 database database
2 mysql mysql
DROP TABLE t1; DROP TABLE t1;
# Case 4: Test sync commit & rollback in background # Case 4: Test sync commit & rollback in background
CREATE TABLE t1( CREATE TABLE t1(
......
...@@ -123,7 +123,9 @@ INSERT INTO t1(title) VALUES('mysql'); ...@@ -123,7 +123,9 @@ INSERT INTO t1(title) VALUES('mysql');
--source include/start_mysqld.inc --source include/start_mysqld.inc
-- echo After restart -- echo After restart
SELECT * FROM t1 WHERE MATCH(title) AGAINST ('mysql database'); # PAGE_ROOT_AUTO_INC could contain last failed autoinc value. Avoid
# doing show the result of auto increment field
SELECT title FROM t1 WHERE MATCH(title) AGAINST ('mysql database');
SET @old_dbug = @@SESSION.debug_dbug; SET @old_dbug = @@SESSION.debug_dbug;
...@@ -133,7 +135,7 @@ INSERT INTO t1(title) VALUES('mysql'); ...@@ -133,7 +135,7 @@ INSERT INTO t1(title) VALUES('mysql');
SET debug_dbug = @old_dbug; SET debug_dbug = @old_dbug;
SELECT * FROM t1 WHERE MATCH(title) AGAINST ('mysql database'); SELECT title FROM t1 WHERE MATCH(title) AGAINST ('mysql database');
DROP TABLE t1; DROP TABLE t1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment