You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "smengcl (via GitHub)" <gi...@apache.org> on 2023/05/03 00:23:22 UTC

[GitHub] [ozone] smengcl commented on pull request #4573: HDDS-6985. Add command to list buckets which have snapshots

smengcl commented on PR #4573:
URL: https://github.com/apache/ozone/pull/4573#issuecomment-1532308587

   > We can have have large number of buckets in the system, but we can have smaller number of snapshots. In such a case, its easier to iterate over SnapshotInfo Table and just list the buckets from there.
   
   @prashantpogde I think that can be considered further optimization. The currently approach with `listSnapshot` on each bucket is not the most efficient. I agree with @hemantk-12 that we can make the bucket's snapshot existence check O(1) by building some reverse mapping in `OmSnapshotManager`. This might require some more digging. Maybe in another jira.


-- 
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@ozone.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org