[grid] We do not need to stop the session again
If we get a `SessionClosedEvent`, it means that
the `SessionSlot` already stopped the session
so there is no need to invoke `this.stop(id)`
again.
@@ -175,10 +175,7 @@ private LocalNode(
regularly.submit(() -> bus.fire(new NodeHeartBeatEvent(getStatus())), heartbeatPeriod, heartbeatPeriod);
bus.addListener(SessionClosedEvent.listener(id -> {
- try {
- this.stop(id);
- } catch (NoSuchSessionException ignore) {
- }
+ // Listen to session terminated events so we know when to fire the NodeDrainComplete event
if (this.isDraining()) {
int done = pendingSessions.decrementAndGet();
if (done <= 0) {
