[MDEV-26612] Two different ways to start MariaDB service can cause data corruption Created: 2021-09-15 Updated: 2022-03-13 Resolved: 2022-03-13 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Packaging |
| Affects Version/s: | 10.2, 10.3 |
| Fix Version/s: | 10.2.41, 10.3.32, 10.4.22, 10.5.13, 10.6.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Timofey Turenko | Assignee: | Timofey Turenko |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
PRM base distribution |
||
| Description |
|
Server can be started in two ways:
and
These two ways are not equal: first way is defined (probably) by post-install scripts, the second - by file from the package /etc/init.d/mysql The data corruption can happen if we start first `service mysqld start` and then try to restart with `service mariadb ....` As example:
results in:
|
| Comments |
| Comment by Elena Stepanova [ 2021-09-15 ] |
|
The root cause of InnoDB corruption is the lack of protection against double-start, it is discussed in |
| Comment by Alexey Bychko (Inactive) [ 2021-09-22 ] |
|
the bug is confirmed on RHEL-based systems |
| Comment by Alexey Bychko (Inactive) [ 2021-09-23 ] |
|
debians are not affected because they use different /etc/init.d/mysql script |
| Comment by Alexey Bychko (Inactive) [ 2021-09-23 ] |
|
the fix is 23bfbba97959dbeba2e7f1d7046d04dbf911cbc4 |
| Comment by Alexey Bychko (Inactive) [ 2021-09-24 ] |
|
the fix is pushed. |