Skip to content

[7.x][ML] Fixes for stop datafeed edge cases#49284

Merged
droberts195 merged 1 commit intoelastic:7.xfrom
droberts195:fix_stop_datafeed_edge_cases_7x
Nov 19, 2019
Merged

[7.x][ML] Fixes for stop datafeed edge cases#49284
droberts195 merged 1 commit intoelastic:7.xfrom
droberts195:fix_stop_datafeed_edge_cases_7x

Conversation

@droberts195
Copy link
Copy Markdown

The following edge cases were fixed:

  1. A request to force-stop a stopping datafeed is no longer
    ignored. Force-stop is an important recovery mechanism
    if normal stop doesn't work for some reason, and needs
    to operate on a datafeed in any state other than stopped.
  2. If the node that a datafeed is running on is removed from
    the cluster during a normal stop then the stop request is
    retried (and will likely succeed on this retry by simply
    cancelling the persistent task for the affected datafeed).
  3. If there are multiple simultaneous force-stop requests for
    the same datafeed we no longer fail the one that is
    processed second. The previous behaviour was wrong as
    stopping a stopped datafeed is not an error, so stopping
    a datafeed twice simultaneously should not be either.

Backport of #49191

The following edge cases were fixed:

1. A request to force-stop a stopping datafeed is no longer
   ignored.  Force-stop is an important recovery mechanism
   if normal stop doesn't work for some reason, and needs
   to operate on a datafeed in any state other than stopped.
2. If the node that a datafeed is running on is removed from
   the cluster during a normal stop then the stop request is
   retried (and will likely succeed on this retry by simply
   cancelling the persistent task for the affected datafeed).
3. If there are multiple simultaneous force-stop requests for
   the same datafeed we no longer fail the one that is
   processed second.  The previous behaviour was wrong as
   stopping a stopped datafeed is not an error, so stopping
   a datafeed twice simultaneously should not be either.

Backport of elastic#49191
@droberts195 droberts195 added :ml Machine learning backport labels Nov 19, 2019
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/ml-core (:ml)

@droberts195 droberts195 merged commit a5204c1 into elastic:7.x Nov 19, 2019
@droberts195 droberts195 deleted the fix_stop_datafeed_edge_cases_7x branch November 19, 2019 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport :ml Machine learning

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants