mirror of https://github.com/apache/lucene.git
706f284c46
The shutdown process waits for all replicas/cores to be closed before removing the election node of the leader. This can take some time due to index flush or merge activities on the leader cores and delays new leaders from being elected. Moreover, jetty stops accepting new requests on receiving SIGTERM which means that even though a leader technically exists, no new indexing requests can be processed by the node. This commit waits for all in-flight indexing requests to complete, removes election nodes (thus triggering leader election) and then closes all replicas. Co-authored-by: Cao Manh Dat <datcm@apache.org> |
||
---|---|---|
.. | ||
src | ||
build.gradle |