Skip to content

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

Closed
zsxwing wants to merge 2 commits into
apache:masterfrom
zsxwing:pyspark-streaming-exception
Closed

[SPARK-11870][Streaming][PySpark]Rethrow the exceptions in TransformFunction and TransformFunctionSerializer#9847
zsxwing wants to merge 2 commits into
apache:masterfrom
zsxwing:pyspark-streaming-exception

Conversation

@zsxwing

@zsxwing zsxwing commented Nov 19, 2015

Copy link
Copy Markdown
Member

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

SparkQA commented Nov 19, 2015

Copy link
Copy Markdown

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

tdas commented Nov 20, 2015

Copy link
Copy Markdown
Contributor

any unit test?

@tdas

tdas commented Nov 20, 2015

Copy link
Copy Markdown
Contributor

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

@zsxwing

zsxwing commented Nov 20, 2015

Copy link
Copy Markdown
Member Author

Added a test to reproduce this issue

@tdas

tdas commented Nov 20, 2015

Copy link
Copy Markdown
Contributor

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

@zsxwing

zsxwing commented Nov 20, 2015

Copy link
Copy Markdown
Member Author

retest this please

@SparkQA

SparkQA commented Nov 20, 2015

Copy link
Copy Markdown

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