Exception thrown when shutting down

5 views
Skip to first unread message

Chris

unread,
Feb 9, 2012, 10:53:52 AM2/9/12
to Hazelcast
Hi - I have an app that launches a cluster on the fly, does
processing, and then shutdown down each node. With 1.9.4.8, I am
seeing exceptions thrown when shutting down, as shown here:

http://pastebin.com/A8q1E2QV

Basically, when each node detects that the jobs are finished, they
call Hazelcast.getLifecycleService().shutdown(). Nodes know when they
are done because they check, as follows:

while (Hazelcast.getSet(Sets.COLLAPSED_END.toString()).size() !=
files.size()) {
Thread.sleep(100)
}

Is this the right way to shutdown nodes? Is this some sort of race
condition which causes the exception to the thrown?

Thanks,
Chris

Mehmet Dogan

unread,
Feb 20, 2012, 8:28:37 AM2/20/12
to haze...@googlegroups.com
Yes, it is the right way shutting down HazelcastInstance. That error is related to unregistering jmx beans and fixed in version 2.0.

@mmdogan





--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To post to this group, send email to haze...@googlegroups.com.
To unsubscribe from this group, send email to hazelcast+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hazelcast?hl=en.


Reply all
Reply to author
Forward
0 new messages