ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Biren <biren.s...@servicenow.com>
Subject Server node fails to start with exception IllegalThreadStateException
Date Wed, 28 Jun 2017 23:33:12 GMT

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
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.

2017/06/28 15:25:49 |   at
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
2017/06/28 15:25:49 |   at
2017/06/28 15:25:49 |   at
2017/06/28 15:25:49 |   at
2017/06/28 15:25:49 |   at
2017/06/28 15:25:49 |   at
2017/06/28 15:25:49 |   at
2017/06/28 15:25:49 |   at
2017/06/28 15:25:49 |   at
2017/06/28 15:25:49 |   at

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?


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.

View raw message