You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2019/02/22 07:27:00 UTC

[jira] [Commented] (SPARK-26951) Should not throw KryoException when root cause is IOexception

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

Hyukjin Kwon commented on SPARK-26951:
--------------------------------------

Can you describe why it should retry?

> Should not throw KryoException when root cause is IOexception
> -------------------------------------------------------------
>
>                 Key: SPARK-26951
>                 URL: https://issues.apache.org/jira/browse/SPARK-26951
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 2.4.0
>            Reporter: zhoukang
>            Priority: Major
>
> Job will failed with below exception:
> {code:java}
> Job aborted due to stage failure: Task 1576 in stage 97.0 failed 4 times, most recent failure: Lost task 1576.3 in stage 97.0 (TID 121949, xxx, executor 14): com.esotericsoftware.kryo.KryoException: java.io.IOException: Stream is corrupted. The lz4's magic number should be LZ4Block(4c5a34426c6f636b), but received buffer's head bytes is (0000000000000000).
> {code}
> {code:java}
> Job aborted due to stage failure: Task 1576 in stage 97.0 failed 4 times, most recent failure: Lost task 1576.3 in stage 97.0 (TID 121949, xxx, executor 14): com.esotericsoftware.kryo.KryoException: java.io.IOException: Stream is corrupted. The lz4's magic number should be LZ4Block(4c5a34426c6f636b), but received buffer's head bytes is (0000000000000000).
> 	at com.esotericsoftware.kryo.io.Input.fill(Input.java:166)
> 	at com.esotericsoftware.kryo.io.Input.require(Input.java:196)
> 	at com.esotericsoftware.kryo.io.Input.readVarInt(Input.java:373)
> 	at com.esotericsoftware.kryo.util.DefaultClassResolver.readClass(DefaultClassResolver.java:127)
> 	at com.esotericsoftware.kryo.Kryo.readClass(Kryo.java:693)
> 	at com.esotericsoftware.kryo.Kryo.readClassAndObject(Kryo.java:804)
> 	at org.apache.spark.serializer.KryoDeserializationStream.readObject(KryoSerializer.scala:244)
> 	at org.apache.spark.serializer.DeserializationStream$$anon$1.getNext(Serializer.scala:169)
> 	at org.apache.spark.util.NextIterator.hasNext(NextIterator.scala:73)
> 	at org.apache.spark.InterruptibleIterator.hasNext(InterruptibleIterator.scala:39)
> 	at scala.collection.Iterator$$anon$13.hasNext(Iterator.scala:461)
> 	at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:408)
> 	at org.apache.spark.shuffle.sort.UnsafeShuffleWriter.write(UnsafeShuffleWriter.java:180)
> 	at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:96)
> 	at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:53)
> 	at org.apache.spark.scheduler.Task.run(Task.scala:99)
> 	at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:324)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> 	at java.lang.Thread.run(Thread.java:748)
> Caused by: java.io.IOException: Stream is corrupted. The lz4's magic number should be LZ4Block(4c5a34426c6f636b), but received buffer's head bytes is (0000000000000000).
> 	at org.apache.spark.io.LZ4BlockInputStream.refill(LZ4BlockInputStream.java:169)
> 	at org.apache.spark.io.LZ4BlockInputStream.read(LZ4BlockInputStream.java:127)
> 	at com.esotericsoftware.kryo.io.Input.fill(Input.java:164)
> 	... 19 more
> Driver stacktrace:
> {code}
> For IOException, it should retry



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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