We need to see how the docker container is shutting down. Like what is the
order of the services to shut down.

If you are shutting down the ignite service before shutting down the Java
process, we might encounter the above error you mentioned.

Vice Versa, this problem should not come. You can try this and check out if
this works.

Regards,
Shubham Agrawal


On Thu, Apr 1, 2021 at 10:58 AM Ilya Kasnacheev <[email protected]>
wrote:

> Hello!
>
> I guess that it's already too late to deactivate if the node is shutting
> down.
>
> What are scenarios for which you are trying to prepare here?
>
> Regards,
> --
> Ilya Kasnacheev
>
>
> ср, 31 мар. 2021 г. в 22:13, DonTequila <[email protected]>:
>
>> Has anyone been able to look at this and give me some advise? Thanks!
>>
>>
>> DonTequila wrote
>> > Hi,
>> >
>> > when running Ignite inside a docker container, and the container is
>> > being stopped, what is the safest way to handle shutdown event?
>> >
>> > Currently I'm using a ShutdownHook to the Java runtime and try to
>> > quickly deactivate and disconnect the cluster. But I get an exception
>> > like this:
>> >
>> > class org.apache.ignite.IgniteException: Failed to execute deactivate
>> > request, node is stopping.
>> >          at
>> >
>> org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:1067)
>> >          at
>> >
>> org.apache.ignite.internal.cluster.IgniteClusterImpl.active(IgniteClusterImpl.java:317)
>> >          at
>> >
>> mediafan.net.ignite.IgniteHelper.setClusterActiveStatus(IgniteHelper.java:238)
>> >          at
>> > mediafan.client.helper.ConsoleApp.setActive(ConsoleApp.java:370)
>> >          at
>> > mediafan.client.helper.ConsoleApp.disconnect(ConsoleApp.java:342)
>> >          at mediafan.client.helper.ConsoleApp$1.run(ConsoleApp.java:70)
>> > Caused by: class org.apache.ignite.IgniteCheckedException: Failed to
>> > execute deactivate request, node is stopping.
>> >          at
>> >
>> org.apache.ignite.internal.processors.cluster.GridClusterStateProcessor.changeGlobalState0(GridClusterStateProcessor.java:1007)
>> >          at
>> >
>> org.apache.ignite.internal.processors.cluster.GridClusterStateProcessor.changeGlobalState(GridClusterStateProcessor.java:832)
>> >          at
>> >
>> org.apache.ignite.internal.processors.cluster.GridClusterStateProcessor.changeGlobalState(GridClusterStateProcessor.java:820)
>> >          at
>> >
>> org.apache.ignite.internal.cluster.IgniteClusterImpl.active(IgniteClusterImpl.java:314)
>> >          ... 4 more
>> >
>> > If I only do a disconnect without deactivate then it works well. But my
>> > understanding is the last server node should also deactivate the
>> > cluster? How can this be achieved in such Docker environment?
>> >
>> > Thanks,
>> > Thomas.
>>
>>
>>
>>
>>
>> --
>> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>>
>

Reply via email to