HBASE-7325 Replication reacts slowly on a lightly-loaded cluster (Gabriel Reid via JD)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1511378 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jean-Daniel Cryans 2013-08-07 16:29:41 +00:00
parent f1c271ab5e
commit 93ea2059d5
1 changed files with 4 additions and 0 deletions

View File

@ -336,6 +336,10 @@ public class ReplicationSource extends Thread
this.replicationQueueInfo.isQueueRecovered(), currentWALisBeingWrittenTo);
this.lastLoggedPosition = this.repLogReader.getPosition();
}
// Reset the sleep multiplier if nothing has actually gone wrong
if (!gotIOE) {
sleepMultiplier = 1;
}
if (sleepForRetries("Nothing to replicate", sleepMultiplier)) {
sleepMultiplier++;
}