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

gbellato
07.19.2009 c015616756e6faa64060971753bc77978ae82dec
refs
author gbellato <gbellato@localhost>
Wednesday, October 7, 2009 14:19 +0200
committer gbellato <gbellato@localhost>
Wednesday, October 7, 2009 14:19 +0200
commitc015616756e6faa64060971753bc77978ae82dec
tree ff53e28f4b14fdbf49118eee0d1f758255a5e721 tree | zip | gz
parent 8fdeab93773ff431de95782889f628e318fe93dc view | diff
The documentation and the configuration of a Replication Domain allow a maximum
value of 65535 for the server-id property. Nevertheless, the server-id in the
ReplicationDomain implementation is managed as a short allowing a maximum value
of 32767.

With this change the code now uses an int to store the server-id.
The maximum is still limited to 65535 and this is enforced by the management framework.

This change should not impact compatibility as the messages exchanged by the servers
are not impacted.

This change also add unit tests allowing to test the compatibility of the V4 protocol
with V3 protocol.
98 files modified
3217 ■■■■■ changed files
opends/src/server/org/opends/server/replication/common/ChangeNumber.java 12 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/common/ChangeNumberGenerator.java 16 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/common/DSInfo.java 32 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/common/MultiDomainServerState.java 2 ●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/common/RSInfo.java 12 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/common/ServerState.java 38 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/plugin/HistoricalCsnOrderingMatchingRule.java 2 ●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/plugin/LDAPReplicationDomain.java 22 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/plugin/MultimasterReplication.java 2 ●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/plugin/PersistentServerState.java 12 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/protocol/AckMsg.java 19 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/protocol/AddMsg.java 6 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/protocol/ChangeTimeHeartbeatMsg.java 2 ●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/protocol/DeleteMsg.java 6 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/protocol/DoneMsg.java 14 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/protocol/EntryMsg.java 20 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/protocol/ErrorMsg.java 14 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/protocol/InitializeRequestMsg.java 12 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/protocol/InitializeTargetMsg.java 24 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/protocol/LDAPUpdateMsg.java 6 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/protocol/ModifyDNMsg.java 6 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/protocol/ModifyMsg.java 6 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/protocol/MonitorMsg.java 85 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/protocol/MonitorRequestMsg.java 12 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/protocol/ReplServerStartMsg.java 8 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/protocol/RoutableMsg.java 22 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/protocol/ServerStartMsg.java 12 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/protocol/StartECLSessionMsg.java 2 ●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/protocol/TopologyMsg.java 41 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/protocol/UpdateMsg.java 6 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/DataServerHandler.java 22 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/DbHandler.java 9 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ECLServerHandler.java 4 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ECLServerWriter.java 2 ●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ExpectedAcksInfo.java 12 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/LightweightServerHandler.java 10 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/MessageHandler.java 8 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/MonitorData.java 88 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/NotAssuredUpdateMsg.java 2 ●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ReplicationBackend.java 2 ●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ReplicationDB.java 6 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ReplicationDbEnv.java 12 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ReplicationIterator.java 2 ●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ReplicationServer.java 10 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ReplicationServerDomain.java 125 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ReplicationServerHandler.java 20 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/SafeDataExpectedAcksInfo.java 12 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/SafeReadExpectedAcksInfo.java 14 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ServerHandler.java 10 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ServerReader.java 34 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ServerWriter.java 18 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/StatusAnalyzer.java 2 ●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/service/CTHeartbeatPublisherThread.java 8 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/service/ReplicationBroker.java 68 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/service/ReplicationDomain.java 158 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/service/ReplicationMonitor.java 8 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/tasks/InitializeTargetTask.java 2 ●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/tasks/InitializeTask.java 2 ●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/workflowelement/externalchangelog/ECLSearchOperation.java 2 ●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/DependencyTest.java 26 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/ExternalChangeLogTest.java 487 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/GenerationIdTest.java 24 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/InitOnLineTest.java 25 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/ProtocolWindowTest.java 2 ●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/ReplicationTestCase.java 16 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/SchemaReplicationTest.java 8 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/StressTest.java 4 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/UpdateOperationTest.java 36 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/common/ChangeNumberGeneratorTest.java 12 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/common/ChangeNumberTest.java 61 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/common/ServerStateTest.java 8 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/AssuredReplicationPluginTest.java 92 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/AttrInfoTest.java 17 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/ComputeBestServerTest.java 80 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/FractionalReplicationTest.java 8 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/GroupIdHandshakeTest.java 22 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/HistoricalCsnOrderingTest.java 6 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/HistoricalTest.java 12 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/IsolationTest.java 4 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/ModifyConflictTest.java 4 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/NamingConflictTest.java 2 ●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/PersistentServerStateTest.java 20 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/ReplicationServerFailoverTest.java 20 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/StateMachineTest.java 36 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/TopologyViewTest.java 71 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/ValueInfoTest.java 17 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/protocol/ProtocolCompatibilityTest.java 336 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/protocol/SynchronizationMsgTest.java 283 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/server/AssuredReplicationServerTest.java 126 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/server/DbHandlerTest.java 14 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/server/DraftCNDbHandlerTest.java 34 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/server/MonitorTest.java 24 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/server/ReplicationServerDynamicConfTest.java 4 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/server/ReplicationServerTest.java 52 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/server/UpdateComparatorTest.java 7 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/service/FakeReplicationDomain.java 4 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/service/FakeStressReplicationDomain.java 4 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/service/ReplicationDomainTest.java 64 ●●●●● diff | view | raw | blame | history