lib/elasticsearch/transport/transport/sniffer.rb in elasticsearch-transport-7.3.0 vs lib/elasticsearch/transport/transport/sniffer.rb in elasticsearch-transport-7.4.0

- old
+ new

@@ -30,10 +30,11 @@ # @return [Array<Hash>] # @raise [SnifferTimeoutError] # def hosts Timeout::timeout(timeout, SnifferTimeoutError) do - nodes = transport.perform_request('GET', '_nodes/http').body + nodes = transport.perform_request('GET', '_nodes/http', {}, nil, nil, + reload_on_failure: false).body hosts = nodes['nodes'].map do |id, info| if info[PROTOCOL] host, port = parse_publish_address(info[PROTOCOL]['publish_address'])