[ 
https://issues.apache.org/jira/browse/HDDS-17535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18152684#comment-18152684
 ] 

Aleksei Ieshin edited comment on HDDS-17535 at 11/30/26, 6:02 AM:
------------------------------------------------------------------

[~deveshsingh] Done. The new version of the contract document has been added, 
with the following changes:

* *1 Terms*: policy resolved {{KeyArgs}} -> open key's stored policy -> bucket 
-> default (HDDS-17374); a bucket policy change does not move in-flight keys. 
{{allowFallbackStoragePolicy}} default true kept, with the reason.
* *2 Guarantees*: added the agreed shape of the {{allocateBlock}} fallback 
branch, with the lines for HDDS-17535, HDDS-17914, HDDS-17712 and HDDS-16678 
marked.
* *3 Reported placement*: {{storageTier}} is the container's physical tier (no 
"from the pipeline"). HDDS-17712 follows Option 2: {{storageTier}} stays 
physical, optional {{intendedTier}} on fallback containers, 
{{NEEDS_TIER_PROMOTION}} on closed containers, selection honours 
{{intendedTier}} both ways. {{isFallBack}} set only in {{allocateBlock}}. A 
tier SCM did not report is absent and reported {{UNKNOWN}}, never DISK; the 
{{hasStorageTier()}} decode fix is in scope.
* *4 Errors*: S3 error is 400 {{InsufficientStorageTier}} 
({{HTTP_BAD_REQUEST}}, own {{case}} in {{translateResultCode}}). OM gate is 
{{STORAGE_POLICY_SUPPORT}} 107. Mapping sits next to the safe-mode and 
{{PIPELINE_NOT_FOUND}} mappings; the client's block-allocation retry must not 
retry the new code. HDDS-17534 owns the HDDS version and gate mechanism; this 
ticket only calls the gate.
* *5 Observability*: HDDS-17819 merged; HDDS-17914 lands with HDDS-16678 for 
RATIS and EC.
* *6 Granularity*: policy fixed per key; {{allowFallbackStoragePolicy}} re-read 
per allocation; a bucket policy change moves nothing (migration is HDDS-17059 / 
HDDS-17073).
* *7 Other paths*: EC follows the same rules via PR #12179, no EC guard; repair 
row states the shared intent with the write path (capacity or suitability only; 
new placement codes go into the classification table); promotion row rewritten 
for Option 2 with the tier-aware deletion prerequisite.
* *8 Dependencies*: owner column removed; rows for HDDS-17535, 17712, 16678, 
17914, 17819 updated.
* *Removed*: base-commit line, "changes" section, open questions (all settled), 
attributions.

Jira doesn’t support updating existing attachments, so this is now v1.) 
[^hdds-17535-contract-reviewd-1.md]


was (Author: JIRAUSER311863):
[~deveshsingh]  Done. Please see the new version of the contract attached (Jira 
doesn't support the existing file update so it's v1 now). 
[^hdds-17535-contract-reviewd-1.md]

> Define strict and fallback storage-tier allocation contract
> -----------------------------------------------------------
>
>                 Key: HDDS-17535
>                 URL: https://issues.apache.org/jira/browse/HDDS-17535
>             Project: Apache Ozone
>          Issue Type: Sub-task
>          Components: Ozone Filesystem
>            Reporter: Devesh Kumar Singh
>            Assignee: Aleksei Ieshin
>            Priority: Major
>         Attachments: StoragePolicyRepairFallBackDesignContract.md, 
> hdds-17535-contract-reviewd-1.md, hdds-17535-contract-reviewd.md
>
>
> Specify and implement preferred tier, authorized fallback, unavailable-tier 
> errors, selection reporting and interaction with RATIS/EC placement. 
> *Reason:* Even a fully upgraded cluster can be unable to satisfy placement 
> intent; finalization is not capacity validation. 
> *Acceptance criteria:* Strict requests fail when infeasible; fallback uses 
> only permitted tiers; physical choices observable; policy-free behavior 
> unchanged.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

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

Reply via email to