smengcl commented on a change in pull request #1164: HDDS-1829 On OM
reload/restart OmMetrics#numKeys should be updated
URL: https://github.com/apache/hadoop/pull/1164#discussion_r307904331
##########
File path:
hadoop-hdds/common/src/main/java/org/apache/hadoop/utils/db/TypedTable.java
##########
@@ -205,6 +205,16 @@ public String getName() throws IOException {
return rawTable.getName();
}
+ @Override
+ public long getEstimatedKeyCount() throws IOException {
+ if (rawTable instanceof RDBTable) {
+ return rawTable.getEstimatedKeyCount();
+ }
+ throw new IllegalArgumentException(
+ "Unsupported operation getEstimatedKeyCount() on table type " +
+ rawTable.getClass().getCanonicalName());
Review comment:
Thanks for that. I've pushed a commit for this.
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]