From d9be467ca788204fa15c84a658d49017a7af15ab Mon Sep 17 00:00:00 2001
From: coulbeck <coulbeck@localhost>
Date: Thu, 19 Oct 2006 15:32:47 +0000
Subject: [PATCH] Fix for [Issue 798] break infinite loop when problems with naming resolution conflict. Reviewed by gbellato. The fix is to replay the operation a maximum of 10 times. There is a unit test for this issue that uses the short-circuit plugin to force the infinite replay loop.
---
opendj-sdk/opends/src/server/org/opends/server/synchronization/SynchMessages.java | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/synchronization/SynchMessages.java b/opendj-sdk/opends/src/server/org/opends/server/synchronization/SynchMessages.java
index 1c3a9aa..6fefefc 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/synchronization/SynchMessages.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/synchronization/SynchMessages.java
@@ -257,6 +257,14 @@
CATEGORY_MASK_SYNC | SEVERITY_MASK_SEVERE_ERROR | 34;
/**
+ * Loop detected while replaying an operation. This message takes one
+ * string argument containing details of the operation that could not be
+ * replayed.
+ */
+ public static final int MSGID_LOOP_REPLAYING_OPERATION =
+ CATEGORY_MASK_SYNC | SEVERITY_MASK_MILD_ERROR | 35;
+
+ /**
* Register the messages from this class in the core server.
*
*/
@@ -345,5 +353,7 @@
MessageHandler.registerMessage(
MSGID_EXCEPTION_RECEIVING_SYNCHRONIZATION_MESSAGE,
"An Exception was caught while receiving synchronization message : %s");
+ MessageHandler.registerMessage(MSGID_LOOP_REPLAYING_OPERATION,
+ "A loop was detected while replaying operation: %s");
}
}
--
Gitblit v1.10.0