right_infrastructure_agent 1.1.3 → 1.1.4

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: 018098cb97ad1c547d96bb5d75a22dd722c6a3fa
4
- data.tar.gz: 182363fe396c9ca96b476de9e63a58dd0b4531f9
3
+ metadata.gz: 596c56ba8756ec6dfba54af77974094be8d270a4
4
+ data.tar.gz: 341d620ed223b1456ec935dcbbc7b74a1a79d909
5
5
  SHA512:
6
- metadata.gz: 600d57f88a0b3451bf641dc1538eba8dfaed645c45351c96ba09f6adc92dd5ff50a5b19bf06ef05aa00b298ad142dfc898fccb7cf3f85a4a03b93109baeebe72
7
- data.tar.gz: 448bf97ceca3fc44fc9c8ecdc96cfce0e05fd2448cc7f97e2bdf46724a77cabeaac89645436fc0befab01c7b67788620f36e913cf362152fb23a091afb23e83b
6
+ metadata.gz: 72c1b1d847e9fd0ee93e2e5d1999e7699f6415cb14adf3a30d9ce712ceb032081eb75ccf1e8c0752b52041b8b3876f0f2c558f4f63f42b8dec540c524c69b19a
7
+ data.tar.gz: d87575a698c4352f9073987ac1e72dab87fc3f61c9fbfcd9cf1da7f49da304faea276cb3b2fc53e769450fa718777883a33ed9a32ad95aa69983cde0d08ec28e
@@ -27,7 +27,7 @@ module RightScale
27
27
  # Update the specified right_site core object (class_name, id) so that its attributes
28
28
  # match those of the global object
29
29
  #
30
- # @param :source [String] Replication source, e.g., 'library' or 'wasabi'
30
+ # @param :source [String] Replication source, e.g., 'library'
31
31
  # @param :class_name [String] Name of the object class being updated
32
32
  # @param :id [Integer] Unique identifier of the object being updated
33
33
  # @param :schema_version [Integer] Schema version of the model (class)
@@ -64,7 +64,7 @@ module RightScale
64
64
  # Compare checksum parameter of a replicated table and, if they do not match,
65
65
  # begin the synchronization process by sending verify_replica_range to replicator source
66
66
  #
67
- # @param :source [String] Replication source, e.g., 'library' or 'wasabi'
67
+ # @param :source [String] Replication source, e.g., 'library'
68
68
  # @param :class_name [String] Name of a class that acts_as_global_object_replica
69
69
  # @param :checksum_type [String] Type of checksum: only 'global_object_version_sum'
70
70
  # @param :checksum_value [Integer, NilClass] Sum of global_object_versions for the table
@@ -110,7 +110,7 @@ module RightScale
110
110
  # Update rows using any received synchronization data and send a
111
111
  # verify_replica_range request for the next range to process
112
112
  #
113
- # @param :source [String] Replication source, e.g., 'library' or 'wasabi'
113
+ # @param :source [String] Replication source, e.g., 'library'
114
114
  # @param :class_name [String] Name of a class that acts_as_global_object_replica
115
115
  # @param :checksum_type [String] Type of checksum: only 'global_object_version_sum'
116
116
  # @param :max_id_at_start [Integer] Max ID of the replica_class when first
@@ -183,7 +183,7 @@ module RightScale
183
183
 
184
184
  # Calculate the checksum for the next synchronization range and send to the replication source
185
185
  #
186
- # @param :source [String] Replication source, e.g., 'library' or 'wasabi'
186
+ # @param :source [String] Replication source, e.g., 'library'
187
187
  # @param replica_class [Class] Class that acts_as_global_object_replica
188
188
  # @param checksum_type [String] Type of checksum to perform: only 'global_object_version_sum'
189
189
  # @param max_id_at_start [Integer] Max ID of the replica_class when first
@@ -197,7 +197,6 @@ module RightScale
197
197
  def verify_next_replica_range(source, replica_class, checksum_type, max_id_at_start, begin_id, end_id)
198
198
  replicator = case source # TODO Replace this with "#{source}_replicator" once all replicator actors gone
199
199
  when "library" then "library_replicator"
200
- when "wasabi" then "wasabi_replicator_source"
201
200
  else raise ArgumentError, "Unknown replication source: #{source.inspect}"
202
201
  end
203
202
  payload = {
@@ -79,8 +79,7 @@ module RightScale
79
79
  end
80
80
 
81
81
  replicator = case params[:sink] # TODO Replace this with "#{params[:sink]}_replicator" once all replicator actors gone
82
- when "core" then (global_object_replicator_source == "library") ? "replicator" : "wasabi_replicator_sink"
83
- when "library" then "wasabi_replicator_sink"
82
+ when "core" then "core_replicator"
84
83
  else raise ArgumentError, "Unknown replication sink: #{params[:sink].inspect}"
85
84
  end
86
85
  payload = {
@@ -24,8 +24,8 @@ require 'rubygems'
24
24
 
25
25
  Gem::Specification.new do |spec|
26
26
  spec.name = 'right_infrastructure_agent'
27
- spec.version = '1.1.3'
28
- spec.date = '2014-08-08'
27
+ spec.version = '1.1.4'
28
+ spec.date = '2014-08-22'
29
29
  spec.authors = ['Lee Kirchhoff', 'Raphael Simon']
30
30
  spec.email = 'lee@rightscale.com'
31
31
  spec.homepage = 'https://github.com/rightscale/right_infrastructure_agent'
@@ -74,7 +74,7 @@ describe RightScale::GlobalObjectReplicatorSource do
74
74
  it "sends synchronize_replica_range request to sink with records to synchronize" do
75
75
  flexmock(EM).should_receive(:next_tick).and_yield.once
76
76
  flexmock(FakeGlobalSourceObject).should_receive(:get_initialization_hashes).and_return([{:a => :b}]).once
77
- flexmock(RightScale::RightHttpClient).should_receive(:push).with("/replicator/synchronize_replica_range",
77
+ flexmock(RightScale::RightHttpClient).should_receive(:push).with("/core_replicator/synchronize_replica_range",
78
78
  on { |arg| arg[:records_to_synchronize] == [{:a => :b}] }, :scope => {:shard => 9}).once
79
79
  @request_params[:checksum_value] = 999
80
80
  @controller.verify_replica_range.should be_true
@@ -83,7 +83,7 @@ describe RightScale::GlobalObjectReplicatorSource do
83
83
  it "does not get records to synchronize if send_records_on_checksum_mismatch is false" do
84
84
  flexmock(EM).should_receive(:next_tick).and_yield.once
85
85
  flexmock(FakeGlobalSourceObject).should_receive(:get_initialization_hashes).never
86
- flexmock(RightScale::RightHttpClient).should_receive(:push).with("/replicator/synchronize_replica_range",
86
+ flexmock(RightScale::RightHttpClient).should_receive(:push).with("/core_replicator/synchronize_replica_range",
87
87
  on { |arg| arg[:records_to_synchronize] == [] }, :scope => {:shard => 9}).once
88
88
  @request_params[:checksum_value] = 999
89
89
  @request_params[:send_records_on_checksum_mismatch] = false
@@ -93,7 +93,7 @@ describe RightScale::GlobalObjectReplicatorSource do
93
93
  it "does not get records to synchronize if the received checksum matches the calculated checksum" do
94
94
  flexmock(EM).should_receive(:next_tick).and_yield.once
95
95
  flexmock(FakeGlobalSourceObject).should_receive(:get_initialization_hashes).never
96
- flexmock(RightScale::RightHttpClient).should_receive(:push).with("/replicator/synchronize_replica_range",
96
+ flexmock(RightScale::RightHttpClient).should_receive(:push).with("/core_replicator/synchronize_replica_range",
97
97
  on { |arg| arg[:records_to_synchronize] == [] }, :scope => {:shard => 9}).once
98
98
  @controller.verify_replica_range.should be_true
99
99
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: right_infrastructure_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Kirchhoff
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-08-08 00:00:00.000000000 Z
12
+ date: 2014-08-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: right_support