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 E8A89D4D8 for ; Tue, 3 Jul 2012 22:14:34 +0000 (UTC) Received: (qmail 61777 invoked by uid 500); 3 Jul 2012 22:14:34 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 61744 invoked by uid 500); 3 Jul 2012 22:14:34 -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 61733 invoked by uid 99); 3 Jul 2012 22:14:34 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jul 2012 22:14:34 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 5E8EF142851 for ; Tue, 3 Jul 2012 22:14:34 +0000 (UTC) Date: Tue, 3 Jul 2012 22:14:34 +0000 (UTC) From: "Elliott Clark (JIRA)" To: issues@hbase.apache.org Message-ID: <1725841864.913.1341353674391.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1629761040.908.1341353434615.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (HBASE-6323) [replication] most of the source metrics are wrong when there's multiple slaves 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-6323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13406107#comment-13406107 ] Elliott Clark commented on HBASE-6323: -------------------------------------- bq.I'm not sure what's the right way to fix this since we can't have dynamic metrics We can. They are just annoying to make. But I think something like what we have with regions is probably the right thing. A dynamic set for every source and a rollup. > [replication] most of the source metrics are wrong when there's multiple slaves > ------------------------------------------------------------------------------- > > Key: HBASE-6323 > URL: https://issues.apache.org/jira/browse/HBASE-6323 > Project: HBase > Issue Type: Bug > Affects Versions: 0.92.1, 0.94.0 > Reporter: Jean-Daniel Cryans > Assignee: Elliott Clark > Fix For: 0.96.0, 0.94.2 > > > Most of the metrics in replication were written with 1 slave in mind but with multiple slaves the issue really shows. Most of the metrics are set directly: > {code} > public void enqueueLog(Path log) { > this.queue.put(log); > this.metrics.sizeOfLogQueue.set(queue.size()); > } > {code} > So {{sizeOfLogQueue}} is always showing the size of the queue that updated the metric last. > I'm not sure what's the right way to fix this since we can't have dynamic metrics. Merging them would work here but it wouldn't work so well with {{ageOfLastShippedOp}} since the age can be different and it definitely cannot be summed. > Assigning to Elliott since he seems to dig metrics these days. -- 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