HBASE-22292 PreemptiveFastFailInterceptor clean repeatedFailuresMap issue

Signed-off-by: stack <stack@apache.org>
This commit is contained in:
zouxiangwen 2019-04-23 22:56:59 +08:00 committed by Michael Stack
parent 3dfa98ffc1
commit 6855143ba9
2 changed files with 11 additions and 2 deletions

View File

@ -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();

View File

@ -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";