mapleFU commented on issue #2144:
URL: https://github.com/apache/kvrocks/issues/2144#issuecomment-1988265781

   I'm trying to implement this. During my impl, I found a problem that:
   
   1. Get random set size
   2. Get all indices, counting the random fetching indices
   3. Traverse the set
   
   The command 1-3 should be done in one snapshot, otherwise, the case might be:
   
   * Get all indices, size == 10
   * Random need to access 10th member
   * User delete an element
   * 10th cannot be fetched
   
   So, GetMetadata and traversing the set should be done in one rocksdb 
snapshot. Would you think this is safe and ok? @git-hulk @PragmaTwice 


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