Commit 91a93da 1 parent 56825f6 commit 91a93da Copy full SHA for 91a93da
File tree 1 file changed +2
-1
lines changed
server/src/main/java/org/opensearch/index/seqno
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -1254,8 +1254,9 @@ public ReplicationCheckpoint getLatestReplicationCheckpoint() {
1254
1254
1255
1255
// skip any shard that is a relocating primary or search only replica (not tracked by primary)
1256
1256
private boolean shouldSkipReplicationTimer (String allocationId ) {
1257
- Optional <ShardRouting > shardRouting = routingTable .shards ()
1257
+ Optional <ShardRouting > shardRouting = routingTable .assignedShards ()
1258
1258
.stream ()
1259
+ .filter (routing -> Objects .nonNull (routing .allocationId ()))
1259
1260
.filter (routing -> routing .allocationId ().getId ().equals (allocationId ))
1260
1261
.findAny ();
1261
1262
return shardRouting .isPresent () && (shardRouting .get ().primary () || shardRouting .get ().isSearchOnly ());
You can’t perform that action at this time.
0 commit comments