You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In HandleDDLEvent we don't handle ActionReorganizePartition correctly. Some partitions exist before and after reorg, we should not call insertTableStats2KV for them. This is why [kv:1062]Duplicate entry '721' for key 'stats_meta.tbl' occurs.
Besides, we cannot simply call insertTableStats2KV for newly-created partitions. We need to evaluate the numbers of rows for newly-created partitions and use them to set modify_count and row_count, which would be used to decide whether to trigger auto analyze.
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)
there are some stats error log
while
penw
is the new reorganized partition4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: