Skip to content

Fix corruption simulation in RecoveryFromGatewayIT #50921

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

Conversation

DaveCTurner
Copy link
Contributor

Today we simulate a corruption by deleting the segments_* file in
RecoveryFromGatewayIT#testStartedShardFoundIfStateNotYetProcessed. However we
do not correctly detect this as a corruption thanks to an outstanding
NORELEASE task in the Store, so this test fails.

This commit temporarily adjusts how we corrupt the store in this test to ensure
that it is detected.

Today we simulate a corruption by deleting the `segments_*` file in
RecoveryFromGatewayIT#testStartedShardFoundIfStateNotYetProcessed. However we
do not correctly detect this as a corruption thanks to an outstanding
`NORELEASE` task in the Store, so this test fails.

This commit temporarily adjusts how we corrupt the store in this test to ensure
that it is detected.
@DaveCTurner DaveCTurner added >test Issues or PRs that are addressing/adding tests :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs labels Jan 13, 2020
@DaveCTurner DaveCTurner requested a review from tlrx January 13, 2020 14:52
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (:Distributed/Snapshot/Restore)

@DaveCTurner DaveCTurner merged commit aea62f5 into elastic:feature/searchable-snapshots Jan 15, 2020
@DaveCTurner DaveCTurner deleted the 2020-01-13-fix-RecoveryFromGatewayIT branch July 23, 2022 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs >test Issues or PRs that are addressing/adding tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants