Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/17844#discussion_r115200884
  
    --- Diff: 
repl/scala-2.11/src/test/scala/org/apache/spark/repl/ReplSuite.scala ---
    @@ -373,52 +190,6 @@ class ReplSuite extends SparkFunSuite {
         }
       }
     
    -  test("collecting objects of class defined in repl") {
    -    val output = runInterpreter("local[2]",
    -      """
    -        |case class Foo(i: Int)
    -        |val ret = sc.parallelize((1 to 100).map(Foo), 10).collect()
    -      """.stripMargin)
    -    assertDoesNotContain("error:", output)
    -    assertDoesNotContain("Exception", output)
    -    assertContains("ret: Array[Foo] = Array(Foo(1),", output)
    -  }
    -
    -  test("collecting objects of class defined in repl - shuffling") {
    -    val output = runInterpreter("local-cluster[1,1,1024]",
    -      """
    -        |case class Foo(i: Int)
    -        |val list = List((1, Foo(1)), (1, Foo(2)))
    -        |val ret = sc.parallelize(list).groupByKey().collect()
    -      """.stripMargin)
    -    assertDoesNotContain("error:", output)
    -    assertDoesNotContain("Exception", output)
    -    assertContains("ret: Array[(Int, Iterable[Foo])] = Array((1,", output)
    -  }
    -
    -  test("replicating blocks of object with class defined in repl") {
    -    val output = runInterpreter("local-cluster[2,1,1024]",
    -      """
    -        |val timeout = 60000 // 60 seconds
    -        |val start = System.currentTimeMillis
    -        |while(sc.getExecutorStorageStatus.size != 3 &&
    -        |    (System.currentTimeMillis - start) < timeout) {
    -        |  Thread.sleep(10)
    -        |}
    -        |if (System.currentTimeMillis - start >= timeout) {
    -        |  throw new java.util.concurrent.TimeoutException("Executors were 
not up in 60 seconds")
    -        |}
    -        |import org.apache.spark.storage.StorageLevel._
    -        |case class Foo(i: Int)
    -        |val ret = sc.parallelize((1 to 100).map(Foo), 
10).persist(MEMORY_AND_DISK_2)
    -        |ret.count()
    -        |sc.getExecutorStorageStatus.map(s => 
s.rddBlocksById(ret.id).size).sum
    -      """.stripMargin)
    -    assertDoesNotContain("error:", output)
    -    assertDoesNotContain("Exception", output)
    -    assertContains(": Int = 20", output)
    -  }
    -
       test("line wrapper only initialized once when used as encoder outer 
scope") {
    --- End diff --
    
    this test only works in local mode...


---
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, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to