Assertion during shutdown if lru restore is in progress
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 |
Triaged
|
High
|
George Ormond Lorch III | |||
5.6 |
Invalid
|
Undecided
|
Unassigned | |||
5.7 |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Reported against Percona Server 5.5.16-rel22.0 revision 189.
Percona Server gets an assertion if you try to do a shutdown while it's restoring the buffer pool from a saved lru dump.
Here are the steps to reproduce the issue.
----------------
Step 1: Enable automatic lru dump/restore in my.cnf:
innodb_
----------------
Step 2: Start mysqld, to get lru dump going.
----------------
Step 3: Restart mysqld, so it begins restoring the buffer pool. See the notice in the error log:
120223 15:56:37 InnoDB: Restoring buffer pool pages from ib_lru_dump
----------------
Step 4: Stop mysqld again while the restore is working. See the assertion about pending I/O in the error log, and an intentional memory trap in the error log:
120223 15:59:06 InnoDB: Starting shutdown...
120223 15:59:21 InnoDB: Assertion failure in thread 1248631104 in file fil0fil.c line 867
InnoDB: Failing assertion: node->n_pending == 0 || node->space-
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to http://
InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: http://
InnoDB: about forcing recovery.
120223 15:59:21 - mysqld got signal 6 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help diagnose
the problem, but since we have already crashed, something is definitely wrong
and this may fail.
key_buffer_
read_buffer_
max_used_
max_threads=200
thread_count=0
connection_count=0
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
Thread pointer: 0x0
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = (nil) thread_stack 0x40000
/usr/sbin/
/usr/sbin/
/lib64/
/lib64/
/lib64/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/usr/sbin/
/lib64/
/lib64/
The manual page at http://
information that should help you find out what is causing the crash.
This causes mysqld_safe to restart the server.
----------------
Step 5: Wait until the lru restore is finished. See report in error log:
120223 18:28:49 InnoDB: Completed reading buffer pool pages (requested: 3840295, read: 3839769)
----------------
Step 6: Now stop mysqld. See it terminate cleanly:
120223 18:30:11 [Note] /usr/sbin/mysqld: Normal shutdown
120223 18:30:11 [Note] Event Scheduler: Purging the queue. 0 events
120223 18:30:11 InnoDB: Starting shutdown...
120223 18:30:43 InnoDB: Shutdown completed; log sequence number 574342454727
120223 18:30:43 [Note] /usr/sbin/mysqld: Shutdown complete
120223 18:30:44 mysqld_safe mysqld from pid file /mysqldb/
If innodb_
Changed in percona-server: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in percona-server: | |
assignee: | nobody → George Ormond Lorch III (gl-az) |
status: | Triaged → In Progress |
Changed in percona-server: | |
status: | In Progress → Fix Committed |
Changed in percona-server: | |
status: | Fix Committed → Confirmed |
status: | Confirmed → In Progress |
Changed in percona-server: | |
status: | In Progress → Confirmed |
Changed in percona-server: | |
status: | Confirmed → Triaged |
tags: | added: xtradb |
Percona now uses JIRA for bug reports so this bug report is migrated to: https:/ /jira.percona. com/browse/ PS-2732