You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by wangsan <wq...@gmail.com> on 2018/11/26 11:02:47 UTC

Why GridDiscoveryManager onSegmentation use StopNodeFailureHandler?

Why GridDiscoveryManager onSegmentation use StopNodeFailureHandler?
But not the StopNodeOrHaltFailureHandler !
In my case,when net problem happen, I wan't the jvm close?



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

Re: Why GridDiscoveryManager onSegmentation use StopNodeFailureHandler?

Posted by Ilya Kasnacheev <il...@gmail.com>.
Hello!

You can have your own failureHandler set, so I think.

Regards,
-- 
Ilya Kasnacheev


вт, 29 янв. 2019 г. в 19:52, wangsan <wq...@gmail.com>:

> Thanks!
> The  IgniteConfiguration.segmentationPolicy RESTART_JVM would be a little
> misleading. Exit java with some exit code ,The java application will ignore
> the exit code.
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Re: Why GridDiscoveryManager onSegmentation use StopNodeFailureHandler?

Posted by wangsan <wq...@gmail.com>.
Thanks!
The  IgniteConfiguration.segmentationPolicy RESTART_JVM would be a little
misleading. Exit java with some exit code ,The java application will ignore
the exit code.



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

Re: Why GridDiscoveryManager onSegmentation use StopNodeFailureHandler?

Posted by Ilya Kasnacheev <il...@gmail.com>.
Hello!

It will use IgniteConfiguration.segmentationPolicy.

You can just try setting it to RESTART_JVM.

Regards,
-- 
Ilya Kasnacheev


вт, 27 нояб. 2018 г. в 17:18, wangsan <wq...@gmail.com>:

> Can I use LifecycleEventType.AFTER_NODE_STOP to stop jvm? if segment event
> happens?
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Re: Why GridDiscoveryManager onSegmentation use StopNodeFailureHandler?

Posted by wangsan <wq...@gmail.com>.
Can I use LifecycleEventType.AFTER_NODE_STOP to stop jvm? if segment event
happens?



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

Re: Why GridDiscoveryManager onSegmentation use StopNodeFailureHandler?

Posted by wangsan <wq...@gmail.com>.
Can I config the FailureHandler when segment error happen?
The IgniteConfiguration FailureHandler only used on other exception(error)
happens?



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

Re: Why GridDiscoveryManager onSegmentation use StopNodeFailureHandler?

Posted by Ilya Kasnacheev <il...@gmail.com>.
Hello!

Node is stopped because server node will not be able to rejoin a cluster
once segmented.

JVM is not terminated by default since Ignite may be not the only thing
running in same JVM and you don't want to kill someone else's code.

Regards,
-- 
Ilya Kasnacheev


пн, 26 нояб. 2018 г. в 14:02, wangsan <wq...@gmail.com>:

> Why GridDiscoveryManager onSegmentation use StopNodeFailureHandler?
> But not the StopNodeOrHaltFailureHandler !
> In my case,when net problem happen, I wan't the jvm close?
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>