You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Nico Kruber (JIRA)" <ji...@apache.org> on 2017/05/23 07:44:04 UTC

[jira] [Created] (FLINK-6670) remove CommonTestUtils.createTempDirectory()

Nico Kruber created FLINK-6670:
----------------------------------

             Summary: remove CommonTestUtils.createTempDirectory()
                 Key: FLINK-6670
                 URL: https://issues.apache.org/jira/browse/FLINK-6670
             Project: Flink
          Issue Type: Bug
          Components: Tests
            Reporter: Nico Kruber
            Priority: Minor


{{CommonTestUtils.createTempDirectory()}} encourages a dangerous design pattern with potential concurrency issues in the unit tests which could be solved by using the following pattern instead.
{code:java}
        @Rule
        public TemporaryFolder tempFolder = new TemporaryFolder();
{code}

We should therefore remove {{CommonTestUtils.createTempDirectory()}}.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)