logstash-core 5.3.3-java → 5.4.0-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/gemspec_jars.rb +2 -0
  3. data/lib/logstash-core/logstash-core.jar +0 -0
  4. data/lib/logstash-core/version.rb +1 -1
  5. data/lib/logstash-core_jars.rb +4 -0
  6. data/lib/logstash/agent.rb +15 -6
  7. data/lib/logstash/api/modules/base.rb +1 -1
  8. data/lib/logstash/api/rack_app.rb +1 -1
  9. data/lib/logstash/config/config_ast.rb +13 -13
  10. data/lib/logstash/config/mixin.rb +33 -28
  11. data/lib/logstash/environment.rb +11 -0
  12. data/lib/logstash/event.rb +56 -0
  13. data/lib/logstash/event_dispatcher.rb +2 -2
  14. data/lib/logstash/execution_context.rb +10 -0
  15. data/lib/logstash/filter_delegator.rb +3 -2
  16. data/lib/logstash/inputs/base.rb +15 -1
  17. data/lib/logstash/instrument/collector.rb +1 -1
  18. data/lib/logstash/instrument/metric.rb +4 -2
  19. data/lib/logstash/instrument/metric_store.rb +9 -5
  20. data/lib/logstash/instrument/null_metric.rb +1 -0
  21. data/lib/logstash/instrument/periodic_poller/cgroup.rb +3 -3
  22. data/lib/logstash/instrument/periodic_poller/jvm.rb +11 -8
  23. data/lib/logstash/instrument/periodic_poller/load_average.rb +4 -2
  24. data/lib/logstash/instrument/wrapped_write_client.rb +59 -0
  25. data/lib/logstash/java_integration.rb +2 -2
  26. data/lib/logstash/output_delegator.rb +2 -2
  27. data/lib/logstash/output_delegator_strategies/legacy.rb +5 -2
  28. data/lib/logstash/output_delegator_strategies/shared.rb +2 -1
  29. data/lib/logstash/output_delegator_strategies/single.rb +2 -1
  30. data/lib/logstash/outputs/base.rb +8 -0
  31. data/lib/logstash/patches/cabin.rb +1 -1
  32. data/lib/logstash/patches/stronger_openssl_defaults.rb +1 -1
  33. data/lib/logstash/pipeline.rb +47 -19
  34. data/lib/logstash/plugin.rb +3 -1
  35. data/lib/logstash/plugins/hooks_registry.rb +6 -6
  36. data/lib/logstash/plugins/registry.rb +2 -2
  37. data/lib/logstash/queue_factory.rb +7 -5
  38. data/lib/logstash/runner.rb +15 -1
  39. data/lib/logstash/settings.rb +14 -2
  40. data/lib/logstash/string_interpolation.rb +18 -0
  41. data/lib/logstash/timestamp.rb +27 -0
  42. data/lib/logstash/util.rb +1 -1
  43. data/lib/logstash/util/prctl.rb +1 -1
  44. data/lib/logstash/util/retryable.rb +1 -1
  45. data/lib/logstash/util/wrapped_acked_queue.rb +53 -22
  46. data/lib/logstash/util/wrapped_synchronous_queue.rb +51 -33
  47. data/lib/logstash/version.rb +1 -1
  48. data/locales/en.yml +4 -2
  49. data/logstash-core.gemspec +0 -3
  50. data/spec/api/lib/api/node_stats_spec.rb +2 -1
  51. data/spec/api/spec_helper.rb +1 -1
  52. data/spec/logstash/acked_queue_concurrent_stress_spec.rb +291 -0
  53. data/spec/logstash/agent_spec.rb +24 -0
  54. data/spec/logstash/config/mixin_spec.rb +11 -2
  55. data/spec/logstash/event_dispatcher_spec.rb +8 -1
  56. data/spec/logstash/event_spec.rb +346 -0
  57. data/spec/logstash/execution_context_spec.rb +13 -0
  58. data/spec/logstash/filter_delegator_spec.rb +4 -2
  59. data/spec/logstash/inputs/base_spec.rb +41 -0
  60. data/spec/logstash/instrument/metric_spec.rb +2 -1
  61. data/spec/logstash/instrument/metric_store_spec.rb +14 -0
  62. data/spec/logstash/instrument/namespaced_metric_spec.rb +2 -1
  63. data/spec/logstash/instrument/periodic_poller/cgroup_spec.rb +1 -1
  64. data/spec/logstash/instrument/periodic_poller/jvm_spec.rb +35 -0
  65. data/spec/logstash/instrument/periodic_poller/load_average_spec.rb +1 -5
  66. data/spec/logstash/instrument/wrapped_write_client_spec.rb +113 -0
  67. data/spec/logstash/json_spec.rb +1 -1
  68. data/spec/logstash/legacy_ruby_event_spec.rb +636 -0
  69. data/spec/logstash/legacy_ruby_timestamp_spec.rb +170 -0
  70. data/spec/logstash/output_delegator_spec.rb +6 -3
  71. data/spec/logstash/outputs/base_spec.rb +23 -0
  72. data/spec/logstash/pipeline_pq_file_spec.rb +18 -8
  73. data/spec/logstash/pipeline_spec.rb +41 -5
  74. data/spec/logstash/plugin_spec.rb +15 -3
  75. data/spec/logstash/plugins/hooks_registry_spec.rb +2 -2
  76. data/spec/logstash/runner_spec.rb +33 -2
  77. data/spec/logstash/settings/port_range_spec.rb +1 -1
  78. data/spec/logstash/settings_spec.rb +21 -0
  79. data/spec/logstash/timestamp_spec.rb +29 -0
  80. data/spec/logstash/util/accessors_spec.rb +179 -0
  81. data/spec/logstash/util/wrapped_synchronous_queue_spec.rb +4 -11
  82. data/spec/logstash/util_spec.rb +1 -1
  83. data/spec/logstash/webserver_spec.rb +1 -1
  84. data/spec/support/mocks_classes.rb +65 -53
  85. metadata +25 -30
metadata CHANGED
@@ -1,43 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.3.3
4
+ version: 5.4.0
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-22 00:00:00.000000000 Z
11
+ date: 2017-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- requirement: !ruby/object:Gem::Requirement
15
- requirements:
16
- - - '='
17
- - !ruby/object:Gem::Version
18
- version: 5.3.3
19
- name: logstash-core-event-java
20
- prerelease: false
21
- type: :runtime
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - '='
25
- - !ruby/object:Gem::Version
26
- version: 5.3.3
27
- - !ruby/object:Gem::Dependency
28
- requirement: !ruby/object:Gem::Requirement
29
- requirements:
30
- - - '='
31
- - !ruby/object:Gem::Version
32
- version: 5.3.3
33
- name: logstash-core-queue-jruby
34
- prerelease: false
35
- type: :runtime
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - '='
39
- - !ruby/object:Gem::Version
40
- version: 5.3.3
41
13
  - !ruby/object:Gem::Dependency
42
14
  requirement: !ruby/object:Gem::Requirement
43
15
  requirements:
@@ -354,7 +326,9 @@ files:
354
326
  - lib/logstash/config/mixin.rb
355
327
  - lib/logstash/environment.rb
356
328
  - lib/logstash/errors.rb
329
+ - lib/logstash/event.rb
357
330
  - lib/logstash/event_dispatcher.rb
331
+ - lib/logstash/execution_context.rb
358
332
  - lib/logstash/filter_delegator.rb
359
333
  - lib/logstash/filters/base.rb
360
334
  - lib/logstash/inputs/base.rb
@@ -378,6 +352,7 @@ files:
378
352
  - lib/logstash/instrument/periodic_poller/pq.rb
379
353
  - lib/logstash/instrument/periodic_pollers.rb
380
354
  - lib/logstash/instrument/snapshot.rb
355
+ - lib/logstash/instrument/wrapped_write_client.rb
381
356
  - lib/logstash/java_integration.rb
382
357
  - lib/logstash/json.rb
383
358
  - lib/logstash/logging.rb
@@ -409,6 +384,8 @@ files:
409
384
  - lib/logstash/runner.rb
410
385
  - lib/logstash/settings.rb
411
386
  - lib/logstash/shutdown_watcher.rb
387
+ - lib/logstash/string_interpolation.rb
388
+ - lib/logstash/timestamp.rb
412
389
  - lib/logstash/universal_plugin.rb
413
390
  - lib/logstash/util.rb
414
391
  - lib/logstash/util/buftok.rb
@@ -447,6 +424,7 @@ files:
447
424
  - spec/api/lib/rack_app_spec.rb
448
425
  - spec/api/spec_helper.rb
449
426
  - spec/conditionals_spec.rb
427
+ - spec/logstash/acked_queue_concurrent_stress_spec.rb
450
428
  - spec/logstash/agent_spec.rb
451
429
  - spec/logstash/codecs/base_spec.rb
452
430
  - spec/logstash/config/config_ast_spec.rb
@@ -456,6 +434,8 @@ files:
456
434
  - spec/logstash/config/mixin_spec.rb
457
435
  - spec/logstash/environment_spec.rb
458
436
  - spec/logstash/event_dispatcher_spec.rb
437
+ - spec/logstash/event_spec.rb
438
+ - spec/logstash/execution_context_spec.rb
459
439
  - spec/logstash/filter_delegator_spec.rb
460
440
  - spec/logstash/filters/base_spec.rb
461
441
  - spec/logstash/inputs/base_spec.rb
@@ -472,8 +452,11 @@ files:
472
452
  - spec/logstash/instrument/periodic_poller/jvm_spec.rb
473
453
  - spec/logstash/instrument/periodic_poller/load_average_spec.rb
474
454
  - spec/logstash/instrument/periodic_poller/os_spec.rb
455
+ - spec/logstash/instrument/wrapped_write_client_spec.rb
475
456
  - spec/logstash/java_integration_spec.rb
476
457
  - spec/logstash/json_spec.rb
458
+ - spec/logstash/legacy_ruby_event_spec.rb
459
+ - spec/logstash/legacy_ruby_timestamp_spec.rb
477
460
  - spec/logstash/output_delegator_spec.rb
478
461
  - spec/logstash/outputs/base_spec.rb
479
462
  - spec/logstash/patches_spec.rb
@@ -496,6 +479,8 @@ files:
496
479
  - spec/logstash/settings/writable_directory_spec.rb
497
480
  - spec/logstash/settings_spec.rb
498
481
  - spec/logstash/shutdown_watcher_spec.rb
482
+ - spec/logstash/timestamp_spec.rb
483
+ - spec/logstash/util/accessors_spec.rb
499
484
  - spec/logstash/util/buftok_spec.rb
500
485
  - spec/logstash/util/byte_value_spec.rb
501
486
  - spec/logstash/util/charset_spec.rb
@@ -536,6 +521,8 @@ requirements:
536
521
  - jar org.apache.logging.log4j:log4j-core, 2.6.2
537
522
  - jar com.fasterxml.jackson.core:jackson-core, 2.7.4
538
523
  - jar com.fasterxml.jackson.core:jackson-databind, 2.7.4
524
+ - jar com.fasterxml.jackson.module:jackson-module-afterburner, 2.7.4
525
+ - jar com.fasterxml.jackson.dataformat:jackson-dataformat-cbor, 2.7.4
539
526
  rubyforge_project:
540
527
  rubygems_version: 2.4.8
541
528
  signing_key:
@@ -554,6 +541,7 @@ test_files:
554
541
  - spec/api/lib/rack_app_spec.rb
555
542
  - spec/api/spec_helper.rb
556
543
  - spec/conditionals_spec.rb
544
+ - spec/logstash/acked_queue_concurrent_stress_spec.rb
557
545
  - spec/logstash/agent_spec.rb
558
546
  - spec/logstash/codecs/base_spec.rb
559
547
  - spec/logstash/config/config_ast_spec.rb
@@ -563,6 +551,8 @@ test_files:
563
551
  - spec/logstash/config/mixin_spec.rb
564
552
  - spec/logstash/environment_spec.rb
565
553
  - spec/logstash/event_dispatcher_spec.rb
554
+ - spec/logstash/event_spec.rb
555
+ - spec/logstash/execution_context_spec.rb
566
556
  - spec/logstash/filter_delegator_spec.rb
567
557
  - spec/logstash/filters/base_spec.rb
568
558
  - spec/logstash/inputs/base_spec.rb
@@ -579,8 +569,11 @@ test_files:
579
569
  - spec/logstash/instrument/periodic_poller/jvm_spec.rb
580
570
  - spec/logstash/instrument/periodic_poller/load_average_spec.rb
581
571
  - spec/logstash/instrument/periodic_poller/os_spec.rb
572
+ - spec/logstash/instrument/wrapped_write_client_spec.rb
582
573
  - spec/logstash/java_integration_spec.rb
583
574
  - spec/logstash/json_spec.rb
575
+ - spec/logstash/legacy_ruby_event_spec.rb
576
+ - spec/logstash/legacy_ruby_timestamp_spec.rb
584
577
  - spec/logstash/output_delegator_spec.rb
585
578
  - spec/logstash/outputs/base_spec.rb
586
579
  - spec/logstash/patches_spec.rb
@@ -603,6 +596,8 @@ test_files:
603
596
  - spec/logstash/settings/writable_directory_spec.rb
604
597
  - spec/logstash/settings_spec.rb
605
598
  - spec/logstash/shutdown_watcher_spec.rb
599
+ - spec/logstash/timestamp_spec.rb
600
+ - spec/logstash/util/accessors_spec.rb
606
601
  - spec/logstash/util/buftok_spec.rb
607
602
  - spec/logstash/util/byte_value_spec.rb
608
603
  - spec/logstash/util/charset_spec.rb