Skip to content

Commit

Permalink
Re-registering node proxy in JMX on a node reconnect. Fixes #5186
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Dec 7, 2017
1 parent ba71bfa commit c067d6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -71,6 +71,7 @@ public DefaultRemoteProxy(RegistrationRequest request, GridRegistry registry) {
unregisterDelay = config.unregisterIfStillDownAfter != null ? config.unregisterIfStillDownAfter : DEFAULT_UNREGISTER_DELAY;
downPollingLimit = config.downPollingLimit != null ? config.downPollingLimit : DEFAULT_DOWN_POLLING_LIMIT;

new JMXHelper().unregister(this.getObjectName());
new JMXHelper().register(this);
}

Expand Down
Expand Up @@ -41,8 +41,7 @@ public void unregister(ObjectName objectName) {
MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
try {
mbs.unregisterMBean(objectName);
} catch (Throwable t) {
t.printStackTrace();
} catch (Throwable ignore) {
}
}
}
Expand Down

0 comments on commit c067d6b

Please sign in to comment.