logstash-input-sqs 3.3.1 → 3.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7e5a412aaf0b37b3f1c6673afc9fd8b78556daa2f9376a23d1487d2f67a3dedd
4
- data.tar.gz: 9743307a98b4776f11c345a99eca8ebf33f85bb877d06665d65e22f1523f70a8
3
+ metadata.gz: 79ba2db92a818593ac16a65b8e874542ea5049544ad7a4184be3702d139db455
4
+ data.tar.gz: e57d59a19505bf9ee25f285005f52480b6c798001a43325081e9d6524cc7d720
5
5
  SHA512:
6
- metadata.gz: e7cc7618b904128cec536bc969a866eff79115a572387847be526eb491f7686e57036c37d7c88e6c144c07e42f814a82bfd62e36c1b74638f9bb09828dc791c8
7
- data.tar.gz: 216ff224a892a75c6189fec011643af992f014af8cdcf9d2401ecc95687d3eea400a83d218a5b3823cd3f53918f93aef3c78297eea9cc4fd804a8f000e7cd629
6
+ metadata.gz: df78305299bc96a29f092d3ad70480637d30698d8b0364dddcfbb937d298ca9b5884620f321e54c3ce9930942beaca9871abd9f0953ac08961723e57b770f499
7
+ data.tar.gz: 8a5b86e165300c5213786ea80b4a80474ae02e38a5dbc17848f69fd28d5d1bdf38449330d4de76eb96d8f60960b8e56e27bc28e056ed7177696d8c4692fa088c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 3.3.2
2
+ - Fix an issue that prevented timely shutdown when subscribed to an inactive queue
3
+
1
4
  ## 3.3.1
2
5
  - Refactoring: used logstash-mixin-aws to leverage shared code to manage `additional_settings` [#64](https://github.com/logstash-plugins/logstash-input-sqs/pull/64)
3
6
 
@@ -119,7 +119,10 @@ class LogStash::Inputs::SQS < LogStash::Inputs::Threadable
119
119
 
120
120
  def setup_queue
121
121
  aws_sqs_client = Aws::SQS::Client.new(aws_options_hash || {})
122
- @poller = Aws::SQS::QueuePoller.new(queue_url(aws_sqs_client), :client => aws_sqs_client)
122
+ poller = Aws::SQS::QueuePoller.new(queue_url(aws_sqs_client), :client => aws_sqs_client)
123
+ poller.before_request { |stats| throw :stop_polling if stop? }
124
+
125
+ @poller = poller
123
126
  rescue Aws::SQS::Errors::ServiceError, Seahorse::Client::NetworkingError => e
124
127
  @logger.error("Cannot establish connection to Amazon SQS", exception_details(e))
125
128
  raise LogStash::ConfigurationError, "Verify the SQS queue name and your credentials"
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-input-sqs'
3
- s.version = '3.3.1'
3
+ s.version = '3.3.2'
4
4
  s.licenses = ['Apache-2.0']
5
5
  s.summary = "Pulls events from an Amazon Web Services Simple Queue Service queue"
6
6
  s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-sqs
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.1
4
+ version: 3.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-16 00:00:00.000000000 Z
11
+ date: 2022-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement