spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Owen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SPARK-5626) Spurious test failures due to NullPointerException in EasyMock test code
Date Sat, 07 Feb 2015 22:17:34 GMT

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

Sean Owen updated SPARK-5626:
-----------------------------
    Component/s: Tests

> Spurious test failures due to NullPointerException in EasyMock test code
> ------------------------------------------------------------------------
>
>                 Key: SPARK-5626
>                 URL: https://issues.apache.org/jira/browse/SPARK-5626
>             Project: Spark
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: 1.3.0
>            Reporter: Josh Rosen
>              Labels: flaky-test
>         Attachments: consoleText.txt
>
>
> I've seen a few cases where a test failure will trigger a cascade of spurious failures
when instantiating test suites that use EasyMock.  Here's a sample symptom:
> {code}
> [info] CacheManagerSuite:
> [info] Exception encountered when attempting to run a suite with class name: org.apache.spark.CacheManagerSuite
*** ABORTED *** (137 milliseconds)
> [info]   java.lang.NullPointerException:
> [info]   at org.objenesis.strategy.StdInstantiatorStrategy.newInstantiatorOf(StdInstantiatorStrategy.java:52)
> [info]   at org.objenesis.ObjenesisBase.getInstantiatorOf(ObjenesisBase.java:90)
> [info]   at org.objenesis.ObjenesisBase.newInstance(ObjenesisBase.java:73)
> [info]   at org.objenesis.ObjenesisHelper.newInstance(ObjenesisHelper.java:43)
> [info]   at org.easymock.internal.ObjenesisClassInstantiator.newInstance(ObjenesisClassInstantiator.java:26)
> [info]   at org.easymock.internal.ClassProxyFactory.createProxy(ClassProxyFactory.java:219)
> [info]   at org.easymock.internal.MocksControl.createMock(MocksControl.java:59)
> [info]   at org.easymock.EasyMock.createMock(EasyMock.java:103)
> [info]   at org.scalatest.mock.EasyMockSugar$class.mock(EasyMockSugar.scala:267)
> [info]   at org.apache.spark.CacheManagerSuite.mock(CacheManagerSuite.scala:28)
> [info]   at org.apache.spark.CacheManagerSuite$$anonfun$1.apply$mcV$sp(CacheManagerSuite.scala:40)
> [info]   at org.apache.spark.CacheManagerSuite$$anonfun$1.apply(CacheManagerSuite.scala:38)
> [info]   at org.apache.spark.CacheManagerSuite$$anonfun$1.apply(CacheManagerSuite.scala:38)
> [info]   at org.scalatest.BeforeAndAfter$class.runTest(BeforeAndAfter.scala:195)
> [info]   at org.apache.spark.CacheManagerSuite.runTest(CacheManagerSuite.scala:28)
> [info]   at org.scalatest.FunSuiteLike$$anonfun$runTests$1.apply(FunSuiteLike.scala:208)
> [info]   at org.scalatest.FunSuiteLike$$anonfun$runTests$1.apply(FunSuiteLike.scala:208)
> [info]   at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:413)
> [info]   at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:401)
> [info]   at scala.collection.immutable.List.foreach(List.scala:318)
> [info]   at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
> [info]   at org.scalatest.SuperEngine.org$scalatest$SuperEngine$$runTestsInBranch(Engine.scala:396)
> [info]   at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:483)
> [info]   at org.scalatest.FunSuiteLike$class.runTests(FunSuiteLike.scala:208)
> [info]   at org.scalatest.FunSuite.runTests(FunSuite.scala:1555)
> [info]   at org.scalatest.Suite$class.run(Suite.scala:1424)
> [info]   at org.scalatest.FunSuite.org$scalatest$FunSuiteLike$$super$run(FunSuite.scala:1555)
> [info]   at org.scalatest.FunSuiteLike$$anonfun$run$1.apply(FunSuiteLike.scala:212)
> [info]   at org.scalatest.FunSuiteLike$$anonfun$run$1.apply(FunSuiteLike.scala:212)
> [info]   at org.scalatest.SuperEngine.runImpl(Engine.scala:545)
> [info]   at org.scalatest.FunSuiteLike$class.run(FunSuiteLike.scala:212)
> [info]   at org.apache.spark.CacheManagerSuite.org$scalatest$BeforeAndAfter$$super$run(CacheManagerSuite.scala:28)
> [info]   at org.scalatest.BeforeAndAfter$class.run(BeforeAndAfter.scala:241)
> [info]   at org.apache.spark.CacheManagerSuite.run(CacheManagerSuite.scala:28)
> [info]   at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:462)
> [info]   at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:671)
> [info]   at sbt.ForkMain$Run$2.call(ForkMain.java:294)
> [info]   at sbt.ForkMain$Run$2.call(ForkMain.java:284)
> [info]   at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> [info]   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> [info]   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> [info]   at java.lang.Thread.run(Thread.java:745)
> {code}
> This is from https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/26852/consoleFull.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message