Skip to content

[SPARK-43035][Connect] Add error class in Spark Connect server's ErrorInfo#42053

Closed
shrutiverma29 wants to merge 3 commits intoapache:masterfrom
shrutiverma29:feat/errorHandling
Closed

[SPARK-43035][Connect] Add error class in Spark Connect server's ErrorInfo#42053
shrutiverma29 wants to merge 3 commits intoapache:masterfrom
shrutiverma29:feat/errorHandling

Conversation

@shrutiverma29
Copy link

@shrutiverma29 shrutiverma29 commented Jul 18, 2023

What changes were proposed in this pull request?

This PR adds error handling in case error is of type SparkThrowable

Why are the changes needed?

The changes are needed so that user can have a bit more idea about the error

Does this PR introduce any user-facing change?

User will be able to see specific error in case of SparkThrowable Exceptions

How was this patch tested?

case e: Exception =>
logError("Error starting Spark Connect server", e)
e.getCause match {
case sparkThrowable: SparkThrowable if (sparkThrowable.getErrorClass != null) =>
Copy link
Member

Choose a reason for hiding this comment

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

Can you add a test for the case?

Copy link
Author

Choose a reason for hiding this comment

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

Added test cases @MaxGekk

@github-actions
Copy link

We're closing this PR because it hasn't been updated in a while. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable.
If you'd like to revive this PR, please reopen it and ask a committer to remove the Stale tag!

@github-actions github-actions bot added the Stale label Jan 27, 2024
@github-actions github-actions bot closed this Jan 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants