beetle 2.2.1 → 2.2.2

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
  SHA256:
3
- metadata.gz: 84342deeb60438e7eb1b8b5d1fc5c2785d0cb149c05d27783fd1a5415ca89fb9
4
- data.tar.gz: fd6983f951df29e06446ac5923881d03055198b8d3d71fa7d0d60ab9e626ed7e
3
+ metadata.gz: 06b0f197efd399ed1714cdbe89657e091e129dd5ccc55fa5eb1d52b0726e3cf5
4
+ data.tar.gz: e0d259da5e1882bbb695ea0cf9f0b0e21775e41fd86318bd0ded3a4a2856c7c2
5
5
  SHA512:
6
- metadata.gz: 16c5d3f44758b727bdaa85c27c9c574773568c358f7265cbf09c63f90f1bfef340ec5fae75013fc91a54252af4f81b33ab3cf332f91fde0aec2708a640dcde47
7
- data.tar.gz: f601c50aaa542975cbf7a79b58f166825216ec496291989237f8904115b1260faaa6c8dd7e89586882150ac82c4f4f78209969347785571e09971d85dc5b2f17
6
+ metadata.gz: a55308b8e35bf17a59c6f3b4bad1d65cd1201388b8a624173685461b705e7c8c02512cde2283033c0e89dd492b77e3b2ece876bcfaee013e28f03be71474cbca
7
+ data.tar.gz: 13294eb823a02c5b4b0ec0a93eaf115dbd01bd1f6825fd44bb779cfc10c727f59c435bc5b7203108a1d6febc563ebb30fd8830511189df68e78ed6f6fd9f7c04
@@ -1,5 +1,13 @@
1
1
  = Release Notes
2
2
 
3
+ == Version 2.2.2
4
+
5
+ * Reset redis configuration server state when master becomes available during
6
+ pinging or invalidating. Unlike the former ruby implementation, the go code
7
+ continues checking redis availability during pinging or invalidating. However,
8
+ the code did not reset state properly, leading the UI to display 'switch in
9
+ progress' when in fact there wasn't.
10
+
3
11
  == Version 2.2.1
4
12
  * Subscriber exits with meaningful error log on possible authentication failures.
5
13
 
data/Rakefile CHANGED
@@ -42,6 +42,7 @@ namespace :rabbit do
42
42
  def create_config_file(config_file, web_port)
43
43
  File.open("#{config_file}.config",'w') do |f|
44
44
  f.puts "["
45
+ f.puts " {rabbit, [{channel_max, 1000}]},"
45
46
  f.puts " {rabbitmq_management, [{listener, [{port, #{web_port}}]}]}"
46
47
  f.puts "]."
47
48
  end
@@ -112,5 +113,5 @@ RDoc::Task.new do |rdoc|
112
113
  end
113
114
 
114
115
  task :clean do
115
- system('rm -f tmp/*.output tmp/*.log tmp/master/* tmp/slave/* tmp/*lock tmp/*pid')
116
+ system('rm -f tmp/*.output tmp/*.log tmp/master/* tmp/slave/* tmp/*lock tmp/*pid test.log')
116
117
  end
@@ -8,14 +8,13 @@ Gem::Specification.new do |s|
8
8
  s.required_rubygems_version = ">= 1.3.7"
9
9
  s.authors = ["Stefan Kaes", "Pascal Friederich", "Ali Jelveh", "Sebastian Roebke", "Larry Baltz"]
10
10
  s.date = Time.now.strftime('%Y-%m-%d')
11
- s.default_executable = "beetle"
12
11
  s.description = "A highly available, reliable messaging infrastructure"
13
12
  s.summary = "High Availability AMQP Messaging with Redundant Queues"
14
13
  s.email = "opensource@xing.com"
15
14
  s.executables = []
16
15
  s.extra_rdoc_files = Dir['**/*.rdoc'] + %w(MIT-LICENSE)
17
16
  s.files = Dir['{examples,lib}/**/*.rb'] + Dir['{features,script}/**/*'] + %w(beetle.gemspec Rakefile)
18
- s.homepage = "http://xing.github.com/beetle/"
17
+ s.homepage = "https://xing.github.com/beetle/"
19
18
  s.rdoc_options = ["--charset=UTF-8"]
20
19
  s.require_paths = ["lib"]
21
20
  s.test_files = Dir['test/**/*.rb']
@@ -55,8 +55,12 @@ module Beetle
55
55
  attr_accessor :user
56
56
  # the password to use when connectiong to the AMQP servers (defaults to <tt>"guest"</tt>)
57
57
  attr_accessor :password
58
- # the maximum permissible size of a frame (in bytes). Defaults to 128 KB
58
+ # the maximum permissible size of a frame (in bytes). defaults to 128 KB
59
59
  attr_accessor :frame_max
60
+ # the max number of channels the publisher tries to negotiate with the server. Defaults
61
+ # to 2047, which is the RabbitMQ default in 3.7. We can't set this to 0 because of a bug
62
+ # in bunny.
63
+ attr_accessor :channel_max
60
64
 
61
65
  # In contrast to RabbitMQ 2.x, RabbitMQ 3.x preserves message order when requeing a message. This can lead to
62
66
  # throughput degradation (when rejected messages block the processing of other messages
@@ -127,6 +131,7 @@ module Beetle
127
131
  self.password = "guest"
128
132
  self.api_port = 15672
129
133
  self.frame_max = 131072
134
+ self.channel_max = 2047
130
135
  self.prefetch_count = 1
131
136
 
132
137
  self.dead_lettering_enabled = false
@@ -166,6 +166,7 @@ module Beetle
166
166
  :pass => @client.config.password,
167
167
  :vhost => @client.config.vhost,
168
168
  :frame_max => @client.config.frame_max,
169
+ :channel_max => @client.config.channel_max,
169
170
  :socket_timeout => @client.config.publishing_timeout,
170
171
  :spec => '09')
171
172
  b.start
@@ -1,3 +1,3 @@
1
1
  module Beetle
2
- VERSION = "2.2.1"
2
+ VERSION = "2.2.2"
3
3
  end
@@ -25,6 +25,7 @@ module Beetle
25
25
  :vhost => "/",
26
26
  :socket_timeout => 0,
27
27
  :frame_max => 131072,
28
+ :channel_max => 2047,
28
29
  :spec => '09'
29
30
  }
30
31
  Bunny.expects(:new).with(expected_bunny_options).returns(m)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beetle
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Kaes
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2018-08-07 00:00:00.000000000 Z
15
+ date: 2019-02-17 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: uuid4r
@@ -373,7 +373,7 @@ files:
373
373
  - test/beetle/subscriber_test.rb
374
374
  - test/beetle_test.rb
375
375
  - test/test_helper.rb
376
- homepage: http://xing.github.com/beetle/
376
+ homepage: https://xing.github.com/beetle/
377
377
  licenses: []
378
378
  metadata: {}
379
379
  post_install_message:
@@ -392,8 +392,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
392
392
  - !ruby/object:Gem::Version
393
393
  version: 1.3.7
394
394
  requirements: []
395
- rubyforge_project:
396
- rubygems_version: 2.7.6
395
+ rubygems_version: 3.0.2
397
396
  signing_key:
398
397
  specification_version: 3
399
398
  summary: High Availability AMQP Messaging with Redundant Queues