Skip to content

Commit

Permalink
[java] ensure the original RemoteNode stays DOWN #13646 (#13647)
Browse files Browse the repository at this point in the history
  • Loading branch information
joerg1985 authored Mar 26, 2024
1 parent dec63da commit 82277ab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions java/src/org/openqa/selenium/grid/node/remote/RemoteNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,12 @@ public Result check() {
try {
NodeStatus status = getStatus();

if (!Objects.equals(getId(), status.getNodeId())) {
// ensure the original RemoteNode stays DOWN when it has been restarted and registered
// again as another RemoteNode with the same externalUri
return new Result(DOWN, externalUri + " has unexpected node id");
}

switch (status.getAvailability()) {
case DOWN:
return new Result(DOWN, externalUri + " is down");
Expand Down

0 comments on commit 82277ab

Please sign in to comment.