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

Xuefu Zhang commented on HIVE-11710:
------------------------------------

[~aihuaxu], your new patch looks good. One thing I'm not 100% sure is what 
happens when deleting file w/o closing it first. 

Secondly, we could leak either "new PrintStream" or "new FileOutputStream" or 
both if there is any exception or if we don't close ss.out. This seems minor 
but reliable code is ideal.

Thus, I suggest that we make sure that these objects are closed properly 
whether there is an exception or not.

As you can see that session state is complete thread-unsafe (ref. HIVE-11402). 
However, this has nothing to do the problem you're addressing.


> Beeline embedded mode doesn't output query progress after setting any session 
> property
> --------------------------------------------------------------------------------------
>
>                 Key: HIVE-11710
>                 URL: https://issues.apache.org/jira/browse/HIVE-11710
>             Project: Hive
>          Issue Type: Bug
>          Components: Beeline
>    Affects Versions: 2.0.0
>            Reporter: Aihua Xu
>            Assignee: Aihua Xu
>         Attachments: HIVE-11710.2.patch, HIVE-11710.patch
>
>
> Connect to beeline embedded mode {{beeline -u jdbc:hive2://}}. Then set 
> anything in the session like {{set aa=true;}}.
> After that, any query like {{select count(*) from src;}} will only output 
> result but no query progress.



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

Reply via email to