Skip to content
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

Closed
wants to merge 1 commit into from
Closed

Conversation

bhalevy
Copy link
Member

@bhalevy bhalevy commented Aug 18, 2021

Add support for the scrub_mode option for the scylla api.

Signed-off-by: Benny Halevy bhalevy@scylladb.com

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;
Copy link
Contributor

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).

Copy link
Member Author

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

Copy link
Member Author

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>
@bhalevy
Copy link
Member Author

bhalevy commented Aug 23, 2021

In v2:

  • deprecate skipCorrupted, replace the skipCorrupted parameter with scrubMode in new api method.

@bhalevy
Copy link
Member Author

bhalevy commented Aug 24, 2021

@scylladb/scylla-jmx-maint please merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants