Skip to content

Commit

Permalink
0002688: Heartbeats don't propagate properly in a multi-master situation
Browse files Browse the repository at this point in the history
  • Loading branch information
mmichalek committed Jul 20, 2016
1 parent 4ca05b7 commit 4ebe85e
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -225,12 +225,14 @@ protected void routeNodeTables(Set<String> nodeIds, Map<String, String> columnVa
}
}
} else {
IConfigurationService configurationService = engine.getConfigurationService();
List<NodeGroupLink> nodeGroupLinks = getNodeGroupLinksFromContext(routingContext);
for (Node nodeThatMayBeRoutedTo : possibleTargetNodes) {
if (!Constants.DEPLOYMENT_TYPE_REST.equals(nodeThatMayBeRoutedTo.getDeploymentType())
&& !nodeThatMayBeRoutedTo.requires13Compatiblity()
&& isLinked(nodeIdForRecordBeingRouted, nodeThatMayBeRoutedTo, rootNetworkedNode, me, nodeGroupLinks)
&& !isSameNumberOfLinksAwayFromRoot(nodeThatMayBeRoutedTo, rootNetworkedNode, me)
&& (!isSameNumberOfLinksAwayFromRoot(nodeThatMayBeRoutedTo, rootNetworkedNode, me)
|| configurationService.isMasterToMaster())
|| (nodeThatMayBeRoutedTo.getNodeId().equals(me.getNodeId()) && initialLoad)) {
nodeIds.add(nodeThatMayBeRoutedTo.getNodeId());
}
Expand Down

0 comments on commit 4ebe85e

Please sign in to comment.