-
Notifications
You must be signed in to change notification settings - Fork 313
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
Compaction cleans input files instead of output files on failure #3633
Comments
The region lease expired during compaction.
Then it invoked the greptimedb/src/mito2/src/worker/handle_compaction.rs Lines 53 to 60 in d33435f
Here we remove all compacted files greptimedb/src/mito2/src/request.rs Lines 720 to 728 in d33435f
However, greptimedb/src/mito2/src/request.rs Lines 681 to 687 in d33435f
|
What type of bug is this?
Data corruption
What subsystems are affected?
Distributed Cluster
Minimal reproduce step
It only occurs under the distributed mode. You have to trigger a region failover while the region is doing compaction.
After that, querying that region may return
File not found
error.What did you expect to see?
Query results.
What did you see instead?
Error
What operating system did you use?
Unrelated
What version of GreptimeDB did you use?
0.7.1
Relevant log output and stack trace
The text was updated successfully, but these errors were encountered: