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

3 views
Skip to first unread message

sean-sutherland@outlook.com (JIRA)

unread,
Dec 14, 2018, 3:50:01 PM12/14/18
to jenkinsc...@googlegroups.com
Sean Sutherland created an issue
 
Jenkins / Bug JENKINS-55209
p4 groovy commands with 300 second timeout
Issue Type: Bug Bug
Assignee: Unassigned
Components: p4-plugin
Created: 2018-12-14 20:49
Labels: p4-plugin
Priority: Major Major
Reporter: Sean Sutherland

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.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

sean-sutherland@outlook.com (JIRA)

unread,
Dec 14, 2018, 3:51:02 PM12/14/18
to jenkinsc...@googlegroups.com
Sean Sutherland updated an issue
Change By: Sean Sutherland
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.

pallen@perforce.com (JIRA)

unread,
Dec 20, 2018, 9:58:02 AM12/20/18
to jenkinsc...@googlegroups.com
Paul Allen commented on Bug JENKINS-55209
 
Re: p4 groovy commands with 300 second timeout

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

pallen@perforce.com (JIRA)

unread,
Dec 20, 2018, 9:58:02 AM12/20/18
to jenkinsc...@googlegroups.com
Paul Allen updated an issue
 
Change By: Paul Allen
Labels: p4-plugin P4_SUPPORT

kwirth@perforce.com (JIRA)

unread,
Jul 1, 2019, 11:38:04 AM7/1/19
to jenkinsc...@googlegroups.com
Karl Wirth closed an issue as Duplicate
 

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

Change By: Karl Wirth
Status: Open Closed
Resolution: Duplicate
Reply all
Reply to author
Forward
0 new messages