Apache9 commented on a change in pull request #2095:
URL: https://github.com/apache/hbase/pull/2095#discussion_r458466134



##########
File path: 
hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionRegistry.java
##########
@@ -18,21 +18,36 @@
 package org.apache.hadoop.hbase.client;
 
 import java.io.Closeable;
+import java.util.List;
 import java.util.concurrent.CompletableFuture;
+import org.apache.hadoop.hbase.HRegionLocation;
+import org.apache.hadoop.hbase.RegionLocations;
 import org.apache.hadoop.hbase.ServerName;
 import org.apache.yetus.audience.InterfaceAudience;
 
 /**
  * Registry for meta information needed for connection setup to a HBase 
cluster. Implementations
- * hold cluster information such as this cluster's id, location of hbase:meta, 
etc..
- * Internal use only.
+ * hold cluster information such as this cluster's id, location of hbase:meta, 
etc.. Internal use
+ * only.
  */
 @InterfaceAudience.Private
 interface ConnectionRegistry extends Closeable {
 
+  /**
+   * Get location of meta region for the given {@code row}.
+   */
+  CompletableFuture<RegionLocations> locateMeta(byte[] row, RegionLocateType 
locateType);

Review comment:
       I do not think it is arbitrary. Before we have root table, meta location 
is here and user locations are elsewhere. The point here, is that, what things 
in HBase are called 'bootstraping' things. In the past it is meta, and now, it 
is root.
   
   And see my plan below, my plan is to store the bootstraping things on the HA 
masters, so do not want to envolve RS in, let's keep them within masters.




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