File tree 1 file changed +4
-2
lines changed
server/src/internalClusterTest/java/org/opensearch/repositories
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 44
44
45
45
import java .util .Collection ;
46
46
import java .util .Collections ;
47
+ import java .util .concurrent .atomic .AtomicInteger ;
47
48
48
49
import static org .opensearch .cluster .metadata .IndexMetadata .SETTING_NUMBER_OF_REPLICAS ;
49
50
import static org .opensearch .cluster .metadata .IndexMetadata .SETTING_NUMBER_OF_SHARDS ;
@@ -149,9 +150,10 @@ public void testCreatSnapAndUpdateReposityCauseInfiniteLoop() throws Interrupted
149
150
repoSettings
150
151
);
151
152
152
- String snapshotName = "test-snapshot" ;
153
+ final AtomicInteger snapshotCount = new AtomicInteger () ;
153
154
Runnable createSnapshot = () -> {
154
- logger .info ("--> begining snapshot" );
155
+ String snapshotName = "snapshot-" + snapshotCount .incrementAndGet ();
156
+ logger .info ("--> beginning snapshot for " + snapshotName );
155
157
client ().admin ()
156
158
.cluster ()
157
159
.prepareCreateSnapshot (repositoryName , snapshotName )
You can’t perform that action at this time.
0 commit comments