File tree 1 file changed +3
-14
lines changed
server/src/test/java/org/opensearch/index/store
1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change 61
61
import java .util .concurrent .CountDownLatch ;
62
62
import java .util .concurrent .ExecutorService ;
63
63
import java .util .concurrent .TimeUnit ;
64
+ <<<<<<< HEAD
64
65
import java .util .regex .Pattern ;
66
+ =======
67
+ >>>>>>> RemoteSegmentStoreDirectory
65
68
import java .util .stream .Collectors ;
66
69
67
70
import org .mockito .Mockito ;
@@ -995,20 +998,6 @@ public void testDeleteStaleCommitsActualDelete() throws Exception {
995
998
.map (metadata -> metadata .split (RemoteSegmentStoreDirectory .UploadedSegmentMetadata .SEPARATOR )[1 ])
996
999
.collect (Collectors .toList ());
997
1000
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
-
1012
1001
remoteSegmentStoreDirectory .init ();
1013
1002
1014
1003
// popluateMetadata() adds stub to return 3 metadata files
You can’t perform that action at this time.
0 commit comments