[JIRA] (JENKINS-60762) pipeline used to wait to schedule task now stops immediately

1 view
Skip to first unread message

roman@pickl.eu (JIRA)

unread,
Jan 14, 2020, 7:12:07 AM1/14/20
to jenkinsc...@googlegroups.com
Roman Pickl created an issue
 
Jenkins / Bug JENKINS-60762
pipeline used to wait to schedule task now stops immediately
Issue Type: Bug Bug
Assignee: Unassigned
Components: pipeline
Created: 2020-01-14 12:11
Environment: Jenkins ver. 2.204.1
Priority: Minor Minor
Reporter: Roman Pickl

I'm not sure this is a bug, but I want to file it anyway:

We have a declarative pipeline where we need to restart one of the nodes and continue in a later stage.

So in this node we do
bat 'shutdown /s /t 30 & exit 0'

The next step uses the same node.

Before updating some plugins and or jenkins (I assume the jenkins plugins) it behaved like this:
When trying to run the following stage on this node, the node is not connected yet, jenkins is

Still waiting to schedule task
'<nodename>' is offline

and then after it started and connected it schedules the task and finishes the stage successfully.

after the update it immediately fails with:

<node> was marked offline: Connection was broken: java.nio.channels.ClosedChannelException
at org.jenkinsci.remoting.protocol.NetworkLayer.onRecvClosed(NetworkLayer.java:154)
at org.jenkinsci.remoting.protocol.impl.NIONetworkLayer.ready(NIONetworkLayer.java:179)
at org.jenkinsci.remoting.protocol.IOHub$OnReady.run(IOHub.java:795)
at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

 

I solved this with adding a sleep to wait for the machine to be online again, but is there a better solution?

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

roman@pickl.eu (JIRA)

unread,
Jan 14, 2020, 7:13:06 AM1/14/20
to jenkinsc...@googlegroups.com
Roman Pickl updated an issue
Change By: Roman Pickl
I'm not sure this is a bug, but I want to file it anyway:

We have a declarative pipeline where we need to restart one of the nodes and continue in a later stage.

So in this node we do
{noformat}
bat 'shutdown /s /t 30 & exit 0' {noformat}

The next step uses the same node.

Before updating some plugins and or jenkins (I assume the jenkins plugins) it behaved like this:
When trying to run the following stage on this node, the node is not connected yet, jenkins is
{noformat}

Still waiting to schedule task
'<nodename>' is offline
{noformat}

and then after it started and connected it schedules the task and finishes the stage successfully.

after the update it immediately fails with:
{noformat}

<node> was marked offline: Connection was broken: java.nio.channels.ClosedChannelException
at org.jenkinsci.remoting.protocol.NetworkLayer.onRecvClosed(NetworkLayer.java:154)
at org.jenkinsci.remoting.protocol.impl.NIONetworkLayer.ready(NIONetworkLayer.java:179)
at org.jenkinsci.remoting.protocol.IOHub$OnReady.run(IOHub.java:795)
at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
{noformat}

 

I solved this with adding a sleep to wait for the machine to be online again, but is there a better solution?

roman@pickl.eu (JIRA)

unread,
Apr 28, 2020, 12:31:02 PM4/28/20
to jenkinsc...@googlegroups.com
Change By: Roman Pickl
Status: Fixed but Unreleased Closed
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

roman@pickl.eu (JIRA)

unread,
Apr 28, 2020, 12:31:03 PM4/28/20
to jenkinsc...@googlegroups.com
 

we cannot reproduce this after some updates.

Change By: Roman Pickl
Status: Open Fixed but Unreleased
Resolution: Cannot Reproduce
Reply all
Reply to author
Forward
0 new messages