Skip to content

Commit

Permalink
Update .travis.yml build targets
Browse files Browse the repository at this point in the history
  • Loading branch information
robbavey committed Feb 11, 2019
1 parent b9d852d commit d06346e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/logstash/outputs/kafka.rb
Original file line number Diff line number Diff line change
Expand Up @@ -284,12 +284,11 @@ def retrying_send(batch)
break if failures.empty?

# Otherwise, retry with any failed transmissions
if remaining != nil && remaining < 0
logger.info("Sending batch to Kafka failed.", :batch_size => batch.size,:failures => failures.size)
else
if remaining.nil? || remaining >= 0
delay = @retry_backoff_ms / 1000.0
logger.info("Sending batch to Kafka failed. Will retry after a delay.", :batch_size => batch.size,
:failures => failures.size, :sleep => delay)
:failures => failures.size,
:sleep => delay)
batch = failures
sleep(delay)
end
Expand Down

0 comments on commit d06346e

Please sign in to comment.