[MDEV-26276] Significant data corruption after dropping/adding database Created: 2021-07-29 Updated: 2021-08-03 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Server |
| Affects Version/s: | 10.5.11 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Nathan Jensen | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | regression | ||
| Environment: |
lsb_release -a dpkg -l | grep maria |
||
| Description |
|
I'm observing significant data corruption after dropping and loading a schema. This is so significant that I thought others would have reported it as well. However, I have searched and found nothing. I can reproduce the error using only SQL commands, so it seems legit.
This really makes me think that the drop/reload isn't happening as it should. It seems like some amount of data is being stored in memory and not destroyed through the drop then schema load. Once the service is brought down and restarted, this cached data is no longer there and the querries work appropriately. Note that rolling back to 10.3 removes this problem/behavior. |
| Comments |
| Comment by Daniel Black [ 2021-07-30 ] |
|
Do you have a datadir preserved that you can upload for the private use by the mariadb developers to understand/resolve this issue? |
| Comment by Nathan Jensen [ 2021-08-02 ] |
|
Daniel, I think I can provide what you need, but can you be more specific about what you mean by datadir? I'd hate to give you only half of what you need and have to rinse/repeat this process. Do you mean all the files in /var/lib/mysql? Any other log files? At what state do you want the data dir? I could snapshot it before or after the observed corruption. Thanks for the help! -Nate |
| Comment by Daniel Black [ 2021-08-03 ] |
|
A snapshot before would be most useful if possible. Everything else can be derived. Yes all of /var/lib/mysql. If you have log files of mariadb that would be good too (from file or journalctl -u mariadb.service from recent restarts). Thanks njensen. Is there an indication that this is a filesystem out of space error? |
| Comment by Nathan Jensen [ 2021-08-03 ] |
|
Daniel, I think I have added a useful debug data set for you. Since the problem is trivial to reproduce, I took data dir snapshots at all stages. All of these snaps are contained in the uploaded archive: MDEV-26276_debug_data.tar. When you break these sections out, here is how to align them with the steps I show in the above ticket description:
Also note that I uploaded the output of the journalctl command in file: MDEV-26276jounalctl If there is anything else I can provide, please don't hesitate to ask! I appreciate the help. -Nate |