-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
[🐛 Bug]: With custom node example, node never see it's registered #1571
Comments
@bhecquet, thank you for creating this issue. We will troubleshoot it as soon as we can. Info for maintainersTriage this issue by using labels.
If information is missing, add a helpful comment and then
If the issue is a question, add the
If the issue is valid but there is no time to troubleshoot it, consider adding the
After troubleshooting the issue, please add the Thank you! |
@krmahadevan do you have a moment to have a look at this, please? |
@diemol Sure. Will take a look. |
@krmahadevan , sure, will do that in a few days |
modified: customize_node.en.md modified: customize_node.ja.md modified: customize_node.pt-br.md modified: customize_node.zh-cn.md
I've created the PR: #1576 |
modified: customize_node.en.md modified: customize_node.ja.md modified: customize_node.pt-br.md modified: customize_node.zh-cn.md
issue #1571: correct initialization of custom node modified: customize_node.en.md modified: customize_node.ja.md modified: customize_node.pt-br.md modified: customize_node.zh-cn.md [deploy site]
Thanks for contributing, @bhecquet! |
What happened?
Hello,
using your sample code on https://www.selenium.dev/documentation/grid/advanced_features/customize_node/, I noticed that node never see it's registered
It's due to
where we generate a new NodeId
in https://github.com/SeleniumHQ/selenium/blob/81865828a275ba384bc96fe10493cb1f7ee03f91/java/src/org/openqa/selenium/grid/node/httpd/NodeServer.java#L220
we get node status from node created with
which has a different id than our custom node,
So when getting hub "node-added" registration event
https://github.com/SeleniumHQ/selenium/blob/81865828a275ba384bc96fe10493cb1f7ee03f91/java/src/org/openqa/selenium/grid/node/httpd/NodeServer.java#L143
ids do not match
Instead, constructor should reuse the id of the LocalNode
What browsers and operating systems are you seeing the problem on?
chrome / windows
The text was updated successfully, but these errors were encountered: