Debian Codegraph @

mysql-test/suite/x/t/binary_log.test

raw
1 ## generated
2 ## Ping
3 --source include/have_debug_sync.inc
4 --source include/xplugin_preamble.inc
5 --source include/xplugin_create_user.inc
6 --source ../include/have_performance_schema_events_waits_history.inc
7
8 ##
9 ## Bug#23057045: CRASH WHEN RUNNING SHOW PROCESSLIST AFTER SYSBENCH RUN
10 ##
11
12 CREATE TABLE x(id INT);
13 ## Test starts here
14 --write_file $MYSQL_TMP_DIR/bug_23057045.xpl
15 ## Test data
16 -->newsession con1 x_root
17 -->newsession con2 x_root
18
19 -->setsession con1
20 -->sql
21 SET DEBUG_SYNC= 'bgc_after_enrolling_for_sync_stage SIGNAL opened WAIT_FOR xxxx_new';
22 -->endsql
23
24 Mysqlx.Sql.StmtExecute {
25 stmt: "INSERT INTO x(id) VALUES(2);"
26 namespace: "sql"
27 }
28
29
30 -->setsession con2
31
32 -->sql
33 SET DEBUG_SYNC= 'bgc_after_enrolling_for_sync_stage SIGNAL xxxx_new';
34 -->endsql
35
36 Mysqlx.Sql.StmtExecute {
37 stmt: "INSERT INTO x(id) VALUES(2);"
38 namespace: "sql"
39 }
40
41 -->recvresult
42 -->setsession con1
43 -->recvresult
44 EOF
45
46 --exec $MYSQLXTEST -ux_root --password='' --schema=test --file=$MYSQL_TMP_DIR/bug_23057045.xpl 2>&1
47
48 #make sure only one process is shown in the list even in slower builds(valgrind)
49 --source ../include/xplugin_wait_for_connection_closure.inc
50
51 --replace_column 1 <ID> 3 <HOST_NAME> 6 <TIME>
52 --replace_result "init" STATE "starting" STATE "cleaning up" STATE
53 --sorted_result
54 SHOW PROCESSLIST;
55
56 ## Cleanup
57 DROP TABLE x;
58 --source ../include/xplugin_cleanup.inc