You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@twill.apache.org by "Ali Anwar (JIRA)" <ji...@apache.org> on 2015/07/15 21:47:04 UTC

[jira] [Updated] (TWILL-140) Discrepancy between HDFSLocation and LocalLocation delete method behavior

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

Ali Anwar updated TWILL-140:
----------------------------
    Attachment: error.log

> Discrepancy between HDFSLocation and LocalLocation delete method behavior
> -------------------------------------------------------------------------
>
>                 Key: TWILL-140
>                 URL: https://issues.apache.org/jira/browse/TWILL-140
>             Project: Apache Twill
>          Issue Type: Improvement
>          Components: api
>    Affects Versions: 0.6.0-incubating
>            Reporter: Ali Anwar
>            Priority: Minor
>         Attachments: error.log
>
>
> Calling Location#delete(), without recursive parameter will not delete the files if there are files within the specified Location.
> However, with LocalLocation, the method simply returns false.
> With HDFSLocation, the method throws an exception.
> It seems that the behavior of both Location implementations should be consistent.
> Attached is a stacktrace from a program that utilizes Location, and in the stack trace, the exception can be seen due to the call to HDFSLocation#delete.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)