Ali Anwar created TWILL-140:
-------------------------------

             Summary: 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)

Reply via email to