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] Resolve NetworkDisruptionIT failures #43441

Merged
merged 1 commit into from
Jun 21, 2019

Conversation

davidkyle
Copy link
Member

@davidkyle davidkyle commented Jun 20, 2019

Calls to internalCluster().getMasterName() select a random node to make the request. In the case of this network partition test sometimes that random node is on the wrong side of the partition, i.e. the side that is unable to form a cluster. This fails the test as there is no master node. The fix is to specify a node from the other side of the partition where a cluster has formed.

Closes #39858

@davidkyle davidkyle added v0.08.0 >test Issues or PRs that are addressing/adding tests :ml Machine learning v7.3.0 labels Jun 20, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core

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

@davidkyle davidkyle merged commit 56036bb into elastic:master Jun 21, 2019
davidkyle added a commit that referenced this pull request Jun 21, 2019
After the network disruption a partition is created,
one side of which can form a cluster the other can't.
Ensure requests are sent to a node on the correct side
of the cluster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:ml Machine learning >test Issues or PRs that are addressing/adding tests v7.3.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI] NetworkDisruptionIT.testJobRelocation failure in 6.7
4 participants