Skip to content
Commit ee01d1b9 authored by Jesse Glick's avatar Jesse Glick
Browse files

Depending on what seems to have been timing conditions,...

Depending on what seems to have been timing conditions, connectNodeShouldSucceedWithForce could fail with a cryptic message.
Found an error in the launch log:
java.lang.IllegalStateException: Already connected
	at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:567)
	at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:390)
	at hudson.slaves.CommandLauncher.launch(CommandLauncher.java:132)
	at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:262)
I think the slave was being launched in the background, and then the test tried to disconnect and reconnect it.
Perhaps if these actions overlapped in time, the loose locking semantics of SlaveComputer.setChannel could cause the error.
parent 24dec27e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment