Skip to content

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

@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

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.

4 participants