@SuppressWarnings("deprecation")
public void handleClusterViewChanged() {
+ log.debug("Handling Cluster View changed notification");
List<InetAddress> controllers = clusterServices.getClusteredControllers();
ConcurrentMap <InetAddress, Set<Node>> controllerNodesMap = getControllerToNodesMap();
List<InetAddress> toRemove = new ArrayList<InetAddress>();
clusterServices.tcommit();
}
} catch (Exception e) {
- log.error("Exception in replacing nodeConnections ", e);
- retry = false;
+ log.debug("Exception in replacing nodeConnections ", e);
+ retry = true;
try {
clusterServices.trollback();
} catch (Exception e1) {}
}
if (retry) {
try {
- Thread.sleep(100);
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
+ Thread.sleep(1000);
+ } catch (InterruptedException e) {}
handleClusterViewChanged();
}
}