frostruan commented on code in PR #5692:
URL: https://github.com/apache/hbase/pull/5692#discussion_r1765307710


##########
hbase-client/src/main/java/org/apache/hadoop/hbase/client/RawAsyncHBaseAdmin.java:
##########
@@ -1071,14 +1096,29 @@ CompletableFuture<FlushRegionResponse> 
flushRegionInternal(byte[] regionName, by
           .completeExceptionally(new 
NoServerForRegionException(Bytes.toStringBinary(regionName)));
         return;
       }
-      addListener(flush(serverName, location.getRegion(), columnFamily, 
writeFlushWALMarker),
-        (ret, err2) -> {
-          if (err2 != null) {
-            future.completeExceptionally(err2);
-          } else {
-            future.complete(ret);
-          }
-        });
+      TableName tableName = location.getRegion().getTable();
+      addListener(getDescriptor(tableName), (tDesc, error2) -> {

Review Comment:
   Agree. I think an NoSuchColumnFamilyException here would be better too.



-- 
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]

Reply via email to