[ 
https://issues.apache.org/jira/browse/FLINK-1203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14194461#comment-14194461
 ] 

ASF GitHub Bot commented on FLINK-1203:
---------------------------------------

GitHub user StephanEwen opened a pull request:

    https://github.com/apache/incubator-flink/pull/174

    [FLINK-1203] Deactivate fork reuse in tests ()

    Works around a potential surefire bug where we see confused class cast 
exceptions
    
    ```
    java.lang.ClassCastException: 
org.apache.flink.api.common.operators.base.DeltaIterationBase cannot be cast to 
org.apache.flink.api.common.operators.base.GroupReduceOperatorBase
        at 
org.apache.flink.api.scala.operators.translation.DistinctTranslationTest.testCombinable(DistinctTranslationTest.scala:39)
    ```
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/StephanEwen/incubator-flink fork_false

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-flink/pull/174.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 #174
    
----
commit 21d3bdbc8d61e1d2712fe396d3fed4258f5c3b8b
Author: Stephan Ewen <[email protected]>
Date:   2014-11-03T11:27:03Z

    [FLINK-1203] Deactivate fork reuse in tests (workaround for potential 
surefire bug)

----


> ClassCast exceptions in parallel tests (Surefire Bug?)
> ------------------------------------------------------
>
>                 Key: FLINK-1203
>                 URL: https://issues.apache.org/jira/browse/FLINK-1203
>             Project: Flink
>          Issue Type: Bug
>          Components: Build System
>    Affects Versions: 0.8-incubating
>            Reporter: Stephan Ewen
>             Fix For: 0.8-incubating
>
>
> I am frequently seeing weird (non-deterministic) class cast exception in the 
> tests, where apparently casts fail in serial parts of the program. The 
> casting attempts have nothing to do with the program context.
> {code}
> java.lang.ClassCastException: 
> org.apache.flink.api.common.operators.base.DeltaIterationBase cannot be cast 
> to org.apache.flink.api.common.operators.base.GroupReduceOperatorBase
>       at 
> org.apache.flink.api.scala.operators.translation.DistinctTranslationTest.testCombinable(DistinctTranslationTest.scala:39)
> {code}
> I am wondering whether that might be a strange bug in the forked execution, a 
> possible bug in maven surefire.
> I propose to deactivate the "reuseFork" option in surefire, to create a clean 
> JVM (and class loaders) for each test.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to