xBis7 commented on PR #3969: URL: https://github.com/apache/ozone/pull/3969#issuecomment-1326764346
> For FSO bucket, these "missing paths will be created automatically, I think these automatically created directories should increase Usednamespace. @xichen01 From what I saw, `usedNamespace` value doesn't increment in this case. > But for the Object bucket, these "missing paths" will not be created, they are not real, and should not increase Usednamespace I agree. > Do you have any suggestions? You could get the `BucketInfo` and from that, check the `BucketLayout`. A LEGACY bucket with `ozone.om.enable.filesystem.paths` set to false, acts exactly like an OBS bucket, so in addition to the layout you should also check configs. We should count directories only for FSO buckets and LEGACY buckets with `ozone.om.enable.filesystem.paths` set to true. @sadanand48 any thoughts on this? -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
