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

Nicolas Capponi
22.33.2014 5951fe86d57c2fab5bb0267c379381d60bcda138
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
commit5951fe86d57c2fab5bb0267c379381d60bcda138
tree e6fd7e489256e975b4e5a7a4c8cf5cfd95cd4009 tree | zip | gz
parent 9945d00997578d184bb832cf5123317540859cc3 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
opendj-sdk/opendj3-server-dev/src/server/org/opends/server/replication/server/ReplicationServer.java 127 ●●●● diff | view | raw | blame | history