Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception encountered by TimedMemberStateFactory stops MC service #15946

Closed
blazember opened this issue Nov 6, 2019 · 4 comments
Closed

Exception encountered by TimedMemberStateFactory stops MC service #15946

blazember opened this issue Nov 6, 2019 · 4 comments
Labels
Milestone

Comments

@blazember
Copy link
Contributor

ManagementCenterService shuts down itself if it encounters an exception when creating the TimedMemberState. This issue makes the cluster to disappear from MC. The related code is here:

public void run() {
try {
while (isRunning()) {
timedMemberState.set(timedMemberStateFactory.createTimedMemberState());
sleep();
}
} catch (Throwable throwable) {
inspectOutOfMemoryError(throwable);
if (!(throwable instanceof InterruptedException)) {
logger.warning("Hazelcast Management Center Service will be shutdown due to exception.", throwable);
shutdown();
}
}
}

This happens even if the exception is a retryable one such as in this case:

[127.0.0.1]:5702 [A] [4.0-SNAPSHOT] Hazelcast Management Center Service will be shutdown due to exception.
com.hazelcast.spi.exception.RetryableHazelcastException: HazelcastInstance[[127.0.0.1]:5702] is not active!
    at com.hazelcast.spi.impl.NodeEngineImpl.getService(NodeEngineImpl.java:385) ~[hazelcast-4.0-SNAPSHOT.jar:4.0-SNAPSHOT]
    at com.hazelcast.internal.management.TimedMemberStateFactory.getCacheService(TimedMemberStateFactory.java:422) ~[hazelcast-4.0-SNAPSHOT.jar:4.0-SNAPSHOT]
    at com.hazelcast.internal.management.TimedMemberStateFactory.createMemState(TimedMemberStateFactory.java:278) ~[hazelcast-4.0-SNAPSHOT.jar:4.0-SNAPSHOT]
    at com.hazelcast.internal.management.TimedMemberStateFactory.createMemberState(TimedMemberStateFactory.java:200) ~[hazelcast-4.0-SNAPSHOT.jar:4.0-SNAPSHOT]
    at com.hazelcast.internal.management.TimedMemberStateFactory.createTimedMemberState(TimedMemberStateFactory.java:126) ~[hazelcast-4.0-SNAPSHOT.jar:4.0-SNAPSHOT]
    at com.hazelcast.internal.management.ManagementCenterService$PrepareStateThread.run(ManagementCenterService.java:450) [hazelcast-4.0-SNAPSHOT.jar:4.0-SNAPSHOT]

Related closed issue #15656

@blazember
Copy link
Contributor Author

cc @emre-aydin @puzpuzpuz

@puzpuzpuz
Copy link
Contributor

@emre-aydin @blazember should we close this issue now, as #15980 was merged?

@emre-aydin
Copy link
Contributor

@emre-aydin @blazember should we close this issue now, as #15980 was merged?

Yes we should.

@puzpuzpuz
Copy link
Contributor

I'm closing this issue, as #15980 was merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants