Github user shijinkui commented on the issue:
https://github.com/apache/flink/pull/3190
@StephanEwen I have use TemporaryFolder to replace creating File manually.
There are some tips:
1. TemporaryFolder should invoke `create()` in setup manually
2. in `shutdown()` should invoke `tmp.delete()` to delete all the dir and
files recursively.
3. file name add random string
the generated files like this in root directory
`flink/flink-runtime/target/tmp`:
```
tmp/
âââ junit4955582781992164088
âââ 1fde53fa-7f7c-4f55-921c-04d078601cfd
â  âââ flink-dist-cache-664fc7de-51af-4fc1-86a0-3d8c76bb65df
âââ 30326e4a-205f-4982-a920-e790a7f52730
â  âââ flink-dist-cache-d3eb183b-ca0c-4b23-877f-adf1540d6563
â  âââ b217df314c282e23301ba8f8351fca5c
â  âââ cacheFile1e7f5410-2326-4916-8a50-986d49393a7f
âââ 35b19e4e-1515-4f93-813e-d4a40b09baeb
â  âââ flink-dist-cache-af593973-73a0-4996-8323-40978a703317
âââ c754952f-fe8d-465f-9424-1303e734e990
â  âââ flink-dist-cache-18f1984b-84ca-4db1-be2c-d2a3bc0a5fe3
âââ cacheFile1e7f5410-2326-4916-8a50-986d49393a7f
âââ fde2c7bc-8bb1-43ec-8e12-21510322b2b1
âââ flink-dist-cache-b34f1e0b-79a7-4cf7-ab3f-7a7a93a04d73
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---