Bug 1084911

Summary: [host-deploy] termination event is not received due to threading race: Pipe Closed
Product: [Retired] oVirt Reporter: Alon Bar-Lev <alonbl>
Component: ovirt-engine-coreAssignee: Alon Bar-Lev <alonbl>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Stehlik <pstehlik>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.4CC: acathrow, alonbl, giuseppe.ragusa, gklein, iheim, sbonazzo, yeylon
Target Milestone: ---   
Target Release: 3.4.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-08 13:38:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Alon Bar-Lev 2014-04-07 08:33:33 UTC
In 3.4 ssh wrapper was moved to use java-7 try-with-resources, so an explicit close of all resources is called.

This caused the wrapper thread to close the input stream of the receiving thread without the receiving thread has the chance to read the last bytes, as implementation of PipedInputStream first look at state then on buffer.

Comment 1 Sandro Bonazzola 2014-04-18 08:17:20 UTC
All referenced patches have been merged, shouldn't this be in modified?

Comment 2 Alon Bar-Lev 2014-04-18 19:28:17 UTC
Yes, as you can see the robots is playing with us.

Comment 3 Sandro Bonazzola 2014-05-08 13:38:33 UTC
This is an automated message

oVirt 3.4.1 has been released:
 * should fix your issue
 * should be available at your local mirror within two days.

If problems still persist, please make note of it in this bug report.