Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ML] Fix possible race condition when starting datafeed #51302

Merged
merged 1 commit into from
Jan 22, 2020

Commits on Jan 22, 2020

  1. [ML] Fix possible race condition when starting datafeed

    The ID of the datafeed's associated job was being obtained
    frequently by looking up the datafeed task in a map that
    was being modified in other threads.  This could lead to
    NPEs if the datafeed stopped running at an unexpected time.
    
    This change reduces the number of places where a datafeed's
    associated job ID is looked up to avoid the possibility of
    failures when the datafeed's task is removed from the map
    of running tasks during multi-step operations in other
    threads.
    
    Fixes elastic#51285
    droberts195 committed Jan 22, 2020
    Configuration menu
    Copy the full SHA
    b61ab9b View commit details
    Browse the repository at this point in the history