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

ludovicp
27.20.2010 951514869c3e00b9c0392d10a43d54657f0d4027
Fix for Issue #4546 : Exception during Replication causes Deadlock When some failure happen in the dbHandler cleaner trimming thread the db shutdown can be called from this thread and should therefore not wait for the trimming thread to complete. This is fixed by setting the done flag before calling the shutdown.
1 files modified
7 ■■■■■ changed files
opends/src/server/org/opends/server/replication/server/DbHandler.java 7 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/DbHandler.java
@@ -415,6 +415,13 @@
        mb.append(ERR_EXCEPTION_CHANGELOG_TRIM_FLUSH.get());
        mb.append(stackTraceToSingleLineString(end));
        logError(mb.toMessage());
        synchronized (this)
        {
          // set the done variable to true so that this thread don't
          // get stuck in this dbHandler.shutdown() when it get called
          // by replicationServer.shutdown();
          done = true;
        }
        if (replicationServer != null)
          replicationServer.shutdown();
        break;