dlmarion commented on code in PR #3220:
URL: https://github.com/apache/accumulo/pull/3220#discussion_r1142065204
##########
core/src/main/java/org/apache/accumulo/core/clientImpl/TableOperationsImpl.java:
##########
@@ -1511,6 +1511,60 @@ public void online(String tableName, boolean wait)
}
}
+ @Override
+ public boolean isOnDemand(String tableName) throws AccumuloException,
TableNotFoundException {
+ EXISTING_TABLE_NAME.validate(tableName);
+
+ if (tableName.equals(MetadataTable.NAME) ||
tableName.equals(RootTable.NAME)) {
+ return false;
+ }
+
+ TableId tableId = context.getTableId(tableName);
+ TableState expectedState = context.getTableState(tableId, true);
+ return expectedState == TableState.ONDEMAND;
+ }
+
+ @Override
+ public void onDemand(String tableName)
+ throws AccumuloSecurityException, AccumuloException,
TableNotFoundException {
+ onDemand(tableName, false);
+ }
+
+ @Override
+ public void onDemand(String tableName, boolean wait)
Review Comment:
Good catch, I wasn't thinking about that when writing this, just trying to
create something functional. Updated in 836b227.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]