You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@storm.apache.org by "Richard Zowalla (Jira)" <ji...@apache.org> on 2024/07/09 10:38:00 UTC

[jira] [Closed] (STORM-3311) Use Java 7 Files API for IO instead of the older API

     [ https://issues.apache.org/jira/browse/STORM-3311?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard Zowalla closed STORM-3311.
----------------------------------
    Resolution: Won't Fix

We are in the process of migrating our issue tracking system to GitHub issues. This issue has been stale for the last 5 years, and STORM has evolved with many dependency updates since this issue was last updated.

If the issue persists in the latest version of Storm, please feel free to reopen it or provide new context. Thank you very much!

> 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
>          Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> 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
(v8.20.10#820010)