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

gbellato
28.06.2007 c36a6780c20f526df1bc6e1a3a3b71dfa8b9ec3d
refs
author gbellato <gbellato@localhost>
Wednesday, February 28, 2007 15:06 +0100
committer gbellato <gbellato@localhost>
Wednesday, February 28, 2007 15:06 +0100
commitc36a6780c20f526df1bc6e1a3a3b71dfa8b9ec3d
tree 3501a7cc94dff6ef72b400be7298ba2a2fb85301 tree | zip | gz
parent 47e7af9250d3f79521d6bbf1b7629f3f2493a989 view | diff
This set of changes allow to have the schema synchronization working by
configuring synchronization for suffix cn=schema (issue 613) .

You may want to read the schema Synchronization documents before reviewing this
https://opends.dev.java.net/public/docs/dev-docs/SchemaSyncFeatureRequirements.html and
https://opends.dev.java.net/public/docs/dev-docs/SchemaSyncDesign.html

It includes :

- Change the PersistentServerState to use attribute ds-sync-state in the base entry
instead of a specific entry.
Add new unit test for the PersistentServerState class.
Change attribute ds-sync-state to be an operational attribute.

- Change the schema backend to allow storage of the ds-synch-state attribute in the
schema ldif File.
This change is arguable because I have chosen to make this as simple as possible
and therefore only allowed the storage of this attribute in the schema File.
While this has the advantage of being very simple it has
the drawback of adding some code in the schema backend that is only related to synchronization.
The other choice would be to add a generic service in the schema backend for storing
any type of attribute.
Please tell me if you think that this would be better.

- Disable the conflict resolution for cn=schema so that we don't polute the ldif entries
with the historical information

- Add unit test for schema synchronization

The work for schema synchronization is not complete with this.
A second round of modification is necessary for synchronizing the schema changes
done by manually editing the files or by dynamically loading a file.
2 files added
13 files modified
763 ■■■■ changed files
opends/resource/schema/02-config.ldif 3 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/backends/SchemaBackend.java 48 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/config/ConfigConstants.java 6 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/core/Operation.java 35 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/core/SchemaConfigManager.java 13 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/synchronization/plugin/MultimasterSynchronization.java 54 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/synchronization/plugin/PersistentServerState.java 95 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/synchronization/plugin/SynchronizationDomain.java 76 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/types/Schema.java 30 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/api/ConfigurableComponentTestCase.java 8 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/synchronization/SchemaSynchronizationTest.java 237 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/synchronization/StressTest.java 4 ●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/synchronization/SynchronizationTestCase.java 14 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/synchronization/UpdateOperationTest.java 15 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/synchronization/plugin/PersistentStateTest.java 125 ●●●●● diff | view | raw | blame | history