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

Fix race condition when stopping a data frame analytics jobs immediately after starting it #50276

Merged
merged 1 commit into from
Dec 17, 2019

Conversation

przemekwitek
Copy link
Contributor

Current, we don't wait for the native process' PID to become available.
This PR changes that as it tries to wait for a few seconds (currently 10s, can be changed via the xpack.ml.process_connect_timeout setting) when getting process' PID.
This should increase chances that when we kill the process, the PID will be already available.

Relates #49680, #50177

@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core (:ml)

@przemekwitek
Copy link
Contributor Author

run elasticsearch-ci/bwc

Copy link
Contributor

@droberts195 droberts195 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@droberts195 droberts195 changed the title Pass processConnectTimeout to the method that fetches C++ process' PID Fix race condition when stopping a data frame analytics jobs immediately after starting it Dec 17, 2019
@droberts195
Copy link
Contributor

I changed the PR title to something that will be more understandable as a release notes bullet point

@przemekwitek
Copy link
Contributor Author

run elasticsearch-ci/default-distro
run elasticsearch-ci/bwc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants