-
Notifications
You must be signed in to change notification settings - Fork 25k
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 some obsolete exceptions #69675
Remove some obsolete exceptions #69675
Conversation
- `NodeShouldNotConnectException` has not been instantiated since 5.0 - `GatewayException` has not been instantiated since 5.0 - `SnapshotFailedEngineException` has not been instantated since 6.2.0 (elastic#28038) and was never thrown across clusters This commit removes these obsolete exceptions.
Pinging @elastic/es-distributed (Team:Distributed) |
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 :)
if (logger.isDebugEnabled() && (t instanceof NodeShouldNotConnectException) == false) { | ||
logger.debug(new ParameterizedMessage("failed to execute [{}] on node [{}]", actionName, nodeId), t); | ||
} | ||
logger.debug(new ParameterizedMessage("failed to execute [{}] on node [{}]", actionName, nodeId), t); |
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.
NIT: maybe keep the logger.isDebugEnabled()
here and in the other 2 spots changed so that we don't have to create the message object needlessly? (doesn't look too performance critical ever :) so pretty optional)
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.
I'd rather not, we're on a (hopefully rare) failure path here already, and making this one extra object should be super-cheap whereas making me read an extra conditional every time I look at this is not :)
- `NodeShouldNotConnectException` has not been instantiated since 5.0 - `GatewayException` has not been instantiated since 5.0 - `SnapshotFailedEngineException` has not been instantated since 6.2.0 (#28038) and was never thrown across clusters This commit removes these obsolete exceptions.
NodeShouldNotConnectException
has not been instantiated since 5.0GatewayException
has not been instantiated since 5.0SnapshotFailedEngineException
has not been instantated since 6.2.0(Primary send safe commit in file-based recovery #28038) and was never thrown across clusters
This commit removes these obsolete exceptions.