Skip to content

fix PreemptiveFastFailInterceptor clean repeatedFailuresMap issue - #183

Merged
saintstack merged 1 commit into
apache:masterfrom
jxxiangwen:master
Apr 23, 2019
Merged

fix PreemptiveFastFailInterceptor clean repeatedFailuresMap issue#183
saintstack merged 1 commit into
apache:masterfrom
jxxiangwen:master

Conversation

@jxxiangwen

Copy link
Copy Markdown
Contributor

in PreemptiveFastFailInterceptor, the failureMapCleanupIntervalMilliSec and fastFailClearingTimeMilliSec are used to clean repeatedFailuresMap, but the HConstants.HBASE_CLIENT_FAST_FAIL_CLEANUP_MS_DURATION_MS seem to config fastFailClearingTimeMilliSec, and fastFailClearingTimeMilliSec has no config value. so in occasionallyCleanupFailureInformation function the else if branch will be always true.

@jxxiangwen

Copy link
Copy Markdown
ContributorAuthor

I add a HBASE_CLIENT_FAILURE_MAP_CLEANUP_INTERVAL_MS constant value to configure failureMapCleanupIntervalMilliSec, then the HBASE_CLIENT_FAST_FAIL_CLEANUP_MS_DURATION_MS constant value will configure fastFailClearingTimeMilliSec.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
0reexec277Docker mode activated.
_ Prechecks _
+1hbaseanti0Patch does not have any anti-patterns.
+1@author0The patch does not contain any @author tags.
-0test4tests0The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ master Compile Tests _
0mvndep28Maven dependency ordering for branch
+1mvninstall279master passed
+1compile45master passed
+1checkstyle51master passed
+1shadedjars269branch has no errors when building our shaded downstream artifacts.
+1findbugs98master passed
+1javadoc38master passed
_ Patch Compile Tests _
0mvndep13Maven dependency ordering for patch
+1mvninstall265the patch passed
+1compile45the patch passed
+1javac45the patch passed
+1checkstyle52the patch passed
+1whitespace0The patch has no whitespace issues.
+1shadedjars288patch has no errors when building our shaded downstream artifacts.
+1hadoopcheck537Patch does not cause any errors with Hadoop 2.7.4 or 3.0.0.
+1findbugs109the patch passed
+1javadoc38the patch passed
_ Other Tests _
+1unit156hbase-common in the patch passed.
+1unit189hbase-client in the patch passed.
+1asflicense20The patch does not generate ASF License warnings.
2881
SubsystemReport/Notes
DockerClient=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-183/1/artifact/out/Dockerfile
GITHUB PR#183
Optional Testsdupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux fe07ffba9f03 4.4.0-137-generic #163-Ubuntu SMP Mon Sep 24 13:14:43 UTC 2018 x86_64 GNU/Linux
Build toolmaven
Personality/testptch/patchprocess/precommit/personality/provided.sh
git revisionmaster / c3c48f3
mavenversion: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java1.8.0_181
findbugsv3.1.11
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-183/1/testReport/
Max. process+thread count314 (vs. ulimit of 10000)
modulesC: hbase-common hbase-client U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-183/1/console
Powered byApache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@saintstack

Copy link
Copy Markdown
Contributor

Is there an Apache HBase JIRA associated with this PR?

@Apache9

Copy link
Copy Markdown
Contributor

Interesting, do you use Preemptive Fail Fast feature in your production? Do you think the feature introduced in HBASE-16388 can also solve your problem?

Thanks.

@jxxiangwen

Copy link
Copy Markdown
ContributorAuthor

Is there an Apache HBase JIRA associated with this PR?

No, i am learning hbase with source code.

@jxxiangwen

Copy link
Copy Markdown
ContributorAuthor

Interesting, do you use Preemptive Fail Fast feature in your production? Do you think the feature introduced in HBASE-16388 can also solve your problem?

Thanks.

No, i am learning hbase with source code.

@saintstack

Copy link
Copy Markdown
Contributor

@jxxiangwen Welcome.

FYI, fixing stuff, there is an associated HBase JIRA. File one over here... https://issues.apache.org/jira/projects/HBASE/issues/HBASE-22148?filter=allopenissues Shout if need help. Thanks for contributing.

@jxxiangwen

Copy link
Copy Markdown
ContributorAuthor

@jxxiangwen Welcome.

FYI, fixing stuff, there is an associated HBase JIRA. File one over here... https://issues.apache.org/jira/projects/HBASE/issues/HBASE-22148?filter=allopenissues Shout if need help. Thanks for contributing.

I have create a issue, https://issues.apache.org/jira/browse/HBASE-22292. What do I need to do next?

@saintstack

Copy link
Copy Markdown
Contributor

Good. Thanks.

Is it the case that the answer to @Apache9 question repeated below is no?

.bq Do you think the feature introduced in HBASE-16388 can also solve your problem?

If so, I'll merge this. On merge, I'll refer to issue (when you open PR, subject is usually the JIRA subject FYI).

@jxxiangwen

Copy link
Copy Markdown
ContributorAuthor

Good. Thanks.

Is it the case that the answer to @Apache9 question repeated below is no?

.bq Do you think the feature introduced in HBASE-16388 can also solve your problem?

If so, I'll merge this. On merge, I'll refer to issue (when you open PR, subject is usually the JIRA subject FYI).

@saintstackHBASE-16388 can not solve the problem, this problem will disable fast fail mode .

@saintstack
saintstack merged commit 6855143 into apache:masterApr 23, 2019
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@jxxiangwen@Apache-HBase@saintstack@Apache9