rails_failover 0.5.8 → 0.5.9
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 +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/lib/rails_failover/redis/handler.rb +5 -1
- data/lib/rails_failover/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8ecac559be38dab0f9581c922e57ac374d7725102ae643a07f15ba0a9d47dd7d
|
|
4
|
+
data.tar.gz: a7f30fccbf59d7ab9a9f1a227725ea4f8e46b2a9aa10ddc2ac0c97ba873bcf61
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 268bdf1584a8082d37b4e863397439df1961a208e771ed7f600f93b78d8125c159855dc98f7655b0dbdd4d51f3e9a554c6ca36122bb3f01fb5a08d878f378680
|
|
7
|
+
data.tar.gz: 20cc8ea824e636bb051b9f4c7fd2bd9862263592f2eca0bf21a00a24e45f3b4049acd2a0801314e79fd6be05a04a93f2fc1fbda3653a7c6852e36d04d2816a27
|
data/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.5.9] - 2020-11-06
|
|
10
|
+
- FIX: Ignore errors from the redis socket shutdown call
|
|
11
|
+
|
|
12
|
+
This can fail with various i/o errors, but in all cases we want the thread to continue closing the connection with the error, and all the other connections.
|
|
13
|
+
|
|
9
14
|
## [0.5.8] - 2020-11-05
|
|
10
15
|
|
|
11
16
|
- FIX: Handle concurrency issues during redis disconnection (#10)
|
data/Gemfile.lock
CHANGED
|
@@ -208,7 +208,11 @@ module RailsFailover
|
|
|
208
208
|
has_lock = redis.mon_try_enter
|
|
209
209
|
|
|
210
210
|
if !has_lock
|
|
211
|
-
|
|
211
|
+
begin
|
|
212
|
+
client.connection.shutdown_socket
|
|
213
|
+
rescue => e
|
|
214
|
+
logger&.warn "Redis shutdown_socket for (#{role}) failed with #{e.class} '#{e.message}'"
|
|
215
|
+
end
|
|
212
216
|
|
|
213
217
|
waiting_since = Process.clock_gettime(Process::CLOCK_MONOTONIC)
|
|
214
218
|
loop do # Keep trying
|
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.5.
|
|
4
|
+
version: 0.5.9
|
|
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-
|
|
11
|
+
date: 2020-11-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|