Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/logstash/inputs/kinesis/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
module Logstash
module Input
module Kinesis
VERSION = "2.0.7"
VERSION = "2.0.8"
end
end
end
2 changes: 1 addition & 1 deletion lib/logstash/inputs/kinesis/worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def processRecords(records_input)
end

def shutdown(shutdown_input)
if shutdown_input.shutdown_reason == com.amazonaws.services.kinesis.clientlibrary.types::ShutdownReason::TERMINATE
if shutdown_input.shutdown_reason == com.amazonaws.services.kinesis.clientlibrary.lib.worker::ShutdownReason::TERMINATE
checkpoint(shutdown_input.checkpointer)
end
end
Expand Down
4 changes: 2 additions & 2 deletions logstash-input-kinesis.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ Gem::Specification.new do |spec|

spec.platform = 'java'

spec.requirements << "jar 'com.amazonaws:amazon-kinesis-client', '1.7.0'"
spec.requirements << "jar 'com.amazonaws:aws-java-sdk-core', '1.11.16'"
spec.requirements << "jar 'com.amazonaws:amazon-kinesis-client', '1.8.10'"
spec.requirements << "jar 'com.amazonaws:aws-java-sdk-core', '1.11.271'"

spec.add_runtime_dependency "logstash-core-plugin-api", ">= 1.60", "<= 2.99"

Expand Down
6 changes: 3 additions & 3 deletions spec/inputs/kinesis/worker_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

RSpec.describe "LogStash::Inputs::Kinesis::Worker" do
KCL_TYPES = com.amazonaws.services.kinesis.clientlibrary.types
KCL_WORKER = com.amazonaws.services.kinesis.clientlibrary.lib.worker

subject!(:worker) { LogStash::Inputs::Kinesis::Worker.new(codec, queue, decorator, checkpoint_interval) }
let(:codec) { LogStash::Codecs::JSON.new() }
Expand Down Expand Up @@ -100,9 +101,8 @@ def record(hash = { "message" => "test" }, arrival_timestamp, partition_key, seq
input = KCL_TYPES::ShutdownInput.new
checkpointer = double('checkpointer')
expect(checkpointer).to receive(:checkpoint)
input.
with_shutdown_reason(KCL_TYPES::ShutdownReason::TERMINATE).
with_checkpointer(checkpointer)
input.with_shutdown_reason(KCL_WORKER::ShutdownReason::TERMINATE)
input.with_checkpointer(checkpointer)
worker.shutdown(input)
end
end
Expand Down