Skip to content

Commit

Permalink
[grid] Delete all session information from Redis backed session map
Browse files Browse the repository at this point in the history
  • Loading branch information
pujagani committed Sep 1, 2021
1 parent 26d8ff6 commit 6849486
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -260,13 +260,18 @@ public void remove(SessionId id) {

String uriKey = uriKey(id);
String capabilitiesKey = capabilitiesKey(id);
String stereotypeKey = stereotypeKey(id);
String startKey = startKey(id);
span.setAttribute(REDIS_URI_KEY, uriKey);
span.setAttribute(REDIS_CAPABILITIES_KEY, capabilitiesKey);
span.setAttribute(REDIS_START_KEY, startKey);
attributeMap.put(REDIS_URI_KEY, EventAttribute.setValue(uriKey));
attributeMap.put(REDIS_CAPABILITIES_KEY, EventAttribute.setValue(capabilitiesKey));
attributeMap.put(REDIS_START_KEY, EventAttribute.setValue(startKey));

span.addEvent("Deleted session from the database", attributeMap);
connection.del(uriKey, capabilitiesKey);

connection.del(uriKey, capabilitiesKey, stereotypeKey, startKey);
}
}

Expand Down

0 comments on commit 6849486

Please sign in to comment.