You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ma...@apache.org on 2016/02/10 16:41:54 UTC

[3/4] lucene-solr git commit: SOLR-8450: Fix debug logging.

SOLR-8450: Fix debug logging.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1724807 13f79535-47bb-0310-9956-ffa450edef68


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/9da88465
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/9da88465
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/9da88465

Branch: refs/heads/branch_5x
Commit: 9da8846535bce8793b28a7d8816e10f3b1c5a912
Parents: 42c17d2
Author: Mark Robert Miller <ma...@apache.org>
Authored: Fri Jan 15 13:53:15 2016 +0000
Committer: markrmiller <ma...@apache.org>
Committed: Wed Feb 10 10:37:07 2016 -0500

----------------------------------------------------------------------
 .../solr/client/solrj/impl/SolrHttpRequestRetryHandler.java     | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9da88465/solr/solrj/src/java/org/apache/solr/client/solrj/impl/SolrHttpRequestRetryHandler.java
----------------------------------------------------------------------
diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/SolrHttpRequestRetryHandler.java b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/SolrHttpRequestRetryHandler.java
index a9307cf..f2ed8ac 100644
--- a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/SolrHttpRequestRetryHandler.java
+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/SolrHttpRequestRetryHandler.java
@@ -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);
   }