Stamatis Zampetakis created HIVE-28340:
------------------------------------------

             Summary: Test concurrent JDBC connections with Kerberized cluster, 
impersonation, and HTTP transport
                 Key: HIVE-28340
                 URL: https://issues.apache.org/jira/browse/HIVE-28340
             Project: Hive
          Issue Type: Test
          Components: HiveServer2
            Reporter: Stamatis Zampetakis
            Assignee: Stamatis Zampetakis


The new test case simulates a scenario with two JDBC clients doing the 
following in parallel:
 * client 1, continuously opens and closes connections (short-lived connection)
 * client 2, opens connection, sends fixed number of simple queries, closes 
connection (long-lived connection)

Since the clients are running in parallel we have one long-lived session in HS2 
interleaved with many short ones. 

The test case aims to increase test coverage and guard against regressions in 
the presence of many interleaved HS2 sessions.

In older versions, without HIVE-27201, this test fails (with the exception 
outlined below) when the cluster is Kerberized, and we are using HTTP transport 
mode with impersonation enabled.
{noformat}
javax.security.sasl.SaslException: GSS initiate failed
            at 
com.sun.security.sasl.gsskerb.GssKrb5Client.evaluateChallenge(GssKrb5Client.java:211)
 ~[?:1.8.0_261]
            at 
org.apache.thrift.transport.TSaslClientTransport.handleSaslStartMessage(TSaslClientTransport.java:96)
 ~[libthrift-0.16.0.jar:0.16.0]
            at 
org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:238) 
~[libthrift-0.16.0.jar:0.16.0]
            at 
org.apache.thrift.transport.TSaslClientTransport.open(TSaslClientTransport.java:39)
 ~[libthrift-0.16.0.jar:0.16.0]{noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to