hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Sherman (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-17760) Create a unit test which validates HIVE-9423 does not regress
Date Fri, 13 Oct 2017 22:25:00 GMT

    [ https://issues.apache.org/jira/browse/HIVE-17760?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16204276#comment-16204276
] 

Andrew Sherman commented on HIVE-17760:
---------------------------------------

Test is failing in Hive QA tests with

{noformat}
jdbc:hive2://localhost:50536/;user=hive;driver=org.apache.hive.jdbc.HiveDriver: java.net.SocketException:
Connection reset
	at org.apache.hive.jdbc.HiveConnection.<init>(HiveConnection.java:240)
	at org.apache.hive.jdbc.HiveDriver.connect(HiveDriver.java:107)
	at java.sql.DriverManager.getConnection(DriverManager.java:664)
	at java.sql.DriverManager.getConnection(DriverManager.java:208)
	at org.apache.hive.beeline.DatabaseConnection.connect(DatabaseConnection.java:145)
	at org.apache.hive.beeline.DatabaseConnection.getConnection(DatabaseConnection.java:209)
	at org.apache.hive.beeline.Commands.connect(Commands.java:1639)
	at org.apache.hive.beeline.Commands.connect(Commands.java:1534)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.hive.beeline.ReflectiveCommandHandler.execute(ReflectiveCommandHandler.java:56)
	at org.apache.hive.beeline.BeeLine.execCommandWithPrefix(BeeLine.java:1284)
	at org.apache.hive.beeline.BeeLine.dispatch(BeeLine.java:1323)
	at org.apache.hive.beeline.BeeLine.connectUsingArgs(BeeLine.java:878)
	at org.apache.hive.beeline.BeeLine.initArgs(BeeLine.java:787)
	at org.apache.hive.beeline.BeeLine.begin(BeeLine.java:1021)
	at org.apache.hive.beeline.TestBeelinePasswordOption.getBeelineOutput(TestBeelinePasswordOption.java:320)
	at org.apache.hive.beeline.TestBeelinePasswordOption.testMultiConnect(TestBeelinePasswordOption.java:257)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:74)
Caused by: org.apache.thrift.transport.TTransportException: java.net.SocketException: Connection
reset
	at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:129)
	at org.apache.thrift.transport.TTransport.readAll(TTransport.java:86)
	at org.apache.thrift.transport.TSaslTransport.receiveSaslMessage(TSaslTransport.java:178)
	at org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:307)
	at org.apache.thrift.transport.TSaslClientTransport.open(TSaslClientTransport.java:37)
	at org.apache.hive.jdbc.HiveConnection.openTransport(HiveConnection.java:327)
	at org.apache.hive.jdbc.HiveConnection.<init>(HiveConnection.java:212)
	... 28 more
Caused by: java.net.SocketException: Connection reset
	at java.net.SocketInputStream.read(SocketInputStream.java:209)
	at java.net.SocketInputStream.read(SocketInputStream.java:141)
	at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
	at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
	at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
	at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:127)
	... 34 more
{noformat}

This is the same error that is discussed in [HIVE-9423].  

> Create a unit test which validates HIVE-9423 does not regress 
> --------------------------------------------------------------
>
>                 Key: HIVE-17760
>                 URL: https://issues.apache.org/jira/browse/HIVE-17760
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Andrew Sherman
>            Assignee: Andrew Sherman
>         Attachments: HIVE-17760.1.patch, HIVE-17760.2.patch
>
>
> During [HIVE-9423] we verified that when the Thrift server pool is exhausted, then Beeline
connection times out, and provide a meaningful error message.
> Create a unit test which verifies this, and helps to keep this feature working



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message