Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1511AD69C for ; Sun, 8 Jul 2012 22:11:36 +0000 (UTC) Received: (qmail 25760 invoked by uid 500); 8 Jul 2012 22:11:35 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 25724 invoked by uid 500); 8 Jul 2012 22:11:35 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 25703 invoked by uid 99); 8 Jul 2012 22:11:35 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Jul 2012 22:11:35 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id B37A8141899 for ; Sun, 8 Jul 2012 22:11:35 +0000 (UTC) Date: Sun, 8 Jul 2012 22:11:35 +0000 (UTC) From: "Zhihong Ted Yu (JIRA)" To: issues@hbase.apache.org Message-ID: <462003005.20844.1341785495737.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (HBASE-3909) Add dynamic config MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-3909?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13409084#comment-13409084 ] Zhihong Ted Yu commented on HBASE-3909: --------------------------------------- I found a copy of ClusterConfigTracker in patch v1. Please add javadoc for this class. For hasClusterConfigAvailableInZK(), maybe a better name is isClusterConfigAvailableInZK(). {code} + int configNodes = ZKUtil.getNumberOfChildren(watcher, watcher.clusterConfigZNode); + byte[] data = ZKUtil.getData(watcher, watcher.clusterConfigZNode); + if (data != null && data.length > 0 && configNodes > 0) { {code} The check of configNodes > 0 should be performed before the call to ZKUtil.getData(). If it is 0, return false directly. {code} + public boolean updateClusterConfig(String configKey, String configValue) { {code} Consider creating a method similar to the above which accepts collection of key/value pairs so that more than one key/value would be updated in one call. Since I haven't seen ClusterConfigTracker in patch v2, some of the above comments may not apply. > Add dynamic config > ------------------ > > Key: HBASE-3909 > URL: https://issues.apache.org/jira/browse/HBASE-3909 > Project: HBase > Issue Type: Bug > Reporter: stack > Fix For: 0.96.0 > > Attachments: 3909-v1.patch, 3909.v1, HBase Cluster Config Details.xlsx, patch-v2.patch > > > I'm sure this issue exists already, at least as part of the discussion around making online schema edits possible, but no hard this having its own issue. Ted started a conversation on this topic up on dev and Todd suggested we lookd at how Hadoop did it over in HADOOP-7001 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira