-
Notifications
You must be signed in to change notification settings - Fork 26
[uss_qualifier] NetRID heavy traffic concurrent: handle concurrent query exceptions #1079
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
[uss_qualifier] NetRID heavy traffic concurrent: handle concurrent query exceptions #1079
Conversation
64dd4f3
to
0fb4b90
Compare
0fb4b90
to
54d994e
Compare
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 don't think it is desirable to introduce such specific work-around in the low-level class AsyncUTMTestSession
, moreover it has not been requested in #1078. In addition it is quite valid for AsyncUTMTestSession
to let bubble up any (aiohttp) exception raised during a request as we might want to handle that up the stack. Including a content type exception.
Since scenario HeavyTrafficConcurrent
is the only significant caller of AsyncUTMTestSession
(except from the prober as well, which we can ignore here), it is IMO enough to intercept the exception there (and be more specific: aiohttp.ClientError
is probably a good candidate rather than the generic Exception
).
That would be enough to address #1078 without having to come back to it later. And simpler. WDYT?
What bothers me with the 'just catch any exception from the future awaiting on all the coroutines' approach is that we lose any detail relevant to the request that was made. If we are happy with discarding the request, an approach we can use is to have Though, in an ideal world edit: I can reach the desired effect without the changes in |
54d994e
to
e80175d
Compare
@mickmis the present solution is local to the problematic scenario, while it still keeps as much information as possible about the failed request. |
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.
@mickmis the present solution is local to the problematic scenario, while it still keeps as much information as possible about the failed request.
Neat solution. Thanks!
This is a fix for #1078, which should allow uss_qualifier to proceed without crashing out when mime-type errors occur, while keeping around request details for possible troubleshooting.