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:
parent
f1c271ab5e
commit
93ea2059d5
|
@ -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++;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue