fluentd 1.2.4.rc1 → 1.2.4
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.md +11 -0
- data/lib/fluent/plugin_helper/server.rb +16 -8
- data/lib/fluent/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17c2e18def2c549e14b7f5bd986553c3b2794047226b50ad396de592b94b292d
|
4
|
+
data.tar.gz: 305e459a87099290266c984d8c8c11634a0312cf17eae3fdd71456d586ef8f94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e494dd2f456187adfbc860f89352c51b9b33532fd911e0c8a5eeb71859fe450bd42c62db29332daed2581e80ec9faa45d6b3f842d39606121886739cdb181b51
|
7
|
+
data.tar.gz: 98d885f434fb9c0534db4095e39869635477aed6c1236a219a41cb5b094e40e62f418f0cbab420dc7be6910e4cf0d7979601834fc2828bc149f29addd6f1b758
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
# v1.2
|
2
2
|
|
3
|
+
## Release v1.2.4 - 2018/08/01
|
4
|
+
|
5
|
+
### Bug fixes
|
6
|
+
|
7
|
+
* output: Consider timezone when calculate timekey
|
8
|
+
https://github.com/fluent/fluentd/pull/2054
|
9
|
+
* output: Fix bug in suppress_emit_error_log_interval
|
10
|
+
https://github.com/fluent/fluentd/pull/2069
|
11
|
+
* server-helper: Fix connection leak by close timing issue.
|
12
|
+
https://github.com/fluent/fluentd/pull/2087
|
13
|
+
|
3
14
|
## Release v1.2.3 - 2018/07/10
|
4
15
|
|
5
16
|
### Enhancements
|
@@ -213,8 +213,10 @@ module Fluent
|
|
213
213
|
socket_option_setter.call(sock)
|
214
214
|
close_callback = ->(conn){ @_server_mutex.synchronize{ @_server_connections.delete(conn) } }
|
215
215
|
server = Coolio::TCPServer.new(sock, nil, EventHandler::TCPServer, socket_option_setter, close_callback, @log, @under_plugin_development, block) do |conn|
|
216
|
-
|
217
|
-
@
|
216
|
+
unless conn.closing
|
217
|
+
@_server_mutex.synchronize do
|
218
|
+
@_server_connections << conn
|
219
|
+
end
|
218
220
|
end
|
219
221
|
end
|
220
222
|
server.listen(backlog) if backlog
|
@@ -227,8 +229,10 @@ module Fluent
|
|
227
229
|
socket_option_setter.call(sock)
|
228
230
|
close_callback = ->(conn){ @_server_mutex.synchronize{ @_server_connections.delete(conn) } }
|
229
231
|
server = Coolio::TCPServer.new(sock, nil, EventHandler::TLSServer, context, socket_option_setter, close_callback, @log, @under_plugin_development, block) do |conn|
|
230
|
-
|
231
|
-
@
|
232
|
+
unless conn.closing
|
233
|
+
@_server_mutex.synchronize do
|
234
|
+
@_server_connections << conn
|
235
|
+
end
|
232
236
|
end
|
233
237
|
end
|
234
238
|
server.listen(backlog) if backlog
|
@@ -538,6 +542,8 @@ module Fluent
|
|
538
542
|
end
|
539
543
|
|
540
544
|
class TCPServer < Coolio::TCPSocket
|
545
|
+
attr_reader :closing
|
546
|
+
|
541
547
|
def initialize(sock, socket_option_setter, close_callback, log, under_plugin_development, connect_callback)
|
542
548
|
raise ArgumentError, "socket must be a TCPSocket: sock=#{sock}" unless sock.is_a?(TCPSocket)
|
543
549
|
|
@@ -594,7 +600,7 @@ module Fluent
|
|
594
600
|
rescue => e
|
595
601
|
@log.error "unexpected error on reading data", host: @callback_connection.remote_host, port: @callback_connection.remote_port, error: e
|
596
602
|
@log.error_backtrace
|
597
|
-
close
|
603
|
+
close rescue nil
|
598
604
|
raise if @under_plugin_development
|
599
605
|
end
|
600
606
|
|
@@ -603,7 +609,7 @@ module Fluent
|
|
603
609
|
rescue => e
|
604
610
|
@log.error "unexpected error on reading data", host: @callback_connection.remote_host, port: @callback_connection.remote_port, error: e
|
605
611
|
@log.error_backtrace
|
606
|
-
close
|
612
|
+
close rescue nil
|
607
613
|
raise if @under_plugin_development
|
608
614
|
end
|
609
615
|
|
@@ -618,6 +624,8 @@ module Fluent
|
|
618
624
|
end
|
619
625
|
|
620
626
|
class TLSServer < Coolio::Socket
|
627
|
+
attr_reader :closing
|
628
|
+
|
621
629
|
# It can't use Coolio::TCPSocket, because Coolio::TCPSocket checks that underlying socket (1st argument of super) is TCPSocket.
|
622
630
|
def initialize(sock, context, socket_option_setter, close_callback, log, under_plugin_development, connect_callback)
|
623
631
|
raise ArgumentError, "socket must be a TCPSocket: sock=#{sock}" unless sock.is_a?(TCPSocket)
|
@@ -748,7 +756,7 @@ module Fluent
|
|
748
756
|
rescue => e
|
749
757
|
@log.error "unexpected error on reading data", host: @callback_connection.remote_host, port: @callback_connection.remote_port, error: e
|
750
758
|
@log.error_backtrace
|
751
|
-
close
|
759
|
+
close rescue nil
|
752
760
|
raise if @under_plugin_development
|
753
761
|
end
|
754
762
|
|
@@ -757,7 +765,7 @@ module Fluent
|
|
757
765
|
rescue => e
|
758
766
|
@log.error "unexpected error on reading data", host: @callback_connection.remote_host, port: @callback_connection.remote_port, error: e
|
759
767
|
@log.error_backtrace
|
760
|
-
close
|
768
|
+
close rescue nil
|
761
769
|
raise if @under_plugin_development
|
762
770
|
end
|
763
771
|
|
data/lib/fluent/version.rb
CHANGED
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: 1.2.4
|
4
|
+
version: 1.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sadayuki Furuhashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: msgpack
|
@@ -764,9 +764,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
764
764
|
version: '2.1'
|
765
765
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
766
766
|
requirements:
|
767
|
-
- - "
|
767
|
+
- - ">="
|
768
768
|
- !ruby/object:Gem::Version
|
769
|
-
version:
|
769
|
+
version: '0'
|
770
770
|
requirements: []
|
771
771
|
rubyforge_project:
|
772
772
|
rubygems_version: 2.7.6
|