placement rule information lost after truncate partition #44031
Labels
affects-5.4
This bug affects the 5.4.x(LTS) versions.
affects-6.1
This bug affects the 6.1.x(LTS) versions.
affects-6.2
affects-6.3
affects-6.4
affects-6.5
This bug affects the 6.5.x(LTS) versions.
affects-6.6
affects-7.0
affects-7.1
This bug affects the 7.1.x(LTS) versions.
severity/major
sig/sql-infra
SIG: SQL Infra
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
3. What did you see instead (Required)
I expect the placement rule work after truncate partition.
But as you can see, after truncate, the new partition does not obey the placement rule.
The root cause is that, the placement policy informaction is recored in the table info, not in the partition definition.
After truncate, the new partition inherit the placement policy from the partition definition, so it's lost.
See the ddl history info to verify that:
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: