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

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


The following commit(s) were added to refs/heads/branch-2.5 by this push:
     new 170f84f0e8c HBASE-29919 Test case 
TestSecureIPC#testRpcServerDisallowFallbackToSimpleAuth failed (#7794)
170f84f0e8c is described below

commit 170f84f0e8c8dd7a88cf5d5f54ec621b0ea4629d
Author: Liu Xiao <[email protected]>
AuthorDate: Wed Feb 25 22:00:31 2026 +0800

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

diff --git 
a/hbase-server/src/test/java/org/apache/hadoop/hbase/security/TestSecureIPC.java
 
b/hbase-server/src/test/java/org/apache/hadoop/hbase/security/TestSecureIPC.java
index 22f44edc70b..57275321c27 100644
--- 
a/hbase-server/src/test/java/org/apache/hadoop/hbase/security/TestSecureIPC.java
+++ 
b/hbase-server/src/test/java/org/apache/hadoop/hbase/security/TestSecureIPC.java
@@ -38,6 +38,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.Arrays;
@@ -325,10 +326,11 @@ public class TestSecureIPC {
     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)));
     }
   }
 

Reply via email to