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

Nicolas Capponi
04.01.2014 fdcf81df738c71f3cbbfff1272e79c5c4a98e3bb
refs
author Nicolas Capponi <nicolas.capponi@forgerock.com>
Thursday, September 4, 2014 15:01 +0200
committer Nicolas Capponi <nicolas.capponi@forgerock.com>
Thursday, September 4, 2014 15:01 +0200
commitfdcf81df738c71f3cbbfff1272e79c5c4a98e3bb
tree c005ba3e5c435cb593812c8dca5f32fad2cf5e98 tree | zip | gz
parent ba54ec169f5f95ef1b454c1789d75547a98b7aa5 view | diff
Checkpoint commit for OPENDJ-1206 : Create a new ReplicationBackend/ChangelogBackend 
to support cn=changelog
CR-4439

Implementation of an additional validation of provided cookie when searching changelog
in cookie mode.

Check for each state of the provided cookie that the csn is not older than the oldest CSN
available in each domain. If this is not the case, then an error
ERR_RESYNC_REQUIRED_TOO_OLD_DOMAIN_IN_PROVIDED_COOKIE is returned.

This check was done previously in the ECLServerHandler class but was not ported when
writing ChangelogBackend. It also means I'm re-adding some methods deleted by the
previous big clean done by Jean-Noel.

Changes:
* ReplicationServer.java :
- add the check to validateServerState() method
- refactor validateServerState() method for better readability
* ReplicationServerDomain.java :
- re-add getOldestState() method
* ReplicationDomainDB. java :
- re-add getDomainOldestCSNs(DN) method
* FileChangelogDB.java, JEChangelogDB.java :
- re-add implementation of getDomainOldestCSNs(DN) method
7 files modified
182 ■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/backends/ChangelogBackend.java 2 ●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/server/ReplicationServer.java 127 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/server/ReplicationServerDomain.java 11 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/server/changelog/api/ReplicationDomainDB.java 12 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/server/changelog/file/FileChangelogDB.java 12 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/server/changelog/je/JEChangelogDB.java 12 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/backends/ChangelogBackendTestCase.java 6 ●●●● diff | view | raw | blame | history