You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Test] Account for auto-repairing for shard gen file (#112778) (#112788)
Since #112337, missing shard gen files are automatically reconstructed
based on the existing shard snapshot files. If the list of shard
snapshot files is complete, it means the repository is effectively not
corrupted. This PR updates the test to account for this situation.
Resolves: #112769
(cherry picked from commit e1f7814)
# Conflicts:
# muted-tests.yml
Copy file name to clipboardExpand all lines: x-pack/plugin/snapshot-repo-test-kit/src/internalClusterTest/java/org/elasticsearch/repositories/blobstore/testkit/integrity/RepositoryVerifyIntegrityIT.java
+10-3Lines changed: 10 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -344,16 +344,23 @@ public void testCorruption() throws IOException {
344
344
? equalTo(testContext.indexNames().size())
345
345
: lessThan(testContext.indexNames().size())
346
346
);
347
-
assertThat(anomalies, not(empty()));
347
+
// Missing shard generation file is automatically repaired based on the shard snapshot files.
348
+
// See also BlobStoreRepository#buildBlobStoreIndexShardSnapshots
0 commit comments