flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shijinkui <...@git.apache.org>
Subject [GitHub] flink issue #3190: [FLINK-5546][build] java.io.tmpdir setted as project buil...
Date Tue, 24 Jan 2017 07:20:32 GMT
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message