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

   ## What changes were proposed in this pull request?
   
   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.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-17514
   
   ## How was this patch tested?
   
   CI (10x10 pass: https://github.com/ivandika3/ozone/actions/runs/40843334616)
   


-- 
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