// This node may be failing over for another node - in which case we must wait for that to be
// complete.
log.debug(this + " waiting for server-side failover for failed node " + failedNodeID + " to complete");
Replicator replicator = getReplicator();
long startToWait = getFailoverStartTimeout();
long completeToWait = getFailoverCompleteTimeout();
// Must lock here
synchronized (failoverStatusLock)
{
while (true)
{
//TODO we shouldn't have a dependency on DefaultClusteredPostOffice - where should we put the constants?
Map replicants = replicator.get(DefaultClusteredPostOffice.FAILED_OVER_FOR_KEY);
boolean foundEntry = false;
if (replicants != null)
{