[
https://issues.apache.org/jira/browse/HDDS-16162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sammi Chen updated HDDS-16162:
------------------------------
Parent: HDDS-8342
Issue Type: Sub-task (was: Improvement)
> Fail lifecycle task when KeyLifecycleService cannot prepare trash root
> ----------------------------------------------------------------------
>
> Key: HDDS-16162
> URL: https://issues.apache.org/jira/browse/HDDS-16162
> Project: Apache Ozone
> Issue Type: Sub-task
> Reporter: Aryan Gupta
> Assignee: Aryan Gupta
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.3.0
>
>
> When lifecycle expiration is configured to move expired keys to trash,
> {{KeyLifecycleService}} should fail fast if it cannot prepare the trash root
> directory for a bucket.
> Today, if trash root preparation fails, the task can continue evaluating the
> bucket even though move-to-trash cannot succeed for that run. This wastes
> work and delays a clean retry path.
> Change:
> * If trash root initialization fails in {{{}moveToTrash{}}}, abort the
> current bucket lifecycle task immediately (propagate failure).
> * Keep existing per-key rename failure behavior unchanged (log and continue).
> Benefits:
> * Avoids wasted lifecycle evaluation when trash is not
> writable/initializable.
> * Makes failure mode explicit and visible in task logs/metrics.
> * Lets the next periodic lifecycle run retry the bucket from normal state
> without partial “pretend progress”.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]