Bug 714817

Summary: apache plugin: with some versions of JRockit 1.6 JVM, Apache server avail checks hang indefinitely when trying to HTTP-ping a server that's down
Product: [Other] RHQ Project Reporter: Ian Springer <ian.springer>
Component: PluginsAssignee: Ian Springer <ian.springer>
Status: CLOSED DEFERRED QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: medium    
Version: 4.0.1CC: ccrouch, hrupp
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-22 20:44:56 UTC Type: ---
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:    
Bug Blocks: 678340    

Description Ian Springer 2011-06-20 21:23:24 UTC

Comment 1 Ian Springer 2011-06-21 19:05:02 UTC
[master 6002385] fixes this. The fix was to call setReadTimeout(1000) on the HTTP URL connection. It appears that for a non-responding URL, in the Sun JDK, the call to connect() would fail and so our setConnectTimeout(3000) sufficed, but, in the JRockit JDK, the call to connect() would succeed and then the call to getResponseCode() would hang because no read timeout was specified.

To test this, start an Agent with JRockit 1.6 and inventory an Apache server. Bring one or more of the Apache vhosts down then run the "discovery -f" and "avail" commands from the Agent prompt and make sure neither command hangs. Do the same with Agent on the Sun JVM to make sure it works there too.

Comment 2 Mike Foley 2011-06-22 20:44:56 UTC
not explicitly supported.  not going to verify this at this time.