-
Notifications
You must be signed in to change notification settings - Fork 101
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
Updated compact subcommend to throw warning instead of error if revisions are already compacted #355
Conversation
…ions are already compacted
Thank you @aaronfern for your contribution. Before I can start building your PR, a member of the organization must set the required label(s) {'reviewed/ok-to-test'}. Once started, you can check the build status in the PR checks section below. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix @aaronfern! Are we sure if ErrCompacted
is the only error that happens when there is nothing to compact?
How about the case where there are no delta snapshots at all?
Well, It's the only error I've encountered being thrown up when there is nothing to compact.
I did try out this case and it does not throw up an error, so nothing to explicitly handle here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the clarification @aaronfern! /lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aaronfern Nice catch with the error as well as the log message. LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Is it rebased and pushed again after merge of test cases fix? |
@abdasgupta Ah yes that's the issue. @aaronfern won't be able to rebase this for the next 10 days. I will raise another PR and cherry-pick his change in that. |
Or Maybe, we can ask him over the phone if he has access to a laptop with git installed. |
@abdasgupta I would suggest against doing that, since he's on vacation :) |
Closing in favour of #358 |
What this PR does / why we need it:
Currently the compact subcommand raises a fatal warning if compaction stops for any reason. Updated this behaviour to throw a warning for a special case where compaction does not happen if revisions are already compacted.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note: