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

zhangduo 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 f951814c6e6 HBASE-29817 Stop retrying on DoNotRetryIOException when 
waiting procedure result (#7610)
f951814c6e6 is described below

commit f951814c6e6272eafd94fb1fe2bb0059f9dca39a
Author: Duo Zhang <[email protected]>
AuthorDate: Fri Jan 9 17:37:21 2026 +0800

    HBASE-29817 Stop retrying on DoNotRetryIOException when waiting procedure 
result (#7610)
    
    Signed-off-by: Hui Ruan <[email protected]>
    Reviewed-by: Umesh Kumar <[email protected]>
    Reviewed-by: Liu Xiao <[email protected]>
    (cherry picked from commit 9e3b53cfcb13552726f57dab45ce337bef5c8032)
---
 .../org/apache/hadoop/hbase/client/RawAsyncHBaseAdmin.java | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git 
a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RawAsyncHBaseAdmin.java
 
b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RawAsyncHBaseAdmin.java
index 13b754c5d9c..c4c59250e5e 100644
--- 
a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RawAsyncHBaseAdmin.java
+++ 
b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RawAsyncHBaseAdmin.java
@@ -2998,10 +2998,16 @@ class RawAsyncHBaseAdmin implements AsyncAdmin {
         .call(),
       (response, error) -> {
         if (error != null) {
-          LOG.warn("failed to get the procedure result procId={}", procId,
-            ConnectionUtils.translateException(error));
-          retryTimer.newTimeout(t -> getProcedureResult(procId, future, 
retries + 1),
-            ConnectionUtils.getPauseTime(pauseNs, retries), 
TimeUnit.NANOSECONDS);
+          Throwable exc = ConnectionUtils.translateException(error);
+          if (exc instanceof DoNotRetryIOException) {
+            // stop retrying on DNRIOE
+            future.completeExceptionally(exc);
+          } else {
+            LOG.warn("failed to get the procedure result procId={}", procId, 
exc);
+            retryTimer.newTimeout(t -> getProcedureResult(procId, future, 
retries + 1),
+              ConnectionUtils.getPauseTime(pauseNs, retries), 
TimeUnit.NANOSECONDS);
+
+          }
           return;
         }
         if (response.getState() == GetProcedureResultResponse.State.RUNNING) {

Reply via email to