Skip to content

Commit 6849486

Browse files
committed
[grid] Delete all session information from Redis backed session map
1 parent 26d8ff6 commit 6849486

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

java/src/org/openqa/selenium/grid/sessionmap/redis/RedisBackedSessionMap.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,13 +260,18 @@ public void remove(SessionId id) {
260260

261261
String uriKey = uriKey(id);
262262
String capabilitiesKey = capabilitiesKey(id);
263+
String stereotypeKey = stereotypeKey(id);
264+
String startKey = startKey(id);
263265
span.setAttribute(REDIS_URI_KEY, uriKey);
264266
span.setAttribute(REDIS_CAPABILITIES_KEY, capabilitiesKey);
267+
span.setAttribute(REDIS_START_KEY, startKey);
265268
attributeMap.put(REDIS_URI_KEY, EventAttribute.setValue(uriKey));
266269
attributeMap.put(REDIS_CAPABILITIES_KEY, EventAttribute.setValue(capabilitiesKey));
270+
attributeMap.put(REDIS_START_KEY, EventAttribute.setValue(startKey));
267271

268272
span.addEvent("Deleted session from the database", attributeMap);
269-
connection.del(uriKey, capabilitiesKey);
273+
274+
connection.del(uriKey, capabilitiesKey, stereotypeKey, startKey);
270275
}
271276
}
272277

0 commit comments

Comments
 (0)