haridsv commented on code in PR #8236:
URL: https://github.com/apache/hbase/pull/8236#discussion_r3241447290


##########
hbase-server/src/main/java/org/apache/hadoop/hbase/snapshot/SnapshotRegionLocator.java:
##########
@@ -119,6 +119,12 @@ public List<HRegionLocation> getAllRegionLocations() 
throws IOException {
     return rawLocations;
   }
 
+  @Override
+  public List<HRegionLocation> getRegionLocations(byte[] startKey, int limit) 
throws IOException {
+    // No need to page as region locations are already in-memory.
+    return getAllRegionLocations();
+  }

Review Comment:
   Sure, that works too, as long as you call out the fact that all 
implementation may not support it and that they should fallback to 
getAllRegionLocations.



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