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

Samarth Jain commented on PHOENIX-1395:
---------------------------------------

While this is a good first step, this will only work when the JVM in which 
phoenix client is running is terminated. One possible solution would be have 
some kind of reaper runs every few minutes (phoenix query timeout maybe?) that 
looks for such files and deletes them. Other option would be to override the 
finalize() method in OnDiskResultIterator to delete the file when the object is 
being GC'ed. 

> ResultSpooler spill files are left behind in /tmp folder
> --------------------------------------------------------
>
>                 Key: PHOENIX-1395
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-1395
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: Jeffrey Zhong
>            Assignee: Alicia Ying Shu
>             Fix For: 4.1
>
>         Attachments: PHOENIX-1395.patch
>
>
> Recently we found that some ResultSpooler*.bin files left in the tmp folder. 
> I think those are due to some client code doesn't call close on the returned 
> Resultset(which internally will invoke underlying 
> OnDiskResultIterator.close()) or client code get killed during result 
> iterating.



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

Reply via email to