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

Nicolas Capponi
28.48.2014 e3d3dcc93bd92c47afd75c9ef749a4ac889263e9
OPENDJ-1482 : SEVERE_ERROR (cursor still opened on the log) when running
replication topology with file-based changelog

Log.java : add last key appended to the log when logging the rejection
of a record
1 files modified
3 ■■■■ changed files
opends/src/server/org/opends/server/replication/server/changelog/file/Log.java 3 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/changelog/file/Log.java
@@ -367,7 +367,8 @@
      if (recordIsBreakingKeyOrdering(record))
      {
        ErrorLogger.logError(Message.raw(Category.SYNC, Severity.NOTICE,
            "Rejecting append to log '%s' for record: [%s]", logPath.getPath(), record.toString()));
            "Rejecting append to log '%s' for record: [%s], last key appended: [%s]", logPath.getPath(), record,
            lastAppendedKey != null ? lastAppendedKey : "null"));
        return;
      }
      LogFile<K, V> headLogFile = getHeadLogFile();