-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BrowserTimeout not working properly on grid in 2.5+ #5313
Comments
Very simple test in ruby to reproduce, explicitly skipping driver.quit:
|
The behavior in 3.9.1 seems to have changed further: In 3.9.1:
Maybe this is now more of a documentation issue. I am not sure what the intended behavior is at this point, the changelog doesn't indicate these behaviors should have changed. |
I was using 3.11.0 and was facing the same issue. Downgraded to 3.8.1 and at least the timeouts are properly propagated from hub to nodes. I will see what happens when I hit a timeout on a node. |
This seems to be a duplicate of #3064 |
Correcting myself, this is not entirely a duplicate. |
Sorry I missed the first message here, but that's more or less what I suspected, great to hear someone's identified the specific commit. |
This got fixed in 3f20f9f and it will be available in the next release. |
Meta -
OS:
CentOS 7
Selenium Version:
2.5+
Browser:
Chrome
Browser Version:
Chrome 63, chromedriver 2.34
Expected Behavior -
If a client connected to a grid fails to call driver.close(), the grid should free the slot and kill chromedriver and any running browsers when browserTimeout is reached
Actual Behavior -
Grid frees up the slot, but chromedriver and running browsers remain. If lots of tests fail to clean up after themselves, the grid eventually runs out of memory and crashes.
Steps to reproduce -
On CentOS 7 I start the grid like:
java -Xmx2048m -Xms2048m -jar selenium-server-standalone-3.4.0.jar -role hub -maxSession 20 -timeout 180 -browserTimeout 200
I start the chrome node like:
java -Xmx2048m -Xms2048m -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -jar /home/selenium/selenium-server-standalone-3.4.0.jar -role node -hub http://10.10.0.50:4444/grid/register -browser browserName=chrome,version=63.0.3,binary=/bin/google-chrome,maxInstances=9,platform=LINUX -maxSession 9
I have tried setting -enablePassThrough false, but the effect remains the same.
(Note with 3.4.0 in the example above, the browsers get killed as expected. Same command lines with newer versions, including 3.8.1, they fail.)
The text was updated successfully, but these errors were encountered: