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

Fabio Pistolesi
11.16.2016 7160f59040db3b159e1d73d9ba58055e8806163d
refs
author Fabio Pistolesi <fabio.pistolesi@forgerock.com>
Tuesday, October 11, 2016 15:16 +0200
committer Fabio Pistolesi <fabio.pistolesi@forgerock.com>
Wednesday, October 12, 2016 12:30 +0200
commit7160f59040db3b159e1d73d9ba58055e8806163d
tree ac408bfb32dbf7a1d2404e5cd7213e1617ed9bdc tree | zip | gz
parent fd51cbf2554c76ecfb8ccc13de4ce9dabbe5b8b2 view | diff
OPENDJ-3337 Make sure ReplicationOffline messages are not repeatedly returned by cursors.

ReplicationOffline messages need special treatment, as they do not update server states.
Prevent returning already processed messages, especially when they're the last message for the domain.
Moreover set a server as following the replication when there are no new messages to send.
3 files modified
29 ■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/replication/server/MessageHandler.java 7 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/replication/server/ReplicationServerDomain.java 4 ●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/replication/server/changelog/file/ReplicaCursor.java 18 ●●●● diff | view | raw | blame | history