rails_failover 0.6.0 → 0.6.1

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: dea60f6f50e09e45029bc4f73d89eadefd569935d6855c3542f82aa3e1a01b3f
4
- data.tar.gz: 5ccd925be0977242e1f139481b59a3feb3e0a4a9dbf19f8cf21064466fcdbcb4
3
+ metadata.gz: dd1e8f697f988b96e0c149599da43cd69946dd19b06cbe8be89727f6d0775776
4
+ data.tar.gz: 1119bda19483587f9dc3a7c3a41017b30d66f266342c7e818d1fe9e16a14c997
5
5
  SHA512:
6
- metadata.gz: d39ff2d6eb505dff92151c884bb7ec3aa608d4bd29c79eea2a0e2e965b8eec6ab787f930128e0d3ffcbbfb1eb2cedccf1a8fa30417eff4d3a2cfea40d536d0a7
7
- data.tar.gz: 2b36aa85cff837f80b0876ce7b2af3017c935601ec5c5329f2bab26f5ccb395d8dd50111bee7dbf3ad2bb6e15cb22f2aa18f9fff89b3a101689f1d5036371f7e
6
+ metadata.gz: 4a1f151de2cb49d0728d01de7e62b569f80a025e21401b083a5662e8f967b29c1a6df8b283f02da047b5ce39c190363768b892144d6c28e9dffc2aad2c69d26f
7
+ data.tar.gz: 9b48b8054f3ae13ec473b7a0869bdbb09ff7f05c6149e9602d1cd2c131383b0be3701ee607aeac2d5cd013e5a59f187a009799e948c4e9bcb7598763ef8932d6
@@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.6.1] - 2020-11-19
10
+
11
+ - FIX: Recover correctly if both the primary and replica go offline
12
+
13
+ Previously, a replica failing would cause it to be added to the 'primaries_down' list. The fallback handler would then continuously try and fallback the replica to itself, looping forever, and meaning that fallback to primary would never happen.
14
+
9
15
  ## [0.6.0] - 2020-11-09
10
16
  - FEATURE: Run failover/fallback callbacks once for each backend
11
17
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails_failover (0.6.0)
4
+ rails_failover (0.6.1)
5
5
  activerecord (~> 6.0)
6
6
  railties (~> 6.0)
7
7
 
@@ -38,7 +38,7 @@ GEM
38
38
  concurrent-ruby (1.1.6)
39
39
  crass (1.0.6)
40
40
  diff-lcs (1.3)
41
- erubi (1.9.0)
41
+ erubi (1.10.0)
42
42
  i18n (1.8.2)
43
43
  concurrent-ruby (~> 1.0)
44
44
  loofah (2.7.0)
@@ -26,7 +26,7 @@ module RailsFailover
26
26
  Errno::ETIMEDOUT,
27
27
  Errno::EINVAL => e
28
28
 
29
- Handler.instance.verify_primary(options)
29
+ Handler.instance.verify_primary(options) if !is_failover_replica
30
30
  raise e
31
31
  end
32
32
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsFailover
4
- VERSION = "0.6.0"
4
+ VERSION = "0.6.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_failover
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alan Tan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-11-09 00:00:00.000000000 Z
11
+ date: 2020-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord