Bug 951738
| Summary: | [hotfix] Use Commons HttpClient in ASConnection instead of JDK's HttpUrlConnection | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Operations Network | Reporter: | Larry O'Leary <loleary> |
| Component: | Plugin -- JBoss EAP 6 | Assignee: | Larry O'Leary <loleary> |
| Status: | CLOSED ERRATA | QA Contact: | Libor Zoubek <lzoubek> |
| Severity: | high | Docs Contact: | |
| Priority: | urgent | ||
| Version: | JON 3.1.2 | CC: | theute, tsegismo |
| Target Milestone: | --- | ||
| Target Release: | JON 3.1.2 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 950660 | Environment: | |
| Last Closed: | 2013-05-03 14:15:11 UTC | Type: | Support Patch |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 950660 | ||
| Bug Blocks: | 951739, 952330, 952331, 952333, 958984 | ||
|
Description
Larry O'Leary
2013-04-12 22:41:21 UTC
Needs verified from hotfix patch based on build org.jboss.on-jboss-on-parent-3.1.2.GA-11[1]. [1]: https://brewweb.devel.redhat.com//buildinfo?buildID=266751 The as-7 plug-in from build org.jboss.on-jboss-on-parent-3.1.2.GA-11 is contained as attachment 736012 [details] of Bug 952330 - EAP Plugin Pack Hotfix-02 for JBoss ON 3.1.2 Above patch causes regression. I am randomly getting this error on various stuff I do with EAP 6.0 server java.lang.Exception: The target server failed to respond Reload operation, Creating/Deleting resources,deployments Another thing I observe: it seems that new http connection instance cannot be shared among threads. I run "discovery -f" on agent. While it's running, I run "reload" operation on AS7 .. such operation seems to be blocked for a long time (usually it takes abou 5-10 seconds). In this case it takes about 2 minutes and then it fails with "The target server failed to respond" (In reply to comment #4) > Above patch causes regression. > > I am randomly getting this error on various stuff I do with EAP 6.0 server > > java.lang.Exception: The target server failed to respond This indeed may come from HttpClient library. I'll have to check why it happens. > > Reload operation, Creating/Deleting resources,deployments Do you mean you got the previous exception while doing these actions? > > Another thing I observe: it seems that new http connection instance cannot > be shared among threads. > > I run "discovery -f" on agent. While it's running, I run "reload" operation > on AS7 .. such operation seems to be blocked for a long time (usually it > takes abou 5-10 seconds). In this case it takes about 2 minutes and then it > fails with "The target server failed to respond" How can I reproduce this? On my box, "discovery -f" completes before I can click the UI. Partially fixed in master - 915ab3d (no more "The target server failed to respond" errors).
Keepalive timeout paramater was too high. The server could close connection server-side and the agent would still try to reuse it.
Now HttpClient uses the same value as HttpUrlConnection did to expire connections (5 seconds if the server does not send its keepalive timeout in reponse headers).
Deployments should just work as they don't use persistent connections from ASConnection class. My testing confirms that.
As for the reload operation problem, the operation will fail even if you don't trigger a full discovery on the agent at the same time. I tried the same steps with unpatched 3.1.2 build and it also fails. The message is just different.
Working on a complementary fix.
Pushed commit 1c01db5 to release/jon3.1.x branch (cherry-picked from master - 915ab3d) as integration tests passed: https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/RHQ/job/rhq-master/org.rhq$rhq-jboss-as-7-plugin/2168/ Fixed in EAP Plugin Pack Hotfix-02 for JBoss ON 3.1.2. |