You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by GitBox <gi...@apache.org> on 2020/09/30 00:06:16 UTC
[GitHub] [hbase] saintstack commented on a change in pull request #2468: HBASE-25109 Add MR Counters to WALPlayer; currently hard to tell if i…
saintstack commented on a change in pull request #2468:
URL: https://github.com/apache/hbase/pull/2468#discussion_r497163970
##########
File path: hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/mapreduce/WALPlayer.java
##########
@@ -225,8 +245,10 @@ public void map(WALKey key, WALEdit value, Context context)
}
}
if (CellUtil.isDelete(cell)) {
+ context.getCounter(Counter.CELLS_WRITTEN).increment(1);
del.add(cell);
} else {
+ context.getCounter(Counter.CELLS_WRITTEN).increment(1);
put.add(cell);
Review comment:
Makes sense.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org