sadanand48 commented on PR #3969:
URL: https://github.com/apache/ozone/pull/3969#issuecomment-1323783149

   Thanks @xBis7  for your comments. 
   
   > If we were to accept this change then we would have to modify the whole 
system.
   
   
   
   Currently Ozone directory create doesn’t account to an increment in the 
`usedNamespace` field of a bucket although delete directory decrements , the 
`usedNamespace`. I had also filed this 
[issue](https://issues.apache.org/jira/browse/HDDS-4854) once.
   Although when I checked the definition of namespace online in hadoop context 
I got
   
   > In Hadoop we refer to a Namespace as a file or directory which is handled 
by the Name Node
   
   I agree directories are zero sized keys and so they don't account for 
`usedBytes` calculation, but I'm not very sure about the namespace. If we don't 
consider it, we shouldn't decrement it as part of delete.
   
   cc @ChenSammi @sumitagrawl any thoughts?
   


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

Reply via email to