Logging: call flush before close#4784
Conversation
Also prevent more logs to be written after close. Fixes googleapis#4783.
|
There was a similar PR in #3909. Right now, |
|
@sduskis The critical problem is that everything gets closed while there are pending API calls. Calling |
|
@meltsufin, I understand why this is critical. Merging this is @chingor13's call. The fix will cause unexpected shutdown latency, which is why this fix wasn't merged the last time it was proposed. |
|
@meltsufin, can you please run |
Codecov Report
@@ Coverage Diff @@
## master #4784 +/- ##
============================================
+ Coverage 49.78% 50.55% +0.77%
- Complexity 21509 23235 +1726
============================================
Files 2168 2192 +24
Lines 212387 221037 +8650
Branches 24147 24290 +143
============================================
+ Hits 105737 111747 +6010
- Misses 99152 100895 +1743
- Partials 7498 8395 +897
Continue to review full report at Codecov.
|
|
@sduskis Done. |
|
@chingor13 Hey, any updates regarding your thoughts on this PR? |
chingor13
left a comment
There was a problem hiding this comment.
Let's take this for now and think about how we can potentially limit time spent flushing.
* Logging: call flush before close Also prevent more logs to be written after close. Fixes #4783. * code style fix
* Logging: call flush before close Also prevent more logs to be written after close. Fixes googleapis#4783. * code style fix
Also prevent more logs to be written after close.
Fixes #4783.