You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceWALReader.java
+17-13Lines changed: 17 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -150,14 +150,13 @@ public void run() {
150
150
}
151
151
}
152
152
} catch (IOExceptione) { // stream related
153
-
if (sleepMultiplier < maxRetriesMultiplier) {
154
-
LOG.debug("Failed to read stream of replication entries: " +e);
155
-
sleepMultiplier++;
156
-
} else {
157
-
LOG.error("Failed to read stream of replication entries", e);
158
-
handleEofException(e);
153
+
if (!handleEofException(e)) {
154
+
LOG.warn("Failed to read stream of replication entries",e);
155
+
if (sleepMultiplier < maxRetriesMultiplier) {
156
+
sleepMultiplier ++;
157
+
}
158
+
Threads.sleep(sleepForRetries * sleepMultiplier);
159
159
}
160
-
Threads.sleep(sleepForRetries * sleepMultiplier);
161
160
} catch (InterruptedExceptione) {
162
161
LOG.trace("Interrupted while sleeping between WAL reads");
0 commit comments