-
Notifications
You must be signed in to change notification settings - Fork 25.3k
Remove exception-mangling in connect/close listeners #127954
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
Remove exception-mangling in connect/close listeners #127954
Conversation
The close-listeners are never completed exceptionally today so they do not need the exception mangling of a `ListenableFuture`. The connect- and remove-listeners sometimes see an exception if the connection attempt fails, but they also do not need any exception-mangling. This commit removes the exception-mangling by replacing these `ListenableFuture` instances with `SubscribableListener` ones.
Pinging @elastic/es-distributed-coordination (Team:Distributed Coordination) |
Relates #127895 - as implemented today we get all sorts of unnecessary junk in the logs:
With this change we don't do any of that unnecessary wrapping and get something more manageable instead:
|
@schase-es just checking you've seen I've asked for you to review this |
Hi -- yes, this curiously didn't show up where it's expected. I also need to do some better github filtering with my email... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. There may be a few merge conflicts with my PR.
Apologies for the delay.
No probs; looks like it merges cleanly, tho I've kicked off one more CI run on the merged result just to be sure. |
The close-listeners are never completed exceptionally today so they do
not need the exception mangling of a
ListenableFuture
. The connect-and remove-listeners sometimes see an exception if the connection
attempt fails, but they also do not need any exception-mangling.
This commit removes the exception-mangling by replacing these
ListenableFuture
instances withSubscribableListener
ones.