elastic-transport-python
elastic-transport-python copied to clipboard
Setting "sniff_before_requests=True" leads to repeatedly retrieving fail sniff tasks during requests
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