-
Notifications
You must be signed in to change notification settings - Fork 27
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
🐛 Fixes raises when stopping log fetching in dynamic-sidecar
#7302
base: master
Are you sure you want to change the base?
Conversation
|
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.
thx!
@@ -85,7 +85,7 @@ async def stop_log_fetching(self, container_name: str) -> None: | |||
return | |||
|
|||
task.cancel() | |||
with suppress(CancelledError): | |||
with suppress(CancelledError, TimeoutError): |
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.
I would add your justification here "Sometimes the docker engine will raise TimeoutError when awaiting the log fetching task in the background"
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #7302 +/- ##
===========================================
- Coverage 87.14% 67.71% -19.43%
===========================================
Files 1690 656 -1034
Lines 65633 31450 -34183
Branches 1121 168 -953
===========================================
- Hits 57193 21295 -35898
- Misses 8120 10097 +1977
+ Partials 320 58 -262
Continue to review full report in Codecov by Sentry.
|
What do these changes do?
Sometimes the docker engine will raise TimeoutError when awaiting the log fetching task in the background. These can be safely ignore and avoids errors when soothing down the user services.
Related issue/s
How to test
Dev-ops checklist