-
- Downloads
[SPARK-21447][WEB UI] Spark history server fails to render compressed
inprogress history file in some cases. Add failure handling for EOFException that can be thrown during decompression of an inprogress spark history file, treat same as case where can't parse the last line. ## What changes were proposed in this pull request? Failure handling for case of EOFException thrown within the ReplayListenerBus.replay method to handle the case analogous to json parse fail case. This path can arise in compressed inprogress history files since an incomplete compression block could be read (not flushed by writer on a block boundary). See the stack trace of this occurrence in the jira ticket (https://issues.apache.org/jira/browse/SPARK-21447) ## How was this patch tested? Added a unit test that specifically targets validating the failure handling path appropriately when maybeTruncated is true and false. Author: Eric Vandenberg <ericvandenberg@fb.com> Closes #18673 from ericvandenbergfb/fix_inprogress_compr_history_file.
Showing
- core/src/main/scala/org/apache/spark/scheduler/ReplayListenerBus.scala 2 additions, 1 deletion.../scala/org/apache/spark/scheduler/ReplayListenerBus.scala
- core/src/test/scala/org/apache/spark/scheduler/ReplayListenerSuite.scala 75 additions, 2 deletions...cala/org/apache/spark/scheduler/ReplayListenerSuite.scala
Loading
Please register or sign in to comment