You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ML][Data Frame] only complete task after state persistence (#43230)
* [ML][Data Frame] only complete task after state persistence
There is a race condition where the task could be completed, but there
is still a pending document write. This change moves
the task cancellation into the actionlistener of the state persistence.
intermediate commit
intermediate commit
* removing unused import
* removing unused const
* refreshing internal index after waiting for task to complete
* adjusting test data generation
Copy file name to clipboardExpand all lines: x-pack/plugin/data-frame/qa/multi-node-tests/src/test/java/org/elasticsearch/xpack/dataframe/integration/DataFrameIntegTestCase.java
Copy file name to clipboardExpand all lines: x-pack/plugin/data-frame/qa/multi-node-tests/src/test/java/org/elasticsearch/xpack/dataframe/integration/DataFrameTransformIT.java
+5-3
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,8 @@ public void cleanTransforms() throws IOException {
Copy file name to clipboardExpand all lines: x-pack/plugin/data-frame/src/main/java/org/elasticsearch/xpack/dataframe/action/TransportStopDataFrameTransformAction.java
Copy file name to clipboardExpand all lines: x-pack/plugin/data-frame/src/main/java/org/elasticsearch/xpack/dataframe/transforms/DataFrameTransformTask.java
+3-4
Original file line number
Diff line number
Diff line change
@@ -248,7 +248,7 @@ public synchronized void stop() {
248
248
249
249
IndexerStatestate = getIndexer().stop();
250
250
if (state == IndexerState.STOPPED) {
251
-
//doSaveState calls `onStop` when the task state is `STOPPED`
0 commit comments