logstash-input-azure_event_hubs 1.1.1 → 1.1.2

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: 7c1008d2bfc1e9aa7647e27dde4363afa553b86fbd0404dbd91f2a4cf31304e7
4
- data.tar.gz: 68dd5894f80ff753563374ecd1fc45a005685141d22ba496b50793b1d864b803
3
+ metadata.gz: 001aa77367fd050d9edebcfcf724d72604b3b6061723aa93352b152cd3f5960e
4
+ data.tar.gz: 530ac6d7857229963ea3434f91b0e20b5f3e13e85b179f376476dc4abf96dcb5
5
5
  SHA512:
6
- metadata.gz: b2d2581c6ba15126ba68fa6e1a4246458e541b490692d251fd316857c7a2b64292293968fd878b9a0cb281445d82b51fe507fdc4a900b867823c88698d6de61f
7
- data.tar.gz: ae0d560a4ea7dfab850c6bbbb4abc1e3ebd92f33baaceeb77f0b46be9391d68800b766ccf249514121a82088bcc17a246eb57c422526f7e54786a30988cea6e8
6
+ metadata.gz: 5a9e5ad779cf7f39bd49f9e7e45937d3ae63859162e831e093993c98c24fdd45143f45a2e711f617af3a1834943c7e543d1627145f023fefe42f8f1fe9dd126f
7
+ data.tar.gz: 96e5c2e500da4c5c9c0b43ef41c7e49f5d752422eea4a5191c8627c0f19f501bb72a762ad39f106c33434ba866626f7577de52864c2b67c9666bb31622e8caba
@@ -1,3 +1,6 @@
1
+ ## 1.1.2
2
+ - Added workaround to fix errors when using this plugin with Java 11[#38](https://github.com/logstash-plugins/logstash-input-azure_event_hubs/pull/38)
3
+
1
4
  ## 1.1.1
2
5
  - Updated Azure event hub library dependencies[#36](https://github.com/logstash-plugins/logstash-input-azure_event_hubs/pull/36)
3
6
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.1
1
+ 1.1.2
@@ -429,26 +429,26 @@ class LogStash::Inputs::AzureEventHubs < LogStash::Inputs::Base
429
429
  end
430
430
  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)
431
431
  .whenComplete {|x, e|
432
- @logger.info("Event Hub registration complete. ", :event_hub_name => event_processor_host.getHostContext.getEventHubPath.to_s )
433
- @logger.error("Event Hub failure while registering.", :event_hub_name => event_processor_host.getHostContext.getEventHubPath.to_s, :exception => e, :backtrace => e.backtrace) if e
432
+ @logger.info("Event Hub registration complete. ", :event_hub_name => event_hub_name )
433
+ @logger.error("Event Hub failure while registering.", :event_hub_name => event_hub_name, :exception => e, :backtrace => e.backtrace) if e
434
434
  }
435
435
  .then_accept {|x|
436
- @logger.info("Event Hub is processing events... ", :event_hub_name => event_processor_host.getHostContext.getEventHubPath.to_s )
436
+ @logger.info("Event Hub is processing events... ", :event_hub_name => event_hub_name )
437
437
  # this blocks the completable future chain from progressing, actual work is done via the executor service
438
438
  while !stop?
439
439
  Stud.stoppable_sleep(1) {stop?}
440
440
  end
441
441
  }
442
442
  .thenCompose {|x|
443
- @logger.info("Unregistering Event Hub this can take a while... ", :event_hub_name => event_processor_host.getHostContext.getEventHubPath.to_s )
443
+ @logger.info("Unregistering Event Hub this can take a while... ", :event_hub_name => event_hub_name )
444
444
  event_processor_host.unregisterEventProcessor
445
445
  }
446
446
  .exceptionally {|e|
447
- @logger.error("Event Hub encountered an error.", :event_hub_name => event_processor_host.getHostContext.getEventHubPath.to_s , :exception => e, :backtrace => e.backtrace) if e
447
+ @logger.error("Event Hub encountered an error.", :event_hub_name => event_hub_name , :exception => e, :backtrace => e.backtrace) if e
448
448
  nil
449
449
  }
450
450
  .get # this blocks till all of the futures are complete.
451
- @logger.info("Event Hub #{event_processor_host.getHostContext.getEventHubPath.to_s} is closed.")
451
+ @logger.info("Event Hub #{event_hub_name} is closed.")
452
452
  rescue => e
453
453
  @logger.error("Event Hub failed during initialization.", :event_hub_name => event_hub_name, :exception => e, :backtrace => e.backtrace) if e
454
454
  do_stop
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.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-15 00:00:00.000000000 Z
11
+ date: 2019-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement