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
|
numeric, and conditional evaluators. BooleanOperations have been removed in preference of
|
||||||
BooleanEvaluators. (Dennis Gove)
|
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
|
Bug Fixes
|
||||||
----------------------
|
----------------------
|
||||||
|
|
|
@ -178,8 +178,8 @@ public class UpdateShardHandler implements SolrMetricProducer, SolrInfoMBean {
|
||||||
|
|
||||||
public void close() {
|
public void close() {
|
||||||
try {
|
try {
|
||||||
// we interrupt on purpose here, but this executor should not run threads that do disk IO!
|
// do not interrupt, do not interrupt
|
||||||
ExecutorUtil.shutdownWithInterruptAndAwaitTermination(updateExecutor);
|
ExecutorUtil.shutdownAndAwaitTermination(updateExecutor);
|
||||||
ExecutorUtil.shutdownAndAwaitTermination(recoveryExecutor);
|
ExecutorUtil.shutdownAndAwaitTermination(recoveryExecutor);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
SolrException.log(log, e);
|
SolrException.log(log, e);
|
||||||
|
|
Loading…
Reference in New Issue