Skip to content

Conversation

@matriv
Copy link
Contributor

@matriv matriv commented Feb 22, 2019

In integration tests where setBootstrapMasterNodeIndex() is used in
combination with autoMinMasterNodes = false the cluster can start
bootstrapping once the number of nodes set with the
setBootstrapMasterNodeIndex have been started, but it's not ensured
that all nodes have successfully joined to form the cluster.

This behaviour was introduced with 5db7ed2
and in order to ensure that the cluster is properly formed before proceeding
with the integration test, use ensureStableCluster() with the
appropriate number of expected nodes.

Fixes: #39220

In integration tests where `setBootstrapMasterNodeIndex()` is used in
combination with `autoMinMasterNodes = false` the cluster can start
bootstrapping once the number of nodes set with the
`setBootstrapMasterNodeIndex` have been started but it's not ensured
that all nodes have successfully joined to form the cluster.

This behaviour was introduced with 5db7ed2
and in order to ensure that the cluster is properly formed before proceeding
with the integration test, use `ensureStableCluster()` with the
appropriate number of expected nodes.

Fixes: elastic#39220
@matriv matriv added >test-failure Triaged test failures from CI v7.0.0 :Distributed Coordination/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. v8.0.0 v7.2.0 labels Feb 22, 2019
@matriv matriv requested a review from andrershov February 22, 2019 10:41
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed

@matriv matriv requested a review from DaveCTurner February 22, 2019 15:40
Copy link
Contributor

@DaveCTurner DaveCTurner left a comment

Choose a reason for hiding this comment

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

Good catch @matriv, LGTM with one nit.


@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/39220")
public void test3MasterNodes2Failed() throws Exception {
public void test3MasterNodeRs2Failed() throws Exception {
Copy link
Contributor

Choose a reason for hiding this comment

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

Renaming this test looks like it wasn't intended.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah sorry, didn't see that, thx!

@matriv
Copy link
Contributor Author

matriv commented Feb 25, 2019

@andrershov Many thanks for walking me through the bootstrap/discovery process and helping with identifying the issue.

@matriv matriv merged commit 222dc3e into elastic:master Feb 25, 2019
@matriv matriv deleted the mt/fix-39220 branch February 25, 2019 11:56
matriv added a commit to matriv/elasticsearch that referenced this pull request Feb 25, 2019
In integration tests where `setBootstrapMasterNodeIndex()` is used in
combination with `autoMinMasterNodes = false` the cluster can start
bootstrapping once the number of nodes set with the
`setBootstrapMasterNodeIndex` have been started but it's not ensured
that all nodes have successfully joined to form the cluster.

This behaviour was introduced with 5db7ed2
and in order to ensure that the cluster is properly formed before proceeding
with the integration test, use `ensureStableCluster()` with the
appropriate number of expected nodes.

Fixes: elastic#39220
matriv added a commit to matriv/elasticsearch that referenced this pull request Feb 25, 2019
In integration tests where `setBootstrapMasterNodeIndex()` is used in
combination with `autoMinMasterNodes = false` the cluster can start
bootstrapping once the number of nodes set with the
`setBootstrapMasterNodeIndex` have been started but it's not ensured
that all nodes have successfully joined to form the cluster.

This behaviour was introduced with 5db7ed2
and in order to ensure that the cluster is properly formed before proceeding
with the integration test, use `ensureStableCluster()` with the
appropriate number of expected nodes.

Fixes: elastic#39220
matriv added a commit that referenced this pull request Feb 25, 2019
In integration tests where `setBootstrapMasterNodeIndex()` is used in
combination with `autoMinMasterNodes = false` the cluster can start
bootstrapping once the number of nodes set with the
`setBootstrapMasterNodeIndex` have been started but it's not ensured
that all nodes have successfully joined to form the cluster.

This behaviour was introduced with 5db7ed2
and in order to ensure that the cluster is properly formed before proceeding
with the integration test, use `ensureStableCluster()` with the
appropriate number of expected nodes.

Fixes: #39220
matriv added a commit that referenced this pull request Feb 26, 2019
In integration tests where `setBootstrapMasterNodeIndex()` is used in
combination with `autoMinMasterNodes = false` the cluster can start
bootstrapping once the number of nodes set with the
`setBootstrapMasterNodeIndex` have been started but it's not ensured
that all nodes have successfully joined to form the cluster.

This behaviour was introduced with 5db7ed2
and in order to ensure that the cluster is properly formed before proceeding
with the integration test, use `ensureStableCluster()` with the
appropriate number of expected nodes.

Fixes: #39220
@andrershov andrershov removed their request for review February 27, 2019 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed Coordination/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. >test-failure Triaged test failures from CI v7.0.0-rc1 v7.2.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ElasticsearchNodeCommandIT#test3MasterNodes2Failed test failure

5 participants