merge-checker: The empty region corresponding to the dropped table cannot be merged forever with enable-cross-table-merge
false
#8886
Labels
affects-6.0
affects-6.1
This bug affects the 6.1.x(LTS) versions.
affects-6.2
affects-6.5
This bug affects the 6.5.x(LTS) versions.
affects-7.1
This bug affects the 7.1.x(LTS) versions.
affects-7.5
This bug affects the 7.5.x(LTS) versions.
affects-8.1
This bug affects the 8.1.x(LTS) versions.
affects-8.5
This bug affects the 8.5.x(LTS) versions.
type/bug
The issue is confirmed as a bug.
Bug Report
The empty region corresponding to the dropped table cannot be merged forever with
enable-cross-table-merge
false.What did you do?
First, I adjusted the following configuration, expecting each region to contain data for only one table.
2.create a new database and create 100 tables in it: After creating 100 tables, I saw that 300 new regions were created.
What did you expect to see?
The number of empty regions will be restored to the state before testing began, which means that the regions corresponding to these 100 tables should be merged together.
What did you see instead?
The number of empty regions increased by 100 compared to before the test, meaning that each of these one hundred tables left behind an empty region.
The reason for the inability to merge is "adj-disallow-merge"
It returns false on L292
pd/pkg/schedule/checker/merge_checker.go
Lines 282 to 298 in 358de10
The main reason is that PD cannot know if the region corresponding to the table has been completely deleted(drop). PD needs a method to distinguish between drop table and truncate table's empty regions in order to fix this issue.
What version of PD are you using (
pd-server -V
)?v7.5.2
The text was updated successfully, but these errors were encountered: