huaxiangsun commented on a change in pull request #2759:
URL: https://github.com/apache/hbase/pull/2759#discussion_r545372145



##########
File path: 
hbase-client/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java
##########
@@ -279,7 +279,9 @@ public static HRegionLocation getRegionLocation(Connection 
connection, byte[] re
       parsedInfo = parseRegionInfoFromRegionName(regionName);
       row = getMetaKeyForRegion(parsedInfo);
     } catch (Exception parseEx) {
-      // Ignore. This is used with tableName passed as regionName.
+      // If it is not a valid regionName(i.e, tableName), it needs to return 
null here
+      // as querying meta table wont help.

Review comment:
       I think non-regionName input comes from hbase shell, where user can 
input table name. 




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


Reply via email to