mirror of https://github.com/apache/lucene.git
SOLR-9903: Stop interrupting the update executor on shutdown, it can cause graceful shutdowns to put replicas into Leader Initiated Recovery among other undesirable things.
This commit is contained in:
parent
117aea9367
commit
9d8a2faf18
|
@ -136,6 +136,8 @@ New Features
|
|||
numeric, and conditional evaluators. BooleanOperations have been removed in preference of
|
||||
BooleanEvaluators. (Dennis Gove)
|
||||
|
||||
* SOLR-9903: Stop interrupting the update executor on shutdown, it can cause graceful shutdowns to put replicas into Leader
|
||||
Initiated Recovery among other undesirable things. (Mark Miller)
|
||||
|
||||
Bug Fixes
|
||||
----------------------
|
||||
|
|
|
@ -178,8 +178,8 @@ public class UpdateShardHandler implements SolrMetricProducer, SolrInfoMBean {
|
|||
|
||||
public void close() {
|
||||
try {
|
||||
// we interrupt on purpose here, but this executor should not run threads that do disk IO!
|
||||
ExecutorUtil.shutdownWithInterruptAndAwaitTermination(updateExecutor);
|
||||
// do not interrupt, do not interrupt
|
||||
ExecutorUtil.shutdownAndAwaitTermination(updateExecutor);
|
||||
ExecutorUtil.shutdownAndAwaitTermination(recoveryExecutor);
|
||||
} catch (Exception e) {
|
||||
SolrException.log(log, e);
|
||||
|
|
Loading…
Reference in New Issue