mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-25 15:47:23 -04:00
Add mechanism to react to termination signals (#95850)
This commit adds a mechanism to be exposed internally to allow plugins/modules to react to termination signals via SPI. I'm not entirely sure how to test this - normally I'd use an `ESIntegTestCase` and supply a stubbed version of the plugin but that's more difficult with SPI. Supercedes https://github.com/elastic/elasticsearch/pull/95518
This commit is contained in:
parent
eb95e1f504
commit
d423f40037
5 changed files with 94 additions and 0 deletions
|
@ -290,6 +290,7 @@ module org.elasticsearch.server {
|
|||
exports org.elasticsearch.monitor.os;
|
||||
exports org.elasticsearch.monitor.process;
|
||||
exports org.elasticsearch.node;
|
||||
exports org.elasticsearch.node.internal to org.elasticsearch.internal.sigterm;
|
||||
exports org.elasticsearch.persistent;
|
||||
exports org.elasticsearch.persistent.decider;
|
||||
exports org.elasticsearch.plugins;
|
||||
|
@ -379,6 +380,7 @@ module org.elasticsearch.server {
|
|||
|
||||
uses org.elasticsearch.reservedstate.ReservedClusterStateHandlerProvider;
|
||||
uses org.elasticsearch.jdk.ModuleQualifiedExportsService;
|
||||
uses org.elasticsearch.node.internal.TerminationHandlerProvider;
|
||||
|
||||
provides org.apache.lucene.codecs.PostingsFormat
|
||||
with
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue