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

pgamba
13.01.2008 1b8ce118499248cac94195f9702fe255298cb1d1
refs
author pgamba <pgamba@localhost>
Thursday, March 13, 2008 11:01 +0100
committer pgamba <pgamba@localhost>
Thursday, March 13, 2008 11:01 +0100
commit1b8ce118499248cac94195f9702fe255298cb1d1
tree 5ceaa137ce44597c36ba3ab5eb28b0864b5475ff tree | zip | gz
parent 03cecd7cc37f0152505a77ce42174fb8b0434e10 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
opends/src/server/org/opends/server/replication/common/ChangeNumberGenerator.java 11 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/plugin/ReplicationDomain.java 7 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/ProtocolWindowTest.java 31 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/UpdateOperationTest.java 117 ●●●●● diff | view | raw | blame | history