paypal / docker-selion

SeLion grid docker images
Apache License 2.0
9 stars 20 forks source link

Containers would exit unexpectedly due to IndexOutOfBoundsException error #13

Closed aovsiyenko closed 7 years ago

aovsiyenko commented 7 years ago

QA at Control Mobile implemented SeLion automation framework to run tests against Web app. We are using Docker images of SeLion hub and Firefox/Chrome drivers.

There were several cases there containers exited unexpectedly. I examined log and found following error (more details in attached file): chromedriver container log.txt

Exception in thread "SeLionJarSpawnerShutdownHook" java.lang.IndexOutOfBoundsException: Index: -1, Size: 7 at java.util.LinkedList.checkElementIndex(LinkedList.java:555) at java.util.LinkedList.get(LinkedList.java:476)

Thank you, Alex

image

mach6 commented 7 years ago

By default we configure the docker-selion/hub to trigger a shutdown request of a docker-selion node after 50 unique sessions (per node) -- https://github.com/paypal/docker-selion/blob/develop/hub/Dockerfile.txt#L15

You can alter this behavior by sending -e SELGRID_UNIQUE_SESSION_COUNT={someval}with the docker command that starts the docker-selion/hub process. To disable it send the value -1 -- https://github.com/paypal/SeLion/blob/develop/server/src/main/java/com/paypal/selion/proxy/SeLionRemoteProxy.java#L67-L80

mach6 commented 7 years ago

@aovsiyenko closing this. comment back if you have further questions on the topic