[
https://issues.apache.org/jira/browse/TAJO-1978?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15006345#comment-15006345
]
ASF GitHub Bot commented on TAJO-1978:
--------------------------------------
Github user blrunner commented on a diff in the pull request:
https://github.com/apache/tajo/pull/861#discussion_r44898585
--- Diff:
tajo-cli/src/main/java/org/apache/tajo/cli/tsql/commands/ExitCommand.java ---
@@ -37,6 +37,7 @@ public String getCommand() {
@Override
public void invoke(String[] cmd) throws Exception {
context.getOutput().println("bye!");
+ context.getOutput().flush();
--- End diff --
```flush()``` flushes content of buffer to destination. And you can write
something again into the stream. ```close()``` flushes content to destination
and closes the stream. After execute the command for terminating TSql, we will
never write anything anymore. Thus, we need to use ```close()``` instead of
```flush()```.
> Printout message before terminating TSQL
> ----------------------------------------
>
> Key: TAJO-1978
> URL: https://issues.apache.org/jira/browse/TAJO-1978
> Project: Tajo
> Issue Type: Bug
> Reporter: Dongkyu Hwangbo
> Assignee: Dongkyu Hwangbo
> Priority: Trivial
> Labels: cli, newbie
>
> In ExitCommand::invoke, the code line is written that printout "bye!" before
> terminating. But, There is no sout.flush() before exit(0) so that message is
> not shown.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)