-
Notifications
You must be signed in to change notification settings - Fork 54
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
scrub: support scrub_mode #175
Conversation
public int scrub(boolean disableSnapshot, boolean skipCorrupted, boolean checkData, boolean reinsertOverflowedTTL, | ||
int jobs, String keyspaceName, String... columnFamilies) | ||
throws IOException, ExecutionException, InterruptedException; | ||
|
||
public int scrub(boolean disableSnapshot, boolean skipCorrupted, String scrubMode, boolean checkData, boolean reinsertOverflowedTTL, | ||
int jobs, String keyspaceName, String... columnFamilies) | ||
throws IOException, ExecutionException, InterruptedException; |
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.
I think there should be a variant with skipCorrupted
and one with scrubMode
, doesn't really make sense to set both, as they conflict (and I don't recall how the conflict is resolved in the API).
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.
Hmm, that makes sense. Our documentation says that scrubMode trumps skipCorrupted.
https://github.com/scylladb/scylla/blob/f98cb965067b8a8f640840387dcbf043a0885d8c/api/api-doc/storage_service.json#L798
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.
Fixed in v2
Support new scrubMode option and deprecate skipCorrupted that's equivalent to scrubMode="SKIP". Signed-off-by: Benny Halevy <bhalevy@scylladb.com>
bbbdd85
to
fc24c74
Compare
In v2:
|
@scylladb/scylla-jmx-maint please merge |
Add support for the scrub_mode option for the scylla api.
Signed-off-by: Benny Halevy bhalevy@scylladb.com