guluo2016 commented on code in PR #7410:
URL: https://github.com/apache/hbase/pull/7410#discussion_r2454756544
##########
hbase-client/src/main/java/org/apache/hadoop/hbase/client/RawAsyncHBaseAdmin.java:
##########
@@ -1339,6 +1372,7 @@ private CompletableFuture<Void> compact(TableName
tableName, byte[] columnFamily
}
if (locations == null || locations.isEmpty()) {
future.completeExceptionally(new
TableNotFoundException(tableName));
+ return;
Review Comment:
In here, return early to prevent further execution when locations is null
--
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]