Skip to content

Commit 0c3be62

Browse files
authored
fix failure to register connection recovery hooks (#23)
Connection recovery hooks, as released in March Hare 4.0.0, provide an `Session#on_recovery_start`, not `Session#on_recovery_started`.
1 parent 8cc3b95 commit 0c3be62

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 7.0.2
2+
- Fixes issue in Output where failure to register connection reovery hooks prevented the output from starting
3+
14
## 7.0.1
25
- Improves Input Plugin documentation to better align with upstream guidance [#4](https://github.com/logstash-plugins/logstash-integration-rabbitmq/pull/4)
36

lib/logstash/outputs/rabbitmq.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def back_pressure_provider_for_connection(march_hare_connection)
118118
march_hare_connection.on_unblocked do
119119
executor.remove_back_pressure('connection flagged as unblocked')
120120
end
121-
march_hare_connection.on_recovery_started do
121+
march_hare_connection.on_recovery_start do
122122
executor.engage_back_pressure("connection is being recovered")
123123
end
124124
march_hare_connection.on_recovery do

logstash-integration-rabbitmq.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Gem::Specification.new do |s|
22
s.name = 'logstash-integration-rabbitmq'
3-
s.version = '7.0.1'
3+
s.version = '7.0.2'
44
s.licenses = ['Apache License (2.0)']
55
s.summary = "Integration with RabbitMQ - input and output plugins"
66
s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline "+

spec/outputs/rabbitmq_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
allow(connection).to receive(:on_blocked)
6161
allow(connection).to receive(:on_unblocked)
6262
allow(connection).to receive(:on_shutdown)
63-
allow(connection).to receive(:on_recovery_started)
63+
allow(connection).to receive(:on_recovery_start)
6464
allow(connection).to receive(:on_recovery)
6565
allow(channel).to receive(:exchange).and_return(exchange)
6666

0 commit comments

Comments
 (0)