We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e79f873 commit d94c83aCopy full SHA for d94c83a
lib/fluent/plugin/in_opensearch.rb
@@ -345,7 +345,7 @@ def update_retry_state(error=nil)
345
@retry.step
346
if error.message.include?('EOFError (EOFError)')
347
log.error("Restart plugin because hit error #{error.message}")
348
- exit(1)
+ start
349
end
350
#Raise error if the retry limit has been reached
351
raise "Hit limit for retries. retry_times: #{@retry.steps}, error: #{error.message}" if @retry.limit?
@@ -370,7 +370,7 @@ def run
370
run_slice(slice_id)
371
372
373
- rescue Faraday::ConnectionFailed, Faraday::TimeoutError, OpenSearch::Transport::Transport::Error => error
+ rescue => error
374
update_retry_state(error)
375
retry
376
0 commit comments