bharatviswa504 edited a comment on pull request #1677:
URL: https://github.com/apache/ozone/pull/1677#issuecomment-746688407


   > > > The default will be -2, all older buckets will have -2, new buckets 
created after this feature will have -1. So, if some one sets >quota on older 
buckets in this way, we can figure it out, just an idea saying here.
   > > 
   > > 
   > > If we want to disallow the quota support for older buckets, one idea to 
do at code level.
   > 
   > User using old Ozone version may still has the desire to use the new Quota 
feature. It's better not shut the door completely.
   > @adoroszlai , I'm not sure if it's feasible that we provide a option of 
calculating the bytesInUsed for each bucket during 1.0.0 -> 1.1. upgrade to 
user? So that user has the choice either tolerate the inaccurate bytesInUsed or 
a relative longer upgrade time to get accurate bytesInUsed of buckets.
   
   @ChenSammi Above idea is to detect older buckets/volumes in the Ozone 
cluster, from discussion as it is said not recommended, said we can fail the 
operation But, if we want to support, when they setQuota, we can know this is 
an old bucket, we can say a warning message to the user, older keys are not 
considered.
   
   I am fine with whatever way we go, if we clearly document the behavior it 
will not be confusing to end-users.


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

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