HBASE-22292 PreemptiveFastFailInterceptor clean repeatedFailuresMap issue
Signed-off-by: stack <stack@apache.org>
This commit is contained in:
parent
a31347fccc
commit
150f87797a
|
@ -96,6 +96,9 @@ class PreemptiveFastFailInterceptor extends RetryingCallerInterceptor {
|
|||
HConstants.HBASE_CLIENT_FAST_FAIL_THREASHOLD_MS,
|
||||
HConstants.HBASE_CLIENT_FAST_FAIL_THREASHOLD_MS_DEFAULT);
|
||||
this.failureMapCleanupIntervalMilliSec = conf.getLong(
|
||||
HConstants.HBASE_CLIENT_FAILURE_MAP_CLEANUP_INTERVAL_MS,
|
||||
HConstants.HBASE_CLIENT_FAILURE_MAP_CLEANUP_INTERVAL_MS_DEFAULT);
|
||||
this.fastFailClearingTimeMilliSec = conf.getLong(
|
||||
HConstants.HBASE_CLIENT_FAST_FAIL_CLEANUP_MS_DURATION_MS,
|
||||
HConstants.HBASE_CLIENT_FAST_FAIL_CLEANUP_DURATION_MS_DEFAULT);
|
||||
lastFailureMapCleanupTimeMilliSec = EnvironmentEdgeManager.currentTime();
|
||||
|
|
|
@ -1340,6 +1340,12 @@ public final class HConstants {
|
|||
public static final long HBASE_CLIENT_FAST_FAIL_THREASHOLD_MS_DEFAULT =
|
||||
60000;
|
||||
|
||||
public static final String HBASE_CLIENT_FAILURE_MAP_CLEANUP_INTERVAL_MS =
|
||||
"hbase.client.failure.map.cleanup.interval";
|
||||
|
||||
public static final long HBASE_CLIENT_FAILURE_MAP_CLEANUP_INTERVAL_MS_DEFAULT =
|
||||
600000;
|
||||
|
||||
public static final String HBASE_CLIENT_FAST_FAIL_CLEANUP_MS_DURATION_MS =
|
||||
"hbase.client.fast.fail.cleanup.duration";
|
||||
|
||||
|
|
Loading…
Reference in New Issue