You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by no...@apache.org on 2016/08/23 06:06:18 UTC

lucene-solr:master: SOLR-9310: unhandled exception during parallel indexing

Repository: lucene-solr
Updated Branches:
  refs/heads/master e5cdaf8ac -> 61e1f095e


SOLR-9310: unhandled exception during parallel indexing


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

Branch: refs/heads/master
Commit: 61e1f095e9370d47260542fec153cceee9a194a0
Parents: e5cdaf8
Author: Noble Paul <no...@apache.org>
Authored: Tue Aug 23 11:36:07 2016 +0530
Committer: Noble Paul <no...@apache.org>
Committed: Tue Aug 23 11:36:07 2016 +0530

----------------------------------------------------------------------
 .../test/org/apache/solr/cloud/PeerSyncReplicationTest.java   | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/61e1f095/solr/core/src/test/org/apache/solr/cloud/PeerSyncReplicationTest.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/cloud/PeerSyncReplicationTest.java b/solr/core/src/test/org/apache/solr/cloud/PeerSyncReplicationTest.java
index abdd646..f85b7f1 100644
--- a/solr/core/src/test/org/apache/solr/cloud/PeerSyncReplicationTest.java
+++ b/solr/core/src/test/org/apache/solr/cloud/PeerSyncReplicationTest.java
@@ -177,13 +177,14 @@ public class PeerSyncReplicationTest extends AbstractFullDistribZkTestBase {
     new Thread(() -> {
       try {
         for (int i = 0; i < numDocs; i++) {
-          indexDoc(id, docId, i1, 50, tlong, 50, t1, "document number " + docId++);
+          indexDoc(id, docId, i1, 50, tlong, 50, t1, "document number " + docId);
+          docId++;
           // slow down adds, to get documents indexed while in PeerSync
           Thread.sleep(100);
         }
       } catch (Exception e) {
-        throw new RuntimeException(e);
-
+        log.error("Error indexing doc in background", e);
+        //Throwing an error here will kill the thread
       }
     }, getClassName())
         .start();