Skip to content

Commit

Permalink
comparing only max seq no on replicas with primary . Avoid comparing …
Browse files Browse the repository at this point in the history
…global and local ckp
  • Loading branch information
gbbafna committed Sep 4, 2023
1 parent 4437109 commit bc4a134
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -1527,7 +1527,7 @@ public void assertSeqNos() throws Exception {
} catch (AlreadyClosedException e) {
continue; // shard is closed - just ignore
}
assertThat(replicaShardRouting + " seq_no_stats mismatch", seqNoStats, equalTo(primarySeqNoStats));
assertThat(replicaShardRouting + " seq_no_stats mismatch", seqNoStats.getMaxSeqNo(), equalTo(primarySeqNoStats.getMaxSeqNo()));
// the local knowledge on the primary of the global checkpoint equals the global checkpoint on the shard
if (primaryShard.isRemoteTranslogEnabled() == false) {
assertThat(
Expand Down

0 comments on commit bc4a134

Please sign in to comment.