-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Log failure when cleaning shard follow task #51971
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
Log failure when cleaning shard follow task #51971
Conversation
When clenaing a shard follow task after an index has been deleted, an exception can occur submitting the complete persistent task action. However, this exception message is not logged. This commit addresses this by including the exception that led to the failure in the log message.
Pinging @elastic/es-distributed (:Distributed/CCR) |
@@ -63,9 +64,9 @@ public void clusterChanged(final ClusterChangedEvent event) { | |||
// the index exists, do not clean this persistent task | |||
continue; | |||
} | |||
IndexNotFoundException e = new IndexNotFoundException(followerIndex); | |||
IndexNotFoundException infe = new IndexNotFoundException(followerIndex); |
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.
This name change is to avoid confusion with the name of the Exception
instance in the onFailure
callback.
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
When clenaing a shard follow task after an index has been deleted, an exception can occur submitting the complete persistent task action. However, this exception message is not logged. This commit addresses this by including the exception that led to the failure in the log message.
When clenaing a shard follow task after an index has been deleted, an exception can occur submitting the complete persistent task action. However, this exception message is not logged. This commit addresses this by including the exception that led to the failure in the log message.
When clenaing a shard follow task after an index has been deleted, an exception can occur submitting the complete persistent task action. However, this exception message is not logged. This commit addresses this by including the exception that led to the failure in the log message.
Thanks Jason |
When clenaing a shard follow task after an index has been deleted, an exception can occur submitting the complete persistent task action. However, this exception message is not logged. This commit addresses this by including the exception that led to the failure in the log message.
Relates #44702