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

gbellato
15.56.2008 d619040017d79901e3bab986323172b0ddaf0b35
Fix for issue 2823 : Replication Heartbeat thread dies 

A break statement is badly positionned in the ReplicationMonitor run method
and can cause the heartbeat Monitor thread to die to quickly
2 files modified
6 ■■■■ changed files
opends/src/server/org/opends/server/replication/plugin/HeartbeatMonitor.java 4 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ServerHandler.java 2 ●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/replication/plugin/HeartbeatMonitor.java
@@ -22,7 +22,7 @@
 * CDDL HEADER END
 *
 *
 *      Portions Copyright 2007 Sun Microsystems, Inc.
 *      Portions Copyright 2007-2008 Sun Microsystems, Inc.
 */
package org.opends.server.replication.plugin;
@@ -121,12 +121,12 @@
            // Heartbeat is well overdue so the server is assumed to be dead.
            logError(NOTE_HEARTBEAT_FAILURE.get(currentThread().getName()));
            session.close();
            break;
          }
          else
          {
            gotOneFailure = true;
          }
          break;
        }
        else
        {
opends/src/server/org/opends/server/replication/server/ServerHandler.java
@@ -553,7 +553,7 @@
          heartbeatThread = new HeartbeatThread(
              "replication Heartbeat to " + serverURL +
              " for " + this.baseDn,
              session, heartbeatInterval);
              session, heartbeatInterval/3);
          heartbeatThread.start();
        }