Skip to content
This repository was archived by the owner on Sep 17, 2019. It is now read-only.

Commit e56176b

Browse files
committed
Fix missing nil counter
1 parent 49e751a commit e56176b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/logstash/outputs/jdbc.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ def safe_flush(events, teardown=false)
178178
begin
179179
statement.executeBatch()
180180
statement.close()
181+
@exceptions_tracker << nil
182+
181183
rescue => e
182184
# Raising an exception will incur a retry from Stud::Buffer.
183185
# Since the exceutebatch failed this should mean any events failed to be
@@ -203,6 +205,7 @@ def unsafe_flush(events, teardown=false)
203205
# cancel the event, since we may end up outputting the same event multiple times
204206
# if an exception happens later down the line
205207
event.cancel
208+
@exceptions_tracker << nil
206209
rescue => e
207210
# Raising an exception will incur a retry from Stud::Buffer.
208211
# We log for the lols.

0 commit comments

Comments
 (0)