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

gbellato
28.06.2007 f87b1f70312df3e81cdef283089970e500c33a48
refs
author gbellato <gbellato@localhost>
Wednesday, February 28, 2007 15:06 +0100
committer gbellato <gbellato@localhost>
Wednesday, February 28, 2007 15:06 +0100
commitf87b1f70312df3e81cdef283089970e500c33a48
tree e205324b9dca938f6d5a1a7807dd4f0f2b2c1f09 tree | zip | gz
parent 860b0be3a8040fffbc0e6fa89b066efb8f4234fb 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
opendj-sdk/opends/resource/schema/02-config.ldif 3 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/backends/SchemaBackend.java 48 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/config/ConfigConstants.java 6 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/core/Operation.java 35 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/core/SchemaConfigManager.java 13 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/synchronization/plugin/MultimasterSynchronization.java 54 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/synchronization/plugin/PersistentServerState.java 95 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/synchronization/plugin/SynchronizationDomain.java 76 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/types/Schema.java 30 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/api/ConfigurableComponentTestCase.java 8 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/synchronization/SchemaSynchronizationTest.java 237 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/synchronization/StressTest.java 4 ●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/synchronization/SynchronizationTestCase.java 14 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/synchronization/UpdateOperationTest.java 15 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/synchronization/plugin/PersistentStateTest.java 125 ●●●●● diff | view | raw | blame | history