Michael Blow has uploaded a new change for review.

  https://asterix-gerrit.ics.uci.edu/1808

Change subject: Include dead / failed nodes in cluster state json
......................................................................

Include dead / failed nodes in cluster state json

Change-Id: I01f169088238aa777e2793b8dd4b73f79a0a01b3
---
M 
asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/utils/ClusterStateManager.java
1 file changed, 1 insertion(+), 3 deletions(-)


  git pull ssh://asterix-gerrit.ics.uci.edu:29418/asterixdb 
refs/changes/08/1808/1

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: newchange
Gerrit-Change-Id: I01f169088238aa777e2793b8dd4b73f79a0a01b3
Gerrit-PatchSet: 1
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Michael Blow <[email protected]>

Reply via email to