Combination of log archiving, log tracking, and small logs hangs the server on the bootstrap shutdown
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS |
Fix Released
|
Medium
|
Laurynas Biveinis | ||
5.1 |
Invalid
|
Undecided
|
Laurynas Biveinis | ||
5.5 |
Invalid
|
Undecided
|
Laurynas Biveinis | ||
5.6 |
Fix Released
|
Medium
|
Laurynas Biveinis |
Bug Description
$ rm -rf tmp && mkdir tmp
$ ./bin/mysqld --no-defaults --bootstrap --basedir=. --datadir=./tmp --tmpdir=. --lc-messages-
results in the last log message printed
2014-06-04 16:25:07 3852 [Note] InnoDB: Starting shutdown...
and infinite loop in logs_empty_
(gdb) bt
#0 0x00007f1e7e104c33 in select () at ../sysdeps/
#1 0x00000000009630ef in os_thread_sleep (tm=tm@
#2 0x0000000000947c9e in logs_empty_
at /mnt/workspace/
#3 0x00000000009cddcf in innobase_
#4 0x00000000008fb806 in innobase_end (hton=<optimized out>, type=<optimized out>)
at /mnt/workspace/
#5 0x00000000005bb48c in ha_finalize_
#6 0x0000000000706e87 in plugin_deinitialize (ref_check=true, plugin=0x21982d0)
at /mnt/workspace/
#7 reap_plugins () at /mnt/workspace/
#8 0x00000000007083d0 in plugin_shutdown () at /mnt/workspace/
#9 0x00000000005ae9d8 in clean_up (print_
#10 0x00000000005b0266 in clean_up (print_
#11 unireg_abort (exit_code=0) at /mnt/workspace/
#12 0x00000000005b6bab in mysqld_main (argc=12, argv=0x213edd8) at /mnt/workspace/
#13 0x00007f1e7e033ec5 in __libc_start_main (main=0x591ff0 <main(int, char**)>, argc=12, argv=0x7fffdaf9
stack_
#14 0x00000000005a7f8d in _start ()
Related branches
- Sergei Glushchenko (community): Approve (g2)
-
Diff: 77 lines (+26/-4)3 files modifiedmysql-test/suite/innodb/r/percona_bug_1326379.result (+1/-0)
mysql-test/suite/innodb/t/percona_bug_1326379.test (+10/-0)
storage/innobase/log/log0log.cc (+15/-4)
tags: | added: bitmap |
A very unlikely combination for end users, but a boundary condition hit by RQG tests.