[jira] [Commented] (FLINK-1677) Properly Suppress Sysout Printing for the Degrees with exception test suite
[ https://issues.apache.org/jira/browse/FLINK-1677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14362425#comment-14362425 ] ASF GitHub Bot commented on FLINK-1677: --- Github user asfgit closed the pull request at: https://github.com/apache/flink/pull/475 Properly Suppress Sysout Printing for the Degrees with exception test suite --- Key: FLINK-1677 URL: https://issues.apache.org/jira/browse/FLINK-1677 Project: Flink Issue Type: Bug Components: Gelly Affects Versions: 0.9 Reporter: Andra Lungu Assignee: Andra Lungu Priority: Minor Suppress systout printing similar to: flink-clients/src/test/java/org/apache/flink/client/program/ExecutionPlanAfterExecutionTest.java Speedup test suite by reusing a mini-cluster similar to: flink-tests/src/test/java/org/apache/flink/test/recovery/SimpleRecoveryITCase.java -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (FLINK-1677) Properly Suppress Sysout Printing for the Degrees with exception test suite
[ https://issues.apache.org/jira/browse/FLINK-1677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14359440#comment-14359440 ] ASF GitHub Bot commented on FLINK-1677: --- Github user andralungu commented on the pull request: https://github.com/apache/flink/pull/475#issuecomment-78622670 Hi @uce , First of all thanks! :) Your comments are entirely true, especially the one with MultipleProgramsTestBase. I spent some time to figure out how to unit test this behavior. I got advice from different people... hopefully this last version will be satisfactory. @vasia once travis passes, if nobody else has objections, maybe we can merge this :) Properly Suppress Sysout Printing for the Degrees with exception test suite --- Key: FLINK-1677 URL: https://issues.apache.org/jira/browse/FLINK-1677 Project: Flink Issue Type: Bug Components: Gelly Affects Versions: 0.9 Reporter: Andra Lungu Assignee: Andra Lungu Priority: Minor Suppress systout printing similar to: flink-clients/src/test/java/org/apache/flink/client/program/ExecutionPlanAfterExecutionTest.java Speedup test suite by reusing a mini-cluster similar to: flink-tests/src/test/java/org/apache/flink/test/recovery/SimpleRecoveryITCase.java -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (FLINK-1677) Properly Suppress Sysout Printing for the Degrees with exception test suite
[ https://issues.apache.org/jira/browse/FLINK-1677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14358483#comment-14358483 ] ASF GitHub Bot commented on FLINK-1677: --- Github user uce commented on the pull request: https://github.com/apache/flink/pull/475#issuecomment-78459308 Thanks for the PR. I think it's a good fix, **but**: I noticed that `DegreesWithExceptionITCase.testGetDegreesInvalidEdgeSrcId`is sometimes failing (for example here: https://s3.amazonaws.com/archive.travis-ci.org/jobs/53985893/log.txt). I initially thought that it was a problem of my runtime changes in #471, but the problem is the following: You expect a certain exception msg (The edge src/trg id could not be found within the vertexIds) for the test to pass. But in the getDegrees() test there is a reducer following the coGroup (this one throws the expected exception), which can also fail with another exception, because of the cancelling before in the coCroup. If this other exception gets reported to the client, the test fails. I think it would be enough to test that the job fails or even think about whether it makes sense to cover this in a unit test of the operator, because imo it all boils down to the behaviour of the degree computing coGroup, which throws the expected `NoSuchElementException`. --- Other than that: - Initially I thought whether you should extends MultipleProgramsTestBase as in other test cases, but I think that doesn't work with the Exception checking. In the future, we should add some test utils to test failing high-level programs. - Typo in the commit msg: suppres**s**ed If you think it's OK to just test that the program is failing, go ahead and change it. After that it would be good to merge. Properly Suppress Sysout Printing for the Degrees with exception test suite --- Key: FLINK-1677 URL: https://issues.apache.org/jira/browse/FLINK-1677 Project: Flink Issue Type: Bug Components: Gelly Affects Versions: 0.9 Reporter: Andra Lungu Assignee: Andra Lungu Priority: Minor Suppress systout printing similar to: flink-clients/src/test/java/org/apache/flink/client/program/ExecutionPlanAfterExecutionTest.java Speedup test suite by reusing a mini-cluster similar to: flink-tests/src/test/java/org/apache/flink/test/recovery/SimpleRecoveryITCase.java -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (FLINK-1677) Properly Suppress Sysout Printing for the Degrees with exception test suite
[ https://issues.apache.org/jira/browse/FLINK-1677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14358484#comment-14358484 ] ASF GitHub Bot commented on FLINK-1677: --- Github user vasia commented on the pull request: https://github.com/apache/flink/pull/475#issuecomment-78459525 +1 for what @uce said :) Properly Suppress Sysout Printing for the Degrees with exception test suite --- Key: FLINK-1677 URL: https://issues.apache.org/jira/browse/FLINK-1677 Project: Flink Issue Type: Bug Components: Gelly Affects Versions: 0.9 Reporter: Andra Lungu Assignee: Andra Lungu Priority: Minor Suppress systout printing similar to: flink-clients/src/test/java/org/apache/flink/client/program/ExecutionPlanAfterExecutionTest.java Speedup test suite by reusing a mini-cluster similar to: flink-tests/src/test/java/org/apache/flink/test/recovery/SimpleRecoveryITCase.java -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (FLINK-1677) Properly Suppress Sysout Printing for the Degrees with exception test suite
[ https://issues.apache.org/jira/browse/FLINK-1677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14355761#comment-14355761 ] ASF GitHub Bot commented on FLINK-1677: --- GitHub user andralungu opened a pull request: https://github.com/apache/flink/pull/475 [FLINK-1677][gelly] Suppresed Sysout Printing For the DegreesWithException test suite. Also added a mini cluster instance to speed up tests You can merge this pull request into a Git repository by running: $ git pull https://github.com/andralungu/flink speedup Alternatively you can review and apply these changes as the patch at: https://github.com/apache/flink/pull/475.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #475 commit 8cb00634b00a817804dc41b853e71df98103b8f9 Author: andralungu lungu.an...@gmail.com Date: 2015-03-10T21:06:04Z [FLINK-1677][gelly] Suppresed Sysout Printing for the Degrees with exception test suite [FLINK-1677][gelly] Suppressed Sysout Printing for Degrees with Exception Properly Suppress Sysout Printing for the Degrees with exception test suite --- Key: FLINK-1677 URL: https://issues.apache.org/jira/browse/FLINK-1677 Project: Flink Issue Type: Bug Components: Gelly Affects Versions: 0.9 Reporter: Andra Lungu Assignee: Andra Lungu Priority: Minor Suppress systout printing similar to: flink-clients/src/test/java/org/apache/flink/client/program/ExecutionPlanAfterExecutionTest.java Speedup test suite by reusing a mini-cluster similar to: flink-tests/src/test/java/org/apache/flink/test/recovery/SimpleRecoveryITCase.java -- This message was sent by Atlassian JIRA (v6.3.4#6332)