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

Yannick Lecaillez
15.56.2015 de0831431445f6bc2c789ba5c1519a944bb16396
refs
author Yannick Lecaillez <ylecaillez@forgerock.com>
Tuesday, December 15, 2015 17:56 +0100
committer Yannick Lecaillez <ylecaillez@forgerock.com>
Wednesday, December 16, 2015 14:19 +0100
commitde0831431445f6bc2c789ba5c1519a944bb16396
tree 9dbd7ef9721225c4edada67f4aa132d094ecae34 tree | zip | gz
parent 8a8a81b8bac1333b0eeae6f07ca58741ab063722 view | diff
OPENDJ-2548: DirectoryException while rebuilding index on PDB instance

Due to nested transaction, attributes added in the compressed-schema
during a replaceEntry might be removed in case of a database rollback
caused, for example, by optimistic lock conflict. Problem is that
compressed-schema maintain also an in-memory cache of the attributes
which becomes inconsistent after those rollback.

The fix perform the entry encoding (and as such, the compressed-schema
modification) outside the replaceEntry transaction.
1 files modified
3 ■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/EntryContainer.java 3 ●●●● diff | view | raw | blame | history