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

Nicolas Capponi
19.36.2014 0e63575f95dafe1cdb67fb1cc3814ac97e51596e
refs
author Nicolas Capponi <nicolas.capponi@forgerock.com>
Friday, September 19, 2014 17:36 +0200
committer Nicolas Capponi <nicolas.capponi@forgerock.com>
Friday, September 19, 2014 17:36 +0200
commit0e63575f95dafe1cdb67fb1cc3814ac97e51596e
tree 3b9cabb5d2931c9ca8807e0c4cb45da60ffc1b73 tree | zip | gz
parent 0bebefe81310d8705bfafe769737a2e4087b771e view | diff
OPENDJ-1388 CR-3446 Implement simple changelog db based on single log file

[Note: actual merge of all org.opends.server.replication.server.changelog.file
package content to be done in one shot in a future commit]

* Add new package org.opends.server.replication.server.changelog.file
containing the log file implementation

* The new package contains the following classes :
** Classes implementing the log - independant from changelog and built from scratch
- LogFile : implementation of log based on a single file
- LogWriter : writer for the log
- LogReaderPool : pool of readers for the log
- Record : a (key, value) log record
- RecordParser : interface for the convertion from record to bytes and bytes to record
- DecodingException : exception thrown when record decoding fails
** Classes implementing the changelog API, based on the log implementation.
- FileChangelogDB
- FileChangeNumberIndexDB
- FileChangeNumberIndexDBCursor
- FileReplicaDB
- FileReplicaDBCursor
- ReplicationEnvironment

* Add unit tests for org.opends.server.replication.server.changelog.file package

* Add new attribute 'ds-cfg-replication-db-implementation' in
ds-cfg-replication-server (ServerReplicationConfig class), allowing
to choose the db implementation to use for changelog in directory server:
either je or log file. Default is 'je'.

* Add new option 'org.opends.test.replicationDbImpl' for test target in build.xml
to choose the db implementation to for changelog when running the tests.
Default is 'log' (log file).

* Update all replication unit tests to allow the selection of changelog db implementation
to use in tests.

* Fix the ReferentialIntegerityPluginTestCase to do better cleanup at end of test in
order to avoid side-effect on other tests.
2 files added
34 files modified
753 ■■■■ changed files
opendj3-server-dev/build.xml 20 ●●●●● diff | view | raw | blame | history
opendj3-server-dev/resource/schema/02-config.ldif 7 ●●●●● diff | view | raw | blame | history
opendj3-server-dev/src/admin/defn/org/opends/server/admin/std/ReplicationServerConfiguration.xml 32 ●●●●● diff | view | raw | blame | history
opendj3-server-dev/src/admin/messages/ReplicationServerCfgDefn.properties 3 ●●●●● diff | view | raw | blame | history
opendj3-server-dev/src/messages/messages/replication.properties 56 ●●●●● diff | view | raw | blame | history
opendj3-server-dev/src/server/org/opends/server/backends/jeb/BackupManager.java 7 ●●●● diff | view | raw | blame | history
opendj3-server-dev/src/server/org/opends/server/replication/server/ReplicationServer.java 16 ●●●●● diff | view | raw | blame | history
opendj3-server-dev/src/server/org/opends/server/replication/server/changelog/file/FileChangelogDB.java 205 ●●●●● diff | view | raw | blame | history
opendj3-server-dev/src/server/org/opends/server/replication/server/changelog/file/package-info.java 33 ●●●●● diff | view | raw | blame | history
opendj3-server-dev/src/server/org/opends/server/replication/server/changelog/je/ChangeNumberIndexer.java 3 ●●●● diff | view | raw | blame | history
opendj3-server-dev/tests/unit-tests-testng/src/server/org/opends/server/DirectoryServerTestCase.java 5 ●●●●● diff | view | raw | blame | history
opendj3-server-dev/tests/unit-tests-testng/src/server/org/opends/server/TestCaseUtils.java 46 ●●●●● diff | view | raw | blame | history
opendj3-server-dev/tests/unit-tests-testng/src/server/org/opends/server/plugins/ReferentialIntegrityPluginTestCase.java 2 ●●●●● diff | view | raw | blame | history
opendj3-server-dev/tests/unit-tests-testng/src/server/org/opends/server/replication/DependencyTest.java 18 ●●●●● diff | view | raw | blame | history
opendj3-server-dev/tests/unit-tests-testng/src/server/org/opends/server/replication/GenerationIdTest.java 23 ●●●● diff | view | raw | blame | history
opendj3-server-dev/tests/unit-tests-testng/src/server/org/opends/server/replication/InitOnLineTest.java 7 ●●●● diff | view | raw | blame | history
opendj3-server-dev/tests/unit-tests-testng/src/server/org/opends/server/replication/ProtocolWindowTest.java 4 ●●●● diff | view | raw | blame | history
opendj3-server-dev/tests/unit-tests-testng/src/server/org/opends/server/replication/ReplicationTestCase.java 25 ●●●●● diff | view | raw | blame | history
opendj3-server-dev/tests/unit-tests-testng/src/server/org/opends/server/replication/SchemaReplicationTest.java 1 ●●●● diff | view | raw | blame | history
opendj3-server-dev/tests/unit-tests-testng/src/server/org/opends/server/replication/UpdateOperationTest.java 1 ●●●● diff | view | raw | blame | history
opendj3-server-dev/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/FractionalReplicationTest.java 4 ●●●● diff | view | raw | blame | history
opendj3-server-dev/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/GroupIdHandshakeTest.java 13 ●●●● diff | view | raw | blame | history
opendj3-server-dev/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/HistoricalCsnOrderingTest.java 4 ●●●● diff | view | raw | blame | history
opendj3-server-dev/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/ReplicationServerFailoverTest.java 4 ●●●● diff | view | raw | blame | history
opendj3-server-dev/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/ReplicationServerLoadBalancingTest.java 8 ●●●● diff | view | raw | blame | history
opendj3-server-dev/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/StateMachineTest.java 4 ●●●● diff | view | raw | blame | history
opendj3-server-dev/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/TopologyViewTest.java 4 ●●●● diff | view | raw | blame | history
opendj3-server-dev/tests/unit-tests-testng/src/server/org/opends/server/replication/server/AssuredReplicationServerTest.java 8 ●●●● diff | view | raw | blame | history
opendj3-server-dev/tests/unit-tests-testng/src/server/org/opends/server/replication/server/ExternalChangeLogTest.java 2 ●●● diff | view | raw | blame | history
opendj3-server-dev/tests/unit-tests-testng/src/server/org/opends/server/replication/server/MonitorTest.java 4 ●●●● diff | view | raw | blame | history
opendj3-server-dev/tests/unit-tests-testng/src/server/org/opends/server/replication/server/ReplServerFakeConfiguration.java 35 ●●●●● diff | view | raw | blame | history
opendj3-server-dev/tests/unit-tests-testng/src/server/org/opends/server/replication/server/ReplicationServerDynamicConfTest.java 4 ●●●● diff | view | raw | blame | history
opendj3-server-dev/tests/unit-tests-testng/src/server/org/opends/server/replication/server/ReplicationServerTest.java 19 ●●●● diff | view | raw | blame | history
opendj3-server-dev/tests/unit-tests-testng/src/server/org/opends/server/replication/server/changelog/je/JEChangeNumberIndexDBTest.java 19 ●●●●● diff | view | raw | blame | history
opendj3-server-dev/tests/unit-tests-testng/src/server/org/opends/server/replication/server/changelog/je/JEReplicaDBTest.java 103 ●●●●● diff | view | raw | blame | history
opendj3-server-dev/tests/unit-tests-testng/src/server/org/opends/server/replication/service/ReplicationDomainTest.java 4 ●●●● diff | view | raw | blame | history