logstash-input-azure_event_hubs 1.4.3 → 1.4.5
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 +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile +1 -1
- data/VERSION +1 -1
- data/lib/logstash/inputs/azure_event_hubs.rb +8 -8
- data/lib/logstash-input-azure_event_hubs.rb +1 -1
- data/vendor/jar-dependencies/com/google/code/gson/gson/2.10.1/gson-2.10.1.jar +0 -0
- metadata +4 -4
- data/vendor/jar-dependencies/com/google/code/gson/gson/2.8.5/gson-2.8.5.jar +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '08965ec0c6d71ad293b2182bc554a12292273e7a7b2b15c7983217b30ece04d9'
|
4
|
+
data.tar.gz: 4c4e953aa1253a944c5955d680df4960fe99543494bf951f4a0667fb56537030
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =
|
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.
|
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
|
-
.
|
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
|
-
.
|
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
|
+
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.
|
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:
|
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.
|
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.
|
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
|
Binary file
|