You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2020/01/10 17:36:51 UTC
[GitHub] [accumulo] milleruntime commented on a change in pull request
#1472: Update ListVolumesUsed to support root table metadata (#1350)
milleruntime commented on a change in pull request #1472: Update ListVolumesUsed to support root table metadata (#1350)
URL: https://github.com/apache/accumulo/pull/1472#discussion_r365349469
##########
File path: server/base/src/main/java/org/apache/accumulo/server/util/ListVolumesUsed.java
##########
@@ -131,7 +113,11 @@ private static void listTable(Ample.DataLevel level, ServerContext context) thro
}
public static void listVolumes(ServerContext context) throws Exception {
- listZookeeper(context);
+ try {
+ listTable(Ample.DataLevel.ROOT, context);
+ } catch (UnsupportedOperationException ex) {
+ // print nothing if no table name exists
+ }
Review comment:
Why are you suppressing the error here? You could just let the error be thrown, like the other calls to ```listTable```
----------------------------------------------------------------
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
With regards,
Apache Git Services