[
https://issues.apache.org/jira/browse/HDDS-13963?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chu Cheng Li updated HDDS-13963:
--------------------------------
Description:
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.
was:
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.
> 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
> Priority: Major
>
> 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]