Skip to content
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

SOLR-14828: reduce 'error' logging noise in BaseCloudSolrClient.requestWithRetryOnStaleState #1825

Merged
merged 3 commits into from
Sep 24, 2020

Conversation

cpoerschke
Copy link
Contributor

return requestWithRetryOnStaleState(request, retryCount + 1, inputCollections);
}
} else {
log.info("request was not communication error it seems");
}
log.error("Request to collection {} failed due to ({}) {}, retry={} commError={} errorCode={} ",
Copy link
Contributor

Choose a reason for hiding this comment

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

Since you add - retrying to the info logging above, maybe add something like - max retries hit here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

max retries hit is a little tricky to determine exactly since e.g. commError and other things influence the logic. But inclusion of MAX_STALE_RETRIES in the logging could make it clear(er) when "max retries hit" was likely the case.

@cpoerschke cpoerschke merged commit 876de8b into apache:master Sep 24, 2020
@cpoerschke cpoerschke deleted the master-solr-14828 branch September 24, 2020 16:06
asfgit pushed a commit that referenced this pull request Sep 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants