[BUG] Async method get_alias from SearchIndexClient is blocking operation #39388
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-author-feedback
Workflow: More information is needed from author to address the issue.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Search
Describe the bug
The async method
get_alias
fromazure.search.documents.indexes.aio
module in theSearchIndexClient
class (link to method) seems to be the blocking operation. During the development of the asynchronous application, I've encountered the issue that calling the async version ofget_alias
is blocking the asyncio loop. Despite being asynchronous the function calling takes between 200ms-500ms, which raise the warning from asyncio:Issue like this can lead to significant performance problems in any async application.
To Reproduce
Steps to reproduce the behavior:
PYTHONASYNCIODEBUG=1
Expected behavior
No single operation should block the loop and cause other tasks to be delayed or starved of execution time.
The text was updated successfully, but these errors were encountered: