spark-instrumented-optimizer/external
Josh Rosen 6c98c29ae0 [SPARK-4080] Only throw IOException from [write|read][Object|External]
If classes implementing Serializable or Externalizable interfaces throw
exceptions other than IOException or ClassNotFoundException from their
(de)serialization methods, then this results in an unhelpful
"IOException: unexpected exception type" rather than the actual exception that
produced the (de)serialization error.

This patch fixes this by adding a utility method that re-wraps any uncaught
exceptions in IOException (unless they are already instances of IOException).

Author: Josh Rosen <joshrosen@databricks.com>

Closes #2932 from JoshRosen/SPARK-4080 and squashes the following commits:

cd3a9be [Josh Rosen] [SPARK-4080] Only throw IOException from [write|read][Object|External].
2014-10-24 15:06:15 -07:00
..
flume [SPARK-4080] Only throw IOException from [write|read][Object|External] 2014-10-24 15:06:15 -07:00
flume-sink [SPARK-3686][STREAMING] Wait for sink to commit the channel before check... 2014-09-25 22:56:43 -07:00
kafka [SPARK-3748] Log thread name in unit test logs 2014-10-01 01:03:49 -07:00
mqtt [SPARK-3748] Log thread name in unit test logs 2014-10-01 01:03:49 -07:00
twitter [SPARK-3748] Log thread name in unit test logs 2014-10-01 01:03:49 -07:00
zeromq [SPARK-3748] Log thread name in unit test logs 2014-10-01 01:03:49 -07:00