logstash-mixin-rabbitmq_connection 4.1.1-java → 4.1.2-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 100e8d961ef58488837b86f2a9435ef58a631e0d
4
- data.tar.gz: 45dc915fbf38c05fd1909d28246f1fb208f0449b
3
+ metadata.gz: a8172473666f47a825c6e32283d170aa1687c676
4
+ data.tar.gz: 8f31ac4f87bc9a55cf82f64b7d1732ae3167f7d7
5
5
  SHA512:
6
- metadata.gz: 30ff986bfb8ec9973298566044400c7ce78cd23f0209bb1be9b86eeb8d0b8539f4f9bddd3417159db55a0becc08d143aa5f897df999cbc3176aa4f3c1172152a
7
- data.tar.gz: fa5d22e3811e4d645365ade4c3012669cd4013f067bc74ca3a06fdb65cd70886976f0fc3eccbb5af87e52706fbacdd36451e81504ca7a639666dec31bc4aba10
6
+ metadata.gz: 0bdca603406eccc887d68fb7740d925a68f6ad234fecd86b529cf90133646bbead8db802a72be8dba4f7a5f4857d5a96a756b46a1e5764bf982debdf12e647f5
7
+ data.tar.gz: 82f5bce851cf375cf59ea55eee435584d99f1bc03758600a0777caf52c40ccb262a584c80c8f9801f71125bb4d25901fa042e7833dce96c2a3ac83f6b5bf1131
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ * 4.1.2
2
+ - Retry the connection attempt if there is an IO Exception.
1
3
  * 4.1.1
2
4
  - Remove internal Logstash deps that were not necessary
3
5
  * 4.1.0
@@ -129,11 +129,31 @@ module LogStash
129
129
 
130
130
  def connect!
131
131
  @hare_info = connect() unless @hare_info # Don't duplicate the conn!
132
- rescue MarchHare::Exception => e
133
- @logger.error("RabbitMQ connection error, will retry.",
134
- :message => e.message,
135
- :exception => e.class.name,
136
- :backtrace => e.backtrace)
132
+ rescue MarchHare::Exception, java.io.IOException => e
133
+ error_message = if e.message.empty? && e.is_a?(java.io.IOException)
134
+ # IOException with an empty message is probably an instance of
135
+ # these problems:
136
+ # https://github.com/logstash-plugins/logstash-output-rabbitmq/issues/52
137
+ # https://github.com/rabbitmq/rabbitmq-java-client/issues/100
138
+ #
139
+ # Best guess is to help the user understand that there is probably
140
+ # some kind of configuration problem causing the error, but we
141
+ # can't really offer any more detailed hints :\
142
+ "An unknown error occurred. RabbitMQ gave no hints as to the cause. Maybe this is a configuration error (invalid vhost, for example). I recommend checking the RabbitMQ server logs for clues about this failure."
143
+ else
144
+ e.message
145
+ end
146
+
147
+ if @logger.debug?
148
+ @logger.error("RabbitMQ connection error, will retry.",
149
+ :error_message => error_message,
150
+ :exception => e.class.name,
151
+ :backtrace => e.backtrace)
152
+ else
153
+ @logger.error("RabbitMQ connection error, will retry.",
154
+ :error_message => error_message,
155
+ :exception => e.class.name)
156
+ end
137
157
 
138
158
  sleep_for_retry
139
159
  retry
@@ -1,7 +1,7 @@
1
1
 
2
2
  Gem::Specification.new do |s|
3
3
  s.name = 'logstash-mixin-rabbitmq_connection'
4
- s.version = '4.1.1'
4
+ s.version = '4.1.2'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "Common functionality for RabbitMQ plugins"
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,96 +1,96 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-mixin-rabbitmq_connection
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.1
4
+ version: 4.1.2
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-13 00:00:00.000000000 Z
11
+ date: 2016-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: march_hare
15
- version_requirements: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ~>
18
- - !ruby/object:Gem::Version
19
- version: 2.15.0
20
14
  requirement: !ruby/object:Gem::Requirement
21
15
  requirements:
22
- - - ~>
16
+ - - "~>"
23
17
  - !ruby/object:Gem::Version
24
18
  version: 2.15.0
19
+ name: march_hare
25
20
  prerelease: false
26
21
  type: :runtime
27
- - !ruby/object:Gem::Dependency
28
- name: stud
29
22
  version_requirements: !ruby/object:Gem::Requirement
30
23
  requirements:
31
- - - ~>
24
+ - - "~>"
32
25
  - !ruby/object:Gem::Version
33
- version: 0.0.22
26
+ version: 2.15.0
27
+ - !ruby/object:Gem::Dependency
34
28
  requirement: !ruby/object:Gem::Requirement
35
29
  requirements:
36
- - - ~>
30
+ - - "~>"
37
31
  - !ruby/object:Gem::Version
38
32
  version: 0.0.22
33
+ name: stud
39
34
  prerelease: false
40
35
  type: :runtime
41
- - !ruby/object:Gem::Dependency
42
- name: logstash-devutils
43
36
  version_requirements: !ruby/object:Gem::Requirement
44
37
  requirements:
45
- - - '>='
38
+ - - "~>"
46
39
  - !ruby/object:Gem::Version
47
- version: '0'
40
+ version: 0.0.22
41
+ - !ruby/object:Gem::Dependency
48
42
  requirement: !ruby/object:Gem::Requirement
49
43
  requirements:
50
- - - '>='
44
+ - - ">="
51
45
  - !ruby/object:Gem::Version
52
46
  version: '0'
47
+ name: logstash-devutils
53
48
  prerelease: false
54
49
  type: :development
55
- - !ruby/object:Gem::Dependency
56
- name: logstash-input-generator
57
50
  version_requirements: !ruby/object:Gem::Requirement
58
51
  requirements:
59
- - - '>='
52
+ - - ">="
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
62
56
  requirement: !ruby/object:Gem::Requirement
63
57
  requirements:
64
- - - '>='
58
+ - - ">="
65
59
  - !ruby/object:Gem::Version
66
60
  version: '0'
61
+ name: logstash-input-generator
67
62
  prerelease: false
68
63
  type: :development
69
- - !ruby/object:Gem::Dependency
70
- name: logstash-codec-json
71
64
  version_requirements: !ruby/object:Gem::Requirement
72
65
  requirements:
73
- - - '>='
66
+ - - ">="
74
67
  - !ruby/object:Gem::Version
75
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
76
70
  requirement: !ruby/object:Gem::Requirement
77
71
  requirements:
78
- - - '>='
72
+ - - ">="
79
73
  - !ruby/object:Gem::Version
80
74
  version: '0'
75
+ name: logstash-codec-json
81
76
  prerelease: false
82
77
  type: :development
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
83
  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
84
84
  email: info@elastic.co
85
85
  executables: []
86
86
  extensions: []
87
87
  extra_rdoc_files: []
88
88
  files:
89
- - .github/CONTRIBUTING.md
90
- - .github/ISSUE_TEMPLATE.md
91
- - .github/PULL_REQUEST_TEMPLATE.md
92
- - .gitignore
93
- - .travis.yml
89
+ - ".github/CONTRIBUTING.md"
90
+ - ".github/ISSUE_TEMPLATE.md"
91
+ - ".github/PULL_REQUEST_TEMPLATE.md"
92
+ - ".gitignore"
93
+ - ".travis.yml"
94
94
  - CHANGELOG
95
95
  - Gemfile
96
96
  - README.md
@@ -131,12 +131,12 @@ require_paths:
131
131
  - lib
132
132
  required_ruby_version: !ruby/object:Gem::Requirement
133
133
  requirements:
134
- - - '>='
134
+ - - ">="
135
135
  - !ruby/object:Gem::Version
136
136
  version: '0'
137
137
  required_rubygems_version: !ruby/object:Gem::Requirement
138
138
  requirements:
139
- - - '>='
139
+ - - ">="
140
140
  - !ruby/object:Gem::Version
141
141
  version: '0'
142
142
  requirements: []