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

Nicolas Capponi
04.01.2014 74ae8f26373f050f18bc0f0f4b3f0706a1f3f5be
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
commit74ae8f26373f050f18bc0f0f4b3f0706a1f3f5be
tree 7dbc1f76ba3af751af70ea10af8a2db154fdfaac tree | zip | gz
parent 1ffd61775354a7c13f5e52907647d339bc15bda9 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
opends/src/server/org/opends/server/backends/ChangelogBackend.java 2 ●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ReplicationServer.java 127 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ReplicationServerDomain.java 11 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/changelog/api/ReplicationDomainDB.java 12 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/changelog/file/FileChangelogDB.java 12 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/changelog/je/JEChangelogDB.java 12 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/backends/ChangelogBackendTestCase.java 6 ●●●● diff | view | raw | blame | history