GitHub user JoshRosen opened a pull request:
https://github.com/apache/spark/pull/2932
[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).
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/JoshRosen/spark SPARK-4080
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/2932.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2932
----
commit cd3a9be0b22bde399e6acd801de3aba83e527880
Author: Josh Rosen <[email protected]>
Date: 2014-10-24T19:07:11Z
[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).
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]