OpenSearch/docs/java-rest/high-level/ml
Dimitris Athanasiou f49a14ce6f
[7.x][ML] Fix race condition when force stopping DF analytics job (#57680) (#57717)
When we force delete a DF analytics job, we currently first force
stop it and then we proceed with deleting the job config.
This may result in logging errors if the job config is deleted
before it is retrieved while the job is starting.

Instead of force stopping the job, it would make more sense to
try to stop the job gracefully first. So we now try that out first.
If normal stop fails, then we resort to force stopping the job to
ensure we can go through with the delete.

In addition, this commit introduces `timeout` for the delete action
and makes use of it in the child requests.

Backport of #57680
2020-06-05 17:50:01 +03:00
..
close-job.asciidoc [DOCS] Adds missing icons to ML HLRC APIs (#46515) 2019-09-10 08:28:02 -07:00
delete-calendar-event.asciidoc [DOCS] Adds missing icons to ML HLRC APIs (#46515) 2019-09-10 08:28:02 -07:00
delete-calendar-job.asciidoc [DOCS] Adds missing icons to ML HLRC APIs (#46515) 2019-09-10 08:28:02 -07:00
delete-calendar.asciidoc [DOCS] Adds missing icons to ML HLRC APIs (#46515) 2019-09-10 08:28:02 -07:00
delete-data-frame-analytics.asciidoc [7.x][ML] Fix race condition when force stopping DF analytics job (#57680) (#57717) 2020-06-05 17:50:01 +03:00
delete-datafeed.asciidoc [DOCS] Adds missing icons to ML HLRC APIs (#46515) 2019-09-10 08:28:02 -07:00
delete-expired-data.asciidoc [ML] relax throttling on expired data cleanup (#56711) (#56895) 2020-05-18 08:46:42 -04:00
delete-filter.asciidoc [DOCS] Adds missing icons to ML HLRC APIs (#46515) 2019-09-10 08:28:02 -07:00
delete-forecast.asciidoc [DOCS] Adds missing icons to ML HLRC APIs (#46515) 2019-09-10 08:28:02 -07:00
delete-job.asciidoc [DOCS] Adds missing icons to ML HLRC APIs (#46515) 2019-09-10 08:28:02 -07:00
delete-model-snapshot.asciidoc [DOCS] Adds missing icons to ML HLRC APIs (#46515) 2019-09-10 08:28:02 -07:00
delete-trained-model.asciidoc [7.x] [ML][Inference][HLRC] Delete trained model API (#49567) (#49585) 2019-11-26 08:27:08 -05:00
estimate-model-memory.asciidoc [ML] Add a model memory estimation endpoint for anomaly detection (#54129) 2020-03-24 22:55:11 +00:00
evaluate-data-frame.asciidoc [7.x] Implement `precision` and `recall` metrics for classification evaluation (#49671) (#50378) 2019-12-19 18:55:05 +01:00
explain-data-frame-analytics.asciidoc [7.x][ML] Explain data frame analytics API (#49455) (#49504) 2019-11-22 22:06:10 +02:00
find-file-structure.asciidoc [DOCS] Adds missing icons to ML HLRC APIs (#46515) 2019-09-10 08:28:02 -07:00
flush-job.asciidoc [DOCS] Adds missing icons to ML HLRC APIs (#46515) 2019-09-10 08:28:02 -07:00
forecast-job.asciidoc [ML] add max_model_memory parameter to forecast request (#57254) (#57355) 2020-05-29 11:16:08 -04:00
get-buckets.asciidoc [DOCS] Adds missing icons to ML HLRC APIs (#46515) 2019-09-10 08:28:02 -07:00
get-calendar-events.asciidoc [DOCS] Adds missing icons to ML HLRC APIs (#46515) 2019-09-10 08:28:02 -07:00
get-calendars.asciidoc [DOCS] Adds missing icons to ML HLRC APIs (#46515) 2019-09-10 08:28:02 -07:00
get-categories.asciidoc [DOCS] Adds missing icons to ML HLRC APIs (#46515) 2019-09-10 08:28:02 -07:00
get-data-frame-analytics-stats.asciidoc [DOCS] Fixes data frame analytics job terminology in HLRC (#46758) 2019-09-16 10:07:59 -07:00
get-data-frame-analytics.asciidoc [DOCS] Fixes data frame analytics job terminology in HLRC (#46758) 2019-09-16 10:07:59 -07:00
get-datafeed-stats.asciidoc [DOCS] Adds missing icons to ML HLRC APIs (#46515) 2019-09-10 08:28:02 -07:00
get-datafeed.asciidoc [DOCS] Adds missing icons to ML HLRC APIs (#46515) 2019-09-10 08:28:02 -07:00
get-filters.asciidoc [DOCS] Adds missing icons to ML HLRC APIs (#46515) 2019-09-10 08:28:02 -07:00
get-influencers.asciidoc [DOCS] Adds missing icons to ML HLRC APIs (#46515) 2019-09-10 08:28:02 -07:00
get-info.asciidoc [DOCS] Adds missing icons to ML HLRC APIs (#46515) 2019-09-10 08:28:02 -07:00
get-job-stats.asciidoc [DOCS] Adds missing icons to ML HLRC APIs (#46515) 2019-09-10 08:28:02 -07:00
get-job.asciidoc [DOCS] Adds missing icons to ML HLRC APIs (#46515) 2019-09-10 08:28:02 -07:00
get-model-snapshots.asciidoc [DOCS] Adds missing icons to ML HLRC APIs (#46515) 2019-09-10 08:28:02 -07:00
get-overall-buckets.asciidoc [DOCS] Adds missing icons to ML HLRC APIs (#46515) 2019-09-10 08:28:02 -07:00
get-records.asciidoc [DOCS] Adds missing icons to ML HLRC APIs (#46515) 2019-09-10 08:28:02 -07:00
get-trained-models-stats.asciidoc [7.x] [ML][Inference][HLRC] add GET _stats (#49562) (#49600) 2019-11-26 11:28:26 -05:00
get-trained-models.asciidoc [7.x] [ML] adds new for_export flag to GET _ml/inference API (#57351) (#57368) 2020-05-29 14:01:08 -04:00
open-job.asciidoc [ML] Return assigned node in start/open job/datafeed response (#55570) 2020-04-22 12:06:53 +01:00
post-calendar-event.asciidoc [DOCS] Adds missing icons to ML HLRC APIs (#46515) 2019-09-10 08:28:02 -07:00
post-data.asciidoc [DOCS] Adds missing icons to ML HLRC APIs (#46515) 2019-09-10 08:28:02 -07:00
preview-datafeed.asciidoc [DOCS] Adds missing icons to ML HLRC APIs (#46515) 2019-09-10 08:28:02 -07:00
put-calendar-job.asciidoc [DOCS] Adds missing icons to ML HLRC APIs (#46515) 2019-09-10 08:28:02 -07:00
put-calendar.asciidoc [DOCS] Adds missing icons to ML HLRC APIs (#46515) 2019-09-10 08:28:02 -07:00
put-data-frame-analytics.asciidoc [7.x][ML] Add loss_function to regression (#56118) (#56187) 2020-05-05 14:59:51 +03:00
put-datafeed.asciidoc [DOCS] Adds missing icons to ML HLRC APIs (#46515) 2019-09-10 08:28:02 -07:00
put-filter.asciidoc [DOCS] Adds missing icons to ML HLRC APIs (#46515) 2019-09-10 08:28:02 -07:00
put-job.asciidoc [DOCS] Adds missing icons to ML HLRC APIs (#46515) 2019-09-10 08:28:02 -07:00
put-trained-model.asciidoc [7.x] [ML] add new inference_config field to trained model config (#54421) (#54647) 2020-04-02 12:25:10 -04:00
revert-model-snapshot.asciidoc [DOCS] Adds missing icons to ML HLRC APIs (#46515) 2019-09-10 08:28:02 -07:00
set-upgrade-mode.asciidoc [DOCS] Adds missing icons to ML HLRC APIs (#46515) 2019-09-10 08:28:02 -07:00
start-data-frame-analytics.asciidoc [ML] Return assigned node in start/open job/datafeed response (#55570) 2020-04-22 12:06:53 +01:00
start-datafeed.asciidoc [ML] Return assigned node in start/open job/datafeed response (#55570) 2020-04-22 12:06:53 +01:00
stop-data-frame-analytics.asciidoc [DOCS] Fixes data frame analytics job terminology in HLRC (#46758) 2019-09-16 10:07:59 -07:00
stop-datafeed.asciidoc [DOCS] Adds missing icons to ML HLRC APIs (#46515) 2019-09-10 08:28:02 -07:00
update-datafeed.asciidoc [DOCS] Adds missing icons to ML HLRC APIs (#46515) 2019-09-10 08:28:02 -07:00
update-filter.asciidoc [DOCS] Adds missing icons to ML HLRC APIs (#46515) 2019-09-10 08:28:02 -07:00
update-job.asciidoc [DOCS] Adds missing icons to ML HLRC APIs (#46515) 2019-09-10 08:28:02 -07:00
update-model-snapshot.asciidoc [DOCS] Adds missing icons to ML HLRC APIs (#46515) 2019-09-10 08:28:02 -07:00