mirror of https://github.com/apache/lucene.git
SOLR-8450: Fix debug logging.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1724807 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
073dbdc17e
commit
c6c4dded6d
|
@ -110,12 +110,12 @@ public class SolrHttpRequestRetryHandler implements HttpRequestRetryHandler {
|
|||
return false;
|
||||
}
|
||||
if (this.nonRetriableClasses.contains(exception.getClass())) {
|
||||
log.debug("Do not retry, non retriable class {}" + exception.getClass());
|
||||
log.debug("Do not retry, non retriable class {}", exception.getClass().getName());
|
||||
return false;
|
||||
} else {
|
||||
for (final Class<? extends IOException> rejectException : this.nonRetriableClasses) {
|
||||
if (rejectException.isInstance(exception)) {
|
||||
log.debug("Do not retry, non retriable class {}" + exception.getClass());
|
||||
log.debug("Do not retry, non retriable class {}", exception.getClass().getName());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@ -143,6 +143,7 @@ public class SolrHttpRequestRetryHandler implements HttpRequestRetryHandler {
|
|||
|
||||
protected boolean handleAsIdempotent(final HttpClientContext context) {
|
||||
String method = context.getRequest().getRequestLine().getMethod();
|
||||
context.getRequest().getRequestLine().getUri();
|
||||
return method.equals(GET);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue