170
170
import java .util .Locale ;
171
171
import java .util .Map ;
172
172
import java .util .Set ;
173
+ import java .util .UUID ;
173
174
import java .util .concurrent .BrokenBarrierException ;
174
175
import java .util .concurrent .CountDownLatch ;
175
176
import java .util .concurrent .CyclicBarrier ;
@@ -2297,6 +2298,7 @@ public void testRecoverFromStoreWithOutOfOrderDelete() throws IOException {
2297
2298
shard .applyDeleteOperationOnReplica (1 , primaryTerm , 2 , "id" );
2298
2299
shard .getEngine ().translogManager ().rollTranslogGeneration (); // isolate the delete in it's own generation
2299
2300
shard .applyIndexOperationOnReplica (
2301
+ UUID .randomUUID ().toString (),
2300
2302
0 ,
2301
2303
primaryTerm ,
2302
2304
1 ,
@@ -2305,6 +2307,7 @@ public void testRecoverFromStoreWithOutOfOrderDelete() throws IOException {
2305
2307
new SourceToParse (shard .shardId ().getIndexName (), "id" , new BytesArray ("{}" ), XContentType .JSON )
2306
2308
);
2307
2309
shard .applyIndexOperationOnReplica (
2310
+ UUID .randomUUID ().toString (),
2308
2311
3 ,
2309
2312
primaryTerm ,
2310
2313
3 ,
@@ -2315,6 +2318,7 @@ public void testRecoverFromStoreWithOutOfOrderDelete() throws IOException {
2315
2318
// Flushing a new commit with local checkpoint=1 allows to skip the translog gen #1 in recovery.
2316
2319
shard .flush (new FlushRequest ().force (true ).waitIfOngoing (true ));
2317
2320
shard .applyIndexOperationOnReplica (
2321
+ UUID .randomUUID ().toString (),
2318
2322
2 ,
2319
2323
primaryTerm ,
2320
2324
3 ,
@@ -2323,6 +2327,7 @@ public void testRecoverFromStoreWithOutOfOrderDelete() throws IOException {
2323
2327
new SourceToParse (shard .shardId ().getIndexName (), "id-2" , new BytesArray ("{}" ), XContentType .JSON )
2324
2328
);
2325
2329
shard .applyIndexOperationOnReplica (
2330
+ UUID .randomUUID ().toString (),
2326
2331
5 ,
2327
2332
primaryTerm ,
2328
2333
1 ,
@@ -2470,6 +2475,7 @@ public void testRecoverFromStoreWithNoOps() throws IOException {
2470
2475
updateMappings (otherShard , shard .indexSettings ().getIndexMetadata ());
2471
2476
SourceToParse sourceToParse = new SourceToParse (shard .shardId ().getIndexName (), "1" , new BytesArray ("{}" ), XContentType .JSON );
2472
2477
otherShard .applyIndexOperationOnReplica (
2478
+ UUID .randomUUID ().toString (),
2473
2479
1 ,
2474
2480
otherShard .getOperationPrimaryTerm (),
2475
2481
1 ,
@@ -2597,6 +2603,7 @@ public void testRecoverFromStoreRemoveStaleOperations() throws Exception {
2597
2603
final String indexName = shard .shardId ().getIndexName ();
2598
2604
// Index #0, index #1
2599
2605
shard .applyIndexOperationOnReplica (
2606
+ UUID .randomUUID ().toString (),
2600
2607
0 ,
2601
2608
primaryTerm ,
2602
2609
1 ,
@@ -2607,6 +2614,7 @@ public void testRecoverFromStoreRemoveStaleOperations() throws Exception {
2607
2614
flushShard (shard );
2608
2615
shard .updateGlobalCheckpointOnReplica (0 , "test" ); // stick the global checkpoint here.
2609
2616
shard .applyIndexOperationOnReplica (
2617
+ UUID .randomUUID ().toString (),
2610
2618
1 ,
2611
2619
primaryTerm ,
2612
2620
1 ,
@@ -2619,6 +2627,7 @@ public void testRecoverFromStoreRemoveStaleOperations() throws Exception {
2619
2627
shard .getEngine ().translogManager ().rollTranslogGeneration ();
2620
2628
shard .markSeqNoAsNoop (1 , primaryTerm , "test" );
2621
2629
shard .applyIndexOperationOnReplica (
2630
+ UUID .randomUUID ().toString (),
2622
2631
2 ,
2623
2632
primaryTerm ,
2624
2633
1 ,
@@ -4009,6 +4018,7 @@ private Result indexOnReplicaWithGaps(final IndexShard indexShard, final int ope
4009
4018
XContentType .JSON
4010
4019
);
4011
4020
indexShard .applyIndexOperationOnReplica (
4021
+ UUID .randomUUID ().toString (),
4012
4022
i ,
4013
4023
indexShard .getOperationPrimaryTerm (),
4014
4024
1 ,
@@ -4633,6 +4643,7 @@ public void testDoNotTrimCommitsWhenOpenReadOnlyEngine() throws Exception {
4633
4643
seqNo ++; // create gaps in sequence numbers
4634
4644
}
4635
4645
shard .applyIndexOperationOnReplica (
4646
+ UUID .randomUUID ().toString (),
4636
4647
seqNo ,
4637
4648
shard .getOperationPrimaryTerm (),
4638
4649
1 ,
0 commit comments