Make it simpler to determine which version of state was used to calculate health

This commit is contained in:
Igor Motov 2013-02-18 20:01:51 -05:00
parent 5746c50ef9
commit 4222478b18
1 changed files with 3 additions and 0 deletions

View File

@ -182,6 +182,9 @@ public class TransportClusterHealthAction extends TransportMasterNodeOperationAc
}
private ClusterHealthResponse clusterHealth(ClusterHealthRequest request, ClusterState clusterState) {
if (logger.isTraceEnabled()) {
logger.trace("Calculating health based on state version [{}]", clusterState.version());
}
RoutingTableValidation validation = clusterState.routingTable().validate(clusterState.metaData());
ClusterHealthResponse response = new ClusterHealthResponse(clusterName.value(), validation.failures());
response.numberOfNodes = clusterState.nodes().size();