Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
10.2(EOL), 10.3(EOL), 10.4(EOL)
Description
CREATE TEMPORARY TABLE t1 (f CHAR(255)) ENGINE=MyISAM; |
REPLACE INTO t1 VALUES (NULL),(NULL); |
ALTER TABLE t1 ADD FULLTEXT KEY(f); |
--error 0,ER_ALTER_OPERATION_NOT_SUPPORTED
|
ALTER TABLE t1 CHANGE IF EXISTS a b INT, ALGORITHM=INPLACE; |
CHECK TABLE t1; |
SELECT * INTO OUTFILE 'load_t1' FROM t1; |
LOAD DATA INFILE 'load_t1' REPLACE INTO TABLE t1; |
|
# Cleanup
|
--let $datadir= `select @@datadir`
|
--remove_file $datadir/test/load_t1
|
DROP TABLE t1; |
10.2 e84dc567 non-debug build |
CHECK TABLE t1;
|
Table Op Msg_type Msg_text
|
test.t1 check warning Size of datafile is: 256 Should be: 0
|
test.t1 check error Record-count is not ok; is 1 Should be: 0
|
test.t1 check warning Found 1 key parts. Should be: 0
|
test.t1 check error Corrupt
|
Same test case on a debug build produces the same errors on CHECK and further assertion failure:
10.2 e84dc567 debug build |
mysqld: /data/src/10.2/sql/sql_select.cc:19199: int join_read_const_table(THD*, JOIN_TAB*, POSITION*): Assertion `table->file->stats.records > 0 || error' failed.
|
190208 13:37:42 [ERROR] mysqld got signal 6 ;
|
|
#7 0x00007fc7a589fee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
|
#8 0x0000562edc130a45 in join_read_const_table (thd=0x7fc784000b00, tab=0x7fc7840139d0, pos=0x7fc784013f88) at /data/src/10.2/sql/sql_select.cc:19199
|
#9 0x0000562edc10af8b in make_join_statistics (join=0x7fc784013150, tables_list=..., keyuse_array=0x7fc784013440) at /data/src/10.2/sql/sql_select.cc:4144
|
#10 0x0000562edc102382 in JOIN::optimize_inner (this=0x7fc784013150) at /data/src/10.2/sql/sql_select.cc:1582
|
#11 0x0000562edc100843 in JOIN::optimize (this=0x7fc784013150) at /data/src/10.2/sql/sql_select.cc:1115
|
#12 0x0000562edc109d54 in mysql_select (thd=0x7fc784000b00, tables=0x7fc784012a78, wild_num=1, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7fc784012678, unit=0x7fc7840046e8, select_lex=0x7fc784004e20) at /data/src/10.2/sql/sql_select.cc:3804
|
#13 0x0000562edc0fdff7 in handle_select (thd=0x7fc784000b00, lex=0x7fc784004620, result=0x7fc784012678, setup_tables_done_option=0) at /data/src/10.2/sql/sql_select.cc:376
|
#14 0x0000562edc0c94a7 in execute_sqlcom_select (thd=0x7fc784000b00, all_tables=0x7fc784012a78) at /data/src/10.2/sql/sql_parse.cc:6484
|
#15 0x0000562edc0bf428 in mysql_execute_command (thd=0x7fc784000b00) at /data/src/10.2/sql/sql_parse.cc:3490
|
#16 0x0000562edc0cd381 in mysql_parse (thd=0x7fc784000b00, rawbuf=0x7fc784012458 "SELECT * INTO OUTFILE 'load_t1' FROM t1", length=39, parser_state=0x7fc7a037c200, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:8018
|
#17 0x0000562edc0bacbb in dispatch_command (command=COM_QUERY, thd=0x7fc784000b00, packet=0x7fc78408d761 "SELECT * INTO OUTFILE 'load_t1' FROM t1", packet_length=39, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:1829
|
#18 0x0000562edc0b95c6 in do_command (thd=0x7fc784000b00) at /data/src/10.2/sql/sql_parse.cc:1379
|
#19 0x0000562edc20ca6e in do_handle_one_connection (connect=0x562edf9df690) at /data/src/10.2/sql/sql_connect.cc:1336
|
#20 0x0000562edc20c7fb in handle_one_connection (arg=0x562edf9df690) at /data/src/10.2/sql/sql_connect.cc:1242
|
#21 0x0000562edc633f3e in pfs_spawn_thread (arg=0x562edf942e00) at /data/src/10.2/storage/perfschema/pfs.cc:1862
|
#22 0x00007fc7a7576494 in start_thread (arg=0x7fc7a037d700) at pthread_create.c:333
|
#23 0x00007fc7a595c93f in clone () from /lib/x86_64-linux-gnu/libc.so.6
|
Same test case on a debug build without CHECK produces a different assertion failure:
Test case without CHECK |
CREATE TEMPORARY TABLE t1 (f CHAR(255)) ENGINE=MyISAM; |
REPLACE INTO t1 VALUES (NULL),(NULL); |
ALTER TABLE t1 ADD FULLTEXT KEY(f); |
--error 0,ER_ALTER_OPERATION_NOT_SUPPORTED
|
ALTER TABLE t1 CHANGE IF EXISTS a b INT, ALGORITHM=INPLACE; |
SELECT * INTO OUTFILE 'load_t1' FROM t1; |
LOAD DATA INFILE 'load_t1' REPLACE INTO TABLE t1; |
|
# Cleanup
|
--let $datadir= `select @@datadir`
|
--remove_file $datadir/test/load_t1
|
DROP TABLE t1; |
10.2 e84dc567 debug build |
mysqld: /data/src/10.2/sql/sql_error.cc:380: void Diagnostics_area::set_ok_status(ulonglong, ulonglong, const char*): Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' failed.
|
190208 13:40:27 [ERROR] mysqld got signal 6 ;
|
|
#7 0x00007f50c0476ee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
|
#8 0x0000558448335583 in Diagnostics_area::set_ok_status (this=0x7f50a8005ca0, affected_rows=0, last_insert_id=0, message=0x7f50ba751130 "Records: 0 Deleted: 0 Skipped: 0 Warnings: 1") at /data/src/10.2/sql/sql_error.cc:380
|
#9 0x00005584482e7ba5 in my_ok (thd=0x7f50a8000b00, affected_rows=0, id=0, message=0x7f50ba751130 "Records: 0 Deleted: 0 Skipped: 0 Warnings: 1") at /data/src/10.2/sql/sql_class.h:4509
|
#10 0x0000558448785b27 in mysql_load (thd=0x7f50a8000b00, ex=0x7f50a8012538, table_list=0x7f50a80125c0, fields_vars=..., set_fields=..., set_values=..., handle_duplicates=DUP_REPLACE, ignore=false, read_file_from_client=false) at /data/src/10.2/sql/sql_load.cc:782
|
#11 0x0000558448366622 in mysql_execute_command (thd=0x7f50a8000b00) at /data/src/10.2/sql/sql_parse.cc:4839
|
#12 0x0000558448370381 in mysql_parse (thd=0x7f50a8000b00, rawbuf=0x7f50a8012458 "LOAD DATA INFILE 'load_t1' REPLACE INTO TABLE t1", length=48, parser_state=0x7f50ba752200, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:8018
|
#13 0x000055844835dcbb in dispatch_command (command=COM_QUERY, thd=0x7f50a8000b00, packet=0x7f50a808d761 "", packet_length=48, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:1829
|
#14 0x000055844835c5c6 in do_command (thd=0x7f50a8000b00) at /data/src/10.2/sql/sql_parse.cc:1379
|
#15 0x00005584484afa6e in do_handle_one_connection (connect=0x55844ab88690) at /data/src/10.2/sql/sql_connect.cc:1336
|
#16 0x00005584484af7fb in handle_one_connection (arg=0x55844ab88690) at /data/src/10.2/sql/sql_connect.cc:1242
|
#17 0x00005584488d6f3e in pfs_spawn_thread (arg=0x55844aaebe00) at /data/src/10.2/storage/perfschema/pfs.cc:1862
|
#18 0x00007f50c214d494 in start_thread (arg=0x7f50ba753700) at pthread_create.c:333
|
#19 0x00007f50c053393f in clone () from /lib/x86_64-linux-gnu/libc.so.6
|
Not reproducible on 10.1, although it produces bytes lost warnings
Warning: 65496 bytes lost at 0x7f1374215070, allocated by T@0 at mysys/my_alloc.c:242, myisam/ft_parser.c:54, myisam/ft_update.c:129, myisam/ft_update.c:251, myisam/mi_write.c:115, myisam/ha_myisam.cc:896, sql/handler.cc:5940, sql/sql_insert.cc:1644
|
Not reproducible with Aria.
Not applicable to InnoDB, as it doesn't allow created an FT index on a temporary table.
LATER UPDATE
Here is another test case, without fulltext, with Aria. Same testcase pattern, same affected versions, also assertion failure or table corruption, so I assume it's the same problem.
CREATE TABLE t (x INT) ENGINE=Aria; |
CREATE TEMPORARY TABLE t (i INT) ENGINE=Aria; |
INSERT INTO t VALUES (1) ; |
--error 0,ER_ALTER_OPERATION_NOT_SUPPORTED
|
ALTER TABLE t CHANGE COLUMN IF EXISTS a b INT, ALGORITHM=INPLACE; |
ALTER TABLE t; |
|
# Cleanup
|
DROP TEMPORARY TABLE t; |
DROP TABLE t; |
10.2 945c748a debug |
2019-02-22 16:55:18 140315403147008 [ERROR] mysqld: Table '/data/bld/10.2/mysql-test/var/tmp/mysqld.1/#sql2719_4_0' is marked as crashed and should be repaired
|
2019-02-22 16:55:18 140315403147008 [ERROR] mysqld: Table 't' is marked as crashed and should be repaired
|
mysqld: /data/src/10.2/sql/sql_error.cc:380: void Diagnostics_area::set_ok_status(ulonglong, ulonglong, const char*): Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' failed.
|
190222 16:55:18 [ERROR] mysqld got signal 6 ;
|
|
#7 0x00007f9dbf950ee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
|
#8 0x0000560c83b6e573 in Diagnostics_area::set_ok_status (this=0x7f9da8005ca0, affected_rows=0, last_insert_id=0, message=0x7f9db9c2a280 "Records: 0 Duplicates: 0 Warnings: 2") at /data/src/10.2/sql/sql_error.cc:380
|
#9 0x0000560c83b20b95 in my_ok (thd=0x7f9da8000b00, affected_rows=0, id=0, message=0x7f9db9c2a280 "Records: 0 Duplicates: 0 Warnings: 2") at /data/src/10.2/sql/sql_class.h:4509
|
#10 0x0000560c83c719ea in mysql_alter_table (thd=0x7f9da8000b00, new_db=0x7f9da8012b30 "test", new_name=0x0, create_info=0x7f9db9c2ae50, table_list=0x7f9da8012520, alter_info=0x7f9db9c2ada0, order_num=0, order=0x0, ignore=false) at /data/src/10.2/sql/sql_table.cc:9052
|
#11 0x0000560c83ceddc7 in Sql_cmd_alter_table::execute (this=0x7f9da8012b38, thd=0x7f9da8000b00) at /data/src/10.2/sql/sql_alter.cc:329
|
#12 0x0000560c83ba4510 in mysql_execute_command (thd=0x7f9da8000b00) at /data/src/10.2/sql/sql_parse.cc:6231
|
#13 0x0000560c83ba9371 in mysql_parse (thd=0x7f9da8000b00, rawbuf=0x7f9da8012458 "ALTER TABLE t", length=13, parser_state=0x7f9db9c2c200, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:8018
|
#14 0x0000560c83b96cab in dispatch_command (command=COM_QUERY, thd=0x7f9da8000b00, packet=0x7f9da808d3b1 "ALTER TABLE t", packet_length=13, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:1829
|
#15 0x0000560c83b955b6 in do_command (thd=0x7f9da8000b00) at /data/src/10.2/sql/sql_parse.cc:1379
|
#16 0x0000560c83ce8a5e in do_handle_one_connection (connect=0x560c86be2690) at /data/src/10.2/sql/sql_connect.cc:1336
|
#17 0x0000560c83ce87eb in handle_one_connection (arg=0x560c86be2690) at /data/src/10.2/sql/sql_connect.cc:1242
|
#18 0x0000560c8410ff2e in pfs_spawn_thread (arg=0x560c86b45e00) at /data/src/10.2/storage/perfschema/pfs.cc:1862
|
#19 0x00007f9dc1627494 in start_thread (arg=0x7f9db9c2d700) at pthread_create.c:333
|
#20 0x00007f9dbfa0d93f in clone () from /lib/x86_64-linux-gnu/libc.so.6
|
Non-debug doesn't crash, but the corruption is still there:
10.2 non-debug 945c748a |
mysqltest: At line 6: query 'ALTER TABLE t' failed: 145: Table '/data/bld/10.2-rel/mysql-test/var/tmp/mysqld.1/#sql2816_4_0' is marked as crashed and should be repaired
|
Attachments
Issue Links
- relates to
-
MDEV-18787 Temporary table marked as crashed and further Assertion `! is_set()' failed upon SHOW CREATE TABLE
-
- Closed
-
-
MDEV-19595 ER_CRASHED_ON_USAGE and Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' failed upon actions on temporary Aria table with ROW_FORMAT DYNAMIC
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Affects Version/s | 10.3 [ 22126 ] |
Fix Version/s | N/A [ 14700 ] | |
Resolution | Duplicate [ 3 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Resolution | Duplicate [ 3 ] | |
Status | Closed [ 6 ] | Stalled [ 10000 ] |
Comment |
[ On 10.3: https://travis-ci.org/elenst/travis-tests/jobs/420651150
{noformat:title=10.3 b6f055025bd9ba7b533d023d509cb6f755a65db9} mysqld: /home/travis/src/sql/sql_error.cc:335: void Diagnostics_area::set_ok_status(ulonglong, ulonglong, const char*): Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' failed. 180826 23:28:26 [ERROR] mysqld got signal 6 ; Query (0x7fa8c844b7d8): UPDATE LOW_PRIORITY IGNORE `table2_key_pk_parts_2_int_autoinc` AS X SET `col_int` = 'c' WHERE X.`pk` = ( SELECT `col_int_key` FROM `table10_key_pk_parts_2_int_autoinc` WHERE `pk` = 59 ) ORDER BY `col_char_12`,`col_char_12_key`,`col_int`,`col_int_key`,`pk` LIMIT 5 /* QNO 12102 CON_ID 18 */ Connection ID (thread ID): 18 Status: NOT_KILLED {noformat} {noformat} #7 0x00007fa8cca5cca2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6 #8 0x00005647f8d2a261 in Diagnostics_area::set_ok_status (this=0x7fa8c8443f28, affected_rows=0, last_insert_id=0, message=0x0) at /home/travis/src/sql/sql_error.cc:335 #9 0x00005647f8cd8f7f in my_ok (thd=0x7fa8c843e990, affected_rows_arg=0, id=0, message=0x0) at /home/travis/src/sql/sql_class.h:4862 #10 0x00005647f8e69a46 in mysql_update (thd=0x7fa8c843e990, table_list=0x7fa8c844bb60, fields=..., values=..., conds=0x7fa8c844ddd0, order_num=5, order=0x7fa8c844e080, limit=5, handle_duplicates=DUP_ERROR, ignore=true, found_return=0x7fa89ff3d6d0, updated_return=0x7fa89ff3d790) at /home/travis/src/sql/sql_update.cc:465 #11 0x00005647f8d73c6d in mysql_execute_command (thd=0x7fa8c843e990) at /home/travis/src/sql/sql_parse.cc:4581 #12 0x00005647f8d7ef87 in mysql_parse (thd=0x7fa8c843e990, rawbuf=0x7fa8c844b7d8 "UPDATE LOW_PRIORITY IGNORE `table2_key_pk_parts_2_int_autoinc` AS X SET `col_int` = 'c' WHERE X.`pk` = ( SELECT `col_int_key` FROM `table10_key_pk_parts_2_int_autoinc` WHERE `pk` = 59 ) ORDER BY `col_"..., length=289, parser_state=0x7fa89ff3e600, is_com_multi=false, is_next_command=false) at /home/travis/src/sql/sql_parse.cc:8089 #13 0x00005647f8d6c285 in dispatch_command (command=COM_QUERY, thd=0x7fa8c843e990, packet=0x7fa8c8236bb1 "UPDATE LOW_PRIORITY IGNORE `table2_key_pk_parts_2_int_autoinc` AS X SET `col_int` = 'c' WHERE X.`pk` = ( SELECT `col_int_key` FROM `table10_key_pk_parts_2_int_autoinc` WHERE `pk` = 59 ) ORDER BY `col_"..., packet_length=290, is_com_multi=false, is_next_command=false) at /home/travis/src/sql/sql_parse.cc:1850 #14 0x00005647f8d6acb6 in do_command (thd=0x7fa8c843e990) at /home/travis/src/sql/sql_parse.cc:1395 #15 0x00005647f8ed283b in do_handle_one_connection (connect=0x5647fccb7410) at /home/travis/src/sql/sql_connect.cc:1402 #16 0x00005647f8ed25bf in handle_one_connection (arg=0x5647fccb7410) at /home/travis/src/sql/sql_connect.cc:1308 #17 0x00007fa8cd61e184 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0 #18 0x00007fa8ccb2affd in clone () from /lib/x86_64-linux-gnu/libc.so.6 {noformat} {noformat:title=elenst-dev 539d817245163ef1be726695ffc5851e5879e959} perl ./runall-new.pl --basedir=/home/travis/server --vardir=/home/travis/logs/vardir --duration=350 --threads=6 --seed=1535325894 --reporters=Backtrace,ErrorLog,Deadlock --validators=TransformerNoComparator --views --redefine=conf/mariadb/alter_table.yy --redefine=conf/mariadb/sp.yy --redefine=conf/mariadb/bulk_insert.yy --redefine=conf/mariadb/versioning.yy --redefine=conf/mariadb/sequences.yy --mysqld=--log_output=FILE --mysqld=--max-statement-time=30 --mysqld=--lock-wait-timeout=10 --mysqld=--loose-innodb-lock-wait-timeout=5 --mysqld=--loose-debug_assert_on_not_freed_memory=0 --mysqld=--default-storage-engine=Aria --grammar=conf/engines/engine_stress.yy --gendata=conf/engines/engine_stress.zz --transformers=ExecuteAsIntersect,ExecuteAsExcept,ExecuteAsCTE,ExecuteAsExecuteImmediate,ExecuteAsDeleteReturning,ExecuteAsInsertSelect,ExecuteAsUnion,ExecuteAsUpdateDelete,ExecuteAsView,ExecuteAsPreparedTwice {noformat} ] |
Summary | [Draft] Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' failed in Diagnostics_area::set_ok_status | Table corruption or Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' failed in Diagnostics_area::set_ok_status upon ALTER on temporary table with FULLTEXT index |
Component/s | Data Definition - Alter Table [ 10114 ] | |
Component/s | Data Definition - Temporary [ 10123 ] | |
Component/s | Full-text Search [ 10104 ] | |
Component/s | Storage Engine - MyISAM [ 10600 ] | |
Component/s | Server [ 13907 ] | |
Fix Version/s | 10.2 [ 14601 ] | |
Fix Version/s | 10.3 [ 22126 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Fix Version/s | N/A [ 14700 ] | |
Affects Version/s | 10.2 [ 14601 ] | |
Description |
https://travis-ci.org/elenst/travis-tests/jobs/420527789
{noformat:title=10.4 5abc79dd7ab2fccb4b05ca38a512ec816d2f8e52} mysqld: /home/travis/src/sql/sql_error.cc:335: void Diagnostics_area::set_ok_status(ulonglong, ulonglong, const char*): Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' failed. 180825 16:39:32 [ERROR] mysqld got signal 6 ; Query (0x5635607c58c8): LOAD DATA INFILE 'load_t5' REPLACE INTO TABLE t5 /* QNO 21246 CON_ID 15 */ Connection ID (thread ID): 15 Status: NOT_KILLED {noformat} {noformat} #7 0x00007f6d0a316ca2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6 #8 0x000056355c6fbf4d in Diagnostics_area::set_ok_status (this=0x5635607b8d38, affected_rows=1018, last_insert_id=0, message=0x7f6d003b1fb0 "Records: 1018 Deleted: 0 Skipped: 0 Warnings: 4155") at /home/travis/src/sql/sql_error.cc:335 #9 0x000056355c6aa777 in my_ok (thd=0x5635607b3570, affected_rows_arg=1018, id=0, message=0x7f6d003b1fb0 "Records: 1018 Deleted: 0 Skipped: 0 Warnings: 4155") at /home/travis/src/sql/sql_class.h:4926 #10 0x000056355c7376d8 in mysql_load (thd=0x5635607b3570, ex=0x5635607c59e0, table_list=0x5635607c5a68, fields_vars=..., set_fields=..., set_values=..., handle_duplicates=DUP_REPLACE, ignore=false, read_file_from_client=false) at /home/travis/src/sql/sql_load.cc:795 #11 0x000056355c74bcc0 in mysql_execute_command (thd=0x5635607b3570) at /home/travis/src/sql/sql_parse.cc:5129 #12 0x000056355c754e8d in mysql_parse (thd=0x5635607b3570, rawbuf=0x5635607c58c8 "LOAD DATA INFILE 'load_t5' REPLACE INTO TABLE t5 /* QNO 21246 CON_ID 15 */", length=74, parser_state=0x7f6d003b3600, is_com_multi=false, is_next_command=false) at /home/travis/src/sql/sql_parse.cc:8078 #13 0x000056355c7422d5 in dispatch_command (command=COM_QUERY, thd=0x5635607b3570, packet=0x5635607bd241 " LOAD DATA INFILE 'load_t5' REPLACE INTO TABLE t5 /* QNO 21246 CON_ID 15 */ ", packet_length=76, is_com_multi=false, is_next_command=false) at /home/travis/src/sql/sql_parse.cc:1850 #14 0x000056355c740d06 in do_command (thd=0x5635607b3570) at /home/travis/src/sql/sql_parse.cc:1395 #15 0x000056355c8a8df1 in do_handle_one_connection (connect=0x56355fb43450) at /home/travis/src/sql/sql_connect.cc:1402 #16 0x000056355c8a8b75 in handle_one_connection (arg=0x56355fb43450) at /home/travis/src/sql/sql_connect.cc:1308 #17 0x00007f6d0aed8184 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0 #18 0x00007f6d0a3e4ffd in clone () from /lib/x86_64-linux-gnu/libc.so.6 {noformat} {noformat:title=https://github.com/elenst/rqg 539d817245163ef1be726695ffc5851e5879e959} perl ./runall-new.pl --basedir=/home/travis/server --vardir=/home/travis/logs/vardir --duration=350 --threads=6 --seed=1535214841 --reporters=Backtrace,ErrorLog,Deadlock --validators=TransformerNoComparator --views --redefine=conf/mariadb/alter_table.yy --redefine=conf/mariadb/sp.yy --redefine=conf/mariadb/bulk_insert.yy --redefine=conf/mariadb/versioning.yy --redefine=conf/mariadb/sequences.yy --mysqld=--log_output=FILE --mysqld=--max-statement-time=30 --mysqld=--lock-wait-timeout=10 --mysqld=--loose-innodb-lock-wait-timeout=5 --mysqld=--loose-debug_assert_on_not_freed_memory=0 --mysqld=--default-storage-engine=Aria --grammar=conf/engines/many_indexes.yy --gendata=conf/engines/many_indexes.zz --skip-gendata --gendata-advanced --vcols --transformers=ExecuteAsIntersect,ExecuteAsExcept,ExecuteAsCTE,ExecuteAsExecuteImmediate,ExecuteAsDeleteReturning,ExecuteAsInsertSelect,ExecuteAsUnion,ExecuteAsUpdateDelete,ExecuteAsView,ExecuteAsPreparedTwice {noformat} I haven't yet tried to see if the command line reproduces it. Logs and datadir are *not* available. |
{code:sql}
CREATE TEMPORARY TABLE t1 (f CHAR(255)) ENGINE=MyISAM; REPLACE INTO t1 VALUES (NULL),(NULL); ALTER TABLE t1 ADD FULLTEXT KEY(f); --error 0,ER_ALTER_OPERATION_NOT_SUPPORTED ALTER TABLE t1 CHANGE IF EXISTS a b INT, ALGORITHM=INPLACE; CHECK TABLE t1; SELECT * INTO OUTFILE 'load_t1' FROM t1; LOAD DATA INFILE 'load_t1' REPLACE INTO TABLE t1; # Cleanup --let $datadir= `select @@datadir` --remove_file $datadir/test/load_t1 DROP TABLE t1; {code} {noformat:title=10.2 e84dc567 non-debug build} CHECK TABLE t1; Table Op Msg_type Msg_text test.t1 check warning Size of datafile is: 256 Should be: 0 test.t1 check error Record-count is not ok; is 1 Should be: 0 test.t1 check warning Found 1 key parts. Should be: 0 test.t1 check error Corrupt {noformat} Same test case on a debug build produces the same errors on CHECK and further assertion failure: {noformat:title=10.2 e84dc567 debug build} mysqld: /data/src/10.2/sql/sql_select.cc:19199: int join_read_const_table(THD*, JOIN_TAB*, POSITION*): Assertion `table->file->stats.records > 0 || error' failed. 190208 13:37:42 [ERROR] mysqld got signal 6 ; #7 0x00007fc7a589fee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6 #8 0x0000562edc130a45 in join_read_const_table (thd=0x7fc784000b00, tab=0x7fc7840139d0, pos=0x7fc784013f88) at /data/src/10.2/sql/sql_select.cc:19199 #9 0x0000562edc10af8b in make_join_statistics (join=0x7fc784013150, tables_list=..., keyuse_array=0x7fc784013440) at /data/src/10.2/sql/sql_select.cc:4144 #10 0x0000562edc102382 in JOIN::optimize_inner (this=0x7fc784013150) at /data/src/10.2/sql/sql_select.cc:1582 #11 0x0000562edc100843 in JOIN::optimize (this=0x7fc784013150) at /data/src/10.2/sql/sql_select.cc:1115 #12 0x0000562edc109d54 in mysql_select (thd=0x7fc784000b00, tables=0x7fc784012a78, wild_num=1, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7fc784012678, unit=0x7fc7840046e8, select_lex=0x7fc784004e20) at /data/src/10.2/sql/sql_select.cc:3804 #13 0x0000562edc0fdff7 in handle_select (thd=0x7fc784000b00, lex=0x7fc784004620, result=0x7fc784012678, setup_tables_done_option=0) at /data/src/10.2/sql/sql_select.cc:376 #14 0x0000562edc0c94a7 in execute_sqlcom_select (thd=0x7fc784000b00, all_tables=0x7fc784012a78) at /data/src/10.2/sql/sql_parse.cc:6484 #15 0x0000562edc0bf428 in mysql_execute_command (thd=0x7fc784000b00) at /data/src/10.2/sql/sql_parse.cc:3490 #16 0x0000562edc0cd381 in mysql_parse (thd=0x7fc784000b00, rawbuf=0x7fc784012458 "SELECT * INTO OUTFILE 'load_t1' FROM t1", length=39, parser_state=0x7fc7a037c200, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:8018 #17 0x0000562edc0bacbb in dispatch_command (command=COM_QUERY, thd=0x7fc784000b00, packet=0x7fc78408d761 "SELECT * INTO OUTFILE 'load_t1' FROM t1", packet_length=39, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:1829 #18 0x0000562edc0b95c6 in do_command (thd=0x7fc784000b00) at /data/src/10.2/sql/sql_parse.cc:1379 #19 0x0000562edc20ca6e in do_handle_one_connection (connect=0x562edf9df690) at /data/src/10.2/sql/sql_connect.cc:1336 #20 0x0000562edc20c7fb in handle_one_connection (arg=0x562edf9df690) at /data/src/10.2/sql/sql_connect.cc:1242 #21 0x0000562edc633f3e in pfs_spawn_thread (arg=0x562edf942e00) at /data/src/10.2/storage/perfschema/pfs.cc:1862 #22 0x00007fc7a7576494 in start_thread (arg=0x7fc7a037d700) at pthread_create.c:333 #23 0x00007fc7a595c93f in clone () from /lib/x86_64-linux-gnu/libc.so.6 {noformat} Same test case on a debug build *without CHECK* produces a different assertion failure: {code:sql|title=Test case without CHECK} CREATE TEMPORARY TABLE t1 (f CHAR(255)) ENGINE=MyISAM; REPLACE INTO t1 VALUES (NULL),(NULL); ALTER TABLE t1 ADD FULLTEXT KEY(f); --error 0,ER_ALTER_OPERATION_NOT_SUPPORTED ALTER TABLE t1 CHANGE IF EXISTS a b INT, ALGORITHM=INPLACE; SELECT * INTO OUTFILE 'load_t1' FROM t1; LOAD DATA INFILE 'load_t1' REPLACE INTO TABLE t1; # Cleanup --let $datadir= `select @@datadir` --remove_file $datadir/test/load_t1 DROP TABLE t1; {code} {noformat:title=10.2 e84dc567 debug build} mysqld: /data/src/10.2/sql/sql_error.cc:380: void Diagnostics_area::set_ok_status(ulonglong, ulonglong, const char*): Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' failed. 190208 13:40:27 [ERROR] mysqld got signal 6 ; #7 0x00007f50c0476ee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6 #8 0x0000558448335583 in Diagnostics_area::set_ok_status (this=0x7f50a8005ca0, affected_rows=0, last_insert_id=0, message=0x7f50ba751130 "Records: 0 Deleted: 0 Skipped: 0 Warnings: 1") at /data/src/10.2/sql/sql_error.cc:380 #9 0x00005584482e7ba5 in my_ok (thd=0x7f50a8000b00, affected_rows=0, id=0, message=0x7f50ba751130 "Records: 0 Deleted: 0 Skipped: 0 Warnings: 1") at /data/src/10.2/sql/sql_class.h:4509 #10 0x0000558448785b27 in mysql_load (thd=0x7f50a8000b00, ex=0x7f50a8012538, table_list=0x7f50a80125c0, fields_vars=..., set_fields=..., set_values=..., handle_duplicates=DUP_REPLACE, ignore=false, read_file_from_client=false) at /data/src/10.2/sql/sql_load.cc:782 #11 0x0000558448366622 in mysql_execute_command (thd=0x7f50a8000b00) at /data/src/10.2/sql/sql_parse.cc:4839 #12 0x0000558448370381 in mysql_parse (thd=0x7f50a8000b00, rawbuf=0x7f50a8012458 "LOAD DATA INFILE 'load_t1' REPLACE INTO TABLE t1", length=48, parser_state=0x7f50ba752200, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:8018 #13 0x000055844835dcbb in dispatch_command (command=COM_QUERY, thd=0x7f50a8000b00, packet=0x7f50a808d761 "", packet_length=48, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:1829 #14 0x000055844835c5c6 in do_command (thd=0x7f50a8000b00) at /data/src/10.2/sql/sql_parse.cc:1379 #15 0x00005584484afa6e in do_handle_one_connection (connect=0x55844ab88690) at /data/src/10.2/sql/sql_connect.cc:1336 #16 0x00005584484af7fb in handle_one_connection (arg=0x55844ab88690) at /data/src/10.2/sql/sql_connect.cc:1242 #17 0x00005584488d6f3e in pfs_spawn_thread (arg=0x55844aaebe00) at /data/src/10.2/storage/perfschema/pfs.cc:1862 #18 0x00007f50c214d494 in start_thread (arg=0x7f50ba753700) at pthread_create.c:333 #19 0x00007f50c053393f in clone () from /lib/x86_64-linux-gnu/libc.so.6 {noformat} Not reproducible on 10.1, although it produces {{bytes lost}} warnings {noformat} Warning: 65496 bytes lost at 0x7f1374215070, allocated by T@0 at mysys/my_alloc.c:242, myisam/ft_parser.c:54, myisam/ft_update.c:129, myisam/ft_update.c:251, myisam/mi_write.c:115, myisam/ha_myisam.cc:896, sql/handler.cc:5940, sql/sql_insert.cc:1644 {noformat} Not reproducible with Aria. Not applicable to InnoDB, as it doesn't allow created an FT index on a temporary table. |
Summary | Table corruption or Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' failed in Diagnostics_area::set_ok_status upon ALTER on temporary table with FULLTEXT index | Table corruption or Assertion `table->file->stats.records > 0 || error' or Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' failed in Diagnostics_area::set_ok_status upon ALTER on temporary table with FULLTEXT index |
Assignee | Elena Stepanova [ elenst ] | Sergei Golubchik [ serg ] |
Summary | Table corruption or Assertion `table->file->stats.records > 0 || error' or Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' failed in Diagnostics_area::set_ok_status upon ALTER on temporary table with FULLTEXT index | Table corruption or Assertion `table->file->stats.records > 0 || error' or Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' failed upon ALTER on temporary table with FULLTEXT index |
Summary | Table corruption or Assertion `table->file->stats.records > 0 || error' or Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' failed upon ALTER on temporary table with FULLTEXT index | Table corruption or Assertion `table->file->stats.records > 0 || error' or Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' failed upon actions on temporary table with FULLTEXT index |
Component/s | Full-text Search [ 10104 ] | |
Component/s | Storage Engine - MyISAM [ 10600 ] | |
Description |
{code:sql}
CREATE TEMPORARY TABLE t1 (f CHAR(255)) ENGINE=MyISAM; REPLACE INTO t1 VALUES (NULL),(NULL); ALTER TABLE t1 ADD FULLTEXT KEY(f); --error 0,ER_ALTER_OPERATION_NOT_SUPPORTED ALTER TABLE t1 CHANGE IF EXISTS a b INT, ALGORITHM=INPLACE; CHECK TABLE t1; SELECT * INTO OUTFILE 'load_t1' FROM t1; LOAD DATA INFILE 'load_t1' REPLACE INTO TABLE t1; # Cleanup --let $datadir= `select @@datadir` --remove_file $datadir/test/load_t1 DROP TABLE t1; {code} {noformat:title=10.2 e84dc567 non-debug build} CHECK TABLE t1; Table Op Msg_type Msg_text test.t1 check warning Size of datafile is: 256 Should be: 0 test.t1 check error Record-count is not ok; is 1 Should be: 0 test.t1 check warning Found 1 key parts. Should be: 0 test.t1 check error Corrupt {noformat} Same test case on a debug build produces the same errors on CHECK and further assertion failure: {noformat:title=10.2 e84dc567 debug build} mysqld: /data/src/10.2/sql/sql_select.cc:19199: int join_read_const_table(THD*, JOIN_TAB*, POSITION*): Assertion `table->file->stats.records > 0 || error' failed. 190208 13:37:42 [ERROR] mysqld got signal 6 ; #7 0x00007fc7a589fee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6 #8 0x0000562edc130a45 in join_read_const_table (thd=0x7fc784000b00, tab=0x7fc7840139d0, pos=0x7fc784013f88) at /data/src/10.2/sql/sql_select.cc:19199 #9 0x0000562edc10af8b in make_join_statistics (join=0x7fc784013150, tables_list=..., keyuse_array=0x7fc784013440) at /data/src/10.2/sql/sql_select.cc:4144 #10 0x0000562edc102382 in JOIN::optimize_inner (this=0x7fc784013150) at /data/src/10.2/sql/sql_select.cc:1582 #11 0x0000562edc100843 in JOIN::optimize (this=0x7fc784013150) at /data/src/10.2/sql/sql_select.cc:1115 #12 0x0000562edc109d54 in mysql_select (thd=0x7fc784000b00, tables=0x7fc784012a78, wild_num=1, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7fc784012678, unit=0x7fc7840046e8, select_lex=0x7fc784004e20) at /data/src/10.2/sql/sql_select.cc:3804 #13 0x0000562edc0fdff7 in handle_select (thd=0x7fc784000b00, lex=0x7fc784004620, result=0x7fc784012678, setup_tables_done_option=0) at /data/src/10.2/sql/sql_select.cc:376 #14 0x0000562edc0c94a7 in execute_sqlcom_select (thd=0x7fc784000b00, all_tables=0x7fc784012a78) at /data/src/10.2/sql/sql_parse.cc:6484 #15 0x0000562edc0bf428 in mysql_execute_command (thd=0x7fc784000b00) at /data/src/10.2/sql/sql_parse.cc:3490 #16 0x0000562edc0cd381 in mysql_parse (thd=0x7fc784000b00, rawbuf=0x7fc784012458 "SELECT * INTO OUTFILE 'load_t1' FROM t1", length=39, parser_state=0x7fc7a037c200, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:8018 #17 0x0000562edc0bacbb in dispatch_command (command=COM_QUERY, thd=0x7fc784000b00, packet=0x7fc78408d761 "SELECT * INTO OUTFILE 'load_t1' FROM t1", packet_length=39, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:1829 #18 0x0000562edc0b95c6 in do_command (thd=0x7fc784000b00) at /data/src/10.2/sql/sql_parse.cc:1379 #19 0x0000562edc20ca6e in do_handle_one_connection (connect=0x562edf9df690) at /data/src/10.2/sql/sql_connect.cc:1336 #20 0x0000562edc20c7fb in handle_one_connection (arg=0x562edf9df690) at /data/src/10.2/sql/sql_connect.cc:1242 #21 0x0000562edc633f3e in pfs_spawn_thread (arg=0x562edf942e00) at /data/src/10.2/storage/perfschema/pfs.cc:1862 #22 0x00007fc7a7576494 in start_thread (arg=0x7fc7a037d700) at pthread_create.c:333 #23 0x00007fc7a595c93f in clone () from /lib/x86_64-linux-gnu/libc.so.6 {noformat} Same test case on a debug build *without CHECK* produces a different assertion failure: {code:sql|title=Test case without CHECK} CREATE TEMPORARY TABLE t1 (f CHAR(255)) ENGINE=MyISAM; REPLACE INTO t1 VALUES (NULL),(NULL); ALTER TABLE t1 ADD FULLTEXT KEY(f); --error 0,ER_ALTER_OPERATION_NOT_SUPPORTED ALTER TABLE t1 CHANGE IF EXISTS a b INT, ALGORITHM=INPLACE; SELECT * INTO OUTFILE 'load_t1' FROM t1; LOAD DATA INFILE 'load_t1' REPLACE INTO TABLE t1; # Cleanup --let $datadir= `select @@datadir` --remove_file $datadir/test/load_t1 DROP TABLE t1; {code} {noformat:title=10.2 e84dc567 debug build} mysqld: /data/src/10.2/sql/sql_error.cc:380: void Diagnostics_area::set_ok_status(ulonglong, ulonglong, const char*): Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' failed. 190208 13:40:27 [ERROR] mysqld got signal 6 ; #7 0x00007f50c0476ee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6 #8 0x0000558448335583 in Diagnostics_area::set_ok_status (this=0x7f50a8005ca0, affected_rows=0, last_insert_id=0, message=0x7f50ba751130 "Records: 0 Deleted: 0 Skipped: 0 Warnings: 1") at /data/src/10.2/sql/sql_error.cc:380 #9 0x00005584482e7ba5 in my_ok (thd=0x7f50a8000b00, affected_rows=0, id=0, message=0x7f50ba751130 "Records: 0 Deleted: 0 Skipped: 0 Warnings: 1") at /data/src/10.2/sql/sql_class.h:4509 #10 0x0000558448785b27 in mysql_load (thd=0x7f50a8000b00, ex=0x7f50a8012538, table_list=0x7f50a80125c0, fields_vars=..., set_fields=..., set_values=..., handle_duplicates=DUP_REPLACE, ignore=false, read_file_from_client=false) at /data/src/10.2/sql/sql_load.cc:782 #11 0x0000558448366622 in mysql_execute_command (thd=0x7f50a8000b00) at /data/src/10.2/sql/sql_parse.cc:4839 #12 0x0000558448370381 in mysql_parse (thd=0x7f50a8000b00, rawbuf=0x7f50a8012458 "LOAD DATA INFILE 'load_t1' REPLACE INTO TABLE t1", length=48, parser_state=0x7f50ba752200, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:8018 #13 0x000055844835dcbb in dispatch_command (command=COM_QUERY, thd=0x7f50a8000b00, packet=0x7f50a808d761 "", packet_length=48, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:1829 #14 0x000055844835c5c6 in do_command (thd=0x7f50a8000b00) at /data/src/10.2/sql/sql_parse.cc:1379 #15 0x00005584484afa6e in do_handle_one_connection (connect=0x55844ab88690) at /data/src/10.2/sql/sql_connect.cc:1336 #16 0x00005584484af7fb in handle_one_connection (arg=0x55844ab88690) at /data/src/10.2/sql/sql_connect.cc:1242 #17 0x00005584488d6f3e in pfs_spawn_thread (arg=0x55844aaebe00) at /data/src/10.2/storage/perfschema/pfs.cc:1862 #18 0x00007f50c214d494 in start_thread (arg=0x7f50ba753700) at pthread_create.c:333 #19 0x00007f50c053393f in clone () from /lib/x86_64-linux-gnu/libc.so.6 {noformat} Not reproducible on 10.1, although it produces {{bytes lost}} warnings {noformat} Warning: 65496 bytes lost at 0x7f1374215070, allocated by T@0 at mysys/my_alloc.c:242, myisam/ft_parser.c:54, myisam/ft_update.c:129, myisam/ft_update.c:251, myisam/mi_write.c:115, myisam/ha_myisam.cc:896, sql/handler.cc:5940, sql/sql_insert.cc:1644 {noformat} Not reproducible with Aria. Not applicable to InnoDB, as it doesn't allow created an FT index on a temporary table. |
{code:sql}
CREATE TEMPORARY TABLE t1 (f CHAR(255)) ENGINE=MyISAM; REPLACE INTO t1 VALUES (NULL),(NULL); ALTER TABLE t1 ADD FULLTEXT KEY(f); --error 0,ER_ALTER_OPERATION_NOT_SUPPORTED ALTER TABLE t1 CHANGE IF EXISTS a b INT, ALGORITHM=INPLACE; CHECK TABLE t1; SELECT * INTO OUTFILE 'load_t1' FROM t1; LOAD DATA INFILE 'load_t1' REPLACE INTO TABLE t1; # Cleanup --let $datadir= `select @@datadir` --remove_file $datadir/test/load_t1 DROP TABLE t1; {code} {noformat:title=10.2 e84dc567 non-debug build} CHECK TABLE t1; Table Op Msg_type Msg_text test.t1 check warning Size of datafile is: 256 Should be: 0 test.t1 check error Record-count is not ok; is 1 Should be: 0 test.t1 check warning Found 1 key parts. Should be: 0 test.t1 check error Corrupt {noformat} Same test case on a debug build produces the same errors on CHECK and further assertion failure: {noformat:title=10.2 e84dc567 debug build} mysqld: /data/src/10.2/sql/sql_select.cc:19199: int join_read_const_table(THD*, JOIN_TAB*, POSITION*): Assertion `table->file->stats.records > 0 || error' failed. 190208 13:37:42 [ERROR] mysqld got signal 6 ; #7 0x00007fc7a589fee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6 #8 0x0000562edc130a45 in join_read_const_table (thd=0x7fc784000b00, tab=0x7fc7840139d0, pos=0x7fc784013f88) at /data/src/10.2/sql/sql_select.cc:19199 #9 0x0000562edc10af8b in make_join_statistics (join=0x7fc784013150, tables_list=..., keyuse_array=0x7fc784013440) at /data/src/10.2/sql/sql_select.cc:4144 #10 0x0000562edc102382 in JOIN::optimize_inner (this=0x7fc784013150) at /data/src/10.2/sql/sql_select.cc:1582 #11 0x0000562edc100843 in JOIN::optimize (this=0x7fc784013150) at /data/src/10.2/sql/sql_select.cc:1115 #12 0x0000562edc109d54 in mysql_select (thd=0x7fc784000b00, tables=0x7fc784012a78, wild_num=1, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7fc784012678, unit=0x7fc7840046e8, select_lex=0x7fc784004e20) at /data/src/10.2/sql/sql_select.cc:3804 #13 0x0000562edc0fdff7 in handle_select (thd=0x7fc784000b00, lex=0x7fc784004620, result=0x7fc784012678, setup_tables_done_option=0) at /data/src/10.2/sql/sql_select.cc:376 #14 0x0000562edc0c94a7 in execute_sqlcom_select (thd=0x7fc784000b00, all_tables=0x7fc784012a78) at /data/src/10.2/sql/sql_parse.cc:6484 #15 0x0000562edc0bf428 in mysql_execute_command (thd=0x7fc784000b00) at /data/src/10.2/sql/sql_parse.cc:3490 #16 0x0000562edc0cd381 in mysql_parse (thd=0x7fc784000b00, rawbuf=0x7fc784012458 "SELECT * INTO OUTFILE 'load_t1' FROM t1", length=39, parser_state=0x7fc7a037c200, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:8018 #17 0x0000562edc0bacbb in dispatch_command (command=COM_QUERY, thd=0x7fc784000b00, packet=0x7fc78408d761 "SELECT * INTO OUTFILE 'load_t1' FROM t1", packet_length=39, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:1829 #18 0x0000562edc0b95c6 in do_command (thd=0x7fc784000b00) at /data/src/10.2/sql/sql_parse.cc:1379 #19 0x0000562edc20ca6e in do_handle_one_connection (connect=0x562edf9df690) at /data/src/10.2/sql/sql_connect.cc:1336 #20 0x0000562edc20c7fb in handle_one_connection (arg=0x562edf9df690) at /data/src/10.2/sql/sql_connect.cc:1242 #21 0x0000562edc633f3e in pfs_spawn_thread (arg=0x562edf942e00) at /data/src/10.2/storage/perfschema/pfs.cc:1862 #22 0x00007fc7a7576494 in start_thread (arg=0x7fc7a037d700) at pthread_create.c:333 #23 0x00007fc7a595c93f in clone () from /lib/x86_64-linux-gnu/libc.so.6 {noformat} Same test case on a debug build *without CHECK* produces a different assertion failure: {code:sql|title=Test case without CHECK} CREATE TEMPORARY TABLE t1 (f CHAR(255)) ENGINE=MyISAM; REPLACE INTO t1 VALUES (NULL),(NULL); ALTER TABLE t1 ADD FULLTEXT KEY(f); --error 0,ER_ALTER_OPERATION_NOT_SUPPORTED ALTER TABLE t1 CHANGE IF EXISTS a b INT, ALGORITHM=INPLACE; SELECT * INTO OUTFILE 'load_t1' FROM t1; LOAD DATA INFILE 'load_t1' REPLACE INTO TABLE t1; # Cleanup --let $datadir= `select @@datadir` --remove_file $datadir/test/load_t1 DROP TABLE t1; {code} {noformat:title=10.2 e84dc567 debug build} mysqld: /data/src/10.2/sql/sql_error.cc:380: void Diagnostics_area::set_ok_status(ulonglong, ulonglong, const char*): Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' failed. 190208 13:40:27 [ERROR] mysqld got signal 6 ; #7 0x00007f50c0476ee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6 #8 0x0000558448335583 in Diagnostics_area::set_ok_status (this=0x7f50a8005ca0, affected_rows=0, last_insert_id=0, message=0x7f50ba751130 "Records: 0 Deleted: 0 Skipped: 0 Warnings: 1") at /data/src/10.2/sql/sql_error.cc:380 #9 0x00005584482e7ba5 in my_ok (thd=0x7f50a8000b00, affected_rows=0, id=0, message=0x7f50ba751130 "Records: 0 Deleted: 0 Skipped: 0 Warnings: 1") at /data/src/10.2/sql/sql_class.h:4509 #10 0x0000558448785b27 in mysql_load (thd=0x7f50a8000b00, ex=0x7f50a8012538, table_list=0x7f50a80125c0, fields_vars=..., set_fields=..., set_values=..., handle_duplicates=DUP_REPLACE, ignore=false, read_file_from_client=false) at /data/src/10.2/sql/sql_load.cc:782 #11 0x0000558448366622 in mysql_execute_command (thd=0x7f50a8000b00) at /data/src/10.2/sql/sql_parse.cc:4839 #12 0x0000558448370381 in mysql_parse (thd=0x7f50a8000b00, rawbuf=0x7f50a8012458 "LOAD DATA INFILE 'load_t1' REPLACE INTO TABLE t1", length=48, parser_state=0x7f50ba752200, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:8018 #13 0x000055844835dcbb in dispatch_command (command=COM_QUERY, thd=0x7f50a8000b00, packet=0x7f50a808d761 "", packet_length=48, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:1829 #14 0x000055844835c5c6 in do_command (thd=0x7f50a8000b00) at /data/src/10.2/sql/sql_parse.cc:1379 #15 0x00005584484afa6e in do_handle_one_connection (connect=0x55844ab88690) at /data/src/10.2/sql/sql_connect.cc:1336 #16 0x00005584484af7fb in handle_one_connection (arg=0x55844ab88690) at /data/src/10.2/sql/sql_connect.cc:1242 #17 0x00005584488d6f3e in pfs_spawn_thread (arg=0x55844aaebe00) at /data/src/10.2/storage/perfschema/pfs.cc:1862 #18 0x00007f50c214d494 in start_thread (arg=0x7f50ba753700) at pthread_create.c:333 #19 0x00007f50c053393f in clone () from /lib/x86_64-linux-gnu/libc.so.6 {noformat} Not reproducible on 10.1, although it produces {{bytes lost}} warnings {noformat} Warning: 65496 bytes lost at 0x7f1374215070, allocated by T@0 at mysys/my_alloc.c:242, myisam/ft_parser.c:54, myisam/ft_update.c:129, myisam/ft_update.c:251, myisam/mi_write.c:115, myisam/ha_myisam.cc:896, sql/handler.cc:5940, sql/sql_insert.cc:1644 {noformat} Not reproducible with Aria. Not applicable to InnoDB, as it doesn't allow created an FT index on a temporary table. ---- *LATER UPDATE* Here is another test case, without fulltext, with Aria. Same testcase pattern, same affected versions, also assertion failure or table corruption, so I assume it's the same problem. {code:sql} CREATE TABLE t (x INT) ENGINE=Aria; CREATE TEMPORARY TABLE t (i INT) ENGINE=Aria; INSERT INTO t VALUES (1) ; --error 0,ER_ALTER_OPERATION_NOT_SUPPORTED ALTER TABLE t CHANGE COLUMN IF EXISTS a b INT, ALGORITHM=INPLACE; ALTER TABLE t; # Cleanup DROP TEMPORARY TABLE t; DROP TABLE t; {code} {noformat:title=10.2 945c748a debug} 2019-02-22 16:55:18 140315403147008 [ERROR] mysqld: Table '/data/bld/10.2/mysql-test/var/tmp/mysqld.1/#sql2719_4_0' is marked as crashed and should be repaired 2019-02-22 16:55:18 140315403147008 [ERROR] mysqld: Table 't' is marked as crashed and should be repaired mysqld: /data/src/10.2/sql/sql_error.cc:380: void Diagnostics_area::set_ok_status(ulonglong, ulonglong, const char*): Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' failed. 190222 16:55:18 [ERROR] mysqld got signal 6 ; #7 0x00007f9dbf950ee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6 #8 0x0000560c83b6e573 in Diagnostics_area::set_ok_status (this=0x7f9da8005ca0, affected_rows=0, last_insert_id=0, message=0x7f9db9c2a280 "Records: 0 Duplicates: 0 Warnings: 2") at /data/src/10.2/sql/sql_error.cc:380 #9 0x0000560c83b20b95 in my_ok (thd=0x7f9da8000b00, affected_rows=0, id=0, message=0x7f9db9c2a280 "Records: 0 Duplicates: 0 Warnings: 2") at /data/src/10.2/sql/sql_class.h:4509 #10 0x0000560c83c719ea in mysql_alter_table (thd=0x7f9da8000b00, new_db=0x7f9da8012b30 "test", new_name=0x0, create_info=0x7f9db9c2ae50, table_list=0x7f9da8012520, alter_info=0x7f9db9c2ada0, order_num=0, order=0x0, ignore=false) at /data/src/10.2/sql/sql_table.cc:9052 #11 0x0000560c83ceddc7 in Sql_cmd_alter_table::execute (this=0x7f9da8012b38, thd=0x7f9da8000b00) at /data/src/10.2/sql/sql_alter.cc:329 #12 0x0000560c83ba4510 in mysql_execute_command (thd=0x7f9da8000b00) at /data/src/10.2/sql/sql_parse.cc:6231 #13 0x0000560c83ba9371 in mysql_parse (thd=0x7f9da8000b00, rawbuf=0x7f9da8012458 "ALTER TABLE t", length=13, parser_state=0x7f9db9c2c200, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:8018 #14 0x0000560c83b96cab in dispatch_command (command=COM_QUERY, thd=0x7f9da8000b00, packet=0x7f9da808d3b1 "ALTER TABLE t", packet_length=13, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:1829 #15 0x0000560c83b955b6 in do_command (thd=0x7f9da8000b00) at /data/src/10.2/sql/sql_parse.cc:1379 #16 0x0000560c83ce8a5e in do_handle_one_connection (connect=0x560c86be2690) at /data/src/10.2/sql/sql_connect.cc:1336 #17 0x0000560c83ce87eb in handle_one_connection (arg=0x560c86be2690) at /data/src/10.2/sql/sql_connect.cc:1242 #18 0x0000560c8410ff2e in pfs_spawn_thread (arg=0x560c86b45e00) at /data/src/10.2/storage/perfschema/pfs.cc:1862 #19 0x00007f9dc1627494 in start_thread (arg=0x7f9db9c2d700) at pthread_create.c:333 #20 0x00007f9dbfa0d93f in clone () from /lib/x86_64-linux-gnu/libc.so.6 {noformat} Non-debug doesn't crash, but the corruption is still there: {noformat:title=10.2 non-debug 945c748a} mysqltest: At line 6: query 'ALTER TABLE t' failed: 145: Table '/data/bld/10.2-rel/mysql-test/var/tmp/mysqld.1/#sql2816_4_0' is marked as crashed and should be repaired {noformat} |
Summary | Table corruption or Assertion `table->file->stats.records > 0 || error' or Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' failed upon actions on temporary table with FULLTEXT index | Table corruption or Assertion `table->file->stats.records > 0 || error' or Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' failed upon actions on temporary table |
Labels | affects-tests |
Priority | Major [ 3 ] | Critical [ 2 ] |
Status | Stalled [ 10000 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | Stalled [ 10000 ] |
Assignee | Sergei Golubchik [ serg ] | Sergey Vojtovich [ svoj ] |
Status | Stalled [ 10000 ] | In Review [ 10002 ] |
Assignee | Sergey Vojtovich [ svoj ] | Sergei Golubchik [ serg ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Fix Version/s | 10.2.23 [ 23307 ] | |
Fix Version/s | 10.3.14 [ 23216 ] | |
Fix Version/s | 10.4.4 [ 23310 ] | |
Fix Version/s | 10.2 [ 14601 ] | |
Fix Version/s | 10.3 [ 22126 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Resolution | Fixed [ 1 ] | |
Status | Stalled [ 10000 ] | Closed [ 6 ] |
Link |
This issue relates to |
Link |
This issue relates to |
Workflow | MariaDB v3 [ 89102 ] | MariaDB v4 [ 154858 ] |
Raised priority due to the variation without FULLTEXT, only ordinary operations.