From d25e04b65fe9eabe09461e5856447252b5ca452b Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Mon, 23 Jan 2012 15:05:50 +0000
Subject: [PATCH] Add flag day for fix OPENDJ-410: Frequent corruption in ds-sync-hist ordering index

---
 opendj-sdk/opends/src/messages/messages/version.properties                         |    9 +++++++++
 opendj-sdk/opends/src/server/org/opends/server/util/VersionCompatibilityIssue.java |   20 ++++++++++++++++++--
 2 files changed, 27 insertions(+), 2 deletions(-)

diff --git a/opendj-sdk/opends/src/messages/messages/version.properties b/opendj-sdk/opends/src/messages/messages/version.properties
index a69a546..c981c3f 100644
--- a/opendj-sdk/opends/src/messages/messages/version.properties
+++ b/opendj-sdk/opends/src/messages/messages/version.properties
@@ -21,6 +21,7 @@
 # CDDL HEADER END
 #
 #      Copyright 2006-2009 Sun Microsystems, Inc.
+#      Portions copyright 2012 ForgeRock AS.
 
 
 
@@ -110,3 +111,11 @@
  reversion has finished
 INFO_5278_REVERSION_17=Reversion from version 2.0 to a previous version is \
 not supported
+INFO_7635_UPGRADE_18=The revision 7635 introduces a change to the \
+ way in which the 'ds-sync-hist' attribute is normalized for indexing. \
+ In order to complete the upgrade of this server you will have to manually \
+ rebuild the 'ds-sync-hist' attribute index after the upgrade has finished
+INFO_7635_REVERSION_19=With this reversion the normalization of the \
+ 'ds-sync-hist' attribute will be reverted to the prior version. In order to \
+ complete the reversion of this server you will need to start the server and \
+ then perform an online rebuild of the 'ds-sync-hist' index
diff --git a/opendj-sdk/opends/src/server/org/opends/server/util/VersionCompatibilityIssue.java b/opendj-sdk/opends/src/server/org/opends/server/util/VersionCompatibilityIssue.java
index 2b3fea2..e08b7ee 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/util/VersionCompatibilityIssue.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/util/VersionCompatibilityIssue.java
@@ -23,7 +23,7 @@
  *
  *
  *      Copyright 2007-2009 Sun Microsystems, Inc.
- *      Portions Copyright 2011 ForgeRock AS
+ *      Portions Copyright 2011-2012 ForgeRock AS
  */
 
 package org.opends.server.util;
@@ -218,6 +218,19 @@
    * or more versions of the OpenDJ codebase.
    */
   public enum Cause {
+
+    /**
+     * Incompatible changes in ds-sync-hist normalization. This causes
+     * ds-sync-hist attribute indexes to be invalidated.
+     */
+    DS_SYNC_HIST_NORMALIZATION_CHANGE_1(
+        10, // Unique ID.  See javadoc for more information.
+        INFO_7635_UPGRADE.get(),
+        INFO_7635_REVERSION.get(),
+        Effect.REVERSION_MANUAL_ACTION_REQUIRED,
+        Effect.UPGRADE_MANUAL_ACTION_REQUIRED),
+
+
     /**
      * We not support the revert to the previous version.
      */
@@ -481,7 +494,10 @@
   //
   //***************************************************
 
-  static {
+  static
+  {
+    register(Cause.DS_SYNC_HIST_NORMALIZATION_CHANGE_1, new BuildVersion(2, 4,
+        5, 7635));
     register (Cause.REVERT_NOT_SUPPORTED_1, new BuildVersion(2,0,0,5278));
     register(Cause.STRINGPREP_NORMALIZATION_CHANGE_1,
             new BuildVersion(1,2,0,5134));

--
Gitblit v1.10.0