This commit is contained in:
parent
79c62fd724
commit
51ff6b420a
|
@ -32,6 +32,7 @@ import org.elasticsearch.xpack.core.dataframe.transforms.DataFrameTransformCheck
|
|||
import org.elasticsearch.xpack.core.dataframe.transforms.DataFrameTransformConfig;
|
||||
import org.elasticsearch.xpack.core.dataframe.transforms.DataFrameTransformState;
|
||||
import org.elasticsearch.xpack.core.dataframe.transforms.DataFrameTransformStateAndStats;
|
||||
import org.elasticsearch.xpack.core.dataframe.transforms.DataFrameTransformTaskState;
|
||||
import org.elasticsearch.xpack.core.indexing.IndexerState;
|
||||
import org.elasticsearch.xpack.core.scheduler.SchedulerEngine;
|
||||
import org.elasticsearch.xpack.dataframe.DataFrame;
|
||||
|
@ -112,6 +113,13 @@ public class DataFrameTransformPersistentTasksExecutor extends PersistentTasksEx
|
|||
final DataFrameTransformTask buildTask = (DataFrameTransformTask) task;
|
||||
final DataFrameTransformState transformPTaskState = (DataFrameTransformState) state;
|
||||
|
||||
// If the transform is failed then the Persistent Task Service will
|
||||
// try to restart it on a node restart. Exiting here leaves the
|
||||
// transform in the failed state and it must be force closed.
|
||||
if (transformPTaskState != null && transformPTaskState.getTaskState() == DataFrameTransformTaskState.FAILED) {
|
||||
return;
|
||||
}
|
||||
|
||||
final DataFrameTransformTask.ClientDataFrameIndexerBuilder indexerBuilder =
|
||||
new DataFrameTransformTask.ClientDataFrameIndexerBuilder(transformId)
|
||||
.setAuditor(auditor)
|
||||
|
|
Loading…
Reference in New Issue