[
https://issues.apache.org/jira/browse/HDDS-13963?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wei-Chiu Chuang updated HDDS-13963:
-----------------------------------
Fix Version/s: 2.2.0
Resolution: Fixed
Status: Resolved (was: Patch Available)
> Atomic Create-If-Not-Exists
> ---------------------------
>
> 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
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.2.0
>
>
> 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]