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

Fix DedicatedClusterSnapshotRestoreIT testSnapshotWithStuckNode #43537

Merged
merged 3 commits into from
Jun 25, 2019

Conversation

original-brownbear
Copy link
Member

  • See comment in the test: The problem is that when the snapshot delete works out partially on master failover and the retry fails on SnapshotMissingException no repository cleanup is run => we still failed even with repo cleanup logic in the delete path now
    • Fixed the test by rerunning a create snapshot and delete loop to clean up the repo before verifying file counts
    • Also had to adjust the get snapshots calls due to the multi-repo get that we now have in master (will have to adjust this in the backport to 7.x)
  • Closes [CI] DedicatedClusterSnapshotRestoreIT testSnapshotWithStuckNode failed #39852

* See comment in the test: The problem is that when the snapshot delete works out partially on master failover and the retry fails on `SnapshotMissingException` no repository cleanup is run => we still failed even with repo cleanup logic in the delete path now
   * Fixed the test by rerunning a create snapshot and delete loop to clean up the repo before verifying file counts
* Closes elastic#39852
@original-brownbear original-brownbear added >test Issues or PRs that are addressing/adding tests :Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs v8.0.0 v7.3.0 labels Jun 24, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed

Copy link
Contributor

@ywelsch ywelsch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Add a TODO to replace this by using cleanup endpoint once we have that.

@original-brownbear
Copy link
Member Author

thanks @ywelsch

@original-brownbear original-brownbear merged commit e0686aa into elastic:master Jun 25, 2019
@original-brownbear original-brownbear deleted the 39852 branch June 25, 2019 12:01
original-brownbear added a commit to original-brownbear/elasticsearch that referenced this pull request Jul 8, 2019
…tic#43537)

* Fix DedicatedClusterSnapshotRestoreIT testSnapshotWithStuckNode

* See comment in the test: The problem is that when the snapshot delete works out partially on master failover and the retry fails on `SnapshotMissingException` no repository cleanup is run => we still failed even with repo cleanup logic in the delete path now
   * Fixed the test by rerunning a create snapshot and delete loop to clean up the repo before verifying file counts
* Closes elastic#39852
original-brownbear added a commit that referenced this pull request Jul 9, 2019
…) (#44082)

* Fix DedicatedClusterSnapshotRestoreIT testSnapshotWithStuckNode

* See comment in the test: The problem is that when the snapshot delete works out partially on master failover and the retry fails on `SnapshotMissingException` no repository cleanup is run => we still failed even with repo cleanup logic in the delete path now
   * Fixed the test by rerunning a create snapshot and delete loop to clean up the repo before verifying file counts
* Closes #39852
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs >test Issues or PRs that are addressing/adding tests v7.4.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI] DedicatedClusterSnapshotRestoreIT testSnapshotWithStuckNode failed
4 participants