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

Jean-Noël Rouvignac
10.09.2015 b1994018d9cb7d26571157270d5296ac3a368b7c
refs
author Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Thursday, December 10, 2015 16:09 +0100
committer Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Thursday, December 10, 2015 17:32 +0100
commitb1994018d9cb7d26571157270d5296ac3a368b7c
tree 34833b046672b3c64a30df1c7d9579eb30e560a1 tree | zip | gz
parent 3c044e47df222dcc36ba34f880d4c1eea186d09f view | diff
OPENDJ-2522 rpm: error message in logs when uninstalling after an upgrade

The LockFileManager relies on lock files for locking.
Problem is that in this issue, the file paths computed during server startup
are not the same computed as the ones during server shutdown.

During startup, the Strings put into sharedLocks and sharedLockReferences are of the folowing form:
"/opt/opendj/./locks/backend-monitor.lock"
While on shutdown they have the following form:
"/opt/opendj/locks/backend-monitor.lock"
Since the strings do not equal, this message is shown.
This is worrying since it seems any lock checks will be wrong too. :(

The solution is to change Utils.getInstancePathFromInstallPath() to return a canonical path (instead of absolute)
2 files modified
50 ■■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/quicksetup/util/Utils.java 44 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/types/DirectoryEnvironmentConfig.java 6 ●●●●● diff | view | raw | blame | history