comnetwork commented on code in PR #5168: URL: https://github.com/apache/hbase/pull/5168#discussion_r1173738044
########## hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceShipper.java: ########## @@ -366,20 +352,17 @@ void clearWALEntryBatch() { return; } } - LongAccumulator totalToDecrement = new LongAccumulator((a, b) -> a + b, 0); - entryReader.entryBatchQueue.forEach(w -> { - entryReader.entryBatchQueue.remove(w); - w.getWalEntries().forEach(e -> { - long entrySizeExcludeBulkLoad = ReplicationSourceWALReader.getEntrySizeExcludeBulkLoad(e); - totalToDecrement.accumulate(entrySizeExcludeBulkLoad); - }); - }); + long totalToDecrement = 0; Review Comment: @Apache9 , thanks for suggestion, already fixed it. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@hbase.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org