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

Aleksei Ieshin edited comment on HDDS-17535 at 11/27/26, 7:36 AM:
------------------------------------------------------------------

[~deveshsingh] Here is the contract, short version. The full text is attached 
as [^hdds-17535-contract-reviewd.md] I replaced the long comment with this one.

*Decisions*
 # *Fallback* happens only when the bucket allows it *and* the preferred-tier 
attempt failed for {{no_space}} or {{{}no_suitable_node{}}}, classified by 
result code exactly as HDDS-17820 does. Safe mode, not-leader, timeouts and 
internal errors never fall back. One attempt on the fallback tier, never a 
third tier.
 # {*}Strict error{*}: a strict request gets the preferred tier or fails with a 
new result code {{STORAGE_TIER_UNAVAILABLE}} (SCM and OM), S3 
{{StorageTierUnavailable}} HTTP 507. Appended to the enums 
(protolock-compatible), sent only after HDDS and OM finalization; old clients 
fail safe because {{status}} is a required proto2 field. The client's 
block-allocation retry (HDDS-16712) must not retry it.
 # {*}Reporting{*}: {{storageTier}} on the block is the physical tier at 
allocation, taken from the pipeline; {{isFallBack}} is set only in the fallback 
branch; the key location is a write-time snapshot, not updated by later moves. 
HDDS-17819 and HDDS-17712 build on these two fields.
 # {*}Granularity{*}: per block, as today. A bucket policy change moves 
nothing; that is HDDS-17073.
 # {*}Other paths{*}: balancers never fall back; repair retries SSD to DISK 
only when no SSD target exists (HDDS-17536); mis-replication is strict; EC 
follows the same rules once HDDS-16678 lands.

*Open points*
 # The fallback branch of {{allocateBlock}} is touched by this ticket, 
HDDS-17914, HDDS-17712 and HDDS-16678. Can we agree its shape here before the 
PRs?
 # {{allowFallbackStoragePolicy}} defaults to true. I propose to keep it.
 # Repair falls back only on {{{}FAILED_TO_FIND_SUITABLE_NODE{}}}, the write 
path on the whole capacity set. Align, or accept the difference?
 # HDDS-17534 (HDDS version) is open. Should this ticket add the version, or 
wait?


was (Author: JIRAUSER311863):
[~deveshsingh] Here is the contract, short version. The full text is attached 
as I replaced the long comment with this one.

*Decisions*
# *Fallback* happens only when the bucket allows it *and* the preferred-tier 
attempt failed for {{no_space}} or {{no_suitable_node}}, classified by result 
code exactly as HDDS-17820 does. Safe mode, not-leader, timeouts and internal 
errors never fall back. One attempt on the fallback tier, never a third tier.
# *Strict error*: a strict request gets the preferred tier or fails with a new 
result code {{STORAGE_TIER_UNAVAILABLE}} (SCM and OM), S3 
{{StorageTierUnavailable}} HTTP 507. Appended to the enums 
(protolock-compatible), sent only after HDDS and OM finalization; old clients 
fail safe because {{status}} is a required proto2 field. The client's 
block-allocation retry (HDDS-16712) must not retry it.
# *Reporting*: {{storageTier}} on the block is the physical tier at allocation, 
taken from the pipeline; {{isFallBack}} is set only in the fallback branch; the 
key location is a write-time snapshot, not updated by later moves. HDDS-17819 
and HDDS-17712 build on these two fields.
# *Granularity*: per block, as today. A bucket policy change moves nothing; 
that is HDDS-17073.
# *Other paths*: balancers never fall back; repair retries SSD to DISK only 
when no SSD target exists (HDDS-17536); mis-replication is strict; EC follows 
the same rules once HDDS-16678 lands.

*Open points*
# The fallback branch of {{allocateBlock}} is touched by this ticket, 
HDDS-17914, HDDS-17712 and HDDS-16678. Can we agree its shape here before the 
PRs?
# {{allowFallbackStoragePolicy}} defaults to true. I propose to keep it.
# Repair falls back only on {{FAILED_TO_FIND_SUITABLE_NODE}}, the write path on 
the whole capacity set. Align, or accept the difference?
# HDDS-17534 (HDDS version) is open. Should this ticket add the version, or 
wait?


> 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
>            Priority: Major
>         Attachments: 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