We're seeing an issue where an unshelve command through a p4groovy object is timing out after 5 minutes. There's no other information besides an InterruptedException

       
      00:31:58 [windows-pipeline || windows-pipeline-main-8-0] Unshelve shelve sync label: 292428
      [Pipeline] [windows-pipeline || windows-pipeline-main-8-0] p4
      [Pipeline] [Scheduler] }
      [Pipeline] [windows-pipeline || windows-pipeline-main-8-0] }
      [Pipeline] [Scheduler] {
      [Pipeline] [windows-pipeline || windows-pipeline-main-8-0] // ws
      [Pipeline] [windows-pipeline || windows-pipeline-main-8-0] echo*00:36:58* [windows-pipeline || windows-pipeline-main-8-0] Exception running batch java.lang.InterruptedException
       

      Code snippet

      def p4client = jenkins.p4(credential: context.p4credentials, workspace: workspace)

      def result = p4client.run('unshelve', '-f', '-s', context.shelveSyncLabel.toString())

       

      Call stack snippet

      [Pipeline] End of Pipeline
      java.lang.InterruptedException
      at java.lang.Object.wait(Native Method)
      at hudson.remoting.Request.call(Request.java:177)
      at hudson.remoting.Channel.call(Channel.java:954)
      at hudson.FilePath.act(FilePath.java:1036)
      at hudson.FilePath.act(FilePath.java:1025)
      at org.jenkinsci.plugins.p4.groovy.P4Groovy.run(P4Groovy.java:63)
      at sun.reflect.GeneratedMethodAccessor975.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
      at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
       

      This looks to be the same issue as JENKINS-44427 but I'm not sure how to apply that fix to p4 groovy as well.

          [JENKINS-55209] p4 groovy commands with 300 second timeout

          Sean Sutherland created issue -
          Sean Sutherland made changes -
          Link New: This issue is related to JENKINS-44427 [ JENKINS-44427 ]
          Sean Sutherland made changes -
          Description Original: We're seeing an issue where an unshelve command through a p4groovy object is timing out after 5 minutes. There's no other information besides an InterruptedException

           
          *00:31:58* [windows-pipeline || windows-pipeline-main-8-0] Unshelve shelve sync label: 292428
          [Pipeline] [windows-pipeline || windows-pipeline-main-8-0] p4
          [Pipeline] [Scheduler] }
          [Pipeline] [windows-pipeline || windows-pipeline-main-8-0] }
          [Pipeline] [Scheduler] {
          [Pipeline] [windows-pipeline || windows-pipeline-main-8-0] // ws
          [Pipeline] [windows-pipeline || windows-pipeline-main-8-0] echo*00:36:58* [windows-pipeline || windows-pipeline-main-8-0] Exception running batch java.lang.InterruptedException
           

          Code snippet
          {quote}def p4client = jenkins.p4(credential: context.p4credentials, workspace: workspace)

          def result = p4client.run('unshelve', '-f', '-s', context.shelveSyncLabel.toString()){quote}
           

          Call stack snippet
          [Pipeline] End of Pipeline
          java.lang.InterruptedException
          at java.lang.Object.wait(Native Method)
          at hudson.remoting.Request.call(Request.java:177)
          at hudson.remoting.Channel.call(Channel.java:954)
          at hudson.FilePath.act(FilePath.java:1036)
          at hudson.FilePath.act(FilePath.java:1025)
          at org.jenkinsci.plugins.p4.groovy.P4Groovy.run(P4Groovy.java:63)
          at sun.reflect.GeneratedMethodAccessor975.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:498)
          at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
          at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
          at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213)
          at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
           

          This looks to be the same issue as JENKINS-44427 but I'm not sure how to apply that fix to p4 groovy as well.
          New: We're seeing an issue where an unshelve command through a p4groovy object is timing out after 5 minutes. There's no other information besides an InterruptedException
          {quote} 
           *00:31:58* [windows-pipeline || windows-pipeline-main-8-0] Unshelve shelve sync label: 292428
           [Pipeline] [windows-pipeline || windows-pipeline-main-8-0] p4
           [Pipeline] [Scheduler] }
           [Pipeline] [windows-pipeline || windows-pipeline-main-8-0] }
           [Pipeline] [Scheduler] {
           [Pipeline] [windows-pipeline || windows-pipeline-main-8-0] // ws
           [Pipeline] [windows-pipeline || windows-pipeline-main-8-0] echo*00:36:58* [windows-pipeline || windows-pipeline-main-8-0] Exception running batch java.lang.InterruptedException
            
          {quote}
          Code snippet
          {quote}def p4client = jenkins.p4(credential: context.p4credentials, workspace: workspace)

          def result = p4client.run('unshelve', '-f', '-s', context.shelveSyncLabel.toString())
          {quote}
           

          Call stack snippet
          {quote}
           [Pipeline] End of Pipeline
           java.lang.InterruptedException
           at java.lang.Object.wait(Native Method)
           at hudson.remoting.Request.call(Request.java:177)
           at hudson.remoting.Channel.call(Channel.java:954)
           at hudson.FilePath.act(FilePath.java:1036)
           at hudson.FilePath.act(FilePath.java:1025)
           at org.jenkinsci.plugins.p4.groovy.P4Groovy.run(P4Groovy.java:63)
           at sun.reflect.GeneratedMethodAccessor975.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:498)
           at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
           at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
           at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213)
           at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
            
          {quote}
          This looks to be the same issue as JENKINS-44427 but I'm not sure how to apply that fix to p4 groovy as well.

          Paul Allen added a comment -

          You may need to set 'RPC_SOCKET_SO_TIMEOUT_NICK' in the 'Advanced' section of your Perforce Credential.

          Paul Allen added a comment - You may need to set 'RPC_SOCKET_SO_TIMEOUT_NICK' in the 'Advanced' section of your Perforce Credential.
          Paul Allen made changes -
          Labels Original: p4-plugin New: P4_SUPPORT

          Karl Wirth added a comment -

          Reproduced in a different ticket which ahs been passed to developers. Closing this version.

          Karl Wirth added a comment - Reproduced in a different ticket which ahs been passed to developers. Closing this version.
          Karl Wirth made changes -
          Link New: This issue duplicates JENKINS-58161 [ JENKINS-58161 ]
          Karl Wirth made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

            Unassigned Unassigned
            sean_sutherland Sean Sutherland
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: