[
https://issues.apache.org/jira/browse/HDDS-17535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18151206#comment-18151206
]
Aleksei Ieshin commented on HDDS-17535:
---------------------------------------
Hi [~deveshsingh], I'd like to pick this up if nobody is on it.
On the HDDS-11233 branch, \{{BlockManagerImpl#allocateBlock}} already falls
back to \{{creationFallbackTier}} when the bucket allows it, and
\{{isFallBack}} is reported per block. The gaps I see:
* Fallback happens on any \{{IOException}} from the preferred tier, not only
when that tier is unavailable (there's a TODO for this).
* A strict request that can't be met returns a generic error, not a distinct
"tier unavailable" error.
* Fallback is visible only per block and in the SCM audit log, not as a metric.
* Fallback is decided per block, so one key can end up on mixed tiers.
I'd write the contract here first, covering which failures allow fallback, the
error for strict requests, and reporting, then implement it in
\{{allocateBlock}} so HDDS-17536 and the balancers can apply the same rules.
Does that work for you?
> 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]