Skip to content

Commit 664b739

Browse files
committed
remove assert
1 parent 5bf03f7 commit 664b739

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

modules/data-streams/src/internalClusterTest/java/org/elasticsearch/datastreams/TSDBSyntheticIdsIT.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1762,13 +1762,10 @@ public void testNoopTombstones() throws Exception {
17621762
flush(backingIndex);
17631763
}
17641764

1765-
// Ensure all operations are replicated
1766-
assertBusy(() -> {
1767-
var replicaShard = internalCluster().getInstance(IndicesService.class, replicaNodeName).getShardOrNull(shardId);
1768-
assertThat(replicaShard, notNullValue());
1769-
long expectedMaxSeqNo = totalDocs - 1 + nbGaps;
1770-
assertThat(replicaShard.withEngine(engine -> engine.getSeqNoStats(-1).getMaxSeqNo()), equalTo(expectedMaxSeqNo));
1771-
});
1765+
var replicaShard = internalCluster().getInstance(IndicesService.class, replicaNodeName).getShardOrNull(shardId);
1766+
assertThat(replicaShard, notNullValue());
1767+
long expectedMaxSeqNo = totalDocs - 1 + nbGaps;
1768+
assertThat(replicaShard.withEngine(engine -> engine.getSeqNoStats(-1).getMaxSeqNo()), equalTo(expectedMaxSeqNo));
17721769

17731770
// Stop the primary node: this triggers failover to the replica which will fill gaps in sequence numbers with NoOp tombstone
17741771
// operations in IndexShard.updateShardState

0 commit comments

Comments
 (0)