logstash-output-graphite 3.1.5 → 3.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cea60219f48376b374f835e9d6351a939ac96d113ee70bfd50bfc9fca0adf5f9
4
- data.tar.gz: d3af2126f68cbdcc7636d86df3b742d511275c3c18463fac8190198d22e5ea02
3
+ metadata.gz: fb8586fd21835620eca2ca1d18f50afc04a526266793506d5f3587ff5db0ba79
4
+ data.tar.gz: 7965f0a80ff8c9f282434c032fea2b025fa14ac9737f6b43baac87cd273b0a6a
5
5
  SHA512:
6
- metadata.gz: 6f1594fdb1b01b7b62cd12e93d2254cdf8f829f43ed89e2cd50abf617b2f15b245ea7f5ecf555bd43d5bf62db5ba16db9ddb43694a618f238befdf6c622a3c49
7
- data.tar.gz: ec2c27a88f49e35b970ecd40d05d3624a19265b3c2a6ea886ad10010dc3a1f75cf850352569a316e8dda2af33bdce27fe617f102eaf81a566e906bccea44cd38
6
+ metadata.gz: 43621d8366846a814db65433b736ff03d856d48c32f3c11bd95c257b1cf57c3133bfb039904e44065a63f3f61aa7fc958546d997c4ca8f63384309a904a536b9
7
+ data.tar.gz: d6470e2ed555a40899be92334c8a3e4e6896c26980559fc61f5211fd173bb47f0445fd3dda23f3d10ec5971c2d6ee8314ee79bc1c38e312c162d0c940d82ba0a
@@ -1,3 +1,6 @@
1
+ ## 3.1.6
2
+ - Fixed exception handling during socket writing to prevent logstash termination [#33](https://github.com/logstash-plugins/logstash-output-graphite/pull/33)
3
+
1
4
  ## 3.1.5
2
5
  - Docs: Set the default_codec doc attribute.
3
6
 
@@ -130,7 +130,12 @@ class LogStash::Outputs::Graphite < LogStash::Outputs::Base
130
130
  begin
131
131
  @socket.puts(message)
132
132
  rescue Errno::EPIPE, Errno::ECONNRESET, IOError => e
133
- @logger.warn("Connection to graphite server died", :exception => e, :host => @host, :port => @port)
133
+ @logger.warn("Connection to graphite server died", :exception => e.class, :message => e.message, :host => @host, :port => @port)
134
+ sleep(@reconnect_interval)
135
+ connect
136
+ retry if @resend_on_failure
137
+ rescue => e
138
+ @logger.warn("Failed to send data", :exception => e.class, :message => e.message, :host => @host, :port => @port)
134
139
  sleep(@reconnect_interval)
135
140
  connect
136
141
  retry if @resend_on_failure
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-output-graphite'
4
- s.version = '3.1.5'
4
+ s.version = '3.1.6'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "Writes metrics to Graphite"
7
7
  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,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-graphite
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.5
4
+ version: 3.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-06 00:00:00.000000000 Z
11
+ date: 2018-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
128
  version: '0'
129
129
  requirements: []
130
130
  rubyforge_project:
131
- rubygems_version: 2.6.11
131
+ rubygems_version: 2.6.13
132
132
  signing_key:
133
133
  specification_version: 4
134
134
  summary: Writes metrics to Graphite