Skip to content

Commit

Permalink
[java] ensure the original RemoteNode stays DOWN #13646
Browse files Browse the repository at this point in the history
  • Loading branch information
joerg1985 committed Mar 1, 2024
1 parent d65e38e commit 75d4eaf
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 75d4eaf

Please sign in to comment.