Skip to content

Make TransportAddVotingConfigExclusionsAction retryable#98568

Merged
elasticsearchmachine merged 1 commit intoelastic:7.17from
DaveCTurner:2023/08/17/retryable-TransportAddVotingConfigExclusionsAction-7.17
Aug 17, 2023
Merged

Make TransportAddVotingConfigExclusionsAction retryable#98568
elasticsearchmachine merged 1 commit intoelastic:7.17from
DaveCTurner:2023/08/17/retryable-TransportAddVotingConfigExclusionsAction-7.17

Conversation

@DaveCTurner
Copy link
Copy Markdown
Member

The docs for this API say the following:

If the API fails, you can safely retry it. Only a successful response
guarantees that the node has been removed from the voting
configuration and will not be reinstated.

Unfortunately this isn't true today: if the request adds no exclusions
then we do not wait before responding. This commit makes the API wait
until all exclusions are really applied.

Backport of #98386, plus the test changes from #98146 and #98356.

The docs for this API say the following:

> If the API fails, you can safely retry it. Only a successful response
> guarantees that the node has been removed from the voting
> configuration and will not be reinstated.

Unfortunately this isn't true today: if the request adds no exclusions
then we do not wait before responding. This commit makes the API wait
until all exclusions are really applied.

Backport of elastic#98386, plus the test changes from elastic#98146 and elastic#98356.
@DaveCTurner DaveCTurner added >bug :Distributed/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. backport auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) v7.17.13 labels Aug 17, 2023
@elasticsearchmachine elasticsearchmachine merged commit fe18a67 into elastic:7.17 Aug 17, 2023
@DaveCTurner DaveCTurner deleted the 2023/08/17/retryable-TransportAddVotingConfigExclusionsAction-7.17 branch August 17, 2023 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >bug :Distributed/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. v7.17.13

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants