protected boolean areAllDbsvcActive(){
  CoordinatorClient coordinatorClient=coordinator.getCoordinatorClient();
  List<Service> activeDbsvcs=coordinatorClient.locateAllSvcsAllVers(Constants.DBSVC_NAME);
  List<String> activeDbsvcIds=new ArrayList<>(activeDbsvcs.size());
  for (  Service activeDbsvc : activeDbsvcs) {
    activeDbsvcIds.add(activeDbsvc.getId());
  }
  log.info("List of active dbsvc instances in the cluster: {}, expect {} instances",activeDbsvcIds,nodeCount);
  boolean allActive=activeDbsvcs.size() == nodeCount;
  if (!allActive) {
    log.info("not all dbsvc instances are active. Retrying...");
  }
  return allActive;
}

protected boolean areAllDbsvcActive ( ) { CoordinatorClient coordinatorClient = coordinator . getCoordinatorClient ( ) ; List < Service > activeDbsvcs = coordinatorClient . locateAllSvcsAllVers ( Constants . DBSVC_NAME ) ; List < String > activeDbsvcIds = new ArrayList < > ( activeDbsvcs . size ( ) ) ; for ( Service activeDbsvc : activeDbsvcs ) { activeDbsvcIds . add ( activeDbsvc . getId ( ) ) ; } log . info ( "List of active dbsvc instances in the cluster: {}, expect {} instances" , activeDbsvcIds , nodeCount ) ; boolean allActive = activeDbsvcs . size ( ) == nodeCount ; if ( ! allActive ) { log . info ( "not all dbsvc instances are active. Retrying..." ) ; } return allActive ; }
check if all dbsvc instances are active in the cluster currently it ' s only being used before adjusting db token number but it might as well be used elsewhere .
