[
https://issues.apache.org/jira/browse/STORM-3311?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated STORM-3311:
----------------------------------
Labels: pull-request-available (was: )
> Use Java 7 Files API for IO instead of the older API
> ----------------------------------------------------
>
> Key: STORM-3311
> URL: https://issues.apache.org/jira/browse/STORM-3311
> Project: Apache Storm
> Issue Type: Improvement
> Affects Versions: 2.0.0
> Reporter: Stig Rohde Døssing
> Assignee: Stig Rohde Døssing
> Priority: Major
> Labels: pull-request-available
>
> We should try to use the NIO Files API for file IO. The older file API causes
> issues on Windows, since it doesn't set the FILE_SHARE_DELETE flag when
> opening files. This causes Storm to be unable to delete files that have open
> handles, which is unlike the behavior on Linux. This can cause e.g.
> unnecessary supervisor crashes because one thread tries to delete a file that
> is open in another.
> For the same reason, we should get rid of uses of common-io FileUtils, and
> get rid of uses of Guava's Files class that opens IO streams.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)