Uploaded image for project: 'Apache Twill (Retired)'
  1. Apache Twill (Retired)
  2. TWILL-140

Discrepancy between HDFSLocation and LocalLocation delete method behavior

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.6.0-incubating
    • None
    • api
    • None

    Description

      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.

      Attachments

        1. error.log
          8 kB
          Ali Anwar

        Activity

          People

            Unassigned Unassigned
            anwar1 Ali Anwar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: