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 2024/01/06 00:41:45 UTC

Re: [PR] HDDS-8830. Add admin CLI to list open files [ozone]

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

   > You can check out OmMetadataManagerImpl.getExpiredOpenKeys()
   > 
   > https://github.com/apache/ozone/blob/f4a3b0e64c0cb3f2debaded68dcc0b7573602837/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OmMetadataManagerImpl.java#L1808
   > 
   > 
   > to see how we tell a key has hsync or not. You shouldn't need to walk through the keyTable.
   
   As I can see it is using the same approach as mine to check whether a key is hsync'ed or not. AFAIK the metadata tag is the only way to do it at the moment. Plus `getExpiredOpenKeys` looks to be iterating over the entire `KeyTable`/`FileTable`.
   
   Again, the problem is that `OpenKeyTable` doen't have this metadata tag at all. If we can add that it will be much more efficient (both for `getExpiredOpenKeys` and this PR).


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