helix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Brandt (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HELIX-627) helix-ui "partitions" tab can't show assignment for FULL_AUTO resources
Date Tue, 02 Feb 2016 19:05:40 GMT
Greg Brandt created HELIX-627:
---------------------------------

             Summary: helix-ui "partitions" tab can't show assignment for FULL_AUTO resources
                 Key: HELIX-627
                 URL: https://issues.apache.org/jira/browse/HELIX-627
             Project: Apache Helix
          Issue Type: Bug
    Affects Versions: 0.7.2
            Reporter: Greg Brandt
             Fix For: 0.7.2


>From ShaoFeng

{quote}
Another issue I faced is, on the helix-ui, it can show all resources, but
when selecting a resource, the "partitions" tab couldn't show which
instances it be assigned to; the only message is "No partitions of
 <resource_name> are assigned!"

I checked the UI code, it indicates the reason is the "listFields" is
empty. That matches with what I see with the helix-admin.sh
--listResourceInfo:

IdealState for Resource_Stream_1454391900000_1454392200000:
{
  "id" : "Resource_Stream_1454391900000_1454392200000",
  "mapFields" : {
    "Resource_Stream_1454391900000_1454392200000" : {
    }
  },
  "listFields" : {
    "Resource_Stream_1454391900000_1454392200000" : [ ]
  },
  "simpleFields" : {
    "IDEAL_STATE_MODE" : "AUTO_REBALANCE",
    "NUM_PARTITIONS" : "1",
    "REBALANCE_MODE" : "FULL_AUTO",
    "REPLICAS" : "3",
    "STATE_MODEL_DEF_REF" : "LeaderStandby",
    "STATE_MODEL_FACTORY_NAME" : "DEFAULT"
  }
}

ExternalView for Resource_Stream_1454391900000_1454392200000:
{
  "id" : "Resource_Stream_1454391900000_1454392200000",
  "mapFields" : {
    "Resource_Stream_1454391900000_1454392200000" : {
      "kylin-dev3_8080" : "LEADER",
      "kylin-dev4_8080" : "STANDBY"
    }
  },
  "listFields" : {
  },
  "simpleFields" : {
    "BUCKET_SIZE" : "0"
  }
}

I checked the code, it seems for FULL_AUTO, the values for "listFields" and
"mapFields" are empty (at least at the begining). Will it be updated at
some point of time, or how could I trigger that?
{quote}

In ResourceStateSpec#getResourceStateTable, we should check the rebalance mode, and use the
partitions from external view if FULL_AUTO, as there's no ideal placement for them.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message