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

Jean-Noel Rouvignac
22.14.2014 73cb4335b30dec5870bbf8f11f0518584764b7c3
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
commit73cb4335b30dec5870bbf8f11f0518584764b7c3
tree 8b74f2cc1c714b614d84284dfab6de5d37e06656 tree | zip | gz
parent 3405f64393cd4c4b06fdaf53b679baf68b2e8866 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
opendj-sdk/opendj3-server-dev/src/messages/messages/replication.properties 8 ●●●● diff | view | raw | blame | history