question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Queued sessions inconsistent behaviour Grid V4 vs Grid V3

See original GitHub issue

🐛 Bug Report

I have 2 grids:

  • 3.141.59-20210105
  • 4.0.0-beta-1-prerelease-20210114

with 1 Chrome node. You can use the following docker compose file to spin up the same environment docker-compose.yml.zip

I am sending 2 Chrome tests in parallel but experiencing different behaviour between Grid v3 vs Grid v4 nunitProject.zip

Selenium 3 Grid behaviour

  • Because there is just one node, 1 test is put into a queue waiting for the first one to be finished then it is executed successfully image image

Logs: selenium3GridLogs.txt

Selenium 4 Grid behaviour

  • First test is sent to the grid and executed properly
  • Second test is running and trying to create session, eventually times out.

After the first test is finished I can see graphql response saying there is available slot, yet it is not being assigned to my second test { "data": { "grid": { "nodes": [ { "id": "bb800483-fb81-4fea-849b-62ec4a23cb7b", "uri": "http://172.19.0.3:5555", "status": "UP", "sessions": [], "maxSession": 1, "capabilities": "[\n {\n \"slots\": 1,\n \"browserName\": \"chrome\"\n }\n]" } ], "uri": "http://172.19.0.2:4444", "totalSlots": 1, "usedSlots": 0, "sessionCount": 0 } } }

image

  • Furthermore there is no indication in Grid UI that node would be in use and no information about queued session either

image

Logs: seleniumGrid4Logs.txt

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
mcopjancommented, Feb 4, 2021

Hi @pujagani, I did more testing on this with the latest prerelease 4.0.0-beta-1-prerelease-20210128, restarted the environment multiple times and I am not seeing the reported behaviour any more. I think we can close this ticket. Thanks again for your time you spend with your investigation. concurrentSessionsOk.log

1reaction
mcopjancommented, Jan 29, 2021

thanks @pujagani, one more thing I will try is to run grid in full mode, make sure all components are ready, then run the same tests and if I experience the same problem I will collect logs from all components and report back.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Compare Azure Storage queues and Service Bus queues
Analyzes differences and similarities between two types of queues offered by Azure.
Read more >
Grid Engine Users's Guide - Documentation - Altair
3 Displaying Univa Grid Engine Status Information ... qstat shows information about jobs, queues, and queue instances.
Read more >
Task Queue | Mendix Documentation
Using a Task Queue allows you to run microflows or Java actions asynchronously while controlling the number of tasks that are executed ...
Read more >
Latest Updates | CryoSPARC
Fixed issue where changelog grid styling was causing items to overlap on Safari. ... of power score rather than percentile (matching the behaviour...
Read more >
Where can I find a schema or documentation for the Se 2 grid ...
Set it to false to have the request queued until a node supporting the capability is added to the grid. newSessionWaitTimeout = (hub)...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found