You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 36babbf
Browse filesBrowse the repository at this point in the historyBrowse files
Alena Prokharchyk
committed
CS-16213: agent LB - don't process Disconnect event from other management server in cluster, if the recipient is the future owner of the host. The disconnect will be handled during the rebalance host connection process itself.
@@ -936,9 +946,24 @@ protected boolean rebalanceHost(final long hostId, long currentOwnerId, long fut
936
946
HostVOhost = _hostDao.findById(hostId);
937
947
try {
938
948
if (s_logger.isDebugEnabled()) {
939
-
s_logger.debug("Loading directly connected host " + host.getId() + "(" + host.getName() + ") to the management server " + _nodeId + " as a part of rebalance process");
949
+
s_logger.debug("Disconnecting host " + host.getId() + "(" + host.getName() + "as a part of rebalance process without notification");
940
950
}
941
-
result = loadDirectlyConnectedHost(host, true);
951
+
952
+
AgentAttacheattache = findAttache(hostId);
953
+
if (attache != null) {
954
+
result = handleDisconnect(attache, Event.AgentDisconnected, false, false);
955
+
}
956
+
957
+
if (result) {
958
+
if (s_logger.isDebugEnabled()) {
959
+
s_logger.debug("Loading directly connected host " + host.getId() + "(" + host.getName() + ") to the management server " + _nodeId + " as a part of rebalance process");
" as a part of rebalance process without notification");
965
+
}
966
+
942
967
} catch (Exceptionex) {
943
968
s_logger.warn("Failed to load directly connected host " + host.getId() + "(" + host.getName() + ") to the management server " + _nodeId + " as a part of rebalance process due to:", ex);
0 commit comments