logstash-mixin-rabbitmq_connection 2.4.0-java → 2.4.1-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: aa859308506de4169949b7208483cbd08b4732c2
4
- data.tar.gz: cbc12c2819c8ae228a202c3576c39ff42e4ce278
3
+ metadata.gz: ec68bdec5745699dae022e5b1a64ca6352adff23
4
+ data.tar.gz: 2b3d0456a9d30e0b5eb9071678fe57a8ed265f90
5
5
  SHA512:
6
- metadata.gz: 63a90f139dc4fa0233aafb10df394c868a7e1b67592a40e0e6447dc81dcd6dbb33174fa6999227ae18088f016f8e8006e7fab8aaf3d9c15d9131f48794775722
7
- data.tar.gz: e36ba70d5c725dc13e14a62a481cbfb83db0ba74e34772057fd827870c2f1acb48da9f98d35d195167d67c64df93b714316fdab6614f2ebcb17423641f984e51
6
+ metadata.gz: fd3e3998bd8f7cc140986204316de082087b252b192c7ca268812c4d647b86216a48453cb80bab57a3c0abbc8ca16447400097f5ed4162f71877a1a44d51b4eb
7
+ data.tar.gz: 7182e467d9d1f6cce2ab34c35ab0144d9d310bf270e085257d3b9e303ebab4ec53d7eb2e3b17be81c4acf5fe25493744dd12deff173b401ff47026605424f640
@@ -0,0 +1,65 @@
1
+ # Contributing to Logstash
2
+
3
+ All contributions are welcome: ideas, patches, documentation, bug reports,
4
+ complaints, etc!
5
+
6
+ Programming is not a required skill, and there are many ways to help out!
7
+ It is more important to us that you are able to contribute.
8
+
9
+ That said, some basic guidelines, which you are free to ignore :)
10
+
11
+ ## Want to learn?
12
+
13
+ Want to lurk about and see what others are doing with Logstash?
14
+
15
+ * The irc channel (#logstash on irc.freenode.org) is a good place for this
16
+ * The [forum](https://discuss.elastic.co/c/logstash) is also
17
+ great for learning from others.
18
+
19
+ ## Got Questions?
20
+
21
+ Have a problem you want Logstash to solve for you?
22
+
23
+ * You can ask a question in the [forum](https://discuss.elastic.co/c/logstash)
24
+ * Alternately, you are welcome to join the IRC channel #logstash on
25
+ irc.freenode.org and ask for help there!
26
+
27
+ ## Have an Idea or Feature Request?
28
+
29
+ * File a ticket on [GitHub](https://github.com/elastic/logstash/issues). Please remember that GitHub is used only for issues and feature requests. If you have a general question, the [forum](https://discuss.elastic.co/c/logstash) or IRC would be the best place to ask.
30
+
31
+ ## Something Not Working? Found a Bug?
32
+
33
+ If you think you found a bug, it probably is a bug.
34
+
35
+ * If it is a general Logstash or a pipeline issue, file it in [Logstash GitHub](https://github.com/elasticsearch/logstash/issues)
36
+ * If it is specific to a plugin, please file it in the respective repository under [logstash-plugins](https://github.com/logstash-plugins)
37
+ * or ask the [forum](https://discuss.elastic.co/c/logstash).
38
+
39
+ # Contributing Documentation and Code Changes
40
+
41
+ If you have a bugfix or new feature that you would like to contribute to
42
+ logstash, and you think it will take more than a few minutes to produce the fix
43
+ (ie; write code), it is worth discussing the change with the Logstash users and developers first! You can reach us via [GitHub](https://github.com/elastic/logstash/issues), the [forum](https://discuss.elastic.co/c/logstash), or via IRC (#logstash on freenode irc)
44
+ Please note that Pull Requests without tests will not be merged. If you would like to contribute but do not have experience with writing tests, please ping us on IRC/forum or create a PR and ask our help.
45
+
46
+ ## Contributing to plugins
47
+
48
+ Check our [documentation](https://www.elastic.co/guide/en/logstash/current/contributing-to-logstash.html) on how to contribute to plugins or write your own! It is super easy!
49
+
50
+ ## Contribution Steps
51
+
52
+ 1. Test your changes! [Run](https://github.com/elastic/logstash#testing) the test suite
53
+ 2. Please make sure you have signed our [Contributor License
54
+ Agreement](https://www.elastic.co/contributor-agreement/). We are not
55
+ asking you to assign copyright to us, but to give us the right to distribute
56
+ your code without restriction. We ask this of all contributors in order to
57
+ assure our users of the origin and continuing existence of the code. You
58
+ only need to sign the CLA once.
59
+ 3. Send a pull request! Push your changes to your fork of the repository and
60
+ [submit a pull
61
+ request](https://help.github.com/articles/using-pull-requests). In the pull
62
+ request, describe what your changes do and mention any bugs/issues related
63
+ to the pull request.
64
+
65
+
@@ -0,0 +1,9 @@
1
+ Please post all product and debugging questions on our [forum](https://discuss.elastic.co/c/logstash). Your questions will reach our wider community members there, and if we confirm that there is a bug, then we can open a new issue here.
2
+
3
+ For all general issues, please provide the following details for fast resolution:
4
+
5
+ - Version:
6
+ - Operating System:
7
+ - Config File (if you have sensitive info, please remove it):
8
+ - Sample Data:
9
+ - Steps to Reproduce:
@@ -0,0 +1 @@
1
+ Thanks for contributing to Logstash! If you haven't already signed our CLA, here's a handy link: https://www.elastic.co/contributor-agreement/
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ * 2.4.1
2
+ - Retry on java.io.IOException
1
3
  * 2.4.0
2
4
  - Add SSL/TLS Support
3
5
  - Add support for "x-consistent-hash" and "x-modulus-hash" exchanges
@@ -104,11 +104,31 @@ 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 => e
108
- @logger.error("RabbitMQ connection error, will retry.",
109
- :message => e.message,
110
- :exception => e.class.name,
111
- :backtrace => e.backtrace)
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
112
132
 
113
133
  sleep_for_retry
114
134
  retry
@@ -1,9 +1,9 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-mixin-rabbitmq_connection'
3
- s.version = '2.4.0'
3
+ s.version = '2.4.1'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = "Common functionality for RabbitMQ plugins"
6
- s.description = "This is used to provide configuration options and connection settings for logstash plugins working with RabbitMQ"
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"
7
7
  s.authors = ["Elastic"]
8
8
  s.email = 'info@elastic.co'
9
9
  s.homepage = "http://www.elastic.co/guide/en/logstash/current/index.html"
metadata CHANGED
@@ -1,107 +1,110 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-mixin-rabbitmq_connection
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.1
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-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: logstash-core-plugin-api
15
- version_requirements: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ~>
18
- - !ruby/object:Gem::Version
19
- version: '1.0'
20
14
  requirement: !ruby/object:Gem::Requirement
21
15
  requirements:
22
- - - ~>
16
+ - - "~>"
23
17
  - !ruby/object:Gem::Version
24
18
  version: '1.0'
19
+ name: logstash-core-plugin-api
25
20
  prerelease: false
26
21
  type: :runtime
27
- - !ruby/object:Gem::Dependency
28
- name: march_hare
29
22
  version_requirements: !ruby/object:Gem::Requirement
30
23
  requirements:
31
- - - ~>
24
+ - - "~>"
32
25
  - !ruby/object:Gem::Version
33
- version: 2.15.0
26
+ version: '1.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: 2.15.0
33
+ name: march_hare
39
34
  prerelease: false
40
35
  type: :runtime
41
- - !ruby/object:Gem::Dependency
42
- name: stud
43
36
  version_requirements: !ruby/object:Gem::Requirement
44
37
  requirements:
45
- - - ~>
38
+ - - "~>"
46
39
  - !ruby/object:Gem::Version
47
- version: 0.0.22
40
+ version: 2.15.0
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.0.22
47
+ name: stud
53
48
  prerelease: false
54
49
  type: :runtime
55
- - !ruby/object:Gem::Dependency
56
- name: logstash-devutils
57
50
  version_requirements: !ruby/object:Gem::Requirement
58
51
  requirements:
59
- - - '>='
52
+ - - "~>"
60
53
  - !ruby/object:Gem::Version
61
- version: '0'
54
+ version: 0.0.22
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-devutils
67
62
  prerelease: false
68
63
  type: :development
69
- - !ruby/object:Gem::Dependency
70
- name: logstash-input-generator
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-input-generator
81
76
  prerelease: false
82
77
  type: :development
83
- - !ruby/object:Gem::Dependency
84
- name: logstash-codec-json
85
78
  version_requirements: !ruby/object:Gem::Requirement
86
79
  requirements:
87
- - - '>='
80
+ - - ">="
88
81
  - !ruby/object:Gem::Version
89
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
90
84
  requirement: !ruby/object:Gem::Requirement
91
85
  requirements:
92
- - - '>='
86
+ - - ">="
93
87
  - !ruby/object:Gem::Version
94
88
  version: '0'
89
+ name: logstash-codec-json
95
90
  prerelease: false
96
91
  type: :development
97
- description: This is used to provide configuration options and connection settings for logstash plugins working with RabbitMQ
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ 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
98
98
  email: info@elastic.co
99
99
  executables: []
100
100
  extensions: []
101
101
  extra_rdoc_files: []
102
102
  files:
103
- - .gitignore
104
- - .travis.yml
103
+ - ".github/CONTRIBUTING.md"
104
+ - ".github/ISSUE_TEMPLATE.md"
105
+ - ".github/PULL_REQUEST_TEMPLATE.md"
106
+ - ".gitignore"
107
+ - ".travis.yml"
105
108
  - CHANGELOG
106
109
  - Gemfile
107
110
  - README.md
@@ -119,12 +122,12 @@ require_paths:
119
122
  - lib
120
123
  required_ruby_version: !ruby/object:Gem::Requirement
121
124
  requirements:
122
- - - '>='
125
+ - - ">="
123
126
  - !ruby/object:Gem::Version
124
127
  version: '0'
125
128
  required_rubygems_version: !ruby/object:Gem::Requirement
126
129
  requirements:
127
- - - '>='
130
+ - - ">="
128
131
  - !ruby/object:Gem::Version
129
132
  version: '0'
130
133
  requirements: []