res.setFailure(e);
sendErrorResponse("Cannot read ClusterRequest", e, res, out);
throw (IOException) new IOException().initCause(e);
}
ClusterMetaData currentClusterMetaData = data.current();
if (req.getClusterMetaDataVersion() < currentClusterMetaData.getVersion()){
if (logger.isDebugEnabled()) {
URI[] locations = currentClusterMetaData.getLocations();
if (locations.length < 10) {
logger.debug("Sending client updated cluster locations: [" + Join.join(", ", locations) + "]");
} else {
logger.debug("Sending client updated cluster locations: " + locations.length + " locations total");
}