aryangupta1998 opened a new pull request, #11109:
URL: https://github.com/apache/ozone/pull/11109

   ## What changes were proposed in this pull request?
   
   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.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-16283
   
   ## How was this patch tested?
   
   Tested Manually.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to