re-establishing the effects of c74a3092661236b13ff0b667e1f08cc3fac11d22; need to serve the replication service's monitor properly as queue drains

This commit is contained in:
Axel Uhl committed 2015-03-30 18:28:31 +02:00
1 parent 943d66a2c5
commit 26a286f243
1 file changed
+7
@@ -179,6 +179,13 @@ public abstract class AbstractServerReplicationTestSetUp<ReplicableInterface ext
* original exception propagate */
logger.log(Level.SEVERE, "Exception trying to connect to initial load test servlet to STOP it", ex);
}
synchronized (replicaReplicator.getReplicator()) {
while (!replicaReplicator.getReplicator().isQueueEmpty()) {
logger.info("Waiting for replication queue to drain...");
replicaReplicator.getReplicator().wait();
}
}
logger.info("Replication queue has been drained...");
}
/**