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

pgamba
13.01.2008 5589e80c0344aafd9db1b24ef4a820486620322a
refs
author pgamba <pgamba@localhost>
Thursday, March 13, 2008 11:01 +0100
committer pgamba <pgamba@localhost>
Thursday, March 13, 2008 11:01 +0100
commit5589e80c0344aafd9db1b24ef4a820486620322a
tree 0d401b617ee65f38deebfe0cf43d05b8514232cc tree | zip | gz
parent 8e0e59f21a600c2cb5ef8daa6eb8c8ffcd88bf0a view | diff
An update sent by a replicated LDAP server is tagged with a ChangeNumber generated by a ChangeNumberGenerator. One component of the ChangeNumber is a timestamp,
Because we want the timestamp of the ChangeNumbers to be consistently growing across the whole topology and not only inside each server independently, the ChangeNumberGenerator must be adjusted with the timestamp of the updates
received from the other servers of the topology. The code was already here but erroneously used.

Unit test written accordingly. It also required some changes in ProtocolWindowTest unit test to isolate it from the other unit tests.


4 files modified
166 ■■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/replication/common/ChangeNumberGenerator.java 11 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/plugin/ReplicationDomain.java 7 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/ProtocolWindowTest.java 31 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/UpdateOperationTest.java 117 ●●●●● diff | view | raw | blame | history