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

Matthew Swift
07.10.2015 37f15beeaa61c76fc5e5b2952096bc2d0445d754
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
commit37f15beeaa61c76fc5e5b2952096bc2d0445d754
tree e9c2f1002e541a6241255e87b6b493afff47bc2b tree | zip | gz
parent 25d61178d9a0f5c71f27616467a06d085fa8b007 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-sdk/opendj-server-legacy/src/main/java/org/opends/server/tools/upgrade/Upgrade.java 83 ●●●● diff | view | raw | blame | history
opendj-sdk/opendj-server-legacy/src/main/java/org/opends/server/tools/upgrade/UpgradeTasks.java 226 ●●●●● diff | view | raw | blame | history
opendj-sdk/opendj-server-legacy/src/main/java/org/opends/server/tools/upgrade/UpgradeUtils.java 41 ●●●●● diff | view | raw | blame | history
opendj-sdk/opendj-server-legacy/src/messages/org/opends/messages/tool.properties 22 ●●●●● diff | view | raw | blame | history