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

Matthew Swift
25.05.2011 e7e4acbc4e2aae2e3c57aacb764dfbaa0f6302c7
Fix OpenDJ-99 - NoSuchElementExceptions while replaying replicated operations
1 files modified
16 ■■■■■ changed files
opends/src/server/org/opends/server/replication/plugin/LDAPReplicationDomain.java 16 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/replication/plugin/LDAPReplicationDomain.java
@@ -2835,8 +2835,24 @@
   */
  public void updateError(ChangeNumber changeNumber)
  {
    try
    {
    remotePendingChanges.commit(changeNumber);
  }
    catch (NoSuchElementException e)
    {
      // A failure occurred after the change had been removed from the pending
      // changes table.
      if (debugEnabled())
      {
        TRACER
            .debugInfo(
                "LDAPReplicationDomain.updateError: Unable to find remote "
                    + "pending change for change number %s",
                changeNumber);
      }
    }
  }
  /**
   * Generate a new change number and insert it in the pending list.