[MDEV-31107] InnoDB tables deleted Created: 2023-04-21 Updated: 2023-04-21 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 10.8.3 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Nuno Ventura | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Rocky Linux Operating System running on VMware Workstation |
||
| Description |
|
Hello. From the logs I’m almost sure there was no hacking attack and I’m sure I don’t have any drop command from any application, and I also check HeidiSQL logs for any command like a drop or something that could do this and I didn’t found nothing. Now I need your tips/help for the following:
|
| Comments |
| Comment by Marko Mäkelä [ 2023-04-21 ] |
|
For reasons explained in No REPAIR functionality has been implemented for InnoDB yet. Heikki Tuuri said to me at least a couple of times that he does not believe in it; users should have periodic backups (with the procedure being tested), and InnoDB should be crash-safe to begin with. Maybe in MariaDB, we are approaching that (by finally fixing Coincidentally, some advice that was given by a former MySQL employee in https://blog.jcole.us/2023/04/18/the-customer-is-always-wrong/ might apply in cases like this. |
| Comment by Nuno Ventura [ 2023-04-21 ] |
|
@Mako Mäkelä thanks for your answer. I was (more or less) aware of the dangers of using innodb_force_recovery with high values, but I just did it after making a copy of ibdata1 file and because I wanted to try to recover the data that was in database after the last backup (that is done daily) and restoring the backup would loose the data since the backup (as I don't have binary logs). The article from Geremy Cole has good advice, I feel I'm not too far from his point of view, I didn't make a bigger mess, I applied first aid, they are working, but now I really need to find the route cause, so I can apply a definitive solution. I made a copy of the full rocky linux VM to my test server so I can investigate without disturbing the costumer or cause any risk to the real data. Any further suggestions on what to search for? |
| Comment by Marko Mäkelä [ 2023-04-21 ] |
|
If you had a backup of the broken state right before any attempted repair, restoring that could allow the root cause to be analyzed better. This is a bug reporting system, and I am an InnoDB developer, not a support engineer. Our redo log format after my last revision ( |
| Comment by Nuno Ventura [ 2023-04-21 ] |
|
Sorry, @Marko Mäkelä, maybe this is not even a bug. I still don't know. |