spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lev Khomich (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-6087) Provide actionable exception if Kryo buffer is not large enough
Date Mon, 09 Mar 2015 07:13:38 GMT

    [ https://issues.apache.org/jira/browse/SPARK-6087?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14352622#comment-14352622
] 

Lev Khomich commented on SPARK-6087:
------------------------------------

I would like to work on this task.

> 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: Bug
>          Components: Spark Core
>    Affects Versions: 1.3.0
>            Reporter: Patrick Wendell
>            Priority: Critical
>              Labels: starter
>
> 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