From commits-return-5760-apmail-helix-commits-archive=helix.apache.org@helix.apache.org Tue Feb 2 19:05:51 2016 Return-Path: X-Original-To: apmail-helix-commits-archive@minotaur.apache.org Delivered-To: apmail-helix-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7468F18153 for ; Tue, 2 Feb 2016 19:05:51 +0000 (UTC) Received: (qmail 48994 invoked by uid 500); 2 Feb 2016 19:05:51 -0000 Delivered-To: apmail-helix-commits-archive@helix.apache.org Received: (qmail 48954 invoked by uid 500); 2 Feb 2016 19:05:51 -0000 Mailing-List: contact commits-help@helix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@helix.apache.org Delivered-To: mailing list commits@helix.apache.org Received: (qmail 48945 invoked by uid 99); 2 Feb 2016 19:05:51 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Feb 2016 19:05:51 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id C00641A0139 for ; Tue, 2 Feb 2016 19:05:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.448 X-Spam-Level: X-Spam-Status: No, score=0.448 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.553, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id WM8mM4U6Bi77 for ; Tue, 2 Feb 2016 19:05:41 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with SMTP id E9AD942BC3 for ; Tue, 2 Feb 2016 19:05:40 +0000 (UTC) Received: (qmail 46756 invoked by uid 99); 2 Feb 2016 19:05:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Feb 2016 19:05:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 01FD32C1F5B for ; Tue, 2 Feb 2016 19:05:40 +0000 (UTC) Date: Tue, 2 Feb 2016 19:05:40 +0000 (UTC) From: "Greg Brandt (JIRA)" To: commits@helix.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HELIX-627) helix-ui "partitions" tab can't show assignment for FULL_AUTO resources MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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 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)