lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markrmil...@apache.org
Subject svn commit: r1215194 - /lucene/dev/branches/solrcloud/solr/core/src/java/org/apache/solr/update/SolrCmdDistributor.java
Date Fri, 16 Dec 2011 15:50:55 GMT
Author: markrmiller
Date: Fri Dec 16 15:50:54 2011
New Revision: 1215194

URL: http://svn.apache.org/viewvc?rev=1215194&view=rev
Log:
log the actual URL that failed

Modified:
    lucene/dev/branches/solrcloud/solr/core/src/java/org/apache/solr/update/SolrCmdDistributor.java

Modified: lucene/dev/branches/solrcloud/solr/core/src/java/org/apache/solr/update/SolrCmdDistributor.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/solrcloud/solr/core/src/java/org/apache/solr/update/SolrCmdDistributor.java?rev=1215194&r1=1215193&r2=1215194&view=diff
==============================================================================
--- lucene/dev/branches/solrcloud/solr/core/src/java/org/apache/solr/update/SolrCmdDistributor.java
(original)
+++ lucene/dev/branches/solrcloud/solr/core/src/java/org/apache/solr/update/SolrCmdDistributor.java
Fri Dec 16 15:50:54 2011
@@ -231,6 +231,7 @@ public class SolrCmdDistributor {
     NamedList<Object> ursp;
     int rspCode;
     Exception exception;
+    String url;
   }
   
   void submit(UpdateRequestExt ureq, List<String> shards) {
@@ -258,7 +259,7 @@ public class SolrCmdDistributor {
           Request clonedRequest = new Request();
           clonedRequest.shards = sreq.shards;
           clonedRequest.ureq = sreq.ureq;
-          
+          clonedRequest.url = shard;
           try {
             // TODO: what about https?
             String url;
@@ -332,8 +333,7 @@ public class SolrCmdDistributor {
               rsp.setException(e);
             }
             
-            // TODO: we dont log which request url actually failed - we currently list them
all
-            SolrException.logOnce(SolrCore.log, "shard update error ("
+            SolrException.logOnce(SolrCore.log, "shard update error " + sreq.url + " ("
                 + sreq.shards + ")", sreq.exception);
           }
           



Mime
View raw message