Skip to content

Need to investigate "file in use" warning on Windows SzConfigRetryableTest execution #148

@barrycaceres

Description

@barrycaceres

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:

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

  2. 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"

  3. 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)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions