This repository has been archived by the owner on Sep 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 105
Fix WatchDog leak #828
Comments
Are you suggesting Watcgdog itself should implement BackgroundResource or all implementations of it should? |
The rough idea is:
This is fairly low priority because the executor that the watchdog is registered with does this already. Which should unschedule the watchdog as a side effect, but it would be cleaner to do this explicitly |
Sounds reasonable. Just watch out for breaking changes to the API. Also it might help to resolve #829 first. |
rahulKQL
added a commit
to rahulKQL/gax-java
that referenced
this issue
Jan 3, 2020
This change updates watchdog to BackgroundResource, Also, watchdog unschedules itself explicitly when shutdown. closes googleapis#828
igorbernstein2
pushed a commit
that referenced
this issue
Jan 7, 2020
* feat: implemented watchdog as BackgroundResource This change updates watchdog to BackgroundResource, Also, watchdog unschedules itself explicitly when shutdown. closes #828 * updated test cases to increase coverage percentage. * Moved Watchdog scheduling to start() method * added javadoc for Watchdog.create()
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
WatchDog instances don't currently implement BackgroundResource, which means that they never get unscheduled when the client closes
The text was updated successfully, but these errors were encountered: