Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-770

org.apache.hadoop.tools.TestCopyFiles may leave junk files when an assertion fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • test
    • None

    Description

      In most of the testXxxYyyZzz methods, the code runs:

      preliminaries

      ToolRunner( ..., new String[]

      { local and DFS filenames and more filenames }

      );

      assertMaybe("this result stank", conditions);
      assertMaybe("this other result stank", conditions);

      deldir(deletee's name);
      deldir(second deletee's name);

      The assertMaybe's throw AssertionFailedError . That's what they DO. Shouldn't this stuff be protected with a try ... finally construct?

      Attachments

        Activity

          People

            Unassigned Unassigned
            dking Dick King
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: