You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Dmitriy Setrakyan <ds...@apache.org> on 2016/12/20 21:19:48 UTC

Re: Ignite Shutdown Hook

+ user list

On Tue, Dec 20, 2016 at 12:30 PM, hemanta <sa...@gmail.com> wrote:

> Hi,
>
> I am starting Ignite as standalone program embedded in my java application
> via Spring configuration. It works great however my application stucks and
> never finishes. I have added some shutdown hooks but they are never called.
> I think this is because Ignite is running in main thread and stopping jvm
> to
> exit.
>
> I want jvm to stop Ignite and exit gracefully but this is not what I am
> seeing. Any suggestions? Thank you.
>
>
>
> --
> View this message in context: http://apache-ignite-
> developers.2346864.n4.nabble.com/Ignite-Shutdown-Hook-tp13198.html
> Sent from the Apache Ignite Developers mailing list archive at Nabble.com.
>

Re: Ignite Shutdown Hook

Posted by tysli2016 <To...@cityline.com.hk>.
hemanta did you call close() on the Ignite instance?

    Ignite ignite = Ignition.start();
    // do something with ignite
    ignite.close()

I have a similar problem before, and found that Ignite have some threads
running which prevent the jvm from stopping even the main thread ended.





--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Re-Ignite-Shutdown-Hook-tp9661p9670.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.