[
https://issues.apache.org/jira/browse/FLINK-1640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17056678#comment-17056678
]
Rui Li commented on FLINK-1640:
-------------------------------
Hi [~fhueske], I noticed in this PR we trim trailing whitespaces when creating
a Path. Therefore I cannot create paths like {{'/my/path/ '}}, which is
supported in Hadoop. Is there any reason why we have to trim the whitespaces
(there's test case in {{PathTest}} to verify this behavior)?
BTW, I'm asking because it causes some problem like FLINK-16532.
> FileOutputFormat writes to wrong path if path ends with '/'
> -----------------------------------------------------------
>
> Key: FLINK-1640
> URL: https://issues.apache.org/jira/browse/FLINK-1640
> Project: Flink
> Issue Type: Bug
> Components: API / Scala
> Affects Versions: 0.9, 0.8.1
> Reporter: Fabian Hueske
> Assignee: Fabian Hueske
> Priority: Major
> Fix For: 0.9, 0.8.2
>
>
> The FileOutputFormat duplicates the last directory of a path, if the path
> ends with a slash '/'.
> For example, if the output path is specified as {{/home/myuser/outputPath/}}
> the output is written to {{/home/myuser/outputPath/outputPath/}}.
> This bug was introduced by commit 8fc04e4da8a36866e10564205c3f900894f4f6e0
--
This message was sent by Atlassian Jira
(v8.3.4#803005)