[Issue 3981] New - Selenium Plugin: Timeout too small

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Issue 3981] New - Selenium Plugin: Timeout too small

tboeghk
https://hudson.dev.java.net/issues/show_bug.cgi?id=3981
                 Issue #|3981
                 Summary|Selenium Plugin: Timeout too small
               Component|hudson
                 Version|current
                Platform|All
              OS/Version|All
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|PATCH
                Priority|P2
            Subcomponent|other
             Assigned to|issues@hudson
             Reported by|tboeghk






------- Additional comments from [hidden email] Mon Jul  6 14:47:39 +0000 2009 -------
The Selenium Plugin tests the Reachablility of a client machine using the Method
hudson.model.Computer#getHostname().

While the algorithm is pretty cool, in our network setup (virtual windows server
on a xen cluster) it fails because of a too small timeout in the
InetAddress.isReachable() - Method. Due to that, the Selenium Plugin does not
start any Remote Controls quitting with "Unable to determine the host name.
Skipping Selenium execution."

An increased (I'd suggest 3000ms) value in the InetAddress.isReachable() Method
makes the plugin work in our network setup.

hudson.model.Computer#getHostname()

Line 562 (old): if(!ia.isReachable(500)) {
Line 562 (new): if(!ia.isReachable(3000)) {

Could you increase the timeout?

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 3981] Selenium Plugin: Timeout too small

scm_issue_link
https://hudson.dev.java.net/issues/show_bug.cgi?id=3981



User scm_issue_link changed the following:

                What    |Old value                 |New value
================================================================================
                  Status|NEW                       |RESOLVED
--------------------------------------------------------------------------------
              Resolution|                          |FIXED
--------------------------------------------------------------------------------




------- Additional comments from [hidden email] Mon Jul  6 21:46:30 +0000 2009 -------
Code changed in hudson
User: : kohsuke
Path:
 trunk/hudson/main/core/src/main/java/hudson/model/Computer.java
 trunk/www/changelog.html
http://fisheye4.cenqua.com/changelog/hudson/?cs=19436
Log:
[FIXED HUDSON-3981] Increased the timeout to 3secs as suggested. Added caching so that successive look-ups go faster. This fix will be in 1.315.


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]