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

Matthew Swift
07.10.2015 642ee854211fe638a4c47b44eae0d1405f20caf7
refs
author Matthew Swift <matthew.swift@forgerock.com>
Wednesday, October 7, 2015 23:10 +0200
committer Matthew Swift <matthew.swift@forgerock.com>
Friday, October 9, 2015 13:49 +0200
commit642ee854211fe638a4c47b44eae0d1405f20caf7
tree 7917b87a6ee33b49583b4292c2fcd3a520c7fda9 tree | zip | gz
parent bc6df55e6de5967a511aa756aee6f330b254e4a8 view | diff
OPENDJ-1719: implement upgrade tasks for migrating JE backends

The task comprises of several steps:

* aborts the upgrade if there are enabled local-db backends but no JE
in the class-path
* aborts the upgrade if the enabled local-db backends cannot be opened
or if the upgrade task does not support automated migration, in which
case the user must manually export their data, disable the backend(s),
upgrade, and re-import
* migrates any local-db backend configuration to the new je-backend
config model
* prepares existing local-db backend databases for a rebuild-all by
making the database compatible with the pluggable storge architecture.
In particular, the task renames the compressed schema indexes and
id2entry to the naming scheme used in the new JE backend, and removes
all other indexes. The updates are performed as a transaction to
prevent partial migration
* registers the rebuild-all post-upgrade task.
4 files modified
372 ■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/tools/upgrade/Upgrade.java 83 ●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/tools/upgrade/UpgradeTasks.java 226 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/tools/upgrade/UpgradeUtils.java 41 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/messages/org/opends/messages/tool.properties 22 ●●●●● diff | view | raw | blame | history