PageFile in PageStorage V2 maybe truncate at restart #5385
Labels
affects-5.0
affects-5.1
affects-5.2
affects-5.3
affects-5.4
This bug affects the 5.4.x(LTS) versions.
affects-6.0
affects-6.1
This bug affects the 6.1.x(LTS) versions.
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)
After change some hardcode config for ps v2 and patch tiflash, it print the following log:
[2022/07/15 13:50:47.825 +08:00] [DEBUG] [PageStorage.cpp:457] ["PageStorage:RegionPersister create new PageFile_1_0 for write [path=/data1/lidezhu/tidb-data/tiflash-9089/kvstore/]"] [thread_id=1]
But
PageFile_1_0
is a page file that already has data which make data inPageFile_1_0
lost.Note that in real scenario, this has very little possibility to happen.
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiFlash version? (Required)
The text was updated successfully, but these errors were encountered: