Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A3EBA200D51 for ; Thu, 23 Nov 2017 01:40:16 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id A22C0160C10; Thu, 23 Nov 2017 00:40:16 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id EAB48160BFD for ; Thu, 23 Nov 2017 01:40:15 +0100 (CET) Received: (qmail 11838 invoked by uid 500); 23 Nov 2017 00:40:15 -0000 Mailing-List: contact commits-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 commits@hbase.apache.org Received: (qmail 11829 invoked by uid 99); 23 Nov 2017 00:40:15 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Nov 2017 00:40:15 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 47775DFC2F; Thu, 23 Nov 2017 00:40:13 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: garyh@apache.org To: commits@hbase.apache.org Message-Id: <97e048d9c5b34cb4932b17c7753a5190@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: hbase git commit: HBASE-19332 DumpReplicationQueues misreports total WAL size Date: Thu, 23 Nov 2017 00:40:13 +0000 (UTC) archived-at: Thu, 23 Nov 2017 00:40:16 -0000 Repository: hbase Updated Branches: refs/heads/master 6f0c9fbfd -> cdc2bb17f HBASE-19332 DumpReplicationQueues misreports total WAL size Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/cdc2bb17 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/cdc2bb17 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/cdc2bb17 Branch: refs/heads/master Commit: cdc2bb17ff38dcbd273cf501aea565006e995a06 Parents: 6f0c9fb Author: Gary Helmling Authored: Wed Nov 22 11:42:01 2017 -0800 Committer: Gary Helmling Committed: Wed Nov 22 16:25:12 2017 -0800 ---------------------------------------------------------------------- .../hbase/replication/regionserver/DumpReplicationQueues.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/cdc2bb17/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/DumpReplicationQueues.java ---------------------------------------------------------------------- diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/DumpReplicationQueues.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/DumpReplicationQueues.java index fdb5559..ff5e5c7 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/DumpReplicationQueues.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/DumpReplicationQueues.java @@ -390,7 +390,7 @@ public class DumpReplicationQueues extends Configured implements Tool { * return total size in bytes from a list of WALs */ private long getTotalWALSize(FileSystem fs, List wals, String server) throws IOException { - int size = 0; + long size = 0; FileStatus fileStatus; for (String wal : wals) {