Skip to content

Conversation

@squito
Copy link
Contributor

@squito squito commented Sep 18, 2018

PythonForeachWriterSuite was failing because RowQueue now needs to have a handle on a SparkEnv with a SerializerManager, so added a mock env with a serializer manager.

Also fixed a typo in the finally that was hiding the real exception.

Tested PythonForeachWriterSuite locally, full tests via jenkins.

f(tester)
} finally {
if (tester == null) tester.close()
if (tester != null) tester.close()
Copy link
Member

Choose a reason for hiding this comment

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

e... So here's why all test failed with NPE.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, but that NPE just covered up another NPE from SparkEnv.get.serializerManager

@SparkQA
Copy link

SparkQA commented Sep 18, 2018

Test build #96183 has finished for PR 22452 at commit 33725ce.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
  • class PythonForeachWriterSuite extends SparkFunSuite with Eventually with MockitoSugar

@squito
Copy link
Contributor Author

squito commented Sep 18, 2018

Jenkins, retest this please

@vanzin
Copy link
Contributor

vanzin commented Sep 18, 2018

LGTM

@SparkQA
Copy link

SparkQA commented Sep 18, 2018

Test build #96189 has finished for PR 22452 at commit 33725ce.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
  • class PythonForeachWriterSuite extends SparkFunSuite with Eventually with MockitoSugar

asfgit pushed a commit that referenced this pull request Sep 18, 2018
PythonForeachWriterSuite was failing because RowQueue now needs to have a handle on a SparkEnv with a SerializerManager, so added a mock env with a serializer manager.

Also fixed a typo in the `finally` that was hiding the real exception.

Tested PythonForeachWriterSuite locally, full tests via jenkins.

Closes #22452 from squito/SPARK-25456.

Authored-by: Imran Rashid <[email protected]>
Signed-off-by: Imran Rashid <[email protected]>
(cherry picked from commit a6f37b0)
Signed-off-by: Imran Rashid <[email protected]>
@squito
Copy link
Contributor Author

squito commented Sep 18, 2018

merged to master & 2.4

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.

4 participants