-
Notifications
You must be signed in to change notification settings - Fork 95
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
Deadlock under load caused by Wait() in GoogleAdsGrpcInterceptor #386
Comments
Hi @jesuissur you don't need to recompile a custom version, you can temporarily turn off logging instead. Set the relevant logging level to off. https://developers.google.com/google-ads/api/docs/client-libs/dotnet/logging#configuration I can see why this issue can happen, but TBH this is the first time I've seen anyone report it. So I need a bit more investigation to see what's happening. |
Hi @AnashOommen We rescued some stack trace. Our code is calling
We'll eventually try to deactivate the logging with an official release. |
Hi Phil, Could you check if the issue is replicable with v12.0.0? I made some changes with the lifecycle of GoogleAdsInterceptor, so hopefully this isn't an issue. |
@jesuissur is this issue still present? Can I close this thread? |
@AnashOommen We did not try the v12 release yet. Should come in a few weeks |
I was facing an issue that has the same origin I believe:
That basically means that (possibly) all async calls are blocking. |
I removed all the Wait() calls in v14.0.0. |
@AnashOommen and now we have #488 and #480 😟 |
Under some load in asynchronous context, our call to service like
GoogleAdsService
throughGoogleAdsServiceClient
lock our app with threads starvation.Steps to Reproduce:
Put some load and watch it fails.
We do not have the stack trace anymore, but all of our threads were blocked at this method on a
Wait()
operation:Google.Ads.GoogleAds.Interceptors.GoogleAdsGrpcInterceptor.AsyncUnaryCall
Expected behavior:
Asynchronous operations should not lock
Client library version and API version:
Client library version: v.11.0.0
Google Ads API version: N/A
.NET version: .Net 6
Operating system (Linux, Windows, ...) and version (if the bug is platform-specific): Windows App service on Azure
Workaround:
We built our own version with the logging code removed and everything is now fine
The text was updated successfully, but these errors were encountered: