You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@helix.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/08/25 21:11:21 UTC
[jira] [Commented] (HELIX-627) helix-ui "partitions" tab can't show
assignment for FULL_AUTO resources
[ https://issues.apache.org/jira/browse/HELIX-627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15437680#comment-15437680 ]
ASF GitHub Bot commented on HELIX-627:
--------------------------------------
Github user brandtg commented on the issue:
https://github.com/apache/helix/pull/48
Ah here is the JIRA https://issues.apache.org/jira/browse/HELIX-627
> 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)