Skip to content

Conversation

@zsxwing
Copy link
Member

@zsxwing zsxwing commented Feb 2, 2016

rpcEnv.awaitTermination() was not added in #10854 because some Streaming Python tests hung forever.

This patch fixed the hung issue and added rpcEnv.awaitTermination() back to SparkEnv.

Previously, Streaming Kafka Python tests shutdowns the zookeeper server before stopping StreamingContext. Then when stopping StreamingContext, KafkaReceiver may be hung due to https://issues.apache.org/jira/browse/KAFKA-601, hence, some thread of RpcEnv's Dispatcher cannot exit and rpcEnv.awaitTermination is hung.The patch just changed the shutdown order to fix it.

`rpcEnv.awaitTermination()` was not added in #10854 because some Streaming Python tests hung forever.

This patch fixed the hung issue and added rpcEnv.awaitTermination() back to SparkEnv.

Previously, Streaming Kafka Python tests shutdowns the zookeeper server before stopping StreamingContext. Then when stopping StreamingContext, KafkaReceiver may be hung due to https://issues.apache.org/jira/browse/KAFKA-601, hence, some thread of RpcEnv's Dispatcher cannot exit and rpcEnv.awaitTermination is hung.The patch just changed the shutdown order to fix it.
@SparkQA
Copy link

SparkQA commented Feb 2, 2016

Test build #50590 has finished for PR 11031 at commit 224916f.

  • This patch fails PySpark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@zsxwing
Copy link
Member Author

zsxwing commented Feb 2, 2016

retest this please

@SparkQA
Copy link

SparkQA commented Feb 3, 2016

Test build #50606 has finished for PR 11031 at commit 224916f.

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

@zsxwing
Copy link
Member Author

zsxwing commented Feb 3, 2016

cc @rxin

@rxin
Copy link
Contributor

rxin commented Feb 3, 2016

Thanks - merging this in.

@asfgit asfgit closed this in 335f10e Feb 3, 2016
@zsxwing zsxwing deleted the awaitTermination branch February 3, 2016 05:29
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