You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tajo.apache.org by "YeonSu Han (JIRA)" <ji...@apache.org> on 2015/09/11 09:52:45 UTC

[jira] [Commented] (TAJO-1807) Not display "Finished Queries" in query.jsp

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

YeonSu Han commented on TAJO-1807:
----------------------------------

I have checked this issue.
The S3 or google cloud storage is object storage. So in java stream to read a object data must be close the output stream.
But, If create a history file every query, have too many file. Because not close the history file in rolling time.
In org.apache.tajo.util.history.HistoryWriter:: writeQuerySummary
{code}
...
      byte[] jsonBytes = ("\n" + queryInfo.toJson() + "\n").getBytes(Bytes.UTF8_CHARSET);
      try {
        querySummaryWriter.out.writeInt(jsonBytes.length);
        querySummaryWriter.out.write(jsonBytes);
      } catch (IOException ie) {
        IOUtils.cleanup(LOG, querySummaryWriter);
        querySummaryWriter.out = null;
        throw ie;
      }
...
{code}

> Not display "Finished Queries" in query.jsp
> -------------------------------------------
>
>                 Key: TAJO-1807
>                 URL: https://issues.apache.org/jira/browse/TAJO-1807
>             Project: Tajo
>          Issue Type: Bug
>          Components: Web UI
>            Reporter: YeonSu Han
>             Fix For: 0.11.1
>
>
> If historyPath is S3 or google cloud storage,
> Not display a "Finished Queries" in query.jsp



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