logstash-filter-aggregate 2.7.1 → 2.7.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
- SHA256:
3
- metadata.gz: bdbd08aff733463c2cbe5f630019f92a806b4b32ba370a725f0f4ace5892cde2
4
- data.tar.gz: b543a06917606bd25b3f727266bfb0e9cb0b484fe41c7f3ebcad9203fe979c3a
2
+ SHA1:
3
+ metadata.gz: da3a7caa73ead37f402a19b71ebd6793fb438f17
4
+ data.tar.gz: 3e230ab339bb070ad94bf9312866619c65ead910
5
5
  SHA512:
6
- metadata.gz: cabfccaf07cc1f909fe58f4ed155073a8575350df4a1a7310df06d04fb88c80b0dbb97dd6f83d21f9ea696fb3a136d08731b6572a0f281c29687ffe487a48d79
7
- data.tar.gz: 7b25f24e009927c2b1c73960be397aee87955847d497b048d5877c8f323ea494e6acf94b9f661d29d88c63f7fd331bcbee6eea45ee7a58a17af917f881d28da2
6
+ metadata.gz: bde2b92c6b4f956294b2a8d430e103b4f012022739ddd66a12df17acd23748ba8d68204a1fc99b0d60093e69ce36c1af9fe59e9de6cb4fafd2e7644e43805532
7
+ data.tar.gz: dee95f8441d5459efa28fb07d9e82aeebae150747d30eb1ea1a65bef7a5045e430b0a3e3dbc67d6060988a65fa951d1cf2ac9d16c5fc8580c4704096fdaec2fc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
+ ## 2.7.2
2
+ - bugfix: fix synchronisation issue at Logstash shutdown (#75)
3
+
1
4
  ## 2.7.1
2
- - Update gemspec summary
5
+ - docs: update gemspec summary
3
6
 
4
7
  ## 2.7.0
5
8
  - new feature: add support for multiple pipelines (for Logstash 6.0+)
@@ -299,8 +299,10 @@ class LogStash::Filters::Aggregate < LogStash::Filters::Base
299
299
  events_to_flush = remove_expired_maps()
300
300
 
301
301
  # at Logstash shutdown, if push_previous_map_as_event is enabled, it's important to force flush (particularly for jdbc input plugin)
302
- if options[:final] && @push_previous_map_as_event && !@current_pipeline.aggregate_maps[@task_id].empty?
303
- events_to_flush << extract_previous_map_as_event()
302
+ @current_pipeline.mutex.synchronize do
303
+ if options[:final] && @push_previous_map_as_event && !@current_pipeline.aggregate_maps[@task_id].empty?
304
+ events_to_flush << extract_previous_map_as_event()
305
+ end
304
306
  end
305
307
 
306
308
  # tag flushed events, indicating "final flush" special event
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-filter-aggregate'
3
- s.version = '2.7.1'
3
+ s.version = '2.7.2'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = "Aggregates information from several events originating with a single task"
6
6
  s.description = 'This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-filter-aggregate
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.1
4
+ version: 2.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-11-07 00:00:00.000000000 Z
12
+ date: 2017-11-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  requirement: !ruby/object:Gem::Requirement
@@ -45,9 +45,7 @@ dependencies:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
- description: This gem is a Logstash plugin required to be installed on top of the
49
- Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This
50
- gem is not a stand-alone program
48
+ description: This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program
51
49
  email: info@elastic.co
52
50
  executables: []
53
51
  extensions: []
@@ -87,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
85
  version: '0'
88
86
  requirements: []
89
87
  rubyforge_project:
90
- rubygems_version: 2.6.11
88
+ rubygems_version: 2.4.8
91
89
  signing_key:
92
90
  specification_version: 4
93
91
  summary: Aggregates information from several events originating with a single task