The server can't start When starting with innodb_force_recovery and innodb_purge_thread being set
Bug #923820 reported by
yinfeng
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS | Status tracked in 5.7 | |||||
5.1 |
Won't Fix
|
Undecided
|
Unassigned | |||
5.5 |
New
|
Low
|
Unassigned | |||
5.6 |
Invalid
|
Undecided
|
Unassigned | |||
5.7 |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Percona5.5.18
repeat:
innodb_
innodb_purge_thread = 1
we will see in error log a lot of information like :
InnoDB: Waiting for the background threads to start
a simple fix is to force innodb_
Changed in percona-server: | |
assignee: | nobody → yinfeng (yinfeng-zwx) |
assignee: | yinfeng (yinfeng-zwx) → nobody |
Changed in percona-server: | |
importance: | Undecided → Medium |
tags: | added: contribution |
tags: | added: upstream |
To post a comment you must log in.
another fix: NO_BACKGROUND, innobase_ start_or_ create_ for_mysql will check if purge thread has started.
only when srv_force_recovery < SRV_FORCE_
is there anyone can help me review this small change?
Version:Percona Server 5.5.18
Index: storage/ innobase/ srv/srv0start. c ======= ======= ======= ======= ======= ======= ======= ======= ==== innobase/ srv/srv0start. c (revision 999) innobase/ srv/srv0start. c (working copy) has_reserved_ slot(SRV_ MASTER) == ULINT_UNDEFINED
| | (srv_n_ purge_threads == 1
&& srv_thread_ has_reserved_ slot(SRV_ WORKER) recovery< SRV_FORCE_ NO_BACKGROUND) {
=======
--- storage/
+++ storage/
@@ -2028,7 +2028,8 @@
if (srv_thread_
- == ULINT_UNDEFINED)) {
+ == ULINT_UNDEFINED)
+ && srv_force_