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

Jean-Noel Rouvignac
22.14.2014 1c4d8575e85a9eb67741e42f27f95a7a198542c4
refs
author Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Monday, September 22, 2014 12:14 +0200
committer Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Monday, September 22, 2014 12:14 +0200
commit1c4d8575e85a9eb67741e42f27f95a7a198542c4
tree 2baf95d6470f1d66327fc7f7446f3fd9ae5fd9e6 tree | zip | gz
parent e349126d23ab22a1ef0640277bb672d63e6dd27b view | diff
OPENDJ-1449 : File-based changelog should handle partially written record left over from a previous failure
CR-3768

[Merge r10816 for Nicolas Capponi]
[Note: real merge of all changelog.file package content to be done in one shot in
a future commit]

* LogFile.java
** Add a check of file validity in constructor when log file is write-enabled
** Recover the file if it is corrupted (partially written record) by truncating it

* BlockLogReader.java
** Add method checkLogIsValid() to check validity of file

* replication.properties
** Add new messages related to check and recovery

* LogFileTest.java
** Add tests for recovery after log file corruption

* Minor changes in other files
1 files modified
8 ■■■■ changed files
opendj3-server-dev/src/messages/messages/replication.properties 8 ●●●● diff | view | raw | blame | history