You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by GitBox <gi...@apache.org> on 2021/06/28 10:28:14 UTC

[GitHub] [hbase] jojochuang commented on pull request #3426: HBASE-26032 Make HRegion.getStores() an O(1) operation

jojochuang commented on pull request #3426:
URL: https://github.com/apache/hbase/pull/3426#issuecomment-869568788


   Ok I came up with a hack to maintain backward compat:
   
   We can retain the return type of getStores. For HRegion, it returns a special List subclass that behaves just like a Collection: pass the Collection object, delegate operations to it, and reject any List-only operation.
   
   There is no operation in the HBase code that must require performing List operations on the stores. If a coprocessor need List semantics, it can easily convert to a real list.
   
   See if you guys like this approach.


-- 
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: issues-unsubscribe@hbase.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org