HBASE-22292 PreemptiveFastFailInterceptor clean repeatedFailuresMap issue
Signed-off-by: stack <stack@apache.org>
This commit is contained in:
parent
3dfa98ffc1
commit
6855143ba9
|
@ -96,8 +96,11 @@ 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_FAST_FAIL_CLEANUP_MS_DURATION_MS,
|
||||
HConstants.HBASE_CLIENT_FAST_FAIL_CLEANUP_DURATION_MS_DEFAULT);
|
||||
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();
|
||||
}
|
||||
|
||||
|
|
|
@ -1313,6 +1313,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