Hello,

       

      When cancelling a p4 sync, the files are locked and it is not possible to run another build until restarting Jenkins service.

      Tested with latest P4 plugin (1.11.4) and the issue is reproducible 100% in our environment.

      This issue seems very similar to https://issues.jenkins.io/browse/JENKINS-37487 which has been marked as resolved.

       

      Could you please help fixing the issue?

       

      [Pipeline] End of Pipeline
      ERROR: P4: Task Exception: java.io.IOException: Unable to delete file: C:\Jenkins\workspace\Vulcan\1.7\Unity_2
      Finished: FAILURE
      

      thanks a lot,

      Marius

          [JENKINS-65418] Cancelling p4 sync results in locked files

          Marius created issue -
          Marius made changes -
          Description Original: Hello,

           

          When cancelling a p4 sync, the files are locked and it is not possible to run another build until restarting Jenkins service.

          Tested with latest P4 plugin (1.11.4) and the issue is reproducible 100% in our environment.

          Could you please help fixing the issue?

           
          {code:java}
          [Pipeline] End of Pipeline
          ERROR: P4: Task Exception: java.io.IOException: Unable to delete file: C:\Jenkins\workspace\Vulcan\1.7\Unity_2
          Finished: FAILURE
          {code}
          thanks a lot,

          Marius
          New: Hello,

           

          When cancelling a p4 sync, the files are locked and it is not possible to run another build until restarting Jenkins service.

          Tested with latest P4 plugin (1.11.4) and the issue is reproducible 100% in our environment.

          This issue seems very similar to https://issues.jenkins.io/browse/JENKINS-37487 which has been marked as resolved.

           

          Could you please help fixing the issue?

           
          {code:java}
          [Pipeline] End of Pipeline
          ERROR: P4: Task Exception: java.io.IOException: Unable to delete file: C:\Jenkins\workspace\Vulcan\1.7\Unity_2
          Finished: FAILURE
          {code}
          thanks a lot,

          Marius
          Karl Wirth made changes -
          Assignee New: Karl Wirth [ p4karl ]
          Karl Wirth made changes -
          Labels Original: p4 p4-plugin p4plugin plugin New: P4_SUPPORT p4 p4-plugin p4plugin plugin
          Karl Wirth made changes -
          Attachment New: HangingLock.png [ 54657 ]
          Karl Wirth made changes -
          Assignee Original: Karl Wirth [ p4karl ]
          Karl Wirth made changes -
          Labels Original: P4_SUPPORT p4 p4-plugin p4plugin plugin New: P4_A P4_VERIFY p4 p4-plugin p4plugin plugin
          Karl Wirth made changes -
          Priority Original: Major [ 3 ] New: Blocker [ 1 ]
          Mark Waite made changes -
          Comment [ Hello,

           

          You also sent in a support ticket, they responded with "that's definitely interesting we will investigate" and they haven't gotten back to me. Here's my case info: 

          Resource leak in p4java causing issues with Jenkins p4-plugin - Case# 00947568

          edit: they just replied and said they have been unable to reproduce... this is definitely a tough one to reproduce, it took me a while to get it to happen and get to the agent before a GC ran, helps to give the jvm a lot of memory so it is running GC less often [https://www-lhiproviderportal.com|https://www-lhiproviderportal.com/] ]
          Sandeep Kumar made changes -
          Resolution New: Cannot Reproduce [ 5 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Sandeep Kumar made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

            Unassigned Unassigned
            maneamarius Marius
            Votes:
            6 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: