Skip to content

Commit 13233bb

Browse files
Umeshkumar9414virajjasani
authored andcommitted
HBASE-29714 Increase DEFAULT_RS_REMOTE_PROC_RETRY_LIMIT to 10 (#7466)
Signed-off-by: Andrew Purtell <[email protected]> Signed-off-by: Viraj Jasani <[email protected]> Signed-off-by: Aman Poonia <[email protected]>
1 parent a6a0a56 commit 13233bb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/RSProcedureDispatcher.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,9 @@ protected class ExecuteProceduresRemoteCall implements RemoteProcedureResolver,
261261
/**
262262
* The default retry limit. Waiting for more than {@value} attempts is not going to help much
263263
* for genuine connectivity errors. Therefore, consider fail-fast after {@value} retries. Value
264-
* = {@value}
264+
* = {@value}. 10 retries means we will wait for at least 28.5 seconds before killing RS.
265265
*/
266-
private static final int DEFAULT_RS_REMOTE_PROC_RETRY_LIMIT = 5;
266+
private static final int DEFAULT_RS_REMOTE_PROC_RETRY_LIMIT = 10;
267267

268268
private final int failFastRetryLimit;
269269

hbase-server/src/test/java/org/apache/hadoop/hbase/util/TestProcDispatcher.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ public class TestProcDispatcher {
7777
public static void setUpBeforeClass() throws Exception {
7878
TEST_UTIL.getConfiguration().set(HBASE_MASTER_RSPROC_DISPATCHER_CLASS,
7979
RSProcDispatcher.class.getName());
80+
TEST_UTIL.getConfiguration().setInt("hbase.master.rs.remote.proc.fail.fast.limit", 5);
8081
TEST_UTIL.startMiniCluster(3);
8182
MiniHBaseCluster cluster = TEST_UTIL.getHBaseCluster();
8283
rs0 = cluster.getRegionServer(0).getServerName();

0 commit comments

Comments
 (0)