Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 576527073 for ; Fri, 19 Aug 2011 03:09:09 +0000 (UTC) Received: (qmail 51803 invoked by uid 500); 19 Aug 2011 03:09:05 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 51575 invoked by uid 500); 19 Aug 2011 03:08:57 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 51530 invoked by uid 500); 19 Aug 2011 03:08:55 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 51511 invoked by uid 99); 19 Aug 2011 03:08:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Aug 2011 03:08:54 +0000 X-ASF-Spam-Status: No, hits=-2001.1 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Aug 2011 03:08:51 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 25628C3EDF for ; Fri, 19 Aug 2011 03:08:30 +0000 (UTC) Date: Fri, 19 Aug 2011 03:08:30 +0000 (UTC) From: "Carl Steinbach (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: <1551317734.51754.1313723310150.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <986376070.51777.1302585905803.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HIVE-2110) Hive Client is indefenitely waiting for reading from Socket MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HIVE-2110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Carl Steinbach updated HIVE-2110: --------------------------------- Status: Open (was: Patch Available) @Prasad: The patch does not apply cleanly with patch -p0. Please see the HowToContribute page on the wiki for more info. > Hive Client is indefenitely waiting for reading from Socket > ----------------------------------------------------------- > > Key: HIVE-2110 > URL: https://issues.apache.org/jira/browse/HIVE-2110 > Project: Hive > Issue Type: Bug > Components: JDBC > Affects Versions: 0.5.0 > Environment: Hadoop 0.20.1, Hive0.5.0 and SUSE Linux Enterprise Server 10 SP2 (i586) - Kernel 2.6.16.60-0.21-smp (5). > Reporter: Chinna Rao Lalam > Assignee: Prasad Mujumdar > Fix For: 0.8.0 > > Attachments: HIVE-2110.patch > > > Hive Client is indefenitely waiting for reading from Socket. Thread dump i added below. > Cause is: > > In the HiveClient, when client socket is created, the read timeout is mentioned is 0. So the socket will indefinetly wait when the machine where Hive Server is running is "shutdown" or "network is unplugged". The same may not happen if the HiveServer alone is killed or gracefully shutdown. At this time, client will get "connection reset exception". > Code in HiveConnection > ----------------------------------- > {noformat} > transport = new TSocket(host, port); > TProtocol protocol = new TBinaryProtocol(transport); > client = new HiveClient(protocol); > {noformat} > In the Client side, they send the query and wait for the response send_execute(query,id); recv_execute(); // place where client waiting is initiated > Thread dump: > {noformat} > "main" prio=10 tid=0x0000000040111000 nid=0x3641 runnable [0x00007f0d73f29000] > java.lang.Thread.State: RUNNABLE > at java.net.SocketInputStream.socketRead0(Native Method) > at java.net.SocketInputStream.read(SocketInputStream.java:129) > at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) > at java.io.BufferedInputStream.read1(BufferedInputStream.java:258) > at java.io.BufferedInputStream.read(BufferedInputStream.java:317) > locked <0x00007f0d5d3f0828> (a java.io.BufferedInputStream) > at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:125) > at org.apache.thrift.transport.TTransport.readAll(TTransport.java:84) > at org.apache.thrift.protocol.TBinaryProtocol.readAll(TBinaryProtocol.java:314) > at org.apache.thrift.protocol.TBinaryProtocol.readI32(TBinaryProtocol.java:262) > at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:192) > at org.apache.hadoop.hive.service.ThriftHive$Client.recv_execute(ThriftHive.java:130) > at org.apache.hadoop.hive.service.ThriftHive$Client.execute(ThriftHive.java:109) > locked <0x00007f0d5d3f0878> (a org.apache.thrift.transport.TSocket) > at org.apache.hadoop.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:218) > at org.apache.hadoop.hive.jdbc.HiveStatement.execute(HiveStatement.java:154) > {noformat} -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira