[MDEV-28529] Can't drop a corrupted partition, need some sort of "DROP PARTITION ... FORCE" Created: 2022-05-10  Updated: 2023-12-11

Status: Stalled
Project: MariaDB Server
Component/s: Partitioning, Storage Engine - InnoDB
Affects Version/s: 10.3.16
Fix Version/s: 10.3

Type: Bug Priority: Major
Reporter: Hartmut Holzgraefe Assignee: Alexey Botchkov
Resolution: Unresolved Votes: 2
Labels: None


 Description   

One partition of a very large partitioned table suffered corruption by a corrupted primary key index page.

Selecting data from the other partitions is still possible, but only a few rows out of the range of the affected partition can be read.

As data for that specific partition can still be re-imported the plan was to drop and re-create the partition, but any attempt to do DML on the table now end with "table does not exist in engine"

We tried:

  • DROP PARTITION to get rid of the partition
  • ALTER TABLE REPLACE PARTITION WITH TABLE both for the bad partition and the good ones
  • FLUSH TABLES ... FOR EXPORT to then be able to move "good" tablespace files over to a new partitioned table one by one

but every time it fails with "table does not exist in engine"



 Comments   
Comment by JiraAutomate [ 2023-12-05 ]

Automated message:
----------------------------
Since this issue has not been updated since 6 weeks, it's time to move it back to Stalled.

Comment by Julien Fritsch [ 2023-12-11 ]

I reduced the priority since it only has an EOL fix version.

Generated at Thu Feb 08 10:01:26 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.