Skip to content

Fix RareClusterStateIT Publication Cancel#62662

Merged
original-brownbear merged 1 commit intoelastic:masterfrom
original-brownbear:62446
Sep 25, 2020
Merged

Fix RareClusterStateIT Publication Cancel#62662
original-brownbear merged 1 commit intoelastic:masterfrom
original-brownbear:62446

Conversation

@original-brownbear
Copy link
Copy Markdown
Contributor

We have to make sure the applier and not the accept state versions allign here.
Otherwise we can get into the situation where the data node is so slow to process
one version that the next one arrives, gets rejected and the request return with
ack false and we fail the assertion that the put mapping request didn't complete.

Closes #62446

We have to make sure the applier and not the accept state versions allign here.
Otherwise we can get into the situation where the data node is so slow to process
one version that the next one arrives, gets rejected and the request return with
ack `false` and we fail the assertion that the put mapping request didn't complete.

Closes #62446
@original-brownbear original-brownbear added >test Issues or PRs that are addressing/adding tests :Distributed/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. v8.0.0 v7.10.0 labels Sep 18, 2020
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed (:Distributed/Cluster Coordination)

@elasticmachine elasticmachine added the Team:Distributed Meta label for distributed team. label Sep 18, 2020
});
final Coordinator masterCoordinator = (Coordinator) internalCluster().getCurrentMasterNodeInstance(Discovery.class);
assertBusy(() -> {
assertFalse(masterCoordinator.publicationInProgress());
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Made this whole thing a little less weird to read as well here, the stream + iterator + array size assertion was just weirdly complicated.

Copy link
Copy Markdown
Contributor

@henningandersen henningandersen left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the additional explanations elsewhere, @original-brownbear .

@original-brownbear
Copy link
Copy Markdown
Contributor Author

Thanks Henning!

@original-brownbear original-brownbear merged commit ad69694 into elastic:master Sep 25, 2020
@original-brownbear original-brownbear deleted the 62446 branch September 25, 2020 19:15
original-brownbear added a commit that referenced this pull request Sep 25, 2020
We have to make sure the applier and not the accept state versions allign here.
Otherwise we can get into the situation where the data node is so slow to process
one version that the next one arrives, gets rejected and the request return with
ack `false` and we fail the assertion that the put mapping request didn't complete.

Closes #62446
@original-brownbear original-brownbear restored the 62446 branch December 6, 2020 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. Team:Distributed Meta label for distributed team. >test Issues or PRs that are addressing/adding tests v7.10.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] RareClusterStateIT.testDelayedMappingPropagationOnReplica fails on 7.x

4 participants