You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/02/15 18:06:41 UTC
[jira] [Commented] (FLINK-5812) Clean up FileSystem
[ https://issues.apache.org/jira/browse/FLINK-5812?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15868276#comment-15868276 ]
ASF GitHub Bot commented on FLINK-5812:
---------------------------------------
GitHub user StephanEwen opened a pull request:
https://github.com/apache/flink/pull/3328
[FLINK-5812] [core] Cleanups in the FileSystem class
The FileSystem class is overloaded and has methods that are not well supported.
This pull request does the following cleanups:
Commit 1:
- Pull the safety net into a separate class
- Extend the docs of the safety net.
Commit 2:
- Use the `WriteMode` to indicate overwriting behavior. Right now, the `FileSystem` class defines that enum and never uses it. It feels weird.
- Remove the method `FsDataOutputStream create(path, overwrite, blocksize, replication, ...)`, which is not really supported across file system implementations. For HDFS, the behavior should be set via the configuration anyways.
All changes have to be made in a non-API-breaking fashion.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/StephanEwen/incubator-flink fs_cleanup
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/3328.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #3328
----
commit 6c86f901427d4bb077f27c84c90abeafec019449
Author: Stephan Ewen <se...@apache.org>
Date: 2017-02-15T16:10:53Z
[FLINK-5812] [core] Cleanups in FileSystem (round 1)
- This makes the FileSystem use the 'WriteMode' (otherwise it was an unused enumeration)
- Extends comments
- Deprecate the method that controls the replication factor and block size
commit 83578e2b8e2e1ca03b14e8d47f7a122aa07fd517
Author: Stephan Ewen <se...@apache.org>
Date: 2017-02-15T16:58:37Z
[FLINK-5812] [core] Cleanups in FileSystem (round 2)
Move the FileSystem safety net to a separate class.
----
> Clean up FileSystem
> -------------------
>
> Key: FLINK-5812
> URL: https://issues.apache.org/jira/browse/FLINK-5812
> Project: Flink
> Issue Type: Improvement
> Components: Core
> Affects Versions: 1.2.0
> Reporter: Stephan Ewen
> Assignee: Stephan Ewen
> Priority: Minor
> Fix For: 1.3.0
>
>
> The {{FileSystem}} class is overloaded and has methods that are not well supported. I suggest to do the following cleanups:
> - Pull the safety net into a separate class
> - Use the {{WriteMode}} to indicate overwriting behavior. Right now, the {{FileSystem}} class defines that enum and never uses it. It feels weird.
> - Remove the {{create(path, overwrite, blocksize, reolication, ...)}} method, which is not really supported across file system implementations. For HDFS, behavior should be set via the configuration anyways.
> All changes have to be made in a non-API-breaking fashion.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)