Skip to content

Commit 946a691

Browse files
committed
Merge branch 'RemoteSegmentStoreDirectory' into views-core
Signed-off-by: Peter Nied <petern@amazon.com>
2 parents 8796381 + d77f812 commit 946a691

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

server/src/test/java/org/opensearch/index/store/RemoteSegmentStoreDirectoryTests.java

+3-14
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@
6161
import java.util.concurrent.CountDownLatch;
6262
import java.util.concurrent.ExecutorService;
6363
import java.util.concurrent.TimeUnit;
64+
<<<<<<< HEAD
6465
import java.util.regex.Pattern;
66+
=======
67+
>>>>>>> RemoteSegmentStoreDirectory
6568
import java.util.stream.Collectors;
6669

6770
import org.mockito.Mockito;
@@ -995,20 +998,6 @@ public void testDeleteStaleCommitsActualDelete() throws Exception {
995998
.map(metadata -> metadata.split(RemoteSegmentStoreDirectory.UploadedSegmentMetadata.SEPARATOR)[1])
996999
.collect(Collectors.toList());
9971000

998-
final String allFilesPattern = filesToBeDeleted.stream()
999-
.map(Pattern::quote) // Make sure filenames are matched literally
1000-
.map(file -> "(?=.*?" + file + ")") // Allow for matches in any order
1001-
.collect(Collectors.joining("", "deletedSegmentFiles=\\[", ".*\\]"));
1002-
1003-
appender.addExpectation(
1004-
new MockLogAppender.PatternSeenWithLoggerPrefixExpectation(
1005-
"Deleted file segments message",
1006-
"org.opensearch.index.store.RemoteSegmentStoreDirectory",
1007-
Level.DEBUG,
1008-
allFilesPattern
1009-
)
1010-
);
1011-
10121001
remoteSegmentStoreDirectory.init();
10131002

10141003
// popluateMetadata() adds stub to return 3 metadata files

0 commit comments

Comments
 (0)