github-actions[bot] opened a new pull request, #7408:
URL: https://github.com/apache/gravitino/pull/7408

   ### What changes were proposed in this pull request?
   
   Ensure that the H2 backend is properly closed before deleting the database 
files during test teardown. This avoids file lock exceptions (e.g., 
`java.nio.file.FileSystemException 
/tmp/gravitino_jdbc_entityStore_95fc02305b9b44a8b1e515d29d453989/testdb.mv.db 
The file is being used by another process; the operation cannot access it.`) 
caused by open connections when attempting to delete `.mv.db` files.
   
   
   ### Why are the changes needed?
   
   Fix: test teardown may fail on platforms like Windows due to file locks if 
the database is not shut down before deleting files. This change improves test 
reliability and aligns with cross-platform resource management best practices.
   Fix: #7406 
   
   
   ### Does this PR introduce any user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Ran the affected test suites locally on both Windows and Linux. Verified 
that no file lock or deletion failures occur after calling `backend.close()` 
before file deletion.


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

Reply via email to