You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ap...@apache.org on 2015/08/04 21:57:31 UTC
[2/3] hbase git commit: HBASE-14146 Fix Once replication sees an
error it slows down forever
HBASE-14146 Fix Once replication sees an error it slows down forever
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/e0fa1368
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/e0fa1368
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/e0fa1368
Branch: refs/heads/branch-1.0
Commit: e0fa13685ac78132dfb1a46b18d089b2f55b9b22
Parents: 83ef751
Author: Elliott Clark <ec...@apache.org>
Authored: Wed Jul 22 14:50:16 2015 -0700
Committer: Andrew Purtell <ap...@apache.org>
Committed: Tue Aug 4 12:36:40 2015 -0700
----------------------------------------------------------------------
.../hadoop/hbase/replication/regionserver/ReplicationSource.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase/blob/e0fa1368/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSource.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSource.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSource.java
index d332279..482a4e7 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSource.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSource.java
@@ -659,7 +659,7 @@ public class ReplicationSource extends Thread
* written to when this method was called
*/
protected void shipEdits(boolean currentWALisBeingWrittenTo, List<WAL.Entry> entries) {
- int sleepMultiplier = 1;
+ int sleepMultiplier = 0;
if (entries.isEmpty()) {
LOG.warn("Was given 0 edits to ship");
return;
@@ -694,6 +694,8 @@ public class ReplicationSource extends Thread
if (!replicated) {
continue;
+ } else {
+ sleepMultiplier = Math.max(sleepMultiplier-1, 0);
}
if (this.lastLoggedPosition != this.repLogReader.getPosition()) {