Skip to content
This repository was archived by the owner on Dec 15, 2021. It is now read-only.

Commit 3a15aa2

Browse files
author
Ahmed Ammar
committed
test
1 parent 0e55111 commit 3a15aa2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/logstash/inputs/dynamodb.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,13 +192,13 @@ def run(logstash_queue)
192192

193193
public
194194
def stop
195-
$something = true
196-
exit_threads
195+
#exit_threads
197196
until @queue.empty?
198197
@logger.log("Flushing rest of events in logstash queue")
199198
event = @queue.pop()
200199
queue_event(@parser.parse_stream(event), logstash_queue, @host)
201200
end # until [email protected]?
201+
$something = true
202202
end
203203

204204
# Starts KCL app in a background thread
@@ -292,6 +292,8 @@ def scan(logstash_queue)
292292
end # if event.isEmpty()
293293
queue_event(@parser.parse_scan(event.getEntry(), event.getSize()), logstash_queue, @host)
294294
end # while true
295+
296+
@dynamodb_scan_thread.exit
295297
end
296298

297299
private
@@ -304,6 +306,8 @@ def stream(logstash_queue)
304306
queue_event(@parser.parse_stream(event), logstash_queue, @host)
305307
end # while true
306308

309+
@kcl_thread.exit
310+
307311
@logger.warn("Stopping stream...")
308312
end
309313

0 commit comments

Comments
 (0)