[MDEV-11689] Server shuts down in unclean fashion after failing to start with a wrong value of innodb_undo_tablespaces Created: 2016-12-30 Updated: 2017-01-31 Resolved: 2017-01-29 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Plugins, Storage Engine - InnoDB |
| Affects Version/s: | 10.2.3 |
| Fix Version/s: | 10.2.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
Note: I'm not sure it's actually an InnoDB problem, please change the category and re-assign if needed. To reproduce,
The error is expected in this case, but what happens after it appears to be wrong. On 10.2:
On 10.1, there is no assertion failure or ref_count problem, but it seems that the process just disappears without proper shut down:
MySQL 5.6, 5.7, MariaDB 5.5, 10.0 perform the shutdown, e.g. on 10.0:
|
| Comments |
| Comment by Marko Mäkelä [ 2017-01-03 ] | |||||||||||||||||||||||
|
I suspect that this does not affect 10.1 at all, but only 10.2. I will compile&test 10.1. | |||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2017-01-03 ] | |||||||||||||||||||||||
|
I was unable to repeat this in 10.1 with the following test:
This resulted in an aborted InnoDB startup as follows:
I reran the test under --manual-gdb (appending --innodb-undo-tablespaces=2 to the arguments when restarting mysqld), and I did not observe any problem in th 10.1.21 shutdown:
| |||||||||||||||||||||||
| Comment by Elena Stepanova [ 2017-01-03 ] | |||||||||||||||||||||||
|
To reproduce the missing "mysqld: Shutdown complete" on 10.1, one needs to have InnoDB as a default storage engine. MTR sets it to MyISAM, so you need to run the test with --mysqld=--default-storage-engine=InnoDB. | |||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2017-01-27 ] | |||||||||||||||||||||||
|
When this is fixed, the workarounds in the test innodb.log_file_size should be removed. (Add --core-file and remove all ,134 to repeat the problem.) | |||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2017-01-27 ] | |||||||||||||||||||||||
|
In 10.2, also the test innodb.log_file needed workarounds for this bug, so please uncomment the core_file and remove all ,134 when fixing this bug. | |||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2017-01-29 ] | |||||||||||||||||||||||
|
Fixed in 30ba3100579 |