Patrick Huy created UIMA-5909:
---------------------------------

             Summary: UIMA-AS: Make Shutdown hooks optional
                 Key: UIMA-5909
                 URL: https://issues.apache.org/jira/browse/UIMA-5909
             Project: UIMA
          Issue Type: Improvement
          Components: Async Scaleout
    Affects Versions: 2.10.2AS
            Reporter: Patrick Huy


In BaseUIMAAsynchronousEngine_impl a shutdown hook gets added to the Runtime 
which stops the AsynchronousEngine. This makes it impossible for consumers to 
correclty implement a graceful shutdown behaviour on JVM shutdow.

 

For applications running on Kubernetes the expectation is that on "SIGTERM" the 
application completes running requests and then exits. SIGTERM also triggers 
JVM shutdown hooks, the AS shutdown hooks prevent running requests from 
completing (because the AS Engine is stopped).

It also seems like these hooks are never removed which might lead to issues if 
a lot of AS Engines are initialized.

It would be benefitial to make these shutdown hooks optional or remove them 
outright.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to