From 20d811121fb38ea2fc3871dcf4b03593bd4d6b7e Mon Sep 17 00:00:00 2001 From: Gary Helmling Date: Wed, 22 Nov 2017 11:42:01 -0800 Subject: [PATCH] HBASE-19332 DumpReplicationQueues misreports total WAL size --- .../hbase/replication/regionserver/DumpReplicationQueues.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ee909041b25..631b6c84bf9 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 @@ -370,7 +370,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) {