Hi,
I'm creating a cloud plugin and keep running into the following stacktrace on slave disconnect/termination:
WARNING: Computer.threadPoolForRemoting [#8] for 18392a20986e8 terminated
java.io.EOFException
at org.jenkinsci.remoting.nio.NioChannelHub$3.run(NioChannelHub.java:613)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112)
at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
I can not figure out why this is happening. I'm calling Jenkins.getInstance().removeNode in my _terminate method. Is there anything else I need to explicitly close/disconnect? The slave is automatically connected through jnlp.
Hopefully someone is able to help me out with this. I can provide additional code details if necessary.
Regards,
Ivo