File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
x-pack/plugin/esql/src/internalClusterTest/java/org/elasticsearch/xpack/esql/action Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -328,9 +328,6 @@ tests:
328328- class : org.elasticsearch.xpack.esql.plugin.DataNodeRequestSenderIT
329329 method : testSearchWhileRelocating
330330 issue : https://github.com/elastic/elasticsearch/issues/128500
331- - class : org.elasticsearch.xpack.esql.action.CrossClusterQueryWithPartialResultsIT
332- method : testFailToStartRequestOnRemoteCluster
333- issue : https://github.com/elastic/elasticsearch/issues/128545
334331- class : org.elasticsearch.compute.operator.LimitOperatorTests
335332 method : testEarlyTermination
336333 issue : https://github.com/elastic/elasticsearch/issues/128721
Original file line number Diff line number Diff line change 4848import static org .hamcrest .Matchers .is ;
4949import static org .hamcrest .Matchers .lessThanOrEqualTo ;
5050import static org .hamcrest .Matchers .not ;
51+ import static org .hamcrest .Matchers .oneOf ;
5152
5253public class CrossClusterQueryWithPartialResultsIT extends AbstractCrossClusterTestCase {
5354
@@ -295,7 +296,11 @@ public void testFailToStartRequestOnRemoteCluster() throws Exception {
295296 assertThat (returnedIds , equalTo (local .okIds ));
296297 assertClusterSuccess (resp , LOCAL_CLUSTER , local .okShards );
297298 EsqlExecutionInfo .Cluster remoteInfo = resp .getExecutionInfo ().getCluster (REMOTE_CLUSTER_1 );
298- assertThat (remoteInfo .getStatus (), equalTo (EsqlExecutionInfo .Cluster .Status .SKIPPED ));
299+ // It could also return partial on failure
300+ assertThat (
301+ remoteInfo .getStatus (),
302+ oneOf (EsqlExecutionInfo .Cluster .Status .SKIPPED , EsqlExecutionInfo .Cluster .Status .PARTIAL )
303+ );
299304 assertClusterFailure (resp , REMOTE_CLUSTER_1 , simulatedFailure .getMessage ());
300305 }
301306 } finally {
You can’t perform that action at this time.
0 commit comments