[
https://issues.apache.org/jira/browse/FLINK-7265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16108881#comment-16108881
]
ASF GitHub Bot commented on FLINK-7265:
---------------------------------------
Github user steveloughran commented on the issue:
https://github.com/apache/flink/pull/4397
We've long experimented with the best way to do this in Hadoop, and I think
we're converting on moving off any form of enum to some `hasFeature(String)`
predicate. Why? Lets you handle a more of the obscure corner cases of
blobstores, and have room to play in future versions. If it's a simple bool
`isPosix()` all seems well, but in future you may even there want to consider a
test for whether seek + write is supported, the FS is case sensititive, etc.
Strings are probably going to turn out to be the best option
> FileSystems should describe their kind and consistency level
> ------------------------------------------------------------
>
> Key: FLINK-7265
> URL: https://issues.apache.org/jira/browse/FLINK-7265
> Project: Flink
> Issue Type: Improvement
> Components: Core
> Affects Versions: 1.3.1
> Reporter: Stephan Ewen
> Assignee: Stephan Ewen
> Fix For: 1.4.0, 1.3.2
>
>
> Currently, all {{FileSystem}} types look the same to Flink.
> However, certain operations should only be executed on certain kinds of file
> systems.
> For example, it makes no sense to attempt to delete an empty parent directory
> on S3, because there are no such thinks as directories, only hierarchical
> naming in the keys (file names).
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)