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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1d65e714f38f6431486cd9c2ae8d86e02226f0b1292dca145f056aba3888b05f
4
- data.tar.gz: 1c3c4b620ebee9d56ec76523d927149e47cfbc870546483042fe4731e1e7f310
3
+ metadata.gz: 8ecac559be38dab0f9581c922e57ac374d7725102ae643a07f15ba0a9d47dd7d
4
+ data.tar.gz: a7f30fccbf59d7ab9a9f1a227725ea4f8e46b2a9aa10ddc2ac0c97ba873bcf61
5
5
  SHA512:
6
- metadata.gz: 92751dce5ea5a2d1dcb905f01c9c33678e1cd76999e8d0ee1d59610fd3bcad6f5938a92013a8e2b11f7667a0c50d6b7ac5c8081d113a12f58a429d986e53353a
7
- data.tar.gz: b72c80bc12e2852e091d5ad267674cb9238ec7aaa63e3b67304945d0ccc00f55c3f2594a1655d3235ee8b69b362bef00c5793eda5a339fe774a0583f829600ca
6
+ metadata.gz: 268bdf1584a8082d37b4e863397439df1961a208e771ed7f600f93b78d8125c159855dc98f7655b0dbdd4d51f3e9a554c6ca36122bb3f01fb5a08d878f378680
7
+ data.tar.gz: 20cc8ea824e636bb051b9f4c7fd2bd9862263592f2eca0bf21a00a24e45f3b4049acd2a0801314e79fd6be05a04a93f2fc1fbda3653a7c6852e36d04d2816a27
@@ -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)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails_failover (0.5.8)
4
+ rails_failover (0.5.9)
5
5
  activerecord (~> 6.0)
6
6
  railties (~> 6.0)
7
7
 
@@ -208,7 +208,11 @@ module RailsFailover
208
208
  has_lock = redis.mon_try_enter
209
209
 
210
210
  if !has_lock
211
- client.connection.shutdown_socket
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsFailover
4
- VERSION = "0.5.8"
4
+ VERSION = "0.5.9"
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.5.8
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-05 00:00:00.000000000 Z
11
+ date: 2020-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord