Skip to content

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 <[email protected]>

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

(cherry picked from commit be7a2cf)
Signed-off-by: Tathagata Das <[email protected]>
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 <[email protected]>

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

(cherry picked from commit be7a2cf)
Signed-off-by: Tathagata Das <[email protected]>
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 <[email protected]>

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

(cherry picked from commit be7a2cf)
Signed-off-by: Tathagata Das <[email protected]>
@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