fluentd 0.12.24 → 0.12.25

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of fluentd might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ab6393d8dfc67b70656190c768de2acb86e8b453
4
- data.tar.gz: 70f4e1abb3b9d3dda769e4e9ded10dff755602c8
3
+ metadata.gz: e3a1a70a3ede3a8713d613dba499b4224ae138d1
4
+ data.tar.gz: 4177832b3d06ba52df8032bd5457d7bffaaccf76
5
5
  SHA512:
6
- metadata.gz: 222628da1465e330bed1f54024845fc9cebd54e80b2c457fb61c8ec46ac8f429a5bd92d43530fb7bc1b34376a00c363ad6b39dedcfd13520a554cafc6d7d7468
7
- data.tar.gz: 00061a3007fd77070568dd0fb59460cf059fe13bdb9d1ce90823e89ce9f91a121a2adec4961d4978987c3198468229edc0bbd88fc0d0c3b68a67d02afc39d8d8
6
+ metadata.gz: 30e12945ba3a228f68ad2f8052eb4e0fab9bc6e9a21df25a7bd33c397d806c3d0ad6e04897f107935838544dd9d4fc32286b7cbeb9fb8f82b3f3e5a90c940a0e
7
+ data.tar.gz: 8e4f32b8e1ab4aa053b1b147d6b6eb19f20d9c7d0f427404b0201008034c0bb2057c1de52a33868276e9014dd592960ad0068b6470553d7ef756f93d6a589c14
data/ChangeLog CHANGED
@@ -1,5 +1,17 @@
1
1
  # v0.12
2
2
 
3
+ ## Release 0.12.25 - 2016/05/25
4
+
5
+ ### New features / Enhancement
6
+
7
+ * process: Add detach_process_forward_interval parameter to control emit interval
8
+ https://github.com/fluent/fluentd/pull/982
9
+
10
+ ### Bug fixes
11
+
12
+ * Fix string-scrub dependency for ruby 2.0 or earlier support
13
+ https://github.com/fluent/fluentd/pull/986
14
+
3
15
  ## Release 0.12.24 - 2016/05/20
4
16
 
5
17
  ### New features / Enhancement
@@ -27,9 +27,7 @@ Gem::Specification.new do |gem|
27
27
  gem.add_runtime_dependency("sigdump", ["~> 0.2.2"])
28
28
  gem.add_runtime_dependency("tzinfo", [">= 1.0.0"])
29
29
  gem.add_runtime_dependency("tzinfo-data", [">= 1.0.0"])
30
- unless "".respond_to?(:scrub)
31
- gem.add_runtime_dependency("string-scrub", [">= 0.1.1"])
32
- end
30
+ gem.add_runtime_dependency("string-scrub", [">= 0.0.3", "<= 0.0.5"])
33
31
 
34
32
  gem.add_development_dependency("rake", [">= 0.9.2"])
35
33
  gem.add_development_dependency("flexmock", ["~> 1.3.3"])
@@ -40,7 +40,7 @@ module Fluent
40
40
  @parent_uri = DRb.uri
41
41
  end
42
42
 
43
- def fork(delegate_object)
43
+ def fork(forward_interval, delegate_object)
44
44
  ipr, ipw = IO.pipe # child Engine.emit_stream -> parent Engine.emit_stream
45
45
  opr, opw = IO.pipe # parent target.emit -> child target.emit
46
46
 
@@ -49,14 +49,14 @@ module Fluent
49
49
  # parent process
50
50
  ipw.close
51
51
  opr.close
52
- forward_thread = process_parent(ipr, opw, pid, delegate_object)
52
+ forward_thread = process_parent(ipr, opw, pid, forward_interval, delegate_object)
53
53
  return pid, forward_thread
54
54
  end
55
55
 
56
56
  # child process
57
57
  ipr.close
58
58
  opw.close
59
- forward_thread = process_child(ipw, opr, delegate_object)
59
+ forward_thread = process_child(ipw, opr, forward_interval, delegate_object)
60
60
  return nil, forward_thread
61
61
  end
62
62
 
@@ -77,14 +77,14 @@ module Fluent
77
77
  end
78
78
 
79
79
  private
80
- def process_child(ipw, opr, delegate_object)
80
+ def process_child(ipw, opr, forward_interval, delegate_object)
81
81
  DRb.start_service(create_drb_uri, delegate_object)
82
82
  child_uri = DRb.uri
83
83
 
84
84
  send_header(ipw, child_uri)
85
85
 
86
86
  # override target.emit_stream to write event stream to the pipe
87
- fwd = new_forwarder(ipw, 0.5) # TODO interval
87
+ fwd = new_forwarder(ipw, forward_interval)
88
88
  Engine.define_singleton_method(:emit_stream) do |tag,es|
89
89
  fwd.emit(tag, es)
90
90
  end
@@ -115,7 +115,7 @@ module Fluent
115
115
  ]
116
116
  end
117
117
 
118
- def process_parent(ipr, opw, pid, delegate_object)
118
+ def process_parent(ipr, opw, pid, forward_interval, delegate_object)
119
119
  child_uri = read_header(ipr)
120
120
 
121
121
  # read event stream from the pipe and forward to Engine.emit_stream
@@ -127,7 +127,7 @@ module Fluent
127
127
 
128
128
  # return forwarder for DetachProcessMixin to
129
129
  # override target.emit and write event stream to the pipe
130
- fwd = new_forwarder(opw, 0.5) # TODO interval
130
+ fwd = new_forwarder(opw, forward_interval)
131
131
  # note: override emit method on DetachProcessMixin
132
132
  forward_thread.define_singleton_method(:forwarder) do
133
133
  fwd
@@ -300,11 +300,11 @@ module Fluent
300
300
 
301
301
  private
302
302
 
303
- def detach_process_impl(num, &block)
303
+ def detach_process_impl(num, forward_interval, &block)
304
304
  children = []
305
305
 
306
306
  num.times do |i|
307
- pid, forward_thread = DetachProcessManager.instance.fork(self)
307
+ pid, forward_thread = DetachProcessManager.instance.fork(forward_interval, self)
308
308
 
309
309
  if pid
310
310
  # parent process
@@ -438,11 +438,17 @@ module Fluent
438
438
  @detach_process = false
439
439
  end
440
440
  end
441
+
442
+ if forward_interval = conf['detach_process_forward_interval']
443
+ @forward_interval = Config.time_value(forward_interval)
444
+ else
445
+ @forward_interval = 0.5
446
+ end
441
447
  end
442
448
 
443
449
  def detach_process(&block)
444
450
  if @detach_process
445
- detach_process_impl(1, &block)
451
+ detach_process_impl(1, @forward_interval, &block)
446
452
  else
447
453
  block.call
448
454
  end
@@ -480,13 +486,19 @@ module Fluent
480
486
  @detach_process = false
481
487
  end
482
488
  end
489
+
490
+ if forward_interval = conf['detach_process_forward_interval']
491
+ @forward_interval = Config.time_value(forward_interval)
492
+ else
493
+ @forward_interval = 0.5
494
+ end
483
495
  end
484
496
 
485
497
  private
486
498
 
487
499
  def detach_multi_process(&block)
488
500
  if @detach_process
489
- detach_process_impl(@detach_process_num, &block)
501
+ detach_process_impl(@detach_process_num, @forward_interval, &block)
490
502
  else
491
503
  block.call
492
504
  end
@@ -16,6 +16,6 @@
16
16
 
17
17
  module Fluent
18
18
 
19
- VERSION = '0.12.24'
19
+ VERSION = '0.12.25'
20
20
 
21
21
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluentd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.24
4
+ version: 0.12.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sadayuki Furuhashi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-20 00:00:00.000000000 Z
11
+ date: 2016-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: msgpack
@@ -140,6 +140,26 @@ dependencies:
140
140
  - - ">="
141
141
  - !ruby/object:Gem::Version
142
142
  version: 1.0.0
143
+ - !ruby/object:Gem::Dependency
144
+ name: string-scrub
145
+ requirement: !ruby/object:Gem::Requirement
146
+ requirements:
147
+ - - ">="
148
+ - !ruby/object:Gem::Version
149
+ version: 0.0.3
150
+ - - "<="
151
+ - !ruby/object:Gem::Version
152
+ version: 0.0.5
153
+ type: :runtime
154
+ prerelease: false
155
+ version_requirements: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: 0.0.3
160
+ - - "<="
161
+ - !ruby/object:Gem::Version
162
+ version: 0.0.5
143
163
  - !ruby/object:Gem::Dependency
144
164
  name: rake
145
165
  requirement: !ruby/object:Gem::Requirement