Return-Path: X-Original-To: apmail-hbase-dev-archive@www.apache.org Delivered-To: apmail-hbase-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9BB96197AA for ; Fri, 29 Apr 2016 23:56:14 +0000 (UTC) Received: (qmail 43145 invoked by uid 500); 29 Apr 2016 23:56:13 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 42973 invoked by uid 500); 29 Apr 2016 23:56:13 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 42902 invoked by uid 99); 29 Apr 2016 23:56:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Apr 2016 23:56:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 18A832C1F5D for ; Fri, 29 Apr 2016 23:56:13 +0000 (UTC) Date: Fri, 29 Apr 2016 23:56:13 +0000 (UTC) From: "Enis Soztutar (JIRA)" To: dev@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HBASE-15740) Replication source.shippedKBs metric is undercounting because it is in KB MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Enis Soztutar created HBASE-15740: ------------------------------------- Summary: Replication source.shippedKBs metric is undercounting because it is in KB Key: HBASE-15740 URL: https://issues.apache.org/jira/browse/HBASE-15740 Project: HBase Issue Type: Sub-task Reporter: Enis Soztutar Assignee: Enis Soztutar Fix For: 2.0.0, 1.3.0, 1.4.0 In a cluster where there is replication going on, I've noticed that this is always 0: {code} "source.shippedKBs" : 0, {code} Looking at the source reveals why: {code} metrics.shipBatch(currentNbOperations, currentSize / 1024, currentNbHFiles); {code} It is always undercounting because we discard remaining bytes after KB boundary. This is specially a problem when we are always shipping small batches <1KB. -- This message was sent by Atlassian JIRA (v6.3.4#6332)