Skip to content

Commit 987e9f7

Browse files
authored
Unmute testCreateAndRestoreSearchableSnapshot and add more context to assert (#127131)
See #119709.
1 parent 76f6006 commit 987e9f7

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

muted-tests.yml

-3
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,6 @@ tests:
336336
- class: org.elasticsearch.xpack.test.rest.XPackRestIT
337337
method: test {p0=transform/transforms_reset/Test force reseting a running transform}
338338
issue: https://github.com./elastic/elasticsearch/issues/126240
339-
- class: org.elasticsearch.xpack.searchablesnapshots.SearchableSnapshotsIntegTests
340-
method: testCreateAndRestoreSearchableSnapshot
341-
issue: https://github.com./elastic/elasticsearch/issues/119709
342339
- class: org.elasticsearch.xpack.test.rest.XPackRestIT
343340
method: test {p0=transform/transforms_stats/Test get transform stats}
344341
issue: https://github.com./elastic/elasticsearch/issues/126270

test/framework/src/main/java/org/elasticsearch/index/engine/EngineTestCase.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -1397,7 +1397,11 @@ public static void assertConsistentHistoryBetweenTranslogAndLuceneIndex(Engine e
13971397
}
13981398
}
13991399
assertThat(luceneOp, notNullValue());
1400-
assertThat(luceneOp.toString(), luceneOp.primaryTerm(), equalTo(translogOp.primaryTerm()));
1400+
assertThat(
1401+
"primary term does not match, luceneOp=[" + luceneOp + "], translogOp=[" + translogOp + "]",
1402+
luceneOp.primaryTerm(),
1403+
equalTo(translogOp.primaryTerm())
1404+
);
14011405
assertThat(luceneOp.opType(), equalTo(translogOp.opType()));
14021406
if (luceneOp.opType() == Translog.Operation.Type.INDEX) {
14031407
if (engine.engineConfig.getIndexSettings().isRecoverySourceSyntheticEnabled()

0 commit comments

Comments
 (0)