Ivan Andika created HDDS-17514:
----------------------------------

             Summary: Intermittent failure in TestRocksDatabaseGetUpdatesSince
                 Key: HDDS-17514
                 URL: https://issues.apache.org/jira/browse/HDDS-17514
             Project: Apache Ozone
          Issue Type: Sub-task
            Reporter: Ivan Andika
            Assignee: Ivan Andika


https://github.com/ivandika3/ozone/actions/runs/40436443731/job/121974763832

The errors affect {{closesDbWithoutRetryOnOtherErrors}} cases {{[6]}} and 
{{{}[8]{}}}. JUnit could not delete their temporary directories 
({{{}DirectoryNotEmptyException{}}}).

The code shows a cleanup race:
 * RocksDB error handling starts a background {{DBCloser}} thread and 
immediately marks the database closed.
 * Test teardown in TestRocksDatabaseGetUpdatesSince.java calls 
{{{}db.close(){}}}, which returns immediately because that flag is already set.
 * JUnit deletes the directory while native database cleanup may still be 
running.

The fix should make teardown wait for asynchronous close completion before 
releasing resources and deleting the directory.

 



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

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

Reply via email to