-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Getting a warning logged on the Windows builds that the G2C.db file "in use by another process" when attempting to delete the temporary test repository files at the end of the test run -- despite the fact that the sub-process has already exited with a zero exit code and the sub-process log indicates it has destroyed the SzCoreEnvironment that opened the file.
This goes through the same native code to as Java to both open the SQLite G2C.db file as well as to close it (via calling Sz_destroy() and SzConfigMgr_destroy(). However, Java does not get any warnings or errors in deleting the repository directory (even when attempting to catch and log those warnings).
Possibilities left to investigate:
-
The attempt to log the Java warnings is not making it to the GitHub build logs and therefore forcing logging to a file that can be checked on developer workstation Windows build would fully confirm the assumption that Java is not getting the exception.
-
C# and Java could have different implementations on how they delete a file and maybe Java is not reporting the "file busy" warning OR possibly forcibly the deleting the file despite Windows reporting it is "in use"
-
C# and Java have different implementations on managing sub-processes and the sub-process may not actually be complete in C# (this seems unlikely since we have an exit code and the log shows it reaches the end)