Github user GrahamDennis commented on a diff in the pull request:

    https://github.com/apache/spark/pull/1827#discussion_r16226363
  
    --- Diff: 
core/src/test/scala/org/apache/spark/serializer/KryoSerializerSuite.scala ---
    @@ -207,6 +207,16 @@ class KryoSerializerSuite extends FunSuite with 
SharedSparkContext {
             .fold(new ClassWithoutNoArgConstructor(10))((t1, t2) => new 
ClassWithoutNoArgConstructor(t1.x + t2.x)).x
         assert(10 + control.sum === result)
       }
    +  
    +  test("kryo with nonexistent custom registrator should fail") {
    +    import org.apache.spark.{SparkConf, SparkException}
    +
    +    val conf = new SparkConf(false)
    +    conf.set("spark.kryo.registrator", "this.class.does.not.exist")
    +    
    +    val thrown = intercept[SparkException](new 
KryoSerializer(conf).newInstance())
    +    assert(thrown.getMessage.contains("Failed to invoke 
this.class.does.not.exist"))
    --- End diff --
    
    (I've run this test locally, and it passes).


---
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