[GitHub] flink issue #3190: [FLINK-5546][build] java.io.tmpdir setted as project buil...

2017-02-23 Thread shijinkui
Github user shijinkui commented on the issue: https://github.com/apache/flink/pull/3190 > Can we just use the ${project.build.directory} as java.io.tmpdir ? @wenlong88 Sorry for late reply. It's good question. If use `${project.build.directory}` without sub directory `tmp`, th

[GitHub] flink issue #3190: [FLINK-5546][build] java.io.tmpdir setted as project buil...

2017-02-22 Thread wenlong88
Github user wenlong88 commented on the issue: https://github.com/apache/flink/pull/3190 Can we just use the `${project.build.directory}` as `java.io.tmpdir` ? --- 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 projec

[GitHub] flink issue #3190: [FLINK-5546][build] java.io.tmpdir setted as project buil...

2017-02-22 Thread shijinkui
Github user shijinkui commented on the issue: https://github.com/apache/flink/pull/3190 Get it. Run single test, having no temp created, it should use the default java.io.tmpdir property. Let me check that. In the base test class have a double check about the target --- If y

[GitHub] flink issue #3190: [FLINK-5546][build] java.io.tmpdir setted as project buil...

2017-02-22 Thread StephanEwen
Github user StephanEwen commented on the issue: https://github.com/apache/flink/pull/3190 Hi! `mvn test` works from the command line. IntelliJ right-click on a test and run does often not work, it only works if a console build was done before and the `.../target/tmp/` director

[GitHub] flink issue #3190: [FLINK-5546][build] java.io.tmpdir setted as project buil...

2017-02-21 Thread zentol
Github user zentol commented on the issue: https://github.com/apache/flink/pull/3190 I agree that we should simply fix the tests; if we do that the proposed change here is redundant anyway. --- If your project is set up for it, you can reply to this email and have your reply appear o

[GitHub] flink issue #3190: [FLINK-5546][build] java.io.tmpdir setted as project buil...

2017-02-21 Thread StephanEwen
Github user StephanEwen commented on the issue: https://github.com/apache/flink/pull/3190 @shijinkui This still has the problem that tests don't run any more from within the IDE. That is a big problem for developers. As an alternative, we can always fix the tests that do not u

[GitHub] flink issue #3190: [FLINK-5546][build] java.io.tmpdir setted as project buil...

2017-02-20 Thread shijinkui
Github user shijinkui commented on the issue: https://github.com/apache/flink/pull/3190 hi, @StephanEwen I have re-submit this pull request base on current master branch which had merged FLINK-5817. --- If your project is set up for it, you can reply to this email and have your reply

[GitHub] flink issue #3190: [FLINK-5546][build] java.io.tmpdir setted as project buil...

2017-02-20 Thread StephanEwen
Github user StephanEwen commented on the issue: https://github.com/apache/flink/pull/3190 @shijinkui The FileCacheDeleteValidationTest should still be fixed now. When I tested it, I combined the changed from FLINK-5817 and this pull request. --- If your project is set up for it, you

[GitHub] flink issue #3190: [FLINK-5546][build] java.io.tmpdir setted as project buil...

2017-02-19 Thread shijinkui
Github user shijinkui commented on the issue: https://github.com/apache/flink/pull/3190 @StephanEwen The FileCacheDeleteValidationTest had been fixed in FLINK-5817. This PR have rollback it. --- If your project is set up for it, you can reply to this email and have your reply appear

[GitHub] flink issue #3190: [FLINK-5546][build] java.io.tmpdir setted as project buil...

2017-02-19 Thread StephanEwen
Github user StephanEwen commented on the issue: https://github.com/apache/flink/pull/3190 Sorry, I have to actually step back on this one. I merged it into a feature branch and played around a bit with this, and it turns out it is not possible any more to execute tests from wi

[GitHub] flink issue #3190: [FLINK-5546][build] java.io.tmpdir setted as project buil...

2017-02-17 Thread StephanEwen
Github user StephanEwen commented on the issue: https://github.com/apache/flink/pull/3190 All right, I am convinced now that this is a helpful change. Merging this... --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as wel

[GitHub] flink issue #3190: [FLINK-5546][build] java.io.tmpdir setted as project buil...

2017-02-16 Thread shijinkui
Github user shijinkui commented on the issue: https://github.com/apache/flink/pull/3190 > Here is a related issue: https://issues.apache.org/jira/browse/FLINK-5817 I sounds good. I want to change the default system property `java.io.tmpdir` to be in the `target` directory. Thi

[GitHub] flink issue #3190: [FLINK-5546][build] java.io.tmpdir setted as project buil...

2017-02-16 Thread StephanEwen
Github user StephanEwen commented on the issue: https://github.com/apache/flink/pull/3190 Here is a related issue: https://issues.apache.org/jira/browse/FLINK-5817 --- 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 p

[GitHub] flink issue #3190: [FLINK-5546][build] java.io.tmpdir setted as project buil...

2017-01-27 Thread shijinkui
Github user shijinkui commented on the issue: https://github.com/apache/flink/pull/3190 > The ´${project.build.directory}` is not automatically cleaned up. The/tmp` directory is natural to clean up. hi, Stephan, thank for your reply. When restarting os, tmp dir will

[GitHub] flink issue #3190: [FLINK-5546][build] java.io.tmpdir setted as project buil...

2017-01-26 Thread StephanEwen
Github user StephanEwen commented on the issue: https://github.com/apache/flink/pull/3190 The ´${project.build.directory}` is not automatically cleaned up. The `/tmp` directory is natural to clean up. I would still suggest to simply fix the tests that have no random director

[GitHub] flink issue #3190: [FLINK-5546][build] java.io.tmpdir setted as project buil...

2017-01-25 Thread shijinkui
Github user shijinkui commented on the issue: https://github.com/apache/flink/pull/3190 " /tmp/cacheFile (Permission denied)" exception of unit test can be replay. 1. on linux env, `sudo - userA`, clone the flink code, start to `mvn clean test verify` 2. on the linux machi

[GitHub] flink issue #3190: [FLINK-5546][build] java.io.tmpdir setted as project buil...

2017-01-25 Thread shijinkui
Github user shijinkui commented on the issue: https://github.com/apache/flink/pull/3190 @greghogan That make sense. Let JUnit to create root dir and delete temporary dir recursively. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHu

[GitHub] flink issue #3190: [FLINK-5546][build] java.io.tmpdir setted as project buil...

2017-01-25 Thread greghogan
Github user greghogan commented on the issue: https://github.com/apache/flink/pull/3190 @shijinkui: [delete](http://junit.org/junit4/javadoc/latest/org/junit/rules/TemporaryFolder.html#delete()) is "usually not called directly, since it is automatically applied by the Rule". --- If

[GitHub] flink issue #3190: [FLINK-5546][build] java.io.tmpdir setted as project buil...

2017-01-23 Thread shijinkui
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 in

[GitHub] flink issue #3190: [FLINK-5546][build] java.io.tmpdir setted as project buil...

2017-01-23 Thread StephanEwen
Github user StephanEwen commented on the issue: https://github.com/apache/flink/pull/3190 @shijinkui I think there are already good temp file utils in JUnit itself. Do we need to change anything in the build when we fix the tests? --- If your project is set up for it, you can repl

[GitHub] flink issue #3190: [FLINK-5546][build] java.io.tmpdir setted as project buil...

2017-01-23 Thread shijinkui
Github user shijinkui commented on the issue: https://github.com/apache/flink/pull/3190 > I would actually prefer to fix the tests, rather than re-assignign the temp directory. All tests should use a random subdirectory in the temp directory. It is quite convenient to do via JUnit:

[GitHub] flink issue #3190: [FLINK-5546][build] java.io.tmpdir setted as project buil...

2017-01-23 Thread StephanEwen
Github user StephanEwen commented on the issue: https://github.com/apache/flink/pull/3190 Many tests assume that the `tmp` directory exists. I would actually prefer to fix the tests, rather than re-assignign the temp directory. All tests should use a random subdirectory in the

[GitHub] flink issue #3190: [FLINK-5546][build] java.io.tmpdir setted as project buil...

2017-01-23 Thread zentol
Github user zentol commented on the issue: https://github.com/apache/flink/pull/3190 Travis failed on flink-core: ``` Failed tests: GenericCsvInputFormatTest.readWithEmptyField:639 Test failed due to a IOException: No such file or directory GenericCsvInputForm

[GitHub] flink issue #3190: [FLINK-5546][build] java.io.tmpdir setted as project buil...

2017-01-23 Thread zentol
Github user zentol commented on the issue: https://github.com/apache/flink/pull/3190 Yes that makes sense. --- 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,

[GitHub] flink issue #3190: [FLINK-5546][build] java.io.tmpdir setted as project buil...

2017-01-23 Thread fhueske
Github user fhueske commented on the issue: https://github.com/apache/flink/pull/3190 It does if two users build and test from different code directories on the same machine. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as wel

[GitHub] flink issue #3190: [FLINK-5546][build] java.io.tmpdir setted as project buil...

2017-01-23 Thread zentol
Github user zentol commented on the issue: https://github.com/apache/flink/pull/3190 I don't see how this could solve the issue in the JIRA; it describes 2 tests from the same module failing since they use the same directory. This PR doesn't change that. --- If your project is set u