Skip to content

Commit 06ea707

Browse files
andrewvcjordansissel
authored andcommitted
Sleep for the proper amount of time when retrying
Fixes #292
1 parent 4a0406b commit 06ea707

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/logstash/outputs/elasticsearch/common.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def safe_bulk(es_actions,actions)
149149
@logger.debug("Failed actions for last bad bulk request!", :actions => actions)
150150

151151
# We retry until there are no errors! Errors should all go to the retry queue
152-
sleep 1
152+
sleep @retry_max_interval
153153
retry unless @stopping.true?
154154
rescue => e
155155
# For all other errors print out full connection issues

0 commit comments

Comments
 (0)