Michael Blow has submitted this change and it was merged. Change subject: Include dead / failed nodes in cluster state json ......................................................................
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]> --- M asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/utils/ClusterStateManager.java 1 file changed, 1 insertion(+), 3 deletions(-) Approvals: Ian Maxon: Looks good to me, approved Jenkins: Verified; No violations found; No violations found; Verified 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.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 @@ 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; -- To view, visit https://asterix-gerrit.ics.uci.edu/1808 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-MessageType: merged Gerrit-Change-Id: I01f169088238aa777e2793b8dd4b73f79a0a01b3 Gerrit-PatchSet: 2 Gerrit-Project: asterixdb Gerrit-Branch: master Gerrit-Owner: Michael Blow <[email protected]> Gerrit-Reviewer: Ian Maxon <[email protected]> Gerrit-Reviewer: Jenkins <[email protected]> Gerrit-Reviewer: Michael Blow <[email protected]>
