PageStorage V3 GC can't work when restore #4937
Labels
affects-6.1
This bug affects the 6.1.x(LTS) versions.
component/storage
severity/critical
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)
Enable PageStorage V3 in #4884, run the UT:
tiflash/dbms/src/Storages/DeltaMerge/tests/gtest_dm_delta_merge_store.cpp
Line 1417 in 1e1bf1f
2. What did you expect to see? (Required)
PageStorage V3 GC work successfully and pass all the cases.
3. What did you see instead (Required)
Exception when PageStorage V3 restore.
tiflash/dbms/src/Storages/Page/V3/PageDirectory.cpp
Line 254 in f2513bb
Because the
lowest_seq
is0
when doingloadEdit
, so that thegcInMemEntries
can't remove the deleted pages.Here are some logs, we can see that the mvcc gc don't remove the deleted page.
4. What is your TiFlash version? (Required)
bb572eb
The text was updated successfully, but these errors were encountered: