[MDEV-9774] Checksum errors on restart when killing busy instance that uses encrypted XtraDB tables with <10.1.13 Created: 2016-03-22 Updated: 2017-10-23 Resolved: 2017-10-23 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Encryption, Storage Engine - InnoDB, Storage Engine - XtraDB |
| Affects Version/s: | 10.1.9, 10.1 |
| Fix Version/s: | 10.1.13 |
| Type: | Bug | Priority: | Major |
| Reporter: | Jan Lindström (Inactive) | Assignee: | Jan Lindström (Inactive) |
| Resolution: | Duplicate | Votes: | 1 |
| Labels: | None | ||
| Environment: |
Linux |
||
| Issue Links: |
|
||||||||||||
| Sprint: | 10.1.11, 10.1.12, 10.1.13 | ||||||||||||
| Description |
|
When using encrypted XtraDB tables there is a "good" chance to run into checksum errors in recovery when killing mysqld hard after large inserts on a table (e.g. restoring a mysqldump or doing a large INSERT ... SELECT). How to reproduce:
e.g.:
Full dump of crashed instance base- and datadir is in http://php-groupies.de/encryption-crash.tar.gz (~8GB) |
| Comments |
| Comment by Jan Lindström (Inactive) [ 2016-03-22 ] |
|
Fix InnoDB crash recovery if we already have database created with MariaDB < 10.1.13 using encryption and server refuses to start because of checksum errors. |
| Comment by none now [ 2016-04-04 ] |
|
how does one recover from this problem? I have not clue as how it happened, but... it's bad BROKEN: block: 143666 checkpoint: 9716 69e8f3cb 2f3d2980 |
| Comment by Jan Lindström (Inactive) [ 2016-04-04 ] |
|
What did you do, did you shutdown server nicely or killed it? If this is normal shutdown with innodb_fast_shutdown=0 here is what you can do: (1) Take backup from datadir |
| Comment by none now [ 2016-04-06 ] |
|
I don't know how/why it happened, but deleting ip_log* helped. |
| Comment by Jan Lindström (Inactive) [ 2017-10-23 ] |
|
Duplicated by |