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.

Low concurrency[🐛 Bug]:

See original GitHub issue

What happened?

V4 grid node utilization is very low compared to V3. In V3 if you had 100 grid nodes ready and registered to the hub and then ran 100 tests in parallel, all 100 grid nodes was immediately put to work but in V4 you can do the same and see only about 12 nodes being utilized. 88 nodes never got tests routed to them. Note: that the queue in this scenario is 0.

Setting a higher “–max-threads” value has no effect and actually we cannot see this parameter being used in the selenium code at all?

How can we reproduce the issue?

We see this consistently with V4.1.2 using java openjdk 11 and latest TestNG. We ruled out TestNG as the issue and verified that when requesting 100 tests in parallel on an empty grid, the queue immediately went to 100.

The grid is started as distributed, hub and nodes on separate AWS VM's.

Relevant log output

Full logs of this event are very large, will try to attach in comments...

Operating System

Ubuntu 20.04

Selenium version

Selenium v4.1.2

What are the browser(s) and version(s) where you see this issue?

Chrome 96

What are the browser driver(s) and version(s) where you see this issue?

96.0.4664.45

Are you using Selenium Grid?

4.1.2

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
diemolcommented, Nov 7, 2022

We have fixed this in 4.5.3 but wanted to wait until 4.6 to double check. Closing.

0reactions
github-actions[bot]commented, Dec 8, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common Concurrency Problems - cs.wisc.edu
More recent work focuses on studying other types of common concurrency bugs (i.e., non-deadlock bugs). In this chapter, we take a brief look...
Read more >
What are concurrency bugs? - Quora
A concurrency bug is an (undesired) outcome that arises if two programs are run at the same time that does not show up...
Read more >
Concurrency bugs in open source software: a case study
This paper presents an empirical study focusing on understanding the differences and similarities between concurrency bugs and other bugs, ...
Read more >
Lazy Diagnosis of In-Production Concurrency Bugs
Lazy Diagnosis does not rely on sampling, which leads to low root cause diagnosis latency (i.e., it can quickly diagnose bugs). We implemented...
Read more >
A survey of concurrency bugs - Cove Mountain Software
This post surveys common concurrency related bugs and outlines ... then when the lower priority code executes again, the shared data may be ......
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