Adapt local checkpoint assertion

With async durability, it does not hold true anymore after #43205. This is fine.
This commit is contained in:
Yannick Welsch 2019-06-20 17:29:01 +02:00
parent 5f8db95d60
commit 8c856d6d91
1 changed files with 1 additions and 1 deletions

View File

@ -2198,7 +2198,7 @@ public class IndexShard extends AbstractIndexShardComponent implements IndicesCl
"only primary relocation target can update allocation IDs from primary context: " + shardRouting;
assert primaryContext.getCheckpointStates().containsKey(routingEntry().allocationId().getId()) &&
getLocalCheckpoint() == primaryContext.getCheckpointStates().get(routingEntry().allocationId().getId())
.getLocalCheckpoint();
.getLocalCheckpoint() || indexSettings().getTranslogDurability() == Translog.Durability.ASYNC;
synchronized (mutex) {
replicationTracker.activateWithPrimaryContext(primaryContext); // make changes to primaryMode flag only under mutex
}