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

ludovicp
27.20.2010 c9ad2c07f74b4a3b55ee9d4aa004cbd492a95fdf
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
opendj-sdk/opends/src/server/org/opends/server/replication/server/DbHandler.java 7 ●●●●● patch | view | raw | blame | history
opendj-sdk/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;