use of com.yahoo.vdslib.distribution.ConfiguredNode in project vespa by vespa-engine.
the class FleetController method handleAllDistributorsInSync.
/**
* Called when all distributors have acked newest cluster state version.
*/
public void handleAllDistributorsInSync(DatabaseHandler database, DatabaseHandler.Context context) throws InterruptedException {
Set<ConfiguredNode> nodes = new HashSet<>(cluster.clusterInfo().getConfiguredNodes().values());
ClusterState currentState = stateVersionTracker.getVersionedClusterState();
log.fine(() -> String.format("All distributors have ACKed cluster state version %d", currentState.getVersion()));
stateChangeHandler.handleAllDistributorsInSync(currentState, nodes, database, context);
}
Aggregations