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] [Resolved] (SPARK-6087) Provide actionable exception if Kryo buffer is not large enough
Date Fri, 13 Mar 2015 18:18:38 GMT

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

Sean Owen resolved SPARK-6087.
------------------------------
          Resolution: Fixed
       Fix Version/s: 1.3.1
    Target Version/s:   (was: 1.4.0, 1.3.1)

> Provide actionable exception if Kryo buffer is not large enough
> ---------------------------------------------------------------
>
>                 Key: SPARK-6087
>                 URL: https://issues.apache.org/jira/browse/SPARK-6087
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 1.3.0
>            Reporter: Patrick Wendell
>            Assignee: Lev Khomich
>              Labels: starter
>             Fix For: 1.4.0, 1.3.1
>
>
> Right now if you don't have a large enough Kryo buffer, you get a really confusing exception.
I noticed this when using Kryo to serialize broadcasted tables in Spark SQL. We should catch-then-rethrow
this in the KryoSerializer, wrapping it in a message that suggests increasing the Kryo buffer
size configuration variable.
> {code}
> com.esotericsoftware.kryo.KryoException: Buffer overflow. Available: 0, required: 3
> Serialization trace:
> value (org.apache.spark.sql.catalyst.expressions.MutableAny)
> values (org.apache.spark.sql.catalyst.expressions.SpecificMutableRow)
> 	at com.esotericsoftware.kryo.io.Output.require(Output.java:138)
> 	at com.esotericsoftware.kryo.io.Output.writeAscii_slow(Output.java:446)
> 	at com.esotericsoftware.kryo.io.Output.writeString(Output.java:306)
> 	at com.esotericsoftware.kryo.serializers.DefaultSerializers$StringSerializer.write(DefaultSerializers.java:153)
> 	at com.esotericsoftware.kryo.serializers.DefaultSerializers$StringSerializer.write(DefaultSerializers.java:146)
> 	at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:501)
> 	at com.esotericsoftware.kryo.serializers.FieldSerializer$ObjectField.write(FieldSerializer.java:564)
> 	at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:213)
> 	at com.esotericsoftware.kryo.Kryo.writeClassAndObject(Kryo.java:568)
> 	at com.esotericsoftware.kryo.serializers.DefaultArraySerializers$ObjectArraySerializer.write(DefaultArraySerializers.java:318)
> 	at com.esotericsoftware.kryo.serializers.DefaultArraySerializers$ObjectArraySerializer.write(DefaultArraySerializers.java:293)
> 	at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:501)
> 	at com.esotericsoftware.kryo.serializers.FieldSerializer$ObjectField.write(FieldSerializer.java:564)
> 	at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:213)
> 	at com.esotericsoftware.kryo.Kryo.writeClassAndObject(Kryo.java:568)
> 	at com.esotericsoftware.kryo.serializers.DefaultArraySerializers$ObjectArraySerializer.write(DefaultArraySerializers.java:318)
> 	at com.esotericsoftware.kryo.serializers.DefaultArraySerializers$ObjectArraySerializer.write(DefaultArraySerializers.java:293)
> 	at com.esotericsoftware.kryo.Kryo.writeClassAndObject(Kryo.java:568)
> 	at org.apache.spark.serializer.KryoSerializerInstance.serialize(KryoSerializer.scala:167)
> 	at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:234)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> 	at java.lang.Thread.run(Thread.java:745)
> {code}
> /cc [~kayousterhout] who helped report his issue



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