elastic / elastic/elastic-transport-python
Setting "sniff_before_requests=True" leads to repeatedly retrieving fail sniff tasks during requests
Open
tracking
- Dominant language
- Python
- Stars
- 24
- Forks
- 19
- PR merge metrics
- No merged PRs in 30d
Description
sorry my english is poor
in elastic_transport/_async_transport.py
when sniff_before_requests=True,sniff function call is not wrapped in a try-catch block, which causes exceptions from task.result to propagate outward.
If last sniff task return a timeout exception,this sniff(False) function will repeatedly retrieving failed sniff task Exception and never recover
and I observed other place using the func will wrap it with try catch
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.