File tree Expand file tree Collapse file tree
modules/data-streams/src/internalClusterTest/java/org/elasticsearch/datastreams Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments