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

Fabio Pistolesi
21.00.2016 fc0a020218a55a4259d88d7c087fe022943c6bb4
refs
author Fabio Pistolesi <fabio.pistolesi@forgerock.com>
Tuesday, June 21, 2016 15:00 +0200
committer Fabio Pistolesi <fabio.pistolesi@forgerock.com>
Wednesday, June 22, 2016 12:22 +0200
commitfc0a020218a55a4259d88d7c087fe022943c6bb4
tree 035cb1a8f31b29f6157cf91b460910c11182b6bf tree | zip | gz
parent d97a7492dd6bae0d765f1284036e2d649a43fb5d view | diff
OPENDJ-3066 LDAPReplicationDomain should track import and export of the domain via ReplicationDomain

When a domain is initialized by protocol, ReplicationDomain would initiate an import and restart the broker after it is finished. It considers the import finished when the broker has started.
On the other hand LDAPDomainProtocol may write the server state after import has finished but the broker is still in the process of being restarted,
leading to a race condition between the configuration handler and the state of import.
Always use the same check for deciding wheteher import/export has completed.
1 files modified
9 ■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/replication/plugin/LDAPReplicationDomain.java 9 ●●●● diff | view | raw | blame | history