Skip to content

Commit e057371

Browse files
committed
HBASE-29144 Avoid using SASL when retrieving the cluster ID
1 parent 548e86d commit e057371

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/RpcConnection.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ protected RpcConnection(Configuration conf, HashedWheelTimer timeoutTimer, Conne
131131
this.connectionAttributes = connectionAttributes;
132132
User ticket = remoteId.getTicket();
133133
this.securityInfo = SecurityInfo.getInfo(remoteId.getServiceName());
134-
this.useSasl = isSecurityEnabled;
134+
// Avoid using SASL when retrieving the cluster ID
135+
this.useSasl = isSecurityEnabled && !HConstants.CLUSTER_ID_DEFAULT.equals(clusterId);
135136

136137
// Choose the correct Token and AuthenticationProvider for this client to use
137138
SaslClientAuthenticationProviders providers =

0 commit comments

Comments
 (0)