logstash-input-azure_event_hubs 1.4.1 → 1.4.4

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: 19a25727df6bc548a4df97cf4408a711fea64979da39cbfd634e0e3ad2af5370
4
- data.tar.gz: 02b064d76f7519abb3db9ca59490f5b40aff8ac5f43446699fb7f55c63a301db
3
+ metadata.gz: a99554e6bcdd5621bad4b5747b0cc85598954a6352503d194f5cd56d1e7856c2
4
+ data.tar.gz: 6ddb686a32ca38703ec893b2fca726b6f156caf58bd59a40fd2ee3bf797f5d61
5
5
  SHA512:
6
- metadata.gz: 59fc2af3961aae68987bb72476fe9dddde460a3a7447456566053d5c2c2d8044525ee73a8ebd13b7c435c658689dc6d685794b4c84a3649918d632f9aa09ec2a
7
- data.tar.gz: b34b4d1224d7395b43e255c3c28728196a7465890da847ac02d2206a91cc3b56bfe5099c6d372195b89e049b4da664795881bd662f7d4fd175f305c2828d81f9
6
+ metadata.gz: f32620d841a1ea3e5d0a72322a29fee434e2d541de502dbcb491dcdd46260f5b1b3c282b4e7ab65f2b3d78f6dca37accbd1f31191e8f91290ffeebbf02384319
7
+ data.tar.gz: fc192d930814f7f2dc6f281e70a9978bb94a9da23037bf433a9a79b454fc72cd737da81159d62a68ac694c15b86bc2fb63e272dc54b382faf0521f7403b37ea8
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 1.4.4
2
+ - 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)
3
+
4
+ ## 1.4.3
5
+ - Build: make log4j-api a provided dependency [#73](https://github.com/logstash-plugins/logstash-input-azure_event_hubs/pull/73)
6
+
7
+ ## 1.4.2
8
+ - Update log4j dependencies to 2.17.0
9
+
1
10
  ## 1.4.1
2
11
  - Update log4j dependencies [#71](https://github.com/logstash-plugins/logstash-input-azure_event_hubs/pull/71)
3
12
  - Fixed Gradle's script to use Gradle 7 [#69](https://github.com/logstash-plugins/logstash-input-azure_event_hubs/pull/69)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.1
1
+ 1.4.4
@@ -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
@@ -7,5 +7,3 @@ require_jar('com.microsoft.azure', 'azure-eventhubs-eph', '2.5.2')
7
7
  require_jar('com.microsoft.azure', 'azure-storage', '8.6.6')
8
8
  require_jar('com.google.code.gson', 'gson', '2.8.5')
9
9
  require_jar('org.apache.qpid', 'proton-j', '0.33.9')
10
- require_jar('org.apache.logging.log4j', 'log4j-api', '2.15.0')
11
- require_jar('org.apache.logging.log4j', 'log4j-slf4j-impl', '2.15.0')
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.1
4
+ version: 1.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-10 00:00:00.000000000 Z
11
+ date: 2022-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -108,8 +108,6 @@ files:
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
110
110
  - vendor/jar-dependencies/com/microsoft/azure/qpid-proton-j-extensions/1.2.4/qpid-proton-j-extensions-1.2.4.jar
111
- - vendor/jar-dependencies/org/apache/logging/log4j/log4j-api/2.15.0/log4j-api-2.15.0.jar
112
- - vendor/jar-dependencies/org/apache/logging/log4j/log4j-slf4j-impl/2.15.0/log4j-slf4j-impl-2.15.0.jar
113
111
  - vendor/jar-dependencies/org/apache/qpid/proton-j/0.33.9/proton-j-0.33.9.jar
114
112
  homepage: http://www.elastic.co/guide/en/logstash/current/index.html
115
113
  licenses: