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

Jean-Noel Rouvignac
28.06.2013 5c3362e4dd1ee79c10160cfd128b70cdb9a2dee1
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
commit5c3362e4dd1ee79c10160cfd128b70cdb9a2dee1
tree adba4cf09ea73600d655fbd938880e16f2b5447f tree | zip | gz
parent 099e528f6399dc1655c8d9c5cf60fe2326ef47dd 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.
1 files renamed
2 files modified
1020 ■■■■■ changed files
opends/src/messages/messages/replication.properties 35 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/service/ReplicationBroker.java 722 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/service/ComputeBestServerTest.java 263 ●●●● diff | view | raw | blame | history