You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zh...@apache.org on 2026/02/25 13:44:53 UTC

(hbase) branch branch-2.6 updated: HBASE-29919 Test case TestSecureIPC#testRpcServerDisallowFallbackToSimpleAuth failed (#7794)

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

zhangduo 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 8429d0655b1 HBASE-29919 Test case TestSecureIPC#testRpcServerDisallowFallbackToSimpleAuth failed (#7794)
8429d0655b1 is described below

commit 8429d0655b12b92b9e168017510236ba5fdc65fe
Author: Liu Xiao <42...@users.noreply.github.com>
AuthorDate: Wed Feb 25 21:04:31 2026 +0800

    HBASE-29919 Test case TestSecureIPC#testRpcServerDisallowFallbackToSimpleAuth failed (#7794)
    
    Signed-off-by: Duo Zhang <zh...@apache.org>
    (cherry picked from commit 80303ee66b6b2dba19f74a9c4da000314f5407b6)
---
 .../org/apache/hadoop/hbase/security/AbstractTestSecureIPC.java   | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/security/AbstractTestSecureIPC.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/security/AbstractTestSecureIPC.java
index 4acd1e83640..099468d7ec4 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/security/AbstractTestSecureIPC.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/security/AbstractTestSecureIPC.java
@@ -39,6 +39,7 @@ import java.io.IOException;
 import java.lang.reflect.Field;
 import java.net.InetAddress;
 import java.net.InetSocketAddress;
+import java.net.SocketException;
 import java.security.PrivilegedExceptionAction;
 import java.util.ArrayList;
 import java.util.Collections;
@@ -196,10 +197,11 @@ public class AbstractTestSecureIPC {
     serverConf.setBoolean(RpcServer.FALLBACK_TO_INSECURE_CLIENT_AUTH, false);
     IOException error =
       assertThrows(IOException.class, () -> callRpcService(User.create(clientUgi)));
-    // server just closes the connection, so we could get broken pipe, or EOF, or connection closed
+    // server just closes the connection, so we could get broken pipe, or EOF, or connection closed,
+    // or socket exception
     if (error.getMessage() == null || !error.getMessage().contains("Broken pipe")) {
-      assertThat(error,
-        either(instanceOf(EOFException.class)).or(instanceOf(ConnectionClosedException.class)));
+      assertThat(error, either(instanceOf(EOFException.class))
+        .or(instanceOf(ConnectionClosedException.class)).or(instanceOf(SocketException.class)));
     }
   }