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

Jean-Noël Rouvignac
26.37.2015 bed9ba6f9dcea95f7df2a3e76669d10e9c9c18e6
refs
author Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Thursday, November 26, 2015 17:37 +0100
committer Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Thursday, November 26, 2015 18:00 +0100
commitbed9ba6f9dcea95f7df2a3e76669d10e9c9c18e6
tree eb0c535d7b98fe94b0155bb8ada9bbb1ffeac4f6 tree | zip | gz
parent fcfeaa126e75c11cfb963f02c6f66a53bbca3109 view | diff
OPENDJ-2480 Upgrade fails while migrating JE backend

When opening the JE environment to remove the old indexes,
JE tries to deserialize the comparators embedded in the indexes.
In this particular case, JE cannot find the class org.opends.server.backends.jeb.AttributeIndex$KeyComparator which is used for attribute indexes.
This class has been removed from OpenDJ code with OPENDJ-2337 (Remove old JE local-db backend code).
Note that the same problem can also happen with VLV indexes org.opends.server.backends.jeb.VLVKeyComparator.

The fix is the same as OPENDJ-1637: Ensure that classes exist in the classpath that will allow deserialization of the comparators.

AttributeIndex.java, VLVKeyComparator.java: ADDED to opendj-legacy project
2 files added
92 ■■■■■ changed files
opendj-legacy/src/main/java/org/opends/server/backends/jeb/AttributeIndex.java 50 ●●●●● diff | view | raw | blame | history
opendj-legacy/src/main/java/org/opends/server/backends/jeb/VLVKeyComparator.java 42 ●●●●● diff | view | raw | blame | history