|
17 | 17 |
|
18 | 18 | package org.openqa.selenium.grid.node.local;
|
19 | 19 |
|
20 |
| -import static com.google.common.collect.ImmutableSet.toImmutableSet; |
21 |
| -import static org.openqa.selenium.grid.data.Availability.DRAINING; |
22 |
| -import static org.openqa.selenium.grid.data.Availability.UP; |
23 |
| -import static org.openqa.selenium.grid.node.CapabilityResponseEncoder.getEncoder; |
24 |
| -import static org.openqa.selenium.remote.HttpSessionId.getSessionId; |
25 |
| -import static org.openqa.selenium.remote.RemoteTags.CAPABILITIES; |
26 |
| -import static org.openqa.selenium.remote.RemoteTags.SESSION_ID; |
27 |
| -import static org.openqa.selenium.remote.http.Contents.asJson; |
28 |
| -import static org.openqa.selenium.remote.http.Contents.string; |
29 |
| -import static org.openqa.selenium.remote.http.HttpMethod.DELETE; |
30 |
| - |
31 | 20 | import com.google.common.annotations.VisibleForTesting;
|
32 | 21 | import com.google.common.base.Ticker;
|
33 | 22 | import com.google.common.cache.Cache;
|
|
50 | 39 | import org.openqa.selenium.grid.data.NodeAddedEvent;
|
51 | 40 | import org.openqa.selenium.grid.data.NodeDrainComplete;
|
52 | 41 | import org.openqa.selenium.grid.data.NodeDrainStarted;
|
| 42 | +import org.openqa.selenium.grid.data.NodeHeartBeatEvent; |
53 | 43 | import org.openqa.selenium.grid.data.NodeId;
|
54 | 44 | import org.openqa.selenium.grid.data.NodeStatus;
|
55 |
| -import org.openqa.selenium.grid.data.NodeHeartBeatEvent; |
56 | 45 | import org.openqa.selenium.grid.data.Session;
|
57 | 46 | import org.openqa.selenium.grid.data.SessionClosedEvent;
|
58 | 47 | import org.openqa.selenium.grid.data.Slot;
|
|
101 | 90 | import java.util.logging.Logger;
|
102 | 91 | import java.util.stream.Collectors;
|
103 | 92 |
|
| 93 | +import static com.google.common.collect.ImmutableSet.toImmutableSet; |
| 94 | +import static org.openqa.selenium.grid.data.Availability.DRAINING; |
| 95 | +import static org.openqa.selenium.grid.data.Availability.UP; |
| 96 | +import static org.openqa.selenium.grid.node.CapabilityResponseEncoder.getEncoder; |
| 97 | +import static org.openqa.selenium.remote.HttpSessionId.getSessionId; |
| 98 | +import static org.openqa.selenium.remote.RemoteTags.CAPABILITIES; |
| 99 | +import static org.openqa.selenium.remote.RemoteTags.SESSION_ID; |
| 100 | +import static org.openqa.selenium.remote.http.Contents.asJson; |
| 101 | +import static org.openqa.selenium.remote.http.Contents.string; |
| 102 | +import static org.openqa.selenium.remote.http.HttpMethod.DELETE; |
| 103 | + |
104 | 104 | @ManagedService(objectName = "org.seleniumhq.grid:type=Node,name=LocalNode",
|
105 | 105 | description = "Node running the webdriver sessions.")
|
106 | 106 | public class LocalNode extends Node {
|
@@ -317,9 +317,9 @@ public Either<WebDriverException, CreateSessionResponse> newSession(CreateSessio
|
317 | 317 | if (slotToUse == null) {
|
318 | 318 | span.setAttribute("error", true);
|
319 | 319 | span.setStatus(Status.NOT_FOUND);
|
320 |
| - span.addEvent("No slot matched the requested capabilities. All slots are busy.", attributeMap); |
| 320 | + span.addEvent("No slot matched the requested capabilities. ", attributeMap); |
321 | 321 | return Either.left(
|
322 |
| - new RetrySessionRequestException("No slot matched the requested capabilities. All slots are busy.")); |
| 322 | + new RetrySessionRequestException("No slot matched the requested capabilities.")); |
323 | 323 | }
|
324 | 324 |
|
325 | 325 | Either<WebDriverException, ActiveSession> possibleSession = slotToUse.apply(sessionRequest);
|
|
0 commit comments