mirror of https://github.com/apache/lucene.git
SOLR-9310: unhandled exception during parallel indexing
This commit is contained in:
parent
e5cdaf8ac8
commit
61e1f095e9
|
@ -177,13 +177,14 @@ public class PeerSyncReplicationTest extends AbstractFullDistribZkTestBase {
|
||||||
new Thread(() -> {
|
new Thread(() -> {
|
||||||
try {
|
try {
|
||||||
for (int i = 0; i < numDocs; i++) {
|
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
|
// slow down adds, to get documents indexed while in PeerSync
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new RuntimeException(e);
|
log.error("Error indexing doc in background", e);
|
||||||
|
//Throwing an error here will kill the thread
|
||||||
}
|
}
|
||||||
}, getClassName())
|
}, getClassName())
|
||||||
.start();
|
.start();
|
||||||
|
|
Loading…
Reference in New Issue