Re: Proper shutdown from C++ environment

2020-11-13 Thread Ilya Kasnacheev
Hello!

I assume that JVM will install handlers of its own, which will trigger Java
shutdown procedures and Ignite node will be stopped.

Regards,
-- 
Ilya Kasnacheev


пт, 13 нояб. 2020 г. в 16:42, Lieuwe :

> You would only get SIGINT if you run your application in a shell and ctrl-c
> it right? Can you not 'wait' on a key press and stop ignite properly
> instead?
>
> I looked at the same issue recently and I wouldn't expect ignite to do
> anything that isn't documented - even if it does it now, it may not do it
> in
> the next release. I run mine using systemctl and a signal handler that
> does
>
> ignite::Ignition::StopAll(false);
>
> works well.
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>


Re: Proper shutdown from C++ environment

2020-11-13 Thread Lieuwe
You would only get SIGINT if you run your application in a shell and ctrl-c
it right? Can you not 'wait' on a key press and stop ignite properly
instead? 

I looked at the same issue recently and I wouldn't expect ignite to do
anything that isn't documented - even if it does it now, it may not do it in
the next release. I run mine using systemctl and a signal handler that does 

ignite::Ignition::StopAll(false);

works well.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Proper shutdown from C++ environment

2020-11-13 Thread Wolfgang Meyerle

Another question according a proper shutdown of ignite.

Do I have to catch the sigint signal to properly shutdown apache ignite 
in my environment and set the node to inactive or is the code in ignite 
catering for this itself? Is it safe to install signal handlers with the 
usage of the ignite fat client?


Regards,

Wolfgang