logstash-input-azure_event_hubs 1.4.3 → 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: e82a5b31683bd3c815ba1d222eb99c2e90f62eda1644c0690686dbcf22adcd84
4
- data.tar.gz: c1c9002d113ac7bb9ec045b868fa59bdb39f838ebb25bdc2dbc950ea12928ecd
3
+ metadata.gz: a99554e6bcdd5621bad4b5747b0cc85598954a6352503d194f5cd56d1e7856c2
4
+ data.tar.gz: 6ddb686a32ca38703ec893b2fca726b6f156caf58bd59a40fd2ee3bf797f5d61
5
5
  SHA512:
6
- metadata.gz: 71c9e111ce9b768f396fc137121d4d13a8b73a8593f1c5d93f520ff1ed16a06a3795b38b70085038bc032a4ebfd67dfefcdc5d0b9551bb8a754e3811cf2d7d34
7
- data.tar.gz: a6c060740cf9dfc0ed5a26ef8f76e15cb1ef84e3b247bbb2e156fbae44b5e394e410cb6bf9e7b78d2ee5e357ce7e7a82eecdfe577690986d860ef498d5b76fc6
6
+ metadata.gz: f32620d841a1ea3e5d0a72322a29fee434e2d541de502dbcb491dcdd46260f5b1b3c282b4e7ab65f2b3d78f6dca37accbd1f31191e8f91290ffeebbf02384319
7
+ data.tar.gz: fc192d930814f7f2dc6f281e70a9978bb94a9da23037bf433a9a79b454fc72cd737da81159d62a68ac694c15b86bc2fb63e272dc54b382faf0521f7403b37ea8
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
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
+
1
4
  ## 1.4.3
2
5
  - Build: make log4j-api a provided dependency [#73](https://github.com/logstash-plugins/logstash-input-azure_event_hubs/pull/73)
3
6
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.3
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
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.4
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: 2022-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement