-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mito: Potential issue to recover truncated data #3104
Comments
Now the region doesn't consider truncated entries during replay. greptimedb/src/mito2/src/region/opener.rs Lines 256 to 270 in c2db970
It should skip entries |
After checking how we recover the truncate action, I found that greptimedb/src/mito2/src/manifest/action.rs Lines 147 to 153 in c2db970
|
What type of bug is this?
Incorrect result
What subsystems are affected?
Standalone mode, Datanode
Minimal reproduce step
Truncate a region and restart the process before obsoleting the truncated entry.
What did you expect to see?
Region is empty
What did you see instead?
Region contains truncated data
What operating system did you use?
All
Relevant log output and stack trace
The text was updated successfully, but these errors were encountered: