Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.9(EOL), 10.10(EOL), 10.11, 11.0(EOL), 11.1(EOL)
Description
The MDEV-27812 test innodb.log_file_size_online occasionally fails like this on Microsoft Windows:
10.9 717e3b3cfdb167e8b930323397dc6e852ef94f17 |
innodb.log_file_size_online 'encrypted,innodb' w8 [ fail ] timeout after 900 seconds
|
Test ended at 2023-05-11 16:08:09
|
|
Test case timeout after 900 seconds
|
|
== D:/winx64-packages/build/mysql-test/var/8/log/log_file_size_online.log ==
|
SET GLOBAL innodb_log_file_size=4194304;
|
|
== D:/winx64-packages/build/mysql-test/var/8/tmp/analyze-timeout-mysqld.1.err ==
|
SHOW PROCESSLIST;
|
Id User Host db Command Time State Info Progress
|
4 root localhost:49727 test Query 940 NULL SET GLOBAL innodb_log_file_size=4194304 0.000
|
5 root localhost:64052 NULL Query 0 starting SHOW PROCESSLIST 0.000
|
|
mysqltest failed but provided no output
|
The result from queries just before the failure was:
|
< snip >
|
SET GLOBAL innodb_log_file_size=4194304;
|
|
|
- saving 'D:/winx64-packages/build/mysql-test/var/8/log/innodb.log_file_size_online-encrypted,innodb/' to 'D:/winx64-packages/build/mysql-test/var/log/innodb.log_file_size_online-encrypted,innodb/'
|
One failure that I checked seemed to have an idle buf_flush_page_cleaner() thread and the SET GLOBAL thread looping in innodb_log_file_size_update(). Possibly a wake-up of the page cleaner is missing.
We will need more data from a debugger in order to understand what is going on. The contents of the global data structure log_sys during the hang needs to be known.
Attachments
Issue Links
- is caused by
-
MDEV-27812 Allow innodb_log_file_size to change without server restart
-
- Closed
-
- relates to
-
MDEV-34909 DDL during SET GLOBAL innodb_log_file_size may hang when using PMEM
-
- Closed
-
I observed a failure of this test on a IA-32 GNU/Linux builder:
10.9 eb6b521f1b9e9e88da489798c200c4f071280189
innodb.log_file_size_online 'innodb,slow' w2 [ fail ] timeout after 900 seconds
…
Thread 3 (Thread 0xae75fb40 (LWP 23745)):
#0 0xb701cd3a in ?? () from /lib/i386-linux-gnu/libc.so.6
#1 0x813aba85 in FreeState (cs=0xafc00680, free_state=1) at /home/buildbot/buildbot/build/mariadb-10.9.8/dbug/dbug.c:1642
#2 0x813a9f62 in _db_pop_ () at /home/buildbot/buildbot/build/mariadb-10.9.8/dbug/dbug.c:935
#3 0x8138b76d in safe_mutex_lock (mp=0x81e6c6c0 <buf_pool+16896>, my_flags=0, file=0x817d6fb8 "/home/buildbot/buildbot/build/mariadb-10.9.8/storage/innobase/handler/ha_innodb.cc", line=18517) at /home/buildbot/buildbot/build/mariadb-10.9.8/mysys/thr_mutex.c:400
#4 0x8138564d in psi_mutex_lock (that=0x81e6c6c0 <buf_pool+16896>, file=0x817d6fb8 "/home/buildbot/buildbot/build/mariadb-10.9.8/storage/innobase/handler/ha_innodb.cc", line=18517) at /home/buildbot/buildbot/build/mariadb-10.9.8/mysys/my_thr_init.c:487
#5 0x80f432e0 in inline_mysql_mutex_lock (that=0x81e6c6c0 <buf_pool+16896>, src_file=0x817d6fb8 "/home/buildbot/buildbot/build/mariadb-10.9.8/storage/innobase/handler/ha_innodb.cc", src_line=18517) at /home/buildbot/buildbot/build/mariadb-10.9.8/include/mysql/psi/mysql_thread.h:746
#6 0x80f70cc4 in innodb_log_file_size_update (thd=0xafc015c0, var=0x828726c8 <srv_log_file_size>, save=0xafc37e30) at /home/buildbot/buildbot/build/mariadb-10.9.8/storage/innobase/handler/ha_innodb.cc:18517
#7 0x807729f8 in sys_var_pluginvar::global_update (this=0x8410ffd0, thd=0xafc015c0, var=0xafc37e20) at /home/buildbot/buildbot/build/mariadb-10.9.8/sql/sql_plugin.cc:3632
…
Thread 2 (Thread 0xb05fcb40 (LWP 23730)):
#0 0xb775bc31 in __kernel_vsyscall ()
#1 0xb735fa8c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0
#2 0x8138bb8f in safe_cond_wait (cond=0x81e6c754 <buf_pool+17044>, mp=0x81e6c6c0 <buf_pool+16896>, file=0x818c5e40 "/home/buildbot/buildbot/build/mariadb-10.9.8/storage/innobase/buf/buf0flu.cc", line=2370) at /home/buildbot/buildbot/build/mariadb-10.9.8/mysys/thr_mutex.c:494
#3 0x8125eb95 in buf_flush_page_cleaner () at /home/buildbot/buildbot/build/mariadb-10.9.8/storage/innobase/buf/buf0flu.cc:2370
Here, the failure to specify cmake -DWITH_DBUG_TRACE=OFF should have contributed to some slowness, but I do not think it should cause the hang.