[ 
https://issues.apache.org/jira/browse/HDDS-9434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18103611#comment-18103611
 ] 

Siyao Meng commented on HDDS-9434:
----------------------------------

{{testLoadJobsOnStartUp}} is failing again intermittently on master (2026-08):

{code}
[ERROR] 
org.apache.hadoop.ozone.om.snapshot.TestSnapshotDiffManager.testLoadJobsOnStartUp
 -- Time elapsed: 0.054 s <<< FAILURE!
org.opentest4j.AssertionFailedError: expected: <DONE> but was: <IN_PROGRESS>
        at 
org.apache.hadoop.ozone.om.snapshot.TestSnapshotDiffManager.testLoadJobsOnStartUp(TestSnapshotDiffManager.java:1145)
{code}

The wait added here (and later reworked from Awaitility to Ratis 
{{attempt(...)}} in HDDS-10102) targets the wrong signal: {{verify(spy, 
atLeast(1)).generateSnapshotDiffReport(...)}} is satisfied the moment the 
worker thread *enters* the method, but the mock answer writes {{DONE}} to the 
DB *inside* the call. The subsequent DB read then races and can observe the 
interim {{IN_PROGRESS}} status. Fix: poll the DB for the final status (wrap the 
{{assertEquals(DONE, ...)}} in the {{attempt(...)}} loop) instead of waiting on 
method entry. See also HDDS-10490.

Seen in:
 - 
https://github.com/adoroszlai/ozone-build-results/blob/master/2026/08/01/51798/integration-snapshot/hadoop-ozone/ozone-manager/org.apache.hadoop.ozone.om.snapshot.TestSnapshotDiffManager.txt


> Intermittent failure in TestSnapshotDiffManager#testLoadJobsOnStartUp
> ---------------------------------------------------------------------
>
>                 Key: HDDS-9434
>                 URL: https://issues.apache.org/jira/browse/HDDS-9434
>             Project: Apache Ozone
>          Issue Type: Bug
>    Affects Versions: 1.4.0
>            Reporter: Attila Doroszlai
>            Assignee: Sadanand Shenoy
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.4.0
>
>
> {code:title=https://github.com/adoroszlai/ozone-build-results/blob/master/2023/08/09/24682/unit/hadoop-ozone/ozone-manager/org.apache.hadoop.ozone.om.snapshot.TestSnapshotDiffManager.txt}
> org.apache.hadoop.ozone.om.snapshot.TestSnapshotDiffManager.testLoadJobsOnStartUp
>   Time elapsed: 1.04 s  <<< FAILURE!
> org.opentest4j.AssertionFailedError: expected: <DONE> but was: <IN_PROGRESS>
> ...
>   at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1141)
>   at 
> org.apache.hadoop.ozone.om.snapshot.TestSnapshotDiffManager.testLoadJobsOnStartUp(TestSnapshotDiffManager.java:1317)
> {code}
> Also happened today: 
> https://github.com/apache/ozone/actions/runs/6480021154/job/17595083551#step:5:2257
> [~swamirishi] [~sadanand_shenoy] can you please check?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to