You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Chao (JIRA)" <ji...@apache.org> on 2014/10/23 03:39:34 UTC

[jira] [Commented] (HIVE-8565) beeline may go into an infinite loop when using EOF

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

Chao commented on HIVE-8565:
----------------------------

It seems like this is a bug in jline: in {{ConsoleReader::readLine}} it is supposed to return {{null}} if the end of input stream has been reached, but it returns an empty string instead. I noticed that in this method there's a line:

{noformat}
return new BufferedReader (new InputStreamReader (in)).readLine ();
{noformat}

which could be doing the right thing, but it's commented out. Not sure why.

> beeline may go into an infinite loop when using EOF
> ---------------------------------------------------
>
>                 Key: HIVE-8565
>                 URL: https://issues.apache.org/jira/browse/HIVE-8565
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Chao
>            Assignee: Chao
>
> The problem can be reproduced by a simple query:
> {noformat}
> $HIVE_HOME/bin/beeline -u <host> -n <username> -p <password> <<EOF
> > show databases;
> > EOF
> {noformat}
> Then, it will go into an infinite loop and keep printing command prompt.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)