mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Valery Kharseko
11 hours ago 2b20c60a8fe4d5d62f04d0f80cd45267adf0478f
opendj-server-legacy/src/main/java/org/opends/server/replication/server/ServerHandler.java
@@ -246,6 +246,16 @@
      generationIdSetOnStart = -100;
    }
    // A handshake that got as far as registering this handler in the domain
    // must unregister it on abort: the reader and writer threads that
    // normally trigger the cleanup when the session dies were never started,
    // so nothing else will ever remove it. Do it BEFORE releasing the domain
    // lock, so a handshake queued on the lock never sees the dead handler.
    if (replicationServerDomain != null)
    {
      replicationServerDomain.unregisterFailedHandshake(this);
    }
    releaseDomainLock();
  }