Skip to content

Conversation

@original-brownbear
Copy link
Contributor

  • Add some quick validation on not leaving behind any dangling metadata or dangling indices to the snapshot resiliency tests
    • Added todo about expanding this assertion further
  • Also fixed the docs about the blob naming only realized that inconsistency when writing this code that we' were missing a .dat there :)

back port of #40857 and the fixes to resulting test failures (#41332 and #41437 )

…tic#40857)

* Add Repository Consistency Assertion to SnapshotResiliencyTests

* Add some quick validation on not leaving behind any dangling metadata or dangling indices to the snapshot resiliency tests
   * Added todo about expanding this assertion further
* Fix SnapshotResiliencyTest Repo Consistency Check

* Due to the random creation of an empty `extra0` file by the Lucene mockFS we see broken tests because we use the existence of an index folder in assertions and the index deletion doesn't go through if there are extra files in an index folder
  * Fixed by removing the `extra0` file and resulting empty directory trees before asserting repo consistency
* Closes elastic#41326
This was fixed in elastic#41332
but I forgot to reenable the test.
@original-brownbear original-brownbear added >test Issues or PRs that are addressing/adding tests :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs backport labels Apr 29, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed

@original-brownbear original-brownbear merged commit 6e51b6f into elastic:7.x Apr 29, 2019
@original-brownbear original-brownbear deleted the 40857-7.x branch April 29, 2019 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport :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.

2 participants