logstash-mixin-rabbitmq_connection 2.1.1-java → 2.2.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26e6cfa3a4a661638b979b884f172bd07d2d0426
|
4
|
+
data.tar.gz: ee0fe980fde278c0b3f98361c1a0a1f3e9bdec8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85d7e522e451945751689c2839443897d6b213f06ebe8d021f1e8dda7c6f7384e7df8dbbb8391c492e608d122ef04837640256052e661f1e75bd714b0b66e2f5
|
7
|
+
data.tar.gz: 28a86471a5dbf42f52d99647acc5efcf8a66fe1cbe06e206b541478ed89b2557ccc2f11ad27ee1486852f21b6aef4dad5b2205792bbf2094aad60848cc527e0a
|
data/CHANGELOG
CHANGED
@@ -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.
|
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
|