[
https://issues.apache.org/jira/browse/HBASE-22292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
stack resolved HBASE-22292.
---------------------------
Resolution: Fixed
Assignee: zou
Release Note: Adds new configuration
hbase.client.failure.map.cleanup.interval which defaults to ten minutes.
Merged https://github.com/apache/hbase/pull/183
Added you as a contributor [~xiangwen] Thanks for the fix.
> PreemptiveFastFailInterceptor clean repeatedFailuresMap issue
> -------------------------------------------------------------
>
> Key: HBASE-22292
> URL: https://issues.apache.org/jira/browse/HBASE-22292
> Project: HBase
> Issue Type: Bug
> Reporter: zou
> Assignee: zou
> Priority: Blocker
>
> PreemptiveFastFailInterceptor do not set fastFailClearingTimeMilliSec, so in
> occasionallyCleanupFailureInformation function this branch
> {code:java}
> else if (now > entry.getValue().timeOfFirstFailureMilliSec
> + this.fastFailClearingTimeMilliSec) {{code}
> will be always be true,then the repeatedFailuresMap will be clean.
> and in the constructor function
> {code:java}
> public PreemptiveFastFailInterceptor(Configuration conf) {
> this.fastFailThresholdMilliSec = conf.getLong(
> HConstants.HBASE_CLIENT_FAST_FAIL_THREASHOLD_MS,
> HConstants.HBASE_CLIENT_FAST_FAIL_THREASHOLD_MS_DEFAULT);
> this.failureMapCleanupIntervalMilliSec = conf.getLong(
> // this constant seem to set fastFailClearingTimeMilliSec, it may be a
> mistake.
> HConstants.HBASE_CLIENT_FAST_FAIL_CLEANUP_MS_DURATION_MS,
> HConstants.HBASE_CLIENT_FAST_FAIL_CLEANUP_DURATION_MS_DEFAULT);
> lastFailureMapCleanupTimeMilliSec = EnvironmentEdgeManager.currentTime();
> }
> {code}
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)