This is an automated email from the ASF dual-hosted git repository.
cconnell pushed a commit to branch branch-2.6
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2.6 by this push:
new d698d4040e5 HBASE-29679: Suppress stack trace in
RpcThrottlingException (#7403)
d698d4040e5 is described below
commit d698d4040e56e2f7eb2e9d2ba37fdae5910c802f
Author: Charles Connell <[email protected]>
AuthorDate: Tue Oct 28 09:10:44 2025 -0400
HBASE-29679: Suppress stack trace in RpcThrottlingException (#7403)
Signed-off by: Ray Mattingly <[email protected]>
---
.../apache/hadoop/hbase/quotas/RpcThrottlingException.java | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git
a/hbase-client/src/main/java/org/apache/hadoop/hbase/quotas/RpcThrottlingException.java
b/hbase-client/src/main/java/org/apache/hadoop/hbase/quotas/RpcThrottlingException.java
index d4ab38f5bf7..b08179a27a5 100644
---
a/hbase-client/src/main/java/org/apache/hadoop/hbase/quotas/RpcThrottlingException.java
+++
b/hbase-client/src/main/java/org/apache/hadoop/hbase/quotas/RpcThrottlingException.java
@@ -205,4 +205,15 @@ public class RpcThrottlingException extends
HBaseIOException {
}
return -1;
}
+
+ /**
+ * There is little value in an RpcThrottlingException having a stack trace,
since its cause is
+ * well understood without one. When a RegionServer is under heavy load and
needs to serve many
+ * RpcThrottlingExceptions, skipping fillInStackTrace() will save CPU time
and allocations, both
+ * here and later when the exception must be serialized over the wire.
+ */
+ @Override
+ public synchronized Throwable fillInStackTrace() {
+ return this;
+ }
}