dlmarion commented on code in PR #2910: URL: https://github.com/apache/accumulo/pull/2910#discussion_r960780534
########## core/src/main/java/org/apache/accumulo/core/clientImpl/TableOperationsImpl.java: ########## @@ -2011,6 +2015,34 @@ public ImportDestinationArguments importDirectory(String directory) { return new BulkImport(directory, context); } + @Override + public TimeType getTimeType(final String tableName) throws TableNotFoundException { + if (tableName.equals(RootTable.NAME)) { + throw new IllegalArgumentException("accumulo.root table has no TimeType"); + } + String systemTableToCheck = + MetadataTable.NAME.equals(tableName) ? RootTable.NAME : MetadataTable.NAME; + final Scanner scanner = context.createScanner(systemTableToCheck, Authorizations.EMPTY); Review Comment: suggest moving this line to right before scanner is used and put in try-with-resources block. -- 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: notifications-unsubscr...@accumulo.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org