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

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.3.0
    • Fix Version/s: 3.3.0
    • Component/s: test
    • Labels:
    • Target Version/s:
    • Hadoop Flags:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: