Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-55209

p4 groovy commands with 300 second timeout

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

            sean_sutherland Sean Sutherland created issue -
            sean_sutherland Sean Sutherland made changes -
            Field Original Value New Value
            Link This issue is related to JENKINS-44427 [ JENKINS-44427 ]
            sean_sutherland Sean Sutherland made changes -
            Description 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.
            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.
            Hide
            p4paul Paul Allen added a comment -

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

            Show
            p4paul Paul Allen added a comment - You may need to set 'RPC_SOCKET_SO_TIMEOUT_NICK' in the 'Advanced' section of your Perforce Credential.
            p4paul Paul Allen made changes -
            Labels p4-plugin P4_SUPPORT
            Hide
            p4karl Karl Wirth added a comment -

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

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

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: