This is an automated email from the ASF dual-hosted git repository.

cconnell pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2 by this push:
     new 635f0f42aaa HBASE-29679: Suppress stack trace in 
RpcThrottlingException (#7403)
635f0f42aaa is described below

commit 635f0f42aaaa28b7c1d949ce1866bceddc63f0d0
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;
+  }
 }

Reply via email to