-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[grid] Reduce redundant logs of find slots and retry queue requests by the Distributor #16155
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
Conversation
…y the Distributor Signed-off-by: Viet Nguyen Duc <[email protected]>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
java/src/org/openqa/selenium/grid/distributor/local/LocalDistributor.java
Outdated
Show resolved
Hide resolved
java/src/org/openqa/selenium/grid/distributor/local/LocalDistributor.java
Show resolved
Hide resolved
Signed-off-by: Viet Nguyen Duc <[email protected]> # Conflicts: # java/src/org/openqa/selenium/grid/distributor/local/LocalDistributor.java
Signed-off-by: Viet Nguyen Duc <[email protected]>
User description
🔗 Related Issues
💥 What does this PR do?
getAvailableNodes()
to include a condition that has at least 1 available Slot. Once the return Nodes are narrowed down, the checkhasCapability()
can be optimized.🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes
PR Type
Enhancement
Description
Optimize node selection to only return nodes with free slots
Reduce redundant logging and capability checks for busy nodes
Add comprehensive test coverage for node filtering logic
Fix JMX bean cleanup in LocalNewSessionQueue
Diagram Walkthrough
File Walkthrough
LocalDistributor.java
Enhanced node filtering for available slots
java/src/org/openqa/selenium/grid/distributor/local/LocalDistributor.java
getAvailableNodes()
to filter nodes with at least one freeslot
isNotSupported()
method by removing redundant UP statuscheck
LocalNewSessionQueue.java
Added JMX bean cleanup functionality
java/src/org/openqa/selenium/grid/sessionqueue/local/LocalNewSessionQueue.java
LocalDistributorTest.java
Comprehensive test coverage for node filtering
java/test/org/openqa/selenium/grid/distributor/local/LocalDistributorTest.java