You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Stephan Ewen (JIRA)" <ji...@apache.org> on 2014/11/03 17:08:33 UTC

[jira] [Resolved] (FLINK-1203) ClassCast exceptions in parallel tests (Surefire Bug?)

     [ https://issues.apache.org/jira/browse/FLINK-1203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stephan Ewen resolved FLINK-1203.
---------------------------------
    Resolution: Fixed
      Assignee: Stephan Ewen

Fixed via f42dcc3573dd595c4ee11f089f7ea5d68905ebca

> 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
>            Assignee: 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)