Scott Feldstein created IGNITE-14766:
----------------------------------------
Summary: Ignite.close() hardcodes cancel = true
Key: IGNITE-14766
URL: https://issues.apache.org/jira/browse/IGNITE-14766
Project: Ignite
Issue Type: Improvement
Reporter: Scott Feldstein
{{Ignite.close()}} hardcodes {{cancel = true}} inĀ
[IgniteKernal.close()|https://github.com/apache/ignite/blob/master/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java#L3821]
{code:java}
@Override public void close() throws IgniteException {
Ignition.stop(igniteInstanceName, true);
}
{code}
Spring automatically calls {{close()}} when ignite is injected into the context
as a bean. When the application context is shutdown it would be great to be
able to change this to {{cancel = false}} to allow ignite to gracefully shutdown
I'd like to see this logic injected into runtime using a java system property
to override this behavior. This would allow ignite to be gracefully shutdown
without having to write an extra shutdown hook.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)