Skip to content

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

Conversation

jasontedor
Copy link
Member

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

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.
@jasontedor jasontedor added >non-issue :Distributed Indexing/CCR Issues around the Cross Cluster State Replication features v8.0.0 v6.8.7 v7.7.0 v7.6.1 labels Feb 6, 2020
@jasontedor jasontedor requested a review from tlrx February 6, 2020 00:46
@elasticmachine
Copy link
Collaborator

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);
Copy link
Member Author

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.

Copy link
Member

@dnhatn dnhatn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jasontedor jasontedor merged commit 9660d84 into elastic:master Feb 6, 2020
jasontedor added a commit that referenced this pull request Feb 6, 2020
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.
jasontedor added a commit that referenced this pull request Feb 6, 2020
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.
jasontedor added a commit that referenced this pull request Feb 6, 2020
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.
@jasontedor jasontedor deleted the shard-follow-task-cleaner-on-failure-log-exception branch February 6, 2020 01:48
@tlrx
Copy link
Member

tlrx commented Feb 6, 2020

Thanks Jason

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Indexing/CCR Issues around the Cross Cluster State Replication features >non-issue v6.8.7 v7.6.0 v7.7.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants