ChenSammi edited a comment on pull request #2432:
URL: https://github.com/apache/ozone/pull/2432#issuecomment-895764452


   I revisted aws s3 documents, it seems that aws put object API only returns 
the latest object version-id when versioning is 
enabled(https://docs.aws.amazon.com/AmazonS3/latest/userguide/AddingObjectstoVersioningEnabledBuckets.html)
 , and return null when versioning is disabled. 
   So I feel like we can make this " Return latest version of key location for 
client on createKey/createFile" a common logic, no need to depends on the 
getLatestVersionLocation value.  It is more closer to the aws s3 behavior. 
   For getLatestVersionLocation is used for key retrieve under versioning case, 
like the listObject in 
https://docs.aws.amazon.com/AmazonS3/latest/userguide/manage-objects-versioned-bucket.html.
  
   
   
   
   


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