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

YeonSu Han edited comment on TAJO-1807 at 9/11/15 7:54 AM:
-----------------------------------------------------------

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. So 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}


was (Author: hys9958):
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)

Reply via email to