logstash-mixin-rabbitmq_connection 2.1.1-java → 2.2.0-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: 8dcab8d78a4949e57c440fcef4d467a988850c38
4
- data.tar.gz: d8ae8f4162be1ab1b209bc7691c5e80c80b10e8e
3
+ metadata.gz: 26e6cfa3a4a661638b979b884f172bd07d2d0426
4
+ data.tar.gz: ee0fe980fde278c0b3f98361c1a0a1f3e9bdec8e
5
5
  SHA512:
6
- metadata.gz: eecfa540f15d9035b3ee1d06af65385b2fba199236fe282619bada989e4fce502365d41f1b0008597426c3b6256fbcf7ddc39614caba8447b716ae9bcbeb3cf2
7
- data.tar.gz: 9080f84ca00d661e2e8e9e1af104fe0ab8cbc781cbccf9ff29663fd2e2428c985b61e1ae504e7e5b89bf1ea2ab6b929420adb0c932ec00a14ee0990c871072d6
6
+ metadata.gz: 85d7e522e451945751689c2839443897d6b213f06ebe8d021f1e8dda7c6f7384e7df8dbbb8391c492e608d122ef04837640256052e661f1e75bd714b0b66e2f5
7
+ data.tar.gz: 28a86471a5dbf42f52d99647acc5efcf8a66fe1cbe06e206b541478ed89b2557ccc2f11ad27ee1486852f21b6aef4dad5b2205792bbf2094aad60848cc527e0a
data/CHANGELOG CHANGED
@@ -1,5 +1,5 @@
1
- * 2.1.1
2
- - Make rake vendor run, for jarvis
1
+ * 2.2.0
2
+ - Rollback the changes in 2.1.0 . prefetch_count only belongs in the input plugin
3
3
  * 2.1.0
4
4
  - Add prefetch_count config option
5
5
  * 2.0.3
@@ -57,9 +57,6 @@ module LogStash
57
57
  # Passive queue creation? Useful for checking queue existance without modifying server state
58
58
  config :passive, :validate => :boolean, :default => false
59
59
 
60
- # Prefetch count. Number of messages to prefetch
61
- config :prefetch_count, :validate => :number, :default => 256
62
-
63
60
  # Extra queue arguments as an array.
64
61
  # To make a RabbitMQ queue mirrored, use: `{"x-ha-policy" => "all"}`
65
62
  config :arguments, :validate => :array, :default => {}
@@ -142,8 +139,6 @@ module LogStash
142
139
  connection.on_unblocked { @logger.warn("RabbitMQ output unblocked!") }
143
140
 
144
141
  channel = connection.create_channel
145
- channel.prefetch = prefetch_count
146
-
147
142
  @logger.info("Connected to RabbitMQ at #{rabbitmq_settings[:host]}")
148
143
 
149
144
  HareInfo.new(connection, channel)
@@ -154,4 +149,4 @@ module LogStash
154
149
  end
155
150
  end
156
151
  end
157
- end
152
+ end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-mixin-rabbitmq_connection'
3
- s.version = '2.1.1'
3
+ s.version = '2.2.0'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = "Common functionality for RabbitMQ plugins"
6
6
  s.description = "This is used to provide configuration options and connection settings for logstash plugins working with RabbitMQ"
@@ -48,7 +48,6 @@ describe LogStash::PluginMixins::RabbitMQConnection do
48
48
  allow(connection).to receive(:create_channel).and_return(channel)
49
49
  allow(connection).to receive(:on_blocked)
50
50
  allow(connection).to receive(:on_unblocked)
51
- allow(channel).to receive(:prefetch=).with(kind_of(Numeric))
52
51
 
53
52
  instance.register
54
53
  end
@@ -79,10 +78,6 @@ describe LogStash::PluginMixins::RabbitMQConnection do
79
78
  it "should set the channel correctly" do
80
79
  expect(subject.channel).to eql(channel)
81
80
  end
82
-
83
- it "should set prefetch correctly" do
84
- expect(subject.channel.prefetch=50).to eql(50)
85
- end
86
81
  end
87
82
  end
88
83
 
@@ -117,4 +112,4 @@ describe LogStash::PluginMixins::RabbitMQConnection do
117
112
  expect(subject).to have_received(:sleep_for_retry).once
118
113
  end
119
114
  end
120
- end
115
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-mixin-rabbitmq_connection
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.2.0
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic