Github user dsmiley commented on a diff in the pull request:
https://github.com/apache/lucene-solr/pull/422#discussion_r204410513
--- Diff:
solr/core/src/java/org/apache/solr/update/processor/TimeRoutedAliasUpdateProcessor.java
---
@@ -230,6 +219,59 @@ public void processAdd(AddUpdateCommand cmd) throws
IOException {
}
}
+ /**
+ * Create an executor that can only handle one task at a time. This is
used to ensure that
+ */
+ private ThreadPoolExecutor singleThreadSingleTaskExecutor() {
+ ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(1, 1,
1, TimeUnit.HOURS, new ArrayBlockingQueue<>(1));
--- End diff --
See `ExecutorUtil`; I think we are not allowed to create thread pools in
Solr unless it's via those utils.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]