You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Marios Trivyzas (Jira)" <ji...@apache.org> on 2022/04/05 07:52:00 UTC

[jira] [Assigned] (FLINK-26686) Use a junit temp folder for TestingTaskManagerRuntimeInfo tmpWorkingDirectory

     [ https://issues.apache.org/jira/browse/FLINK-26686?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marios Trivyzas reassigned FLINK-26686:
---------------------------------------

    Assignee:     (was: Marios Trivyzas)

> Use a junit temp folder for TestingTaskManagerRuntimeInfo tmpWorkingDirectory
> -----------------------------------------------------------------------------
>
>                 Key: FLINK-26686
>                 URL: https://issues.apache.org/jira/browse/FLINK-26686
>             Project: Flink
>          Issue Type: Improvement
>          Components: Runtime / Configuration
>            Reporter: Marios Trivyzas
>            Priority: Major
>
> Following FLINK-26418, maybe it's a good idea to not expose a constructor for {{TestingTaskManagerRuntimeInfo}} without the *tmpWorkingDirectory* as this ends up in creating the ROCKSDB folders inside */tmp* (which at least is an improvement over having them created in the given {*}CWD{*}, ending up in the root folder of each given module (i.e: {*}flink-table/flink-table-planner{*}).
> If the *tmpWorkingDirectory* is a mandatory argument then the consumers (IT tests) would have to provide this directory and they can use the standard junit *TemporaryFolder.newFolder()* so that the directories are automatically deleted after the tests are run, and devs can find those directories under the build/test folder of each module and not in an unorganized structure in */tmp* (or windows user's tmp folder).



--
This message was sent by Atlassian Jira
(v8.20.1#820001)