mirror of https://github.com/apache/lucene.git
SOLR-11911: Check for thread interrupted and stop looping.
This commit is contained in:
parent
fa03a3843c
commit
9980f05ac3
|
@ -95,6 +95,10 @@ public class ComputePlanAction extends TriggerActionBase {
|
|||
opLimit = requestedOperations;
|
||||
}
|
||||
do {
|
||||
// computing changes in large clusters may take a long time
|
||||
if (Thread.currentThread().isInterrupted()) {
|
||||
throw new InterruptedException("stopping - thread was interrupted");
|
||||
}
|
||||
SolrRequest operation = suggester.getSuggestion();
|
||||
opCount++;
|
||||
// prepare suggester for the next iteration
|
||||
|
|
Loading…
Reference in New Issue