Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-6670

Remove CommonTestUtils.createTempDirectory()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.7.0
    • Tests

    Description

      CommonTestUtils.createTempDirectory() encourages a dangerous design pattern with potential concurrency issues in the unit tests as well as the need to cleanup the created directories.
      Instead, it should be solved by using the following pattern:

              @Rule
              public TemporaryFolder tempFolder = new TemporaryFolder();
      

      We should therefore remove CommonTestUtils.createTempDirectory().

      Attachments

        Issue Links

          Activity

            People

              chesnay Chesnay Schepler
              nkruber Nico Kruber
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: