Skip to content

Conversation

@rxin
Copy link
Contributor

@rxin rxin commented Mar 25, 2016

What changes were proposed in this pull request?

We ran into a problem today debugging some class loading problem during deserialization, and JVM was masking the underlying exception which made it very difficult to debug. We can however log the exceptions using try/catch ourselves in serialization/deserialization. The good thing is that all these methods are already using Utils.tryOrIOException, so we can just put the try catch and logging in a single place.

How was this patch tested?

A logging change with a manual test.

* exceptions as IOException. This is used when implementing Externalizable and Serializable's
* read and write methods, since Java's serializer will not report non-IOExceptions properly;
* see SPARK-4080 for more context.
*/
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was just the duplicate of the next function

@rxin
Copy link
Contributor Author

rxin commented Mar 25, 2016

cc @yhuai

@yhuai
Copy link
Contributor

yhuai commented Mar 25, 2016

LGTM

@rxin
Copy link
Contributor Author

rxin commented Mar 25, 2016

Thanks - merging in master, 1.6, and 1.5.

asfgit pushed a commit that referenced this pull request Mar 25, 2016
## What changes were proposed in this pull request?
We ran into a problem today debugging some class loading problem during deserialization, and JVM was masking the underlying exception which made it very difficult to debug. We can however log the exceptions using try/catch ourselves in serialization/deserialization. The good thing is that all these methods are already using Utils.tryOrIOException, so we can just put the try catch and logging in a single place.

## How was this patch tested?
A logging change with a manual test.

Author: Reynold Xin <[email protected]>

Closes #11951 from rxin/SPARK-14149.

(cherry picked from commit 70a6f0b)
Signed-off-by: Reynold Xin <[email protected]>
asfgit pushed a commit that referenced this pull request Mar 25, 2016
## What changes were proposed in this pull request?
We ran into a problem today debugging some class loading problem during deserialization, and JVM was masking the underlying exception which made it very difficult to debug. We can however log the exceptions using try/catch ourselves in serialization/deserialization. The good thing is that all these methods are already using Utils.tryOrIOException, so we can just put the try catch and logging in a single place.

## How was this patch tested?
A logging change with a manual test.

Author: Reynold Xin <[email protected]>

Closes #11951 from rxin/SPARK-14149.

(cherry picked from commit 70a6f0b)
Signed-off-by: Reynold Xin <[email protected]>
@asfgit asfgit closed this in 70a6f0b Mar 25, 2016
@SparkQA
Copy link

SparkQA commented Mar 25, 2016

Test build #54154 has finished for PR 11951 at commit ed7766f.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants