logstash-input-azure_event_hubs 1.4.3 → 1.4.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e82a5b31683bd3c815ba1d222eb99c2e90f62eda1644c0690686dbcf22adcd84
4
- data.tar.gz: c1c9002d113ac7bb9ec045b868fa59bdb39f838ebb25bdc2dbc950ea12928ecd
3
+ metadata.gz: '08965ec0c6d71ad293b2182bc554a12292273e7a7b2b15c7983217b30ece04d9'
4
+ data.tar.gz: 4c4e953aa1253a944c5955d680df4960fe99543494bf951f4a0667fb56537030
5
5
  SHA512:
6
- metadata.gz: 71c9e111ce9b768f396fc137121d4d13a8b73a8593f1c5d93f520ff1ed16a06a3795b38b70085038bc032a4ebfd67dfefcdc5d0b9551bb8a754e3811cf2d7d34
7
- data.tar.gz: a6c060740cf9dfc0ed5a26ef8f76e15cb1ef84e3b247bbb2e156fbae44b5e394e410cb6bf9e7b78d2ee5e357ce7e7a82eecdfe577690986d860ef498d5b76fc6
6
+ metadata.gz: c2f30f4d1fff4a54e857a488069c9f1ba87e870bd661cf4511b4d54aca413b785361442396bd97243b187d2f7c04d5c0d1d5ba9ad5d8c0a0c7b891a0136d32c4
7
+ data.tar.gz: da8bfeeea09623addd74ac7b8087b025ed606d611ee591ede9d9c771fd5513ce820925bfac5af9441aa6162442ce6384849e38496cf56a80d7c6e9ef8a5d45ee
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 1.4.5
2
+ - Upgrade multiple dependencies such as `gson`, `log4j2`, `jackson` to make the plugin stable [#83](https://github.com/logstash-plugins/logstash-input-azure_event_hubs/pull/83)
3
+
4
+ ## 1.4.4
5
+ - Fix: Replace use of block with lambda to fix wrong number of arguments error on jruby-9.3.4.0 [#75](https://github.com/logstash-plugins/logstash-input-azure_event_hubs/pull/75)
6
+
1
7
  ## 1.4.3
2
8
  - Build: make log4j-api a provided dependency [#73](https://github.com/logstash-plugins/logstash-input-azure_event_hubs/pull/73)
3
9
 
data/Gemfile CHANGED
@@ -2,7 +2,7 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
4
 
5
- logstash_path = "../../logstash"
5
+ logstash_path = ENV['LOGSTASH_PATH'] || '../../logstash'
6
6
 
7
7
  if Dir.exist?(logstash_path) && ENV["LOGSTASH_SOURCE"] == "1"
8
8
  gem 'logstash-core', :path => "#{logstash_path}/logstash-core"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.3
1
+ 1.4.5
@@ -432,25 +432,25 @@ class LogStash::Inputs::AzureEventHubs < LogStash::Inputs::Base
432
432
  options.setInitialPositionProvider(LogStash::Inputs::Azure::LookBackPositionProvider.new(@initial_position_look_back))
433
433
  end
434
434
  event_processor_host.registerEventProcessorFactory(LogStash::Inputs::Azure::ProcessorFactory.new(queue, event_hub['codec'], event_hub['checkpoint_interval'], self.method(:decorate), event_hub['decorate_events']), options)
435
- .whenComplete {|x, e|
435
+ .when_complete(lambda {|x, e|
436
436
  @logger.info("Event Hub registration complete. ", :event_hub_name => event_hub_name )
437
437
  @logger.error("Event Hub failure while registering.", :event_hub_name => event_hub_name, :exception => e, :backtrace => e.backtrace) if e
438
- }
439
- .then_accept {|x|
438
+ })
439
+ .then_accept(lambda {|x|
440
440
  @logger.info("Event Hub is processing events... ", :event_hub_name => event_hub_name )
441
441
  # this blocks the completable future chain from progressing, actual work is done via the executor service
442
442
  while !stop?
443
443
  Stud.stoppable_sleep(1) {stop?}
444
444
  end
445
- }
446
- .thenCompose {|x|
445
+ })
446
+ .then_compose(lambda {|x|
447
447
  @logger.info("Unregistering Event Hub this can take a while... ", :event_hub_name => event_hub_name )
448
448
  event_processor_host.unregisterEventProcessor
449
- }
450
- .exceptionally {|e|
449
+ })
450
+ .exceptionally(lambda {|e|
451
451
  @logger.error("Event Hub encountered an error.", :event_hub_name => event_hub_name , :exception => e, :backtrace => e.backtrace) if e
452
452
  nil
453
- }
453
+ })
454
454
  .get # this blocks till all of the futures are complete.
455
455
  @logger.info("Event Hub #{event_hub_name} is closed.")
456
456
  rescue => e
@@ -5,5 +5,5 @@ require_jar('com.microsoft.azure', 'azure-eventhubs', '2.3.2')
5
5
  require_jar('com.microsoft.azure', 'qpid-proton-j-extensions', '1.2.4')
6
6
  require_jar('com.microsoft.azure', 'azure-eventhubs-eph', '2.5.2')
7
7
  require_jar('com.microsoft.azure', 'azure-storage', '8.6.6')
8
- require_jar('com.google.code.gson', 'gson', '2.8.5')
8
+ require_jar('com.google.code.gson', 'gson', '2.10.1')
9
9
  require_jar('org.apache.qpid', 'proton-j', '0.33.9')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-azure_event_hubs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.3
4
+ version: 1.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-04 00:00:00.000000000 Z
11
+ date: 2023-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -103,7 +103,7 @@ files:
103
103
  - lib/logstash/inputs/processor_factory.rb
104
104
  - logstash-input-azure_event_hubs.gemspec
105
105
  - spec/inputs/azure_event_hub_spec.rb
106
- - vendor/jar-dependencies/com/google/code/gson/gson/2.8.5/gson-2.8.5.jar
106
+ - vendor/jar-dependencies/com/google/code/gson/gson/2.10.1/gson-2.10.1.jar
107
107
  - vendor/jar-dependencies/com/microsoft/azure/azure-eventhubs-eph/2.5.2/azure-eventhubs-eph-2.5.2.jar
108
108
  - vendor/jar-dependencies/com/microsoft/azure/azure-eventhubs/2.3.2/azure-eventhubs-2.3.2.jar
109
109
  - vendor/jar-dependencies/com/microsoft/azure/azure-storage/8.6.6/azure-storage-8.6.6.jar
@@ -131,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
131
  - !ruby/object:Gem::Version
132
132
  version: '0'
133
133
  requirements: []
134
- rubygems_version: 3.1.6
134
+ rubygems_version: 3.2.33
135
135
  signing_key:
136
136
  specification_version: 4
137
137
  summary: Consumes events from Azure Event Hubs for use with Logstash