File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
x-pack/plugin/ml/qa/native-multi-node-tests/src/javaRestTest/java/org/elasticsearch/xpack/ml/integration Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -232,8 +232,6 @@ tests:
232
232
- class : org.elasticsearch.xpack.ilm.actions.SearchableSnapshotActionIT
233
233
method : testUpdatePolicyToAddPhasesYieldsInvalidActionsToBeSkipped
234
234
issue : https://github.com/elastic/elasticsearch/issues/118406
235
- - class : org.elasticsearch.xpack.ml.integration.DatafeedJobsIT
236
- issue : https://github.com/elastic/elasticsearch/issues/120088
237
235
- class : org.elasticsearch.xpack.security.QueryableReservedRolesIT
238
236
method : testConfiguredReservedRolesAfterClosingAndOpeningIndex
239
237
issue : https://github.com/elastic/elasticsearch/issues/120127
Original file line number Diff line number Diff line change @@ -83,9 +83,12 @@ public void cleanup() {
83
83
updateClusterSettings (Settings .builder ().putNull ("logger.org.elasticsearch.xpack.ml.datafeed" ));
84
84
cleanUp ();
85
85
// Race conditions between closing and killing tasks in these tests,
86
- // sometimes result in lingering persistent tasks (such as "_close"),
87
- // which cause subsequent tests to fail.
88
- client ().execute (TransportCancelTasksAction .TYPE , new CancelTasksRequest ());
86
+ // sometimes result in lingering persistent close tasks, which cause
87
+ // subsequent tests to fail. Therefore, they're explicitly cancelled.
88
+ CancelTasksRequest cancelTasksRequest = new CancelTasksRequest ();
89
+ cancelTasksRequest .setActions ("*close*" );
90
+ cancelTasksRequest .setWaitForCompletion (true );
91
+ client ().execute (TransportCancelTasksAction .TYPE , cancelTasksRequest ).actionGet ();
89
92
}
90
93
91
94
public void testLookbackOnly () throws Exception {
You can’t perform that action at this time.
0 commit comments