From 770b01af54bdb4f6683bfda4253033f021090baa Mon Sep 17 00:00:00 2001
From: sin <sin@localhost>
Date: Tue, 17 Jul 2007 20:42:40 +0000
Subject: [PATCH] Bug# 1953 Bug Desc: Handle RunRecoveryException thrown by Sleepycat with Administrative Alerts
---
opends/src/server/org/opends/server/messages/BackendMessages.java | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/messages/BackendMessages.java b/opends/src/server/org/opends/server/messages/BackendMessages.java
index 4cd24ac..493f138 100644
--- a/opends/src/server/org/opends/server/messages/BackendMessages.java
+++ b/opends/src/server/org/opends/server/messages/BackendMessages.java
@@ -3216,6 +3216,17 @@
/**
+ * The message ID for the message that will be used if the JE
+ * backend throws a RunRecoveryException and marks the Environment
+ * unusable. This takes one argument, which is the backend id throwing the
+ * exception.
+ */
+ public static final int MSGID_BACKEND_ENVIRONMENT_UNUSABLE =
+ CATEGORY_MASK_BACKEND | SEVERITY_MASK_NOTICE | 297;
+
+
+
+ /**
* Associates a set of generic messages with the message IDs defined in this
* class.
*/
@@ -4369,6 +4380,10 @@
registerMessage(MSGID_MEMORYBACKEND_RENAME_PARENT_DOESNT_EXIST,
"Cannot rename entry %s because the new parent entry %s " +
"doesn't exist");
+ registerMessage(MSGID_BACKEND_ENVIRONMENT_UNUSABLE,
+ "JE Database Environment corresponding to backend id %s " +
+ "is corrupt. Restart the Directory Server to reopen the " +
+ "Environment");
}
}
--
Gitblit v1.10.0