Skip to content

Complete listener on rejection in FollowersChecker #86259

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

Conversation

DaveCTurner
Copy link
Contributor

In #83576 we made it so that forking off the transport thread when
handling a follower check might be rejected if we're shutting down. In
that case we don't pass the rejection exception back out and instead
rely on the transport connection's close to notify the caller. We also
manipulate the transport channel directly which misses some exception
cases. This commit adjusts the implementation to fix these things.

In elastic#83576 we made it so that forking off the transport thread when
handling a follower check might be rejected if we're shutting down. In
that case we don't pass the rejection exception back out and instead
rely on the transport connection's close to notify the caller. We also
manipulate the transport channel directly which misses some exception
cases. This commit adjusts the implementation to fix these things.
@DaveCTurner DaveCTurner added >non-issue :Distributed Coordination/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. v8.3.0 labels Apr 28, 2022
@elasticmachine elasticmachine added the Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. label Apr 28, 2022
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

@DaveCTurner
Copy link
Contributor Author

>non-issue as not really a big deal in production, we're shutting down so the caller gets an exception either way.

Copy link
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 (when CI passes).

@DaveCTurner DaveCTurner added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label May 6, 2022
@elasticsearchmachine elasticsearchmachine merged commit 639ac2a into elastic:master May 6, 2022
@DaveCTurner DaveCTurner deleted the 2022-04-28-follower-checker-rejection branch May 6, 2022 20:41
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!) :Distributed Coordination/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. >non-issue Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. v8.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants