flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-1640) FileOutputFormat writes to wrong path if path ends with '/'
Date Wed, 04 Mar 2015 14:39:04 GMT

    [ https://issues.apache.org/jira/browse/FLINK-1640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14346962#comment-14346962
] 

ASF GitHub Bot commented on FLINK-1640:
---------------------------------------

GitHub user fhueske opened a pull request:

    https://github.com/apache/flink/pull/453

    [FLINK-1640] Remove tailing slash from paths. 

    - Remove tailing slash from paths. 
    - Add tests for Path and FileOutputFormat.
    
    Tailing slashes were previously not removed from paths which caused functions that depend
on `Path.getName()` and `Path.getParent()` to be have inconsistently for paths with and without
tailing slashes.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/fhueske/flink pathBug

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flink/pull/453.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 #453
    
----
commit fd1320792cbabfd04b151011bc19430e2b63d3ec
Author: Fabian Hueske <fhueske@apache.org>
Date:   2015-03-04T14:24:26Z

    [FLINK-1640] Remove tailing slash from paths. Add tests for Path and FileOutputFormat.

----


> 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: Java API, Scala API
>    Affects Versions: 0.9, 0.8.1
>            Reporter: Fabian Hueske
>            Assignee: Fabian Hueske
>
> 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
(v6.3.4#6332)

Mime
View raw message