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

Fabio Pistolesi
17.01.2015 89183d52637336618123b78c1410381b7780d977
refs
author Fabio Pistolesi <fabio.pistolesi@forgerock.com>
Tuesday, November 17, 2015 18:01 +0100
committer Fabio Pistolesi <fabio.pistolesi@forgerock.com>
Thursday, November 19, 2015 10:26 +0100
commit89183d52637336618123b78c1410381b7780d977
tree e82684d59e24fef7bab562cd8099756bc0f1fda4 tree | zip | gz
parent fd12299bf92a4d20eadbea0e805701ab99f10905 view | diff
OPENDJ-2396 Replication: post-external-initialization generates an error in log

After online import or restore, replication startListenService() was being called twice, once from import handling and once from the callback registered by replication on backend changes.
While stopping the listener thread is idempotent, starting it was not, leading to contention by both threads.

Fix by forcing idempotency also when starting the listener thread and make sure idempotency also applie to the broker thread.
2 files modified
18 ■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/replication/service/ReplicationBroker.java 10 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/replication/service/ReplicationDomain.java 8 ●●●● diff | view | raw | blame | history