File tree 1 file changed +2
-2
lines changed
server/src/test/java/org/elasticsearch/index/shard
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -669,7 +669,7 @@ public void testOperationPermitsOnPrimaryShards() throws Exception {
669
669
isPrimaryMode = true ;
670
670
}
671
671
assert indexShard .getReplicationTracker ().isPrimaryMode () == isPrimaryMode ;
672
- final long primaryTerm = indexShard .getPendingPrimaryTerm ();
672
+ final long pendingPrimaryTerm = indexShard .getPendingPrimaryTerm ();
673
673
if (isPrimaryMode ) {
674
674
Releasable operation1 = acquirePrimaryOperationPermitBlockingly (indexShard );
675
675
assertEquals (1 , indexShard .getActiveOperationsCount ());
@@ -715,7 +715,7 @@ public void onFailure(final Exception e) {
715
715
}
716
716
717
717
if (Assertions .ENABLED && indexShard .routingEntry ().isRelocationTarget () == false ) {
718
- assertThat (expectThrows (AssertionError .class , () -> indexShard .acquireReplicaOperationPermit (primaryTerm ,
718
+ assertThat (expectThrows (AssertionError .class , () -> indexShard .acquireReplicaOperationPermit (pendingPrimaryTerm ,
719
719
indexShard .getGlobalCheckpoint (), indexShard .getMaxSeqNoOfUpdatesOrDeletes (), new ActionListener <Releasable >() {
720
720
@ Override
721
721
public void onResponse (Releasable releasable ) {
You can’t perform that action at this time.
0 commit comments