Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-15381

Unable to delete fuseHome from Java on Windows 2019

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • fuse-7.8-GA
    • Karaf, Patching
    • None
    • False
    • False
    • % %
    • Undefined

      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.

      clue 1

      clue 2

      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.

              vhais Vratislav Hais (Inactive)
              ecervena@redhat.com Emil Cervenan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: