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

Yannick Lecaillez
11.45.2015 f2f95003dffb483fd470e679ea55dde9f81b36d9
refs
author Yannick Lecaillez <ylecaillez@forgerock.com>
Friday, December 11, 2015 16:45 +0100
committer Yannick Lecaillez <ylecaillez@forgerock.com>
Friday, December 11, 2015 18:07 +0100
commitf2f95003dffb483fd470e679ea55dde9f81b36d9
tree 64221bccb8cb97bf55efb464684616c31e823433 tree | zip | gz
parent a862d29cf6de1099ee2496e07c798d5cc518ab8c view | diff
OPENDJ-2543: ChangelogException while doing modrate on PDB instance.

Some cursor continue to be referenced in the openCursors list while they
are actually closed. This caused IOException during head log file
rotation when disableOpenedCursorsOnHead() tried to get state of those
closed and still referenced cursors.
By acquiring shared-lock on cursor.close() we ensure that the close()
and the removal of the cursor from the openedCursors lists are performed
atomically.
1 files modified
18 ■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/replication/server/changelog/file/Log.java 18 ●●●● diff | view | raw | blame | history