You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Attila Doroszlai (Jira)" <ji...@apache.org> on 2026/08/26 07:08:00 UTC
[jira] [Resolved] (HDDS-16283) Fix flakiness in trash root prepare failure test
[ https://issues.apache.org/jira/browse/HDDS-16283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Attila Doroszlai resolved HDDS-16283.
-------------------------------------
Fix Version/s: 2.3.0
Resolution: Fixed
> Fix flakiness in trash root prepare failure test
> ------------------------------------------------
>
> Key: HDDS-16283
> URL: https://issues.apache.org/jira/browse/HDDS-16283
> Project: Apache Ozone
> Issue Type: Improvement
> Reporter: Aryan Gupta
> Assignee: Aryan Gupta
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.3.0
>
>
> {{testMoveToTrashAbortTaskWhenTrashRootPrepareFails}} is flaky because it asserts that {{KeyLifecycleServiceMetrics#getNumSuccessTask()}} does not change. That metric is globally registered/shared, so concurrent lifecycle task execution in other parameterized runs can increment it, leading to intermittent failures (for example {{{}expected: <41> but was: <42>{}}}).
> The test has been updated to validate deterministic, local behavior instead of shared global metrics:
> * capture the created key,
> * inject trash-root preparation failure,
> * run {{{}LifecycleActionTask{}}},
> * assert expected failure logs are present,
> * assert the original key still exists and key count is unchanged.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org