Bug 1034229

Summary: [TEST] (6.3) Intermittent 'AssertionError: expected:<200> but was:<500>' in org.jboss.as.test.manualmode.ws.ReloadWSDLPublisherTestCase.testHelloStringAfterReload
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Pavel Jelinek <pjelinek>
Component: TestsuiteAssignee: Emmanuel Hugonnet (ehsavoie) <ehugonne>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Jelinek <pjelinek>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: cdewolf, ehugonne, jmartisk, kkhan, myarboro
Target Milestone: DR0   
Target Release: EAP 6.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1049796 (view as bug list) Environment:
Last Closed: 2014-06-28 15:26:16 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:
Bug Depends On:    
Bug Blocks: 1049796    
Attachments:
Description Flags
stacktrace and standard output none

Comment 1 Emmanuel Hugonnet (ehsavoie) 2013-11-27 12:07:16 UTC
The issue is due to the fact that the jvm is reusing the same connection.
Setting keep-alive to false fixes it.

Comment 2 Jan Martiska 2013-12-05 12:01:35 UTC
Emmanuel is right, but keep-alive cannot be used with WS invocations (you don't have access to the underlying connection), so that would only resolve half of the problem. I think the best solution will be to add a 5 second wait until the pooled connections time out.

Comment 3 Emmanuel Hugonnet (ehsavoie) 2013-12-05 12:49:44 UTC
It is working by setting the keep-alive to false in the set up and resetting it to the previous value in the tear down.
I have a patch for this.
This avoid long( 5s) test.

Comment 4 Emmanuel Hugonnet (ehsavoie) 2013-12-05 12:51:16 UTC
https://github.com/ehsavoie/jboss-eap/tree/BZ-1034229 : the patch but I need to make one for upstream.

Comment 5 Jan Martiska 2013-12-05 13:07:18 UTC
Ok, I didn't think of this solution. We'll go with yours then.

Comment 6 Emmanuel Hugonnet (ehsavoie) 2013-12-06 15:25:25 UTC
PR : https://github.com/jbossas/jboss-eap/pull/720
Upstream : https://github.com/wildfly/wildfly/pull/5576

Comment 7 Pavel Jelinek 2014-02-20 10:08:12 UTC
Fixed for both ipv4 and dualstack in 6.3.0 DR0. I filled new https://bugzilla.redhat.com/show_bug.cgi?id=1067348 for pure ipv6.