Skip to content

Commit 1e62d47

Browse files
authored
[TEST] Wait for no pending operations on the index shard (#118244) (#118258)
This fixes testRetryPointInTime which on teardown is looking to assert that the operations in the translog and in the lucene index are the same. Previously we didn't wait for the translog operations to be applied. This changes `assertConsistentHistoryInLuceneIndex` to wait for the pending operations in the translog to be applied. Fixes #117116 (cherry picked from commit b4e852a) Signed-off-by: Andrei Dan <[email protected]>
1 parent 04434ed commit 1e62d47

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

muted-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,9 +320,6 @@ tests:
320320
- class: org.elasticsearch.xpack.application.CohereServiceUpgradeIT
321321
method: testCohereEmbeddings {upgradedNodes=2}
322322
issue: https://github.com/elastic/elasticsearch/issues/116975
323-
- class: org.elasticsearch.xpack.searchablesnapshots.RetrySearchIntegTests
324-
method: testRetryPointInTime
325-
issue: https://github.com/elastic/elasticsearch/issues/117116
326323
- class: org.elasticsearch.xpack.inference.InferenceRestIT
327324
method: test {p0=inference/40_semantic_text_query/Query a field that uses the default ELSER 2 endpoint}
328325
issue: https://github.com/elastic/elasticsearch/issues/117027

test/framework/src/main/java/org/elasticsearch/snapshots/AbstractSnapshotIntegTestCase.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ protected Collection<Class<? extends Plugin>> nodePlugins() {
127127

128128
@After
129129
public void assertConsistentHistoryInLuceneIndex() throws Exception {
130+
internalCluster().beforeIndexDeletion();
130131
internalCluster().assertConsistentHistoryBetweenTranslogAndLuceneIndex();
131132
}
132133

0 commit comments

Comments
 (0)