fluentd 0.12.11 → 0.12.12
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 +4 -4
- data/ChangeLog +15 -1
- data/lib/fluent/formatter.rb +1 -1
- data/lib/fluent/parser.rb +1 -0
- data/lib/fluent/plugin/in_forward.rb +6 -1
- data/lib/fluent/version.rb +1 -1
- data/test/plugin/test_in_forward.rb +20 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c5d20fa9a07887680fe5d8b7b5e6982c7abf515
|
4
|
+
data.tar.gz: a8db7dc9f26fcd657e02c99a457bc00c66757176
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df6783a7ae988dba16ae804cafd1750af435cbd3c89c8bce2ead550ece11addf1f0539637bcf119510d87db732eeb4f9ee58e97b03c5cce5e7437bc5af9a028b
|
7
|
+
data.tar.gz: b2a2c418a054dedcb654c6fb2ca93e568c39651774bb14bfe2465a630533a7108faa5b9414a228b4c0e188b850212a4622ea83f44766db26dac52d29dffedd24
|
data/ChangeLog
CHANGED
@@ -1,6 +1,20 @@
|
|
1
1
|
# v0.12
|
2
2
|
|
3
|
-
## Release 0.12.
|
3
|
+
## Release 0.12.12 - 2015/06/12
|
4
|
+
|
5
|
+
### New features / Enhancement
|
6
|
+
|
7
|
+
* in_forward: Add chunk format check
|
8
|
+
https://github.com/fluent/fluentd/pull/611
|
9
|
+
|
10
|
+
### Bug fixes
|
11
|
+
|
12
|
+
* formatter: Fix SingleValueFormatter to prevent record from modified
|
13
|
+
https://github.com/fluent/fluentd/pull/615
|
14
|
+
* config: configure requires Config::Element, not Hash
|
15
|
+
https://github.com/fluent/fluentd/pull/616
|
16
|
+
|
17
|
+
## Release 0.12.11 - 2015/06/01
|
4
18
|
|
5
19
|
### New features / Enhancement
|
6
20
|
|
data/lib/fluent/formatter.rb
CHANGED
data/lib/fluent/parser.rb
CHANGED
@@ -125,7 +125,12 @@ module Fluent
|
|
125
125
|
return
|
126
126
|
end
|
127
127
|
|
128
|
-
# TODO
|
128
|
+
# TODO: raise an exception if broken chunk is generated by recoverable situation
|
129
|
+
unless msg.is_a?(Array)
|
130
|
+
log.warn "incoming chunk is broken:", source: source, msg: msg
|
131
|
+
return
|
132
|
+
end
|
133
|
+
|
129
134
|
tag = msg[0].to_s
|
130
135
|
entries = msg[1]
|
131
136
|
|
data/lib/fluent/version.rb
CHANGED
@@ -200,6 +200,26 @@ class ForwardInputTest < Test::Unit::TestCase
|
|
200
200
|
}.size == 1, "large chunk warning is not logged"
|
201
201
|
end
|
202
202
|
|
203
|
+
data('string chunk' => 'broken string',
|
204
|
+
'integer chunk' => 10)
|
205
|
+
def test_send_broken_chunk(data)
|
206
|
+
d = create_driver
|
207
|
+
|
208
|
+
# d.run => send_data
|
209
|
+
d.run do
|
210
|
+
d.instance.send(:on_message, data, 1000000000, "host: 127.0.0.1, addr: 127.0.0.1, port: 0000")
|
211
|
+
end
|
212
|
+
|
213
|
+
# check emitted data
|
214
|
+
emits = d.emits
|
215
|
+
assert_equal 0, emits.size
|
216
|
+
|
217
|
+
# check log
|
218
|
+
assert d.instance.log.logs.select{|line|
|
219
|
+
line =~ / \[warn\]: incoming chunk is broken: source="host: 127.0.0.1, addr: 127.0.0.1, port: \d+" msg=#{data.inspect}/
|
220
|
+
}.size == 1, "should not accept broken chunk"
|
221
|
+
end
|
222
|
+
|
203
223
|
def test_respond_to_message_requiring_ack
|
204
224
|
d = create_driver
|
205
225
|
|
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.
|
4
|
+
version: 0.12.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sadayuki Furuhashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: msgpack
|