Skip to content

Commit bc4a134

Browse files
committed
comparing only max seq no on replicas with primary . Avoid comparing global and local ckp
1 parent 4437109 commit bc4a134

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/framework/src/main/java/org/opensearch/test/InternalTestCluster.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1527,7 +1527,7 @@ public void assertSeqNos() throws Exception {
15271527
} catch (AlreadyClosedException e) {
15281528
continue; // shard is closed - just ignore
15291529
}
1530-
assertThat(replicaShardRouting + " seq_no_stats mismatch", seqNoStats, equalTo(primarySeqNoStats));
1530+
assertThat(replicaShardRouting + " seq_no_stats mismatch", seqNoStats.getMaxSeqNo(), equalTo(primarySeqNoStats.getMaxSeqNo()));
15311531
// the local knowledge on the primary of the global checkpoint equals the global checkpoint on the shard
15321532
if (primaryShard.isRemoteTranslogEnabled() == false) {
15331533
assertThat(

0 commit comments

Comments
 (0)