Our automation cannot delete fuseHome (fuse on karaf) directory after test on w2k19.
Caused by: java.nio.file.AccessDeniedException: C:\fuse\fuse-karaf-7.6.0.fuse-760025-redhat-00001\patches\.management\history\objects\pack\pack-0ec3b90052cfbd0e05958992a8f181dc74a42a9f.idx
Above error is thrown in test case where I'm patching fuse-karaf 7.6 to 7.8.Delete operation is performed using org.apache.commons.io after successful patch.
FileUtils.forceDelete
code is here link
We suspect that actual problem is because of fuse-karaf-7.6.0.fuse-760025-redhat-00001\patches\.management\history directory is a GIT repository which remains locked for JVM on Windows even after stopping Karaf.
You can trigger reproducer and test changes here. You can also put the machine from test offline to keep it for manual testing.
This issue is blocking patch mechanism tests on windows.