[
https://issues.apache.org/jira/browse/HIVE-11710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14904882#comment-14904882
]
Xuefu Zhang commented on HIVE-11710:
------------------------------------
[~aihuaxu], looking at the two patches, I seem to see that either patch has a
possibility of leaking resources, even if we consider in a single thread. The
possible leaks are:
1. If new new FileOutputStream() is successful but new PrintStream() is not,
then the FileOutputStream instance is never closed.
2. In SQLOperation class, we never close these streams.
I think the only change we need to make in HiveCommandOperation is to fix #1.
The original tearDownSessionIO() seems fine with the changes in SQLOperation.
> 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)