danny0405 commented on PR #10002:
URL: https://github.com/apache/hudi/pull/10002#issuecomment-1818193207

   Thanks for the contribution @zhuanshenbsj1 , I'm not sure why the read/write 
lock changes are introduced, can we just implement another interface 
`getAllFileGroupsStatelessly(String partition)` on fs view similar with 
`getAllFileGroups(String partiton)`, in this method it does 2 steps to load a 
file group.
   
   - if the partition is already in the file group, just return it;
   - if it is not, load the file group on the fly, but we do not cache it in 
the file group mapping of the fs view.
   
   The clean can just use this method for cleaning.


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