Skip to content

[SPARK-11870][Streaming][PySpark]Rethrow the exceptions in TransformFunction and TransformFunctionSerializer #9847

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

zsxwing
Copy link
Member

@zsxwing zsxwing commented Nov 19, 2015

TransformFunction and TransformFunctionSerializer don't rethrow the exception, so when any exception happens, it just return None. This will cause some weird NPE and confuse people.

@SparkQA
Copy link

SparkQA commented Nov 19, 2015

Test build #46368 has finished for PR 9847 at commit b3b6e86.

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

@tdas
Copy link
Contributor

tdas commented Nov 20, 2015

any unit test?

@tdas
Copy link
Contributor

tdas commented Nov 20, 2015

and any other places where this sort of problem may occur?

@zsxwing
Copy link
Member Author

zsxwing commented Nov 20, 2015

Added a test to reproduce this issue

@tdas
Copy link
Contributor

tdas commented Nov 20, 2015

LGTM. Will merge to master, 1.6, 1.5, 1.4 if i can. Thanks @zsxwing

@zsxwing
Copy link
Member Author

zsxwing commented Nov 20, 2015

retest this please

@SparkQA
Copy link

SparkQA commented Nov 20, 2015

Test build #46379 has finished for PR 9847 at commit 581796c.

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

asfgit pushed a commit that referenced this pull request Nov 20, 2015
…Function and TransformFunctionSerializer

TransformFunction and TransformFunctionSerializer don't rethrow the exception, so when any exception happens, it just return None. This will cause some weird NPE and confuse people.

Author: Shixiong Zhu <shixiong@databricks.com>

Closes #9847 from zsxwing/pyspark-streaming-exception.

(cherry picked from commit be7a2cf)
Signed-off-by: Tathagata Das <tathagata.das1565@gmail.com>
asfgit pushed a commit that referenced this pull request Nov 20, 2015
…Function and TransformFunctionSerializer

TransformFunction and TransformFunctionSerializer don't rethrow the exception, so when any exception happens, it just return None. This will cause some weird NPE and confuse people.

Author: Shixiong Zhu <shixiong@databricks.com>

Closes #9847 from zsxwing/pyspark-streaming-exception.

(cherry picked from commit be7a2cf)
Signed-off-by: Tathagata Das <tathagata.das1565@gmail.com>
asfgit pushed a commit that referenced this pull request Nov 20, 2015
…Function and TransformFunctionSerializer

TransformFunction and TransformFunctionSerializer don't rethrow the exception, so when any exception happens, it just return None. This will cause some weird NPE and confuse people.

Author: Shixiong Zhu <shixiong@databricks.com>

Closes #9847 from zsxwing/pyspark-streaming-exception.

(cherry picked from commit be7a2cf)
Signed-off-by: Tathagata Das <tathagata.das1565@gmail.com>
@asfgit asfgit closed this in be7a2cf Nov 20, 2015
@zsxwing zsxwing deleted the pyspark-streaming-exception branch November 20, 2015 23:21
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