From 74be925257cd0df68cfde1a77f77cbb930c7832f Mon Sep 17 00:00:00 2001
From: pgamba <pgamba@localhost>
Date: Wed, 24 Oct 2007 14:04:25 +0000
Subject: [PATCH] Fix 2425 - dsreplication initialize-all fails - fix ConcurrentModificationException in the Initialize task by using methods that lock the entry - fix unroutable message, by forwarding message only to the replication servers that have replica connected Miscellaneous improvements in error or debug traces
---
opends/src/server/org/opends/server/replication/plugin/HeartbeatMonitor.java | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/opends/src/server/org/opends/server/replication/plugin/HeartbeatMonitor.java b/opends/src/server/org/opends/server/replication/plugin/HeartbeatMonitor.java
index e86e485..f18dcbe 100644
--- a/opends/src/server/org/opends/server/replication/plugin/HeartbeatMonitor.java
+++ b/opends/src/server/org/opends/server/replication/plugin/HeartbeatMonitor.java
@@ -27,6 +27,8 @@
package org.opends.server.replication.plugin;
+import static org.opends.messages.ReplicationMessages.*;
+import static org.opends.server.loggers.ErrorLogger.logError;
import static org.opends.server.loggers.debug.DebugLogger.*;
import static org.opends.server.util.StaticUtils.stackTraceToSingleLineString;
@@ -114,11 +116,7 @@
if (now > lastReceiveTime + 2 * heartbeatInterval)
{
// Heartbeat is well overdue so the server is assumed to be dead.
- if (debugEnabled())
- {
- TRACER.debugInfo("Heartbeat monitor is closing the broker " +
- "session because it could not detect a heartbeat.");
- }
+ logError(NOTE_HEARTBEAT_FAILURE.get(this.currentThread().getName()));
session.close();
break;
}
--
Gitblit v1.10.0