[
https://issues.apache.org/jira/browse/HDDS-17535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18152673#comment-18152673
]
Aleksei Ieshin edited comment on HDDS-17535 at 11/30/26, 4:28 AM:
------------------------------------------------------------------
Thanks [~deveshsingh].
I checked about the *Decision 2* error codes, and there is no 100% clear
candidate so far
* *InvalidStorageClass* *400* exists, but it means "the storage class string
you sent is not valid". Here the class is valid and the tier is full. It would
send users to check their request.
* *QuotaExceeded 403* some of the s3 clients take it differently, for example
boto raises ClientEror, Java SDK throws S3Exception Hadoop S3A maps it to
AccessDeniedException.
* *503 ServiceUnavailable* is standard, and every SDK retries it with backoff.
* *507* same as for 403, clients handle it differently. For example Hadoop S3A
retries it, but s3cmd recognises as InsufficientStorage, but boto and Java SDK,
fails it fast.
I reckon we can use *400 InsufficientStorageTier:*
* it fails fast everywhere
* standard status family
* semantically "your request cannot be served"
was (Author: JIRAUSER311863):
Thanks [~deveshsingh]. I checked about the *Decision 2* error codes, and there
is no 100% clear candidate so far
* *InvalidStorageClass* *400* exists, but it means "the storage class string
you sent is not valid". Here the class is valid and the tier is full. It would
send users to check their request.
* *QuotaExceeded 403* some of the s3 clients take it differently, for example
boto raises ClientEror, Java SDK throws S3Exception Hadoop S3A maps it to
AccessDeniedException.
* *503 ServiceUnavailable* is standard, and every SDK retries it with backoff.
* *507* same as for 403, clients handle it differently. For example Hadoop S3A
retries it, but s3cmd recognises as InsufficientStorage, but boto and Java SDK,
fails it fast.
I reckon we can use *400 InsufficientStorageTier:*
* it fails fast everywhere
* standard status family
* semantically "your request cannot be served"
> 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.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]