Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-12984

Add GenericTestUtils.getTestDir method and use it for temporary directory in tests

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha1
    • 2.9.0, 3.0.0-alpha1
    • build, test
    • None
    • Reviewed

    Description

      We have seen some tests had been used the path test/build/data to store files, so leaking files which fail the new post-build RAT test checks on Jenkins (and dirtying all development systems with paths which mvn clean will miss.
      In order not to occur these bugs such as MAPREDUCE-6589 and HDFS-9571 again, we'd like to introduce new utility methods to get a temporary directory path easily, and use the methods in tests.

      Attachments

        1. HDFS-9263-001.patch
          46 kB
          Steve Loughran
        2. HDFS-9263-002.patch
          46 kB
          Chris Nauroth
        3. HDFS-9263-003.patch
          133 kB
          Vinayakumar B
        4. HADOOP-12984-003.patch
          133 kB
          Akira Ajisaka
        5. HADOOP-12984.branch-2.8.00.patch
          98 kB
          Xiaoyu Yao

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            stevel@apache.org Steve Loughran
            stevel@apache.org Steve Loughran
            Votes:
            0 Vote for this issue
            Watchers:
            21 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment