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

Nicolas Capponi
22.33.2014 1c30f85c74cad5f3a868f2054651e86e5532eb48
refs
author Nicolas Capponi <nicolas.capponi@forgerock.com>
Monday, September 22, 2014 16:33 +0200
committer Nicolas Capponi <nicolas.capponi@forgerock.com>
Monday, September 22, 2014 16:33 +0200
commit1c30f85c74cad5f3a868f2054651e86e5532eb48
tree 1f7750ed920500c4f19f54e233fd0094a50ee458 tree | zip | gz
parent 081fae74bd4e0e2a5dcb01ed004e8c7b43a590db 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
1 files modified
127 ■■■■ changed files
opendj3-server-dev/src/server/org/opends/server/replication/server/ReplicationServer.java 127 ●●●● diff | view | raw | blame | history