Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SinkClient fix logging on unsubscribe #144

Merged
merged 3 commits into from
Mar 13, 2022
Merged

Conversation

calvin681
Copy link
Collaborator

@calvin681 calvin681 commented Mar 13, 2022

Context

On stale connection issue, after checking the logs, doOnUnsubscribe was called. However, not all the connections were closed. There is likely an exception somewhere. The old exception catch doesn't do anything. It should at least log.

I also added another safe guard to terminate the inner observable once the sink is permanently closed.

Checklist

  • ./gradlew build compiles code correctly
  • Added new tests where applicable
  • ./gradlew test passes all tests
  • Extended README or added javadocs where applicable
  • Added copyright headers for new files from CONTRIBUTING.md

@calvin681 calvin681 merged commit 9f67db4 into Netflix:master Mar 13, 2022
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.

2 participants