Apache9 commented on pull request #3899:
URL: https://github.com/apache/hbase/pull/3899#issuecomment-986042904


   I think the intention here is that, for a memstore snapshot, it will never 
change, so we do not need to create a scanner for it every time, just reuse the 
same one.
   
   So here, I prefer we introduce a DelegateKeyValueScanner, which will 
delegate all the methods to the segment scanner, except the close method. And 
once the snapshot itself is closed, we will call the close method of the actual 
segment scanners.
   
   WDYT?
   
   Thanks.


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