Hi, I am trying to embed Ignite server node into my application. I want to integration ignite such that i can start/stop ignite node at anytime while application is running. For that i have application level APIs to start or stop the ignite node. For most part the ignite node start and stops without any issue. But at time the application/ignite gets into state where It can not start the ignite node anymore.
For my testing i am running multiple instances of the application on my machine. The goal is to have multiple instances of application running with ignite. That will form a cluster where work will be distributed. Start API: a. Initialize an instance of IgniteConfiguration. Things that i set in configuration are instance name, static IP based discovery and few user attributed b. Start the node with Ingnition.getOrStart(config) c. Instance of config and node are store in the application. Both instances are singleton instance Stop API: a. Stop the ignite node by calling igniteInstance.close or Ignition.stop(instanceName, true) b. Set config to null I get below error after i start/stop the node multiple times while application is running. java.lang.IllegalThreadStateException 2017/06/28 15:25:49 | at java.lang.ThreadGroup.addUnstarted(ThreadGroup.java:867) 2017/06/28 15:25:49 | at java.lang.Thread.init(Thread.java:402) 2017/06/28 15:25:49 | at java.lang.Thread.init(Thread.java:349) 2017/06/28 15:25:49 | at java.lang.Thread.<init>(Thread.java:596) 2017/06/28 15:25:49 | at org.apache.ignite.thread.IgniteThread.<init>(IgniteThread.java:100) 2017/06/28 15:25:49 | at org.apache.ignite.thread.IgniteThread.<init>(IgniteThread.java:85) 2017/06/28 15:25:49 | at org.apache.ignite.internal.util.StripedExecutor$Stripe.start(StripedExecutor.java:438) 2017/06/28 15:25:49 | at org.apache.ignite.internal.util.StripedExecutor.<init>(StripedExecutor.java:84) 2017/06/28 15:25:49 | at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1729) 2017/06/28 15:25:49 | at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1647) 2017/06/28 15:25:49 | at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1075) 2017/06/28 15:25:49 | at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:595) 2017/06/28 15:25:49 | at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:535) 2017/06/28 15:25:49 | at org.apache.ignite.Ignition.getOrStart(Ignition.java:414) Looks like the node/grid is not shutting down correctly. Few threads are left behind and when i try to start the node again, it errors out. When i have multiple instances of application running, this error occurs randomly on any instance. Not on all instances at the same time. Error occurs even when i have single instance. I'm not sure if there is anything wrong with config or they way i start/stop the node. Is there any other API to stop the node? Thanks! -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Server-node-fails-to-start-with-exception-IllegalThreadStateException-tp14150.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.
