-
Notifications
You must be signed in to change notification settings - Fork 148
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
fix: close GRPC channel when we dispose of clients #779
Conversation
0d2f97e
to
31609e9
Compare
FYI @thebrianchen |
@@ -401,7 +401,8 @@ export class Firestore { | |||
|
|||
logger('Firestore', null, 'Initialized Firestore GAPIC Client'); | |||
return client; | |||
} | |||
}, | |||
/* clientDestructor= */ (client: GapicClient) => client.close() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmmm - do we really have .close()
? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not yet - but this PR shows how we could add it. We still have to add it to the Gapic generator though (if you are okay with the general direction).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alexander-fenster Do you know what the next sets of steps would be if we wanted to add this support?
We need to also include the field_definition and client protos
@alexander-fenster PR rebased against the Typescript branch and updated. |
Codecov Report
@@ Coverage Diff @@
## master #779 +/- ##
==========================================
- Coverage 90.36% 90.35% -0.02%
==========================================
Files 25 25
Lines 2814 2820 +6
Branches 707 707
==========================================
+ Hits 2543 2548 +5
- Misses 118 119 +1
Partials 153 153
Continue to review full report at Codecov.
|
…estore into mrschmidt/shutdown
See #768, especially #768 (comment)
This is a "Request for comments" PR if this is a viable strategy to dispose of unused GRPC clients, in the hope that this will mitigate memory leaks. If feasible, some of the code in this PR needs to be pushed upstream to the Gapic generator.