in lib/es/client.rb [114:134]
def get_retry_configuration(es_config)
retry_count = es_config.fetch(:retry_on_failure, DEFAULT_RETRY_ON_FAILURE)
if retry_count == false
retry_count = 0
elsif retry_count == true || !retry_count.is_a?(Integer) || retry_count.negative?
retry_count = DEFAULT_RETRY_ON_FAILURE
end
delay_on_retry = es_config.fetch(:delay_on_retry, DEFAULT_DELAY_ON_RETRY)
delay_on_retry = DEFAULT_DELAY_ON_RETRY unless delay_on_retry.is_a?(Integer) && delay_on_retry.positive?
@system_logger.debug(
"Elasticsearch client retry configuration: #{retry_count} retries with #{delay_on_retry}s delay"
)
[retry_count, delay_on_retry]
end