Chu Cheng Li created HDDS-13963:
-----------------------------------

             Summary: Implement Atomic Create-If-Not-Exists via Generation 
Sentinel
                 Key: HDDS-13963
                 URL: https://issues.apache.org/jira/browse/HDDS-13963
             Project: Apache Ozone
          Issue Type: Sub-task
          Components: OM
            Reporter: Chu Cheng Li
            Assignee: Chu Cheng Li


Extends the `expectedDataGeneration` logic in Ozone Manager to support atomic 
"create-if-not-exists" semantics.

*   Enables passing `-1` as the `expectedDataGeneration`.
*   When set to `-1`, the `validateAtomicRewrite` logic (in both Create and 
Commit phases) strictly enforces that the target key must **not** exist, 
throwing `KEY_ALREADY_EXISTS` otherwise.
*   This establishes the core OM support required for conditional 
"If-None-Match" requests, allowing upper layers (like S3 Gateway) to implement 
these features with minimal changes to the underlying protocol.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to