logstash-mixin-rabbitmq_connection 2.4.1-java → 4.0.0-java

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
  SHA1:
3
- metadata.gz: ec68bdec5745699dae022e5b1a64ca6352adff23
4
- data.tar.gz: 2b3d0456a9d30e0b5eb9071678fe57a8ed265f90
3
+ metadata.gz: d14c010de3a33eacb2fd8dfdac1dc653b708ab62
4
+ data.tar.gz: ef541fd7f1940edc4904ce1c494aa15218849a29
5
5
  SHA512:
6
- metadata.gz: fd3e3998bd8f7cc140986204316de082087b252b192c7ca268812c4d647b86216a48453cb80bab57a3c0abbc8ca16447400097f5ed4162f71877a1a44d51b4eb
7
- data.tar.gz: 7182e467d9d1f6cce2ab34c35ab0144d9d310bf270e085257d3b9e303ebab4ec53d7eb2e3b17be81c4acf5fe25493744dd12deff173b401ff47026605424f640
6
+ metadata.gz: d643085c7b3a4680fca010854c0915428f3dbb0efe099de5c075f64ace9ef05e64299a6fa97293ca1e9b34c6add3d969d698afa64ef65e9cc3ca718f9aa9c9b8
7
+ data.tar.gz: 05e2880b2d61596e6bb52dc09425eb72f34235129ef1876fb8b27061f528e5ec273268dd88164d5513b41f412941d5c73cb78fe9124123881c7227316f30ef00
data/.travis.yml CHANGED
@@ -1,7 +1,8 @@
1
+ ---
1
2
  sudo: false
2
3
  language: ruby
3
4
  cache: bundler
4
5
  rvm:
5
- - jruby-1.7.23
6
- script:
7
- - bundle exec rspec spec
6
+ - jruby-1.7.23
7
+ script:
8
+ - bundle exec rspec spec
data/CHANGELOG CHANGED
@@ -1,5 +1,3 @@
1
- * 2.4.1
2
- - Retry on java.io.IOException
3
1
  * 2.4.0
4
2
  - Add SSL/TLS Support
5
3
  - Add support for "x-consistent-hash" and "x-modulus-hash" exchanges
data/Gemfile CHANGED
@@ -1,2 +1,4 @@
1
1
  source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in logstash-mass_effect.gemspec
2
4
  gemspec
@@ -104,31 +104,11 @@ module LogStash
104
104
 
105
105
  def connect!
106
106
  @hare_info = connect() unless @hare_info # Don't duplicate the conn!
107
- rescue MarchHare::Exception, java.io.IOException => e
108
- error_message = if e.message.empty? && e.is_a?(java.io.IOException)
109
- # IOException with an empty message is probably an instance of
110
- # these problems:
111
- # https://github.com/logstash-plugins/logstash-output-rabbitmq/issues/52
112
- # https://github.com/rabbitmq/rabbitmq-java-client/issues/100
113
- #
114
- # Best guess is to help the user understand that there is probably
115
- # some kind of configuration problem causing the error, but we
116
- # can't really offer any more detailed hints :\
117
- "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."
118
- else
119
- e.message
120
- end
121
-
122
- if @logger.debug?
123
- @logger.error("RabbitMQ connection error, will retry.",
124
- :error_message => error_message,
125
- :exception => e.class.name,
126
- :backtrace => e.backtrace)
127
- else
128
- @logger.error("RabbitMQ connection error, will retry.",
129
- :error_message => error_message,
130
- :exception => e.class.name)
131
- end
107
+ rescue MarchHare::Exception => e
108
+ @logger.error("RabbitMQ connection error, will retry.",
109
+ :message => e.message,
110
+ :exception => e.class.name,
111
+ :backtrace => e.backtrace)
132
112
 
133
113
  sleep_for_retry
134
114
  retry
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-mixin-rabbitmq_connection'
3
- s.version = '2.4.1'
3
+ s.version = '4.0.0'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = "Common functionality for RabbitMQ plugins"
6
6
  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-mixin-rabbitmq_connection
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.1
4
+ version: 4.0.0
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-02 00:00:00.000000000 Z
11
+ date: 2016-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement