Skip to content

Commit 82277ab

Browse files
authored
[java] ensure the original RemoteNode stays DOWN #13646 (#13647)
1 parent dec63da commit 82277ab

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

java/src/org/openqa/selenium/grid/node/remote/RemoteNode.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,12 @@ public Result check() {
279279
try {
280280
NodeStatus status = getStatus();
281281

282+
if (!Objects.equals(getId(), status.getNodeId())) {
283+
// ensure the original RemoteNode stays DOWN when it has been restarted and registered
284+
// again as another RemoteNode with the same externalUri
285+
return new Result(DOWN, externalUri + " has unexpected node id");
286+
}
287+
282288
switch (status.getAvailability()) {
283289
case DOWN:
284290
return new Result(DOWN, externalUri + " is down");

0 commit comments

Comments
 (0)