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

Comments

@blazember
Copy link
Contributor

@blazember blazember commented Nov 6, 2019

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

This comment has been minimized.

Copy link
Contributor Author

@blazember blazember commented Nov 6, 2019

@puzpuzpuz

This comment has been minimized.

Copy link
Contributor

@puzpuzpuz puzpuzpuz commented Nov 12, 2019

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

@emre-aydin

This comment has been minimized.

Copy link
Contributor

@emre-aydin emre-aydin commented Nov 12, 2019

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

Yes we should.

@puzpuzpuz

This comment has been minimized.

Copy link
Contributor

@puzpuzpuz puzpuzpuz commented Nov 12, 2019

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

@puzpuzpuz puzpuzpuz closed this Nov 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.