[
https://issues.apache.org/jira/browse/KYLIN-3431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16532502#comment-16532502
]
Ted Yu commented on KYLIN-3431:
-------------------------------
When DefaultScheduler is stopped, the resource copy can be stopped as well,
right ?
If that is the case, how about catching {{ClosedByInterruptException}} and log
a DEBUG line ?
> Avoid FileInputStream/FileOutputStream
> --------------------------------------
>
> Key: KYLIN-3431
> URL: https://issues.apache.org/jira/browse/KYLIN-3431
> Project: Kylin
> Issue Type: Improvement
> Reporter: Ted Yu
> Priority: Major
> Fix For: v2.5.0
>
> Attachments: image-2018-07-04-16-41-54-234.png
>
>
> They rely on finalizers (before Java 11), which create unnecessary GC load.
> The alternatives, {{Files.newInputStream}}, are as easy to use and don't have
> this issue.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)