Thanks to visit codestin.com
Credit goes to github.com

Skip to content

HBASE-29265: Batch calls to overloaded cluster can cause meta hotspotting #6961

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: branch-2
Choose a base branch
from

Conversation

hgromer
Copy link
Contributor

@hgromer hgromer commented May 5, 2025

No description provided.

@hgromer hgromer marked this pull request as draft May 5, 2025 17:53
@hgromer hgromer changed the title HBASE-29265: Operation timeouts can create a pathological feedback loop with multigets HBASE-29265: Batch calls to overloaded cluster can cause meta hotspotting May 5, 2025
@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@hgromer hgromer marked this pull request as ready for review May 6, 2025 14:11
@@ -783,8 +787,7 @@ private void receiveGlobalFailure(MultiAction rsActions, ServerName server, int
// any of the regions in the MultiAction and do not update cache if exception is
// from failing to submit action to thread pool
if (clearServerCache) {
updateCachedLocations(server, regionName, row,
ClientExceptionsUtil.isMetaClearingException(t) ? null : t);
updateCachedLocations(server, regionName, row, t);
Copy link
Contributor Author

@hgromer hgromer May 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also solves the frustration of seeing "UnknownException" when inspecting meta cache clear exception metrics. This has made it quite difficult to track down what triggered the meta cache clear.

I think it's always better to provide more context than less. Even if an exception is meta cache clearing (though it will be now), I'd still prefer to know the exact exception type that cleared the meta cache.

@hgromer
Copy link
Contributor Author

hgromer commented May 6, 2025

cc @ndimiduk @rmdmattingly @krconv

errorsByServer.reportServerError(server);
Retry canRetry = errorsByServer.canTryMore(numAttempt) ? Retry.YES : Retry.NO_RETRIES_EXHAUSTED;
boolean clearServerCache = false;

if (!(t instanceof RejectedExecutionException)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Enforces the constraints added in https://issues.apache.org/jira/browse/HBASE-27491

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be better if you instead push RejectedExecutionException down into ClientExceptionsUtil.isMetaClearingException.

How about adding another collection of execution-exceptions for the family of various ExecutorService interaction errors, like is done with networking/connection exceptions?

@Apache-HBase
Copy link

🎊 +1 overall

Vote Subsystem Runtime Logfile Comment
+0 πŸ†— reexec 0m 50s Docker mode activated.
-0 ⚠️ yetus 0m 5s Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --author-ignore-list --blanks-eol-ignore-file --blanks-tabs-ignore-file --quick-hadoopcheck
_ Prechecks _
_ branch-2 Compile Tests _
+1 πŸ’š mvninstall 3m 3s branch-2 passed
+1 πŸ’š compile 0m 22s branch-2 passed
+1 πŸ’š javadoc 0m 18s branch-2 passed
+1 πŸ’š shadedjars 6m 5s branch has no errors when building our shaded downstream artifacts.
_ Patch Compile Tests _
+1 πŸ’š mvninstall 3m 2s the patch passed
+1 πŸ’š compile 0m 26s the patch passed
+1 πŸ’š javac 0m 26s the patch passed
+1 πŸ’š javadoc 0m 18s the patch passed
+1 πŸ’š shadedjars 6m 11s patch has no errors when building our shaded downstream artifacts.
_ Other Tests _
+1 πŸ’š unit 8m 15s hbase-client in the patch passed.
30m 5s
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6961/2/artifact/yetus-jdk17-hadoop3-check/output/Dockerfile
GITHUB PR #6961
JIRA Issue HBASE-29265
Optional Tests javac javadoc unit compile shadedjars
uname Linux 0c6b793c1f69 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/hbase-personality.sh
git revision branch-2 / a5940ec
Default Java Eclipse Adoptium-17.0.11+9
Test Results https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6961/2/testReport/
Max. process+thread count 384 (vs. ulimit of 30000)
modules C: hbase-client U: hbase-client
Console output https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6961/2/console
versions git=2.34.1 maven=3.9.8
Powered by Apache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

🎊 +1 overall

Vote Subsystem Runtime Logfile Comment
+0 πŸ†— reexec 1m 14s Docker mode activated.
-0 ⚠️ yetus 0m 5s Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --author-ignore-list --blanks-eol-ignore-file --blanks-tabs-ignore-file --quick-hadoopcheck
_ Prechecks _
_ branch-2 Compile Tests _
+1 πŸ’š mvninstall 3m 59s branch-2 passed
+1 πŸ’š compile 0m 26s branch-2 passed
+1 πŸ’š javadoc 0m 21s branch-2 passed
+1 πŸ’š shadedjars 6m 3s branch has no errors when building our shaded downstream artifacts.
_ Patch Compile Tests _
+1 πŸ’š mvninstall 3m 9s the patch passed
+1 πŸ’š compile 0m 28s the patch passed
+1 πŸ’š javac 0m 28s the patch passed
+1 πŸ’š javadoc 0m 25s the patch passed
+1 πŸ’š shadedjars 6m 18s patch has no errors when building our shaded downstream artifacts.
_ Other Tests _
+1 πŸ’š unit 8m 12s hbase-client in the patch passed.
32m 3s
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6961/2/artifact/yetus-jdk8-hadoop2-check/output/Dockerfile
GITHUB PR #6961
JIRA Issue HBASE-29265
Optional Tests javac javadoc unit compile shadedjars
uname Linux db1cb7e6e535 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/hbase-personality.sh
git revision branch-2 / a5940ec
Default Java Temurin-1.8.0_412-b08
Test Results https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6961/2/testReport/
Max. process+thread count 360 (vs. ulimit of 30000)
modules C: hbase-client U: hbase-client
Console output https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6961/2/console
versions git=2.34.1 maven=3.9.8
Powered by Apache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

🎊 +1 overall

Vote Subsystem Runtime Logfile Comment
+0 πŸ†— reexec 0m 47s Docker mode activated.
_ Prechecks _
+1 πŸ’š dupname 0m 0s No case conflicting files found.
+0 πŸ†— codespell 0m 0s codespell was not available.
+0 πŸ†— detsecrets 0m 0s detect-secrets was not available.
+1 πŸ’š @author 0m 0s The patch does not contain any @author tags.
+1 πŸ’š hbaseanti 0m 0s Patch does not have any anti-patterns.
_ branch-2 Compile Tests _
+1 πŸ’š mvninstall 3m 15s branch-2 passed
+1 πŸ’š compile 0m 50s branch-2 passed
+1 πŸ’š checkstyle 0m 17s branch-2 passed
+1 πŸ’š spotbugs 0m 52s branch-2 passed
+1 πŸ’š spotless 0m 47s branch has no errors when running spotless:check.
_ Patch Compile Tests _
+1 πŸ’š mvninstall 3m 5s the patch passed
+1 πŸ’š compile 0m 49s the patch passed
+1 πŸ’š javac 0m 49s the patch passed
+1 πŸ’š blanks 0m 0s The patch has no blanks issues.
+1 πŸ’š checkstyle 0m 17s the patch passed
+1 πŸ’š spotbugs 1m 3s the patch passed
+1 πŸ’š hadoopcheck 17m 24s Patch does not cause any errors with Hadoop 2.10.2 or 3.3.6 3.4.0.
+1 πŸ’š spotless 0m 46s patch has no errors when running spotless:check.
_ Other Tests _
+1 πŸ’š asflicense 0m 10s The patch does not generate ASF License warnings.
32m 12s
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6961/2/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #6961
JIRA Issue HBASE-29265
Optional Tests dupname asflicense javac spotbugs checkstyle codespell detsecrets compile hadoopcheck hbaseanti spotless
uname Linux 1ad0ba4bc71c 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/hbase-personality.sh
git revision branch-2 / a5940ec
Default Java Eclipse Adoptium-11.0.23+9
Max. process+thread count 78 (vs. ulimit of 30000)
modules C: hbase-client U: hbase-client
Console output https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6961/2/console
versions git=2.34.1 maven=3.9.8 spotbugs=4.7.3
Powered by Apache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

🎊 +1 overall

Vote Subsystem Runtime Logfile Comment
+0 πŸ†— reexec 1m 11s Docker mode activated.
-0 ⚠️ yetus 0m 4s Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --author-ignore-list --blanks-eol-ignore-file --blanks-tabs-ignore-file --quick-hadoopcheck
_ Prechecks _
_ branch-2 Compile Tests _
+1 πŸ’š mvninstall 4m 40s branch-2 passed
+1 πŸ’š compile 0m 35s branch-2 passed
+1 πŸ’š javadoc 0m 28s branch-2 passed
+1 πŸ’š shadedjars 7m 38s branch has no errors when building our shaded downstream artifacts.
_ Patch Compile Tests _
+1 πŸ’š mvninstall 4m 0s the patch passed
+1 πŸ’š compile 0m 25s the patch passed
+1 πŸ’š javac 0m 25s the patch passed
+1 πŸ’š javadoc 0m 21s the patch passed
+1 πŸ’š shadedjars 7m 8s patch has no errors when building our shaded downstream artifacts.
_ Other Tests _
+1 πŸ’š unit 8m 19s hbase-client in the patch passed.
36m 12s
Subsystem Report/Notes
Docker ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6961/2/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile
GITHUB PR #6961
JIRA Issue HBASE-29265
Optional Tests javac javadoc unit compile shadedjars
uname Linux 6352ea7ae52d 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/hbase-personality.sh
git revision branch-2 / a5940ec
Default Java Eclipse Adoptium-11.0.23+9
Test Results https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6961/2/testReport/
Max. process+thread count 379 (vs. ulimit of 30000)
modules C: hbase-client U: hbase-client
Console output https://ci-hbase.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-6961/2/console
versions git=2.34.1 maven=3.9.8
Powered by Apache Yetus 0.15.0 https://yetus.apache.org

This message was automatically generated.

Sign up for free to 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.

3 participants