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

Commit 0e847e3

Browse files
author
Ahmed Ammar
committed
test
1 parent e8d3b7c commit 0e847e3

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lib/logstash/inputs/dynamodb.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def run(logstash_queue)
192192

193193
public
194194
def stop
195-
#exit_threads
195+
exit_threads
196196
until @queue.empty?
197197
@logger.log("Flushing rest of events in logstash queue")
198198
event = @queue.pop()
@@ -292,8 +292,6 @@ 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
297295
end
298296

299297
private
@@ -310,13 +308,13 @@ def stream(logstash_queue)
310308
queue_event(@parser.parse_stream(event), logstash_queue, @host)
311309
end # while true
312310

313-
@kcl_thread.exit
314-
315311
@logger.warn("Stopping stream...")
316312
end
317313

318314
private
319315
def exit_threads
316+
@worker.shutdown()
317+
320318
unless @dynamodb_scan_thread.nil?
321319
@dynamodb_scan_thread.exit
322320
end # unless @dynamodb_scan_thread.nil?

0 commit comments

Comments
 (0)