-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[BUG] Azure Search: Deadlock searching for documents with DocumentsOperationsExtensions.Search() #6254
Comments
Thanks for reporting this. We're aware of the issue and are looking into it. |
@tomillie The code you pointed out hasn't changed since 5.0.3. There is a missing I have a few questions that will help confirm my hypothesis:
|
Hi, sorry for the delay...
By the way, we had no problem with the version 5.0.3, only 9.0.0 seems faulty. |
@tomillie Thanks for confirming. I have a PR out for the fix and I hope to be able to push it to NuGet today. |
Version 9.0.1, which includes this fix, is now available on NuGet. |
Describe the bug
We've upgraded our existing Azure Search implementation to use the newest 9.0.0 version of .NET SDK, resolved all breaking changes, but the synchronous search methods seem to deadlock.
Stack Trace
Code Snippet
It seems the following code in DocumentsOperationsExtensions.cs is missing a ConfigureAwait(false) before synchronously waiting for the result.
Similar methods possibly with the same issue:
Microsoft.Azure.Search.DocumentsOperationsExtensions.Search(...)
Microsoft.Azure.Search.DocumentsOperationsExtensions.Search\<T\>(...)
Microsoft.Azure.Search.DocumentsOperationsExtensions.Count(...)
Microsoft.Azure.Search.DocumentsOperationsExtensions.Autocomplete(...)
etc.
Expected behavior
No deadlock. Synchronous search is possible.
Setup (please complete the following information):
Additional context
I can see the JSON response in Fiddler, but the method doesn't return anything.
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: