The page write concurrently with SegmentMerge/Split/MergeDelta may not get removed from the PageStorage #5659
Labels
affects-6.0
affects-6.1
This bug affects the 6.1.x(LTS) versions.
affects-6.2
component/storage
severity/major
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)
After the test run, we call delete range and delta merge for all segments, the valid size of the log PageStorage should be zero.
3. What did you see instead (Required)
The valid size of log PageStorage is not zero
The root cause is in
applyMergeDelta
/applyMerge
/applySplit
, we create ref page for all pages that is not exists in the snapshot, but only remove the original page that is flushed into disk.4. What is your TiFlash version? (Required)
master
The text was updated successfully, but these errors were encountered: