bharathv commented on a change in pull request #995: HBASE-23055 Alter
hbase:meta
URL: https://github.com/apache/hbase/pull/995#discussion_r363618587
##########
File path:
hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java
##########
@@ -948,22 +950,13 @@ protected Void waitOperationResult(long deadlineTs)
throws IOException, TimeoutE
@Override
public boolean isTableEnabled(final TableName tableName) throws IOException {
checkTableExists(tableName);
- return executeCallable(new RpcRetryingCallable<Boolean>() {
- @Override
- protected Boolean rpcCall(int callTimeout) throws Exception {
- TableState tableState =
MetaTableAccessor.getTableState(getConnection(), tableName);
- if (tableState == null) {
- throw new TableNotFoundException(tableName);
- }
- return tableState.inStates(TableState.State.ENABLED);
- }
- });
+ return this.connection.getTableState(tableName).isEnabled();
Review comment:
nit: is this change in behavior intentional? Retrying -> non-retrying
----------------------------------------------------------------
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