-
Bug
-
Resolution: Fixed
-
Minor
java.lang.InterruptedException: sleep interrupted at java.lang.Thread.sleep(Native Method) at org.jvnet.hudson.test.JenkinsRule.waitForCompletion(JenkinsRule.java:1233) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecutionTest$7.evaluate(CpsFlowExecutionTest.java:273)
due apparently to error after restart:
... jenkins.InitReactorRunner$1 onAttained INFO: Listed all plugins ... org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService reportProblem WARNING: Unexpected exception in CPS VM thread: CpsFlowExecution[Owner[p/1:p #1]] java.lang.NullPointerException at org.jenkinsci.plugins.workflow.job.WorkflowRun$GraphL.onNewHead(WorkflowRun.java:893) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.notifyListeners(CpsFlowExecution.java:1110) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$3.run(CpsThreadGroup.java:402) at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$1.run(CpsVmExecutorService.java:35) [p #1] Resuming build at ... after Jenkins restart
Looks like a race condition in WorkflowRun.onLoad: execution is started before completed is initialized, and also GraphL is added before then. Perhaps loadProgramAsync needs to be called in a separate FlowExecution.restart() method once everything is ready?