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

Jean-Noel Rouvignac
01.44.2013 0cea62907aa1c9179e359bacccf0b2692ca01d46
refs
author Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Tuesday, October 1, 2013 12:44 +0200
committer Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Tuesday, October 1, 2013 12:44 +0200
commit0cea62907aa1c9179e359bacccf0b2692ca01d46
tree d37370e616ad8b84dab5adf5fb6906906c0a80cf tree | zip | gz
parent f95eca255b79a070abb510da157a37969c81fed2 view | diff
OPENDJ-1116 Introduce abstraction for the changelog DB


Removed ReplicationServer.removeDb() + let the exceptions propagate up in ChangelogDB.shutdownDB() and ChangelogDB.removeDB().


ReplicationServer.java:
Removed removeDb(), instead use JEChangelogDB.removeDB().

ChangelogDB.java:
shutdownDB() and removeDB() can now throw ChangelogException.

JEChangelogDB.java:
shutdownCNIndexDB(), shutdownDB() and removeDB() can now throw ChangelogException + ensured code proceed till the end of the methods before throwing the first caught exception.
In removeDB(), called shutdownDB().

*Test[Case].java:
Allowed exceptions to propagate up, this will allow detecting issues in tests suite.
9 files modified
131 ■■■■■ changed files
opends/src/server/org/opends/server/replication/server/ReplicationServer.java 20 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/changelog/api/ChangelogDB.java 10 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/changelog/je/JEChangelogDB.java 71 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/InitOnLineTest.java 2 ●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/ReplicationTestCase.java 20 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/FractionalReplicationTest.java 2 ●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/ReplicationServerLoadBalancingTest.java 2 ●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/server/AssuredReplicationServerTest.java 2 ●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/server/ExternalChangeLogTest.java 2 ●●● diff | view | raw | blame | history