code: private void verifyClusterStoreDefinition() {
          if(SystemStoreConstants.isSystemStore(storeDefinition.getName())) {
              // TODO: Once "todo" in StorageService.initSystemStores is complete,
              // this early return can be removed and verification can be enabled
              // for system stores.
              return;
          }
  
          Set<Integer> clusterZoneIds = cluster.getZoneIds();
  
          if(clusterZoneIds.size() > 1) { // Zoned
              Map<Integer, Integer> zoneRepFactor = storeDefinition.getZoneReplicationFactor();
              Set<Integer> storeDefZoneIds = zoneRepFactor.keySet();
  
              if(!clusterZoneIds.equals(storeDefZoneIds)) {
                  throw new VoldemortException("Zone IDs in cluster (" + clusterZoneIds
                                               + ") are incongruent with zone IDs in store defs ("
                                               + storeDefZoneIds + ")");
              }
  
              for(int zoneId: clusterZoneIds) {
                  if(zoneRepFactor.get(zoneId) > cluster.getNumberOfNodesInZone(zoneId)) {
                      throw new VoldemortException("Not enough nodes ("
                                                   + cluster.getNumberOfNodesInZone(zoneId)
                                                   + ") in zone with id " + zoneId
                                                   + " for replication factor of "
                                                   + zoneRepFactor.get(zoneId) + ".");
                  }
              }
          } else { // Non-zoned
  
              if(storeDefinition.getReplicationFactor() > cluster.getNumberOfNodes()) {
                  System.err.println(storeDefinition);
                  System.err.println(cluster);
                  throw new VoldemortException("Not enough nodes (" + cluster.getNumberOfNodes()
                                               + ") for replication factor of "
                                               + storeDefinition.getReplicationFactor() + ".");
              }
          }
      }
docs: Verify that cluster is congruent to store def wrt zones.