Skip to content

Conversation

@angoenka
Copy link
Contributor

Indefinite attempt to reconnect logging client causes SDKHarness to get stuck during termination and eventually cause thread leak as each attempt to reconnect create some threads on GRPC side.

The pr deletes the logging stub before reconnecting so that grpc can clean its state.
The PR also introduces _alive flag which is used to determine if logging client should reconnect on disconnect.


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Choose reviewer(s) and mention them in a comment (R: @username).
  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

Post-Commit Tests Status (on master branch)

Lang SDK Apex Dataflow Flink Gearpump Samza Spark
Go Build Status --- --- --- --- --- ---
Java Build Status Build Status Build Status Build Status
Build Status
Build Status
Build Status Build Status Build Status
Python Build Status
Build Status
--- Build Status
Build Status
Build Status --- --- ---

Pre-Commit Tests Status (on master branch)

--- Java Python Go Website
Non-portable Build Status Build Status Build Status Build Status
Portable --- Build Status --- ---

See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.

@angoenka
Copy link
Contributor Author

R: @robertwb @aaltay

@angoenka angoenka force-pushed the logging_thread_leak branch from 3001378 to bd7e174 Compare April 20, 2019 00:02
@angoenka
Copy link
Contributor Author

cc: @yifanzou

@angoenka angoenka force-pushed the logging_thread_leak branch from bd7e174 to 6ab73f0 Compare April 20, 2019 01:41
@angoenka angoenka force-pushed the logging_thread_leak branch from 6ab73f0 to 7857fa7 Compare April 20, 2019 04:12
@angoenka
Copy link
Contributor Author

Run Portable_Python PreCommit

@angoenka angoenka merged commit d866fed into apache:master Apr 20, 2019
@yifanzou
Copy link
Contributor

Thanks for fixing this, Ankur!

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