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

TestConfigurationDeprecation leaves behind a temp file, resulting in a license issue

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.3.0
    • 3.3.0
    • test
    • Reviewed

    Description

      HADOOP-15708 made some changes to TestConfigurationDeprecation. One of them was adding

        final static String CONFIG4 = new File("./test-config4" +
            "-TestConfigurationDeprecation.xml").getAbsolutePath();
      

      which we never clean up in the tearDown method:

        @After
        public void tearDown() throws Exception {
          new File(CONFIG).delete();
          new File(CONFIG2).delete();
          new File(CONFIG3).delete();
        }
      

      This results in that file being left behind, and causing a license warning in test runs.

      Attachments

        1. HADOOP-15853-01.patch
          0.7 kB
          Ayush Saxena

        Issue Links

          Activity

            People

              ayushtkn Ayush Saxena
              rkanter Robert Kanter
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: