[
https://issues.apache.org/jira/browse/HDDS-17535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18151208#comment-18151208
]
Devesh Kumar Singh commented on HDDS-17535:
-------------------------------------------
Thanks [~greenwich], yes please, go ahead. Your reading of allocateBlock
matches mine. Some scope notes so we don't overlap:
1. Which failures allow fallback. This is the core of the ticket. Today
WritableRatisContainerProvider rethrows a plain IOException, so the result code
is lost before allocateBlock sees it. HDDS-17820 ([PR
#12079|https://github.com/apache/ozone/pull/12079]) already keeps the last
SCMException there and classifies it as no_space / no_suitable_node / other.
Please reuse that, so that fallback happens only for "this tier has no space or
no suitable nodes", and not for safe mode, not-leader, timeouts or internal
errors.
2. Strict error. Agreed, but a distinct "tier unavailable" error means new SCM
and OM result codes, so please include the compatibility handling (older
clients, protolock) in the contract.
3. Metrics. Already covered: HDDS-17914 (successful fallback counter),
HDDS-17820 (failures by tier and reason) and HDDS-17819 (committed bytes with
fallback outcome). The contract can refer to these rather than add new ones.
4. Mixed tiers per key. Per-block fallback is the current design, and restoring
the preferred tier later is HDDS-17712. Please document per-block as the rule
unless we agree on a change here.
5. Other paths. The balancers must not fall back: Container Balancer and Disk
Balancer always stay within one storage type. Repair (HDDS-17536,
[#12063|https://github.com/apache/ozone/pull/12063]) has its own rule, SSD →
DISK only, applied when no SSD repair target exists. Please list each path's
rule in the contract, but limit the code change to the write path in
allocateBlock.
6. Overlap. HDDS-17712 (step 1) also edits the fallback branch in
BlockManagerImpl#allocateBlock, so let's coordinate there. For EC, please say
what happens until HDDS-16678 makes EC placement tier-aware; today EC always
uses the default tier.
Writing the contract here first sounds good. Happy to review it.
> 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
>
> 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]