Apache9 commented on a change in pull request #1774: URL: https://github.com/apache/hbase/pull/1774#discussion_r436485144
########## File path: hbase-protocol-shaded/src/main/protobuf/server/master/Master.proto ########## @@ -1284,4 +1307,16 @@ service ClientMetaService { * Get current meta replicas' region locations. */ rpc GetMetaRegionLocations(GetMetaRegionLocationsRequest) returns(GetMetaRegionLocationsResponse); + + /** + * Get meta region locations for a given row + */ + rpc LocateMetaRegion(LocateMetaRegionRequest) + returns(LocateMetaRegionResponse); + + /** + * Get all meta regions locations + */ + rpc GetAllMetaRegionLocations(GetAllMetaRegionLocationsRequest) + returns(GetAllMetaRegionLocationsResponse); Review comment: I think for now it is fine? Later we could add something like prefetch to the protobuf message if we want to load more than 1 regions per call. Keep the interface simple is important for implementing cache server. In general, if we only support these two methods, we could just use an in memory map to cache the locations(just like waht we have done in client side meta cache), but if we want to support Scan, then probably we can only make use of a whole HRegion implementation... ---------------------------------------------------------------- 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: us...@infra.apache.org