-
Bug
-
Resolution: Unresolved
-
Major
When a DumbSlave disconnects, the launcher's afterDisconnect() is called twice.
This means, for instance, that a VM configured to shutdown and revert after a disconnect will do so twice.
- duplicates
-
JENKINS-22740 Launcher's afterDisconnect() method is called twice
-
- Closed
-
[JENKINS-35272] Launcher's afterDisconnect() method is called twice
Component/s | New: core [ 15593 ] | |
Component/s | Original: vsphere-cloud-plugin [ 16104 ] |
Description |
Original:
The call to r.getExecutor().getOwner().disconnect() in vSphereCloudSlave causes vSphereCloudLauncher's afterDisconnect() to be called twice, on separate threads. This means, for instance, that a VM configured to shutdown and revert after a disconnect will do so twice. This appears to be an issue with Jenkins itself. A temporary fix on my side is the use of an AtomicBoolean to prevent the afterDisconnect from executing its logic twice. Would this be considered an acceptable patch? |
New:
When a DumbSlave disconnects, the launcher's afterDisconnect() is called twice. This means, for instance, that a VM configured to shutdown and revert after a disconnect will do so twice. |
Link |
New:
This issue duplicates |
Workflow | Original: JNJira [ 171514 ] | New: JNJira + In-Review [ 184339 ] |
Labels | New: newbie-friendly |
Assignee | New: Vyshakh Nambiar [ vn17 ] |
Assignee | Original: Vyshakh Nambiar [ vn17 ] |