We are using elasticsearch 6.2.0 and Nest 6.0.0.
We want to use SniffingConnectionPool with request retries. We have
ThrowExceptions() enabled because we don't want to think abount handling exceptions.
We created test, in which we try to send request to node, that guaranteed to return 500 (NotEnoughMasterException). We expect to make retry to another node. However it fails with exception:
Elasticsearch.Net.PipelineException: Failed sniffing cluster state. ---> System.AggregateException ---> Elasticsearch.Net.PipelineException: An error occurred trying to read the response from the specified node
What are we doing wrong? Can we throw exceptions and make retries together?