fluentd 0.10.56 → 0.10.57

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: 15aab20b26be1dd37d9f185c97971a38767f30a6
4
- data.tar.gz: 782800a38871c60c45a69a36e96f8577488809fb
3
+ metadata.gz: 2d8292e66a20b544c4f2f96165479f81573e7ead
4
+ data.tar.gz: 8ac541d791d8d50454e4050f6c4242da7b85a884
5
5
  SHA512:
6
- metadata.gz: ed67bd0d60ed78502d18d10920343db5f78cd8b99ba012b1547d3eef1550e49d1bf0456f88cf5ede4e066a03867821007ef1dd65a19a10ddce5f9e4f8478a7d8
7
- data.tar.gz: 359d689bc9ec1b8f158759a1b8a876f5b14858d845263a8b2fd32dff39c7edafb408003875dd4089c6a29d1c6bf58be38843c99e17bba1a7ff15d1ccdd90c3c9
6
+ metadata.gz: b14d9f92215ea493b61825babac41710bef940e0d07f7a4955476f0e831257a3738ea244f84fcf1271011ced7fc0d4a5db20cd2e6759c488110f12ec94dc75d4
7
+ data.tar.gz: 480aaf1a575d9c0d1153f24a2d1c2c92fa1ff0308664790b9a023c8b55d5bbaabd2b8ed29ec6209f36ebd899b4a087d40e57cff5bc742150f03ea77cd73391a4
data/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ Release 0.10.57 - 2014/11/12
2
+
3
+ * buffer: Make total_queued_chunk_size thread-safe to avoid race condition with in_monitor_agent
4
+ * Add --no-supervisor option to disable the supervisor for supervision tools like runit
5
+
1
6
  Release 0.10.56 - 2014/10/30
2
7
 
3
8
  * config: Add Fluent::Config::Section#object_id to avoid NoMethodError by object dump tools
@@ -223,11 +223,15 @@ module Fluent
223
223
 
224
224
  def total_queued_chunk_size
225
225
  total = 0
226
- @map.each_value {|c|
227
- total += c.size
228
- }
229
- @queue.each {|c|
230
- total += c.size
226
+ synchronize {
227
+ @map.each_value {|c|
228
+ total += c.size
229
+ }
230
+ @queue.synchronize {
231
+ @queue.each {|c|
232
+ total += c.size
233
+ }
234
+ }
231
235
  }
232
236
  total
233
237
  end
@@ -52,6 +52,10 @@ op.on('-d', '--daemon PIDFILE', "daemonize fluent process") {|s|
52
52
  opts[:daemonize] = s
53
53
  }
54
54
 
55
+ op.on('--no-supervisor', "run without fluent supervisor") {
56
+ opts[:supervise] = false
57
+ }
58
+
55
59
  op.on('--user USER', "change user") {|s|
56
60
  opts[:chuser] = s
57
61
  }
@@ -90,11 +90,13 @@ module Fluent
90
90
  :suppress_repeated_stacktrace => false,
91
91
  :without_source => false,
92
92
  :use_v1_config => false,
93
+ :supervise => true,
93
94
  }
94
95
  end
95
96
 
96
97
  def initialize(opt)
97
98
  @daemonize = opt[:daemonize]
99
+ @supervise = opt[:supervise]
98
100
  @config_path = opt[:config_path]
99
101
  @inline_config = opt[:inline_config]
100
102
  @use_v1_config = opt[:use_v1_config]
@@ -123,9 +125,24 @@ module Fluent
123
125
 
124
126
  dry_run if @dry_run
125
127
  start_daemonize if @daemonize
126
- install_supervisor_signal_handlers
127
- until @finished
128
- supervise do
128
+ if @supervise
129
+ install_supervisor_signal_handlers
130
+ until @finished
131
+ supervise do
132
+ read_config
133
+ change_privilege
134
+ init_engine
135
+ install_main_process_signal_handlers
136
+ run_configure
137
+ finish_daemonize if @daemonize
138
+ run_engine
139
+ exit 0
140
+ end
141
+ $log.error "fluentd main process died unexpectedly. restarting." unless @finished
142
+ end
143
+ else
144
+ $log.info "starting fluentd-#{Fluent::VERSION} without supervision"
145
+ main_process do
129
146
  read_config
130
147
  change_privilege
131
148
  init_engine
@@ -135,7 +152,6 @@ module Fluent
135
152
  run_engine
136
153
  exit 0
137
154
  end
138
- $log.error "fluentd main process died unexpectedly. restarting." unless @finished
139
155
  end
140
156
  end
141
157
 
@@ -1,5 +1,5 @@
1
1
  module Fluent
2
2
 
3
- VERSION = '0.10.56'
3
+ VERSION = '0.10.57'
4
4
 
5
5
  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.10.56
4
+ version: 0.10.57
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sadayuki Furuhashi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-29 00:00:00.000000000 Z
11
+ date: 2014-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: msgpack