|
register a remote control to the hub. and then i want to close the remote control, how to unregister it from the hub. if i close the remote control directly, it would be error when i register it again. it warning the remote control is already registered. the warning message is ------------------------------------------------------- ------------------------------------------------------- Hi Philippe, I think I have the same, or at least a similar issue. Maybe I can clarify the comments of bruce. I have a grid hub running and 4 grid clients are registered to it. (all clients are running on different windows xp machines) many thanks Exception on the hub: Exception on the client: ...forgot to mention that I'm using grid version 1.0.3 I too am also having this problem. This issue is duplicated by GRID-14. I have also encountered this. When troubleshooting or developing a new grid environment I often restart individual RCs. However doing so with the current code makes it so there isn't a way to do it without shutting down the hub and all of your other RCs in the grid. To rephrase the issue: If you start up a new remote control and then stop it (stop it's process), you can't start it again because the hub still thinks it's registered. The hub will give the registration-manager exception posted above by Tobias. The server just has to implement the case of un-registration. But not only by manual shutdown of the RC, it should handle any case where the RC disconnects for other reasons. The solution should probably be simply that the hub server pings the RC once it is "registered" (or the other way around, but I think it makes more sense for the hub to ping the RC) and un-register if it fails to respond. The only tricky case I'm thinking of at the moment is if the connectivity was interrupted because of some temporary network situation, and the RC is still up after the interruption and tries to talk to the hub, does it re-register automatically or is there an exception, what is the message for the exception if so. Hi, If this bug is a blocker for you, you might want to try the version in trunk which already handle gracefully most of these cases. You can build Selenium Grid from source using the github repository: http://selenium-grid.seleniumhq.org/build_it_from_source.html Cheers,
I'm not sure if pinging other RCs is the answer (but, I'll leave that decision to the developers). However, I would like to point out that the current version of Selenium (1.0.4) does feature unregistration. If you send the following POST request to wherever your Selenium Grid is located, the RC will unregister. POST http://gridlocation:gridport/registration-manager/unregister host=RClocation&port=RCport&environment=Firefox+on+Windows I created a java program that takes the host, port, and environment as inputs and then sends a POST request to the Grid. The result is the RC gets unregistered (resulting in never having to re-start the Grid due to a RC getting in a bad state). Although I noticed that Philippe is implementing a HeartbeatServlet, so I think I might check out how that works. |
||||||||||||||||||||||||||||||||
Please provide more information/context about this bug. Quite hard to guess what the problem is with the current data.
Thanks in advance!
http://ph7spot.com