We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 083890f commit 563c34bCopy full SHA for 563c34b
server/src/test/java/org/opensearch/index/store/StoreTests.java
@@ -1189,8 +1189,10 @@ public void testCleanupAndPreserveLatestCommitPoint() throws IOException {
1189
1190
// we want to ensure commitMetadata files are preserved after calling cleanup
1191
for (String existingFile : store.directory().listAll()) {
1192
- assertTrue(commitMetadata.contains(existingFile));
1193
- assertFalse(additionalSegments.contains(existingFile));
+ if (!IndexWriter.WRITE_LOCK_NAME.equals(existingFile)) {
+ assertTrue(commitMetadata.contains(existingFile));
1194
+ assertFalse(additionalSegments.contains(existingFile));
1195
+ }
1196
}
1197
deleteContent(store.directory());
1198
IOUtils.close(store);
0 commit comments