peterxcli opened a new pull request, #10182:
URL: https://github.com/apache/ozone/pull/10182

   ## What changes were proposed in this pull request?
   
   If-Match is handled on create using only `KeyArgs`: 
`validateAndRewriteIfMatchAsExpectedGeneration` checks the ETag against the DB 
key, then folds that into `expectedDataGeneration` and clears 
`KeyArgs.expectedETag` before `prepareFileInfo`. So `OmKeyInfo` never needed to 
carry the ETag; commit validation uses `expectedDataGeneration` only (see 
`validateAtomicRewrite` in `OMKeyCommitRequest`). The tests were already 
asserting `openKeyInfo.getExpectedETag() == null`.
   
   ## What is the link to the Apache JIRA
   
   - https://github.com/apache/ozone/pull/10023
   - issues.apache.org/jira/browse/HDDS-13919
   
   ## How was this patch tested?
   
   existing tests


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