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

Jean-Noel Rouvignac
28.06.2013 b641e61ee1c319b102f75c198aaf13a9e4145f40
refs
author Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Monday, October 28, 2013 10:06 +0100
committer Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Monday, October 28, 2013 10:06 +0100
commitb641e61ee1c319b102f75c198aaf13a9e4145f40
tree 1c86b295758b1fa1190edfe1809591f7ba6c3fcb tree | zip | gz
parent 9fd10348bf2d79015b089cbd4b1a484d8f1ff51b view | diff
OPENDJ-1053 (CR-2520) Improve logging of replication load balancing and fail-over in order to diagnose the causes of these events


This change records how each replication server is evaluated by computeBestReplicationServer().
It also logs why a DS switches from one RS to another RS.


ReplicationBroker.java:
Added static classes RSEvaluations and LocalEvaluation.
Moved keepBest() method to RSEvaluations.
In filterServersWithAllLocalDSChanges(), reworked the code to be more understandable + Added method getCSN() and rejectAllWithRSIsLaterThanBestRS(), rejectAllWithRSOnDifferentVMThanDS().
In computeBestServerWhenConnected(), extracted method isServerOverloadingRS().

replication.properties:
Added tons of messages.

ComputeBestServerTest.java:
Moved this class to package org.opends.server.replication.service to match the package of the tested code.
Consequence of the changes to ReplicationBroker.
Added methods containsOnly(), getDescription(), getEval1() and getEval2().
Reformatted the code a bit.
Removed @throws from javadocs.
2 files modified
1 files renamed
1020 ■■■■■ changed files
opendj-sdk/opends/src/messages/messages/replication.properties 35 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/service/ReplicationBroker.java 722 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/service/ComputeBestServerTest.java 263 ●●●● diff | view | raw | blame | history