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:32 UTC
[3/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
Conflicts:
hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSource.java
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/a53b8e0d
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/a53b8e0d
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/a53b8e0d
Branch: refs/heads/0.98
Commit: a53b8e0d4c4c6f60ea3ad60ef34be96cc0810368
Parents: 34a1f81
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:37:44 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/a53b8e0d/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 d684dbb..02ddfbd 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
@@ -649,7 +649,7 @@ public class ReplicationSource extends Thread
* written to when this method was called
*/
protected void shipEdits(boolean currentWALisBeingWrittenTo, List<HLog.Entry> entries) {
- int sleepMultiplier = 1;
+ int sleepMultiplier = 0;
if (entries.isEmpty()) {
LOG.warn("Was given 0 edits to ship");
return;
@@ -684,6 +684,8 @@ public class ReplicationSource extends Thread
if (!replicated) {
continue;
+ } else {
+ sleepMultiplier = Math.max(sleepMultiplier-1, 0);
}
if (this.lastLoggedPosition != this.repLogReader.getPosition()) {