Repository: asterixdb Updated Branches: refs/heads/master 5521efcab -> 21bccfef4
Include dead / failed nodes in cluster state json Change-Id: I01f169088238aa777e2793b8dd4b73f79a0a01b3 Reviewed-on: https://asterix-gerrit.ics.uci.edu/1808 Sonar-Qube: Jenkins <[email protected]> Integration-Tests: Jenkins <[email protected]> Tested-by: Jenkins <[email protected]> BAD: Jenkins <[email protected]> Reviewed-by: Ian Maxon <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/asterixdb/repo Commit: http://git-wip-us.apache.org/repos/asf/asterixdb/commit/21bccfef Tree: http://git-wip-us.apache.org/repos/asf/asterixdb/tree/21bccfef Diff: http://git-wip-us.apache.org/repos/asf/asterixdb/diff/21bccfef Branch: refs/heads/master Commit: 21bccfef4fe7afcf13a9f2f53a8f0263dd9e3979 Parents: 5521efc Author: Michael Blow <[email protected]> Authored: Wed Jun 7 00:54:04 2017 -0400 Committer: Michael Blow <[email protected]> Committed: Wed Jun 7 15:32:32 2017 -0700 ---------------------------------------------------------------------- .../org/apache/asterix/runtime/utils/ClusterStateManager.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/asterixdb/blob/21bccfef/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/utils/ClusterStateManager.java ---------------------------------------------------------------------- diff --git a/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/utils/ClusterStateManager.java b/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/utils/ClusterStateManager.java index 37b3cc2..e86aea1 100644 --- a/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/utils/ClusterStateManager.java +++ b/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/utils/ClusterStateManager.java @@ -45,7 +45,6 @@ import org.apache.hyracks.algebricks.common.constraints.AlgebricksAbsolutePartit import org.apache.hyracks.api.config.IOption; import org.apache.hyracks.api.exceptions.HyracksDataException; import org.apache.hyracks.api.exceptions.HyracksException; -import org.apache.hyracks.control.cc.ClusterControllerService; import org.apache.hyracks.control.common.controllers.NCConfig; import com.fasterxml.jackson.databind.ObjectMapper; @@ -309,8 +308,7 @@ public class ClusterStateManager implements IClusterStateManager { stateDescription.put("metadata_node", currentMetadataNode); ArrayNode ncs = om.createArrayNode(); stateDescription.set("ncs", ncs); - for (String node : new TreeSet<>(((ClusterControllerService) appCtx.getServiceContext().getControllerService()) - .getNodeManager().getAllNodeIds())) { + for (String node : new TreeSet<>(node2PartitionsMap.keySet())) { ObjectNode nodeJSON = om.createObjectNode(); nodeJSON.put("node_id", node); boolean allActive = true;
