lhm-shopify 4.2.0 → 4.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b1a16e83f2a989c0624948b4ef8bfe2c3b7359aa1420ee5d2c41dee1b9ec6e29
4
- data.tar.gz: 9baa1e49780b70edd51caec39460a3ad440f2d7f10f65aa8295da541a762cd42
3
+ metadata.gz: dec22d00a0a019706b1a6d62e85e416caf210aa2d0b4f77bb3ccf562f1db8fb2
4
+ data.tar.gz: 181acf59e61b100dc3320b6674a7cd13a2a1dcf767c7259a88a58dbf4b826bf5
5
5
  SHA512:
6
- metadata.gz: 0d96f3ba67d232682ecb5fa27f9f7cb33f850125546364a41ede17c6dda187e00d8b91e6ab8a5189022e9fd3117af4e9bb6272c1392d0d8510252cea6ae9ac00
7
- data.tar.gz: 407a0497d1ce019d3f7e835ceb157441a1cd76f5723a7a7d3a61d95c2232adb42ac56b6aba9b07d5720eeeab0e6ce6a68d50d297dbd9736fd4e641835d372a86
6
+ metadata.gz: 8c197de7b7658cdb9c31dd91adde7fdaf54505bc7e910812d8c80edf447f6266630c08a80d773391071c518f72b9527280e1ece7e2bdc00bc60d5a8c22f294ed
7
+ data.tar.gz: 6f1f7da4e1bd2e61fb8921eb9e724408d01ee576d98eb8ba393c2c2dada846368ec2a187e5c61d77f3691290edc815addd0e93acb8e1fa065c206564243ef798
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Unreleased
2
2
 
3
+ # 4.2.1 (Mar, 2024)
4
+ * Retry more errors when using Trilogy.
5
+
3
6
  # 4.2.0 (Mar, 2024)
4
7
  * Support `DROP DEFAULT` & `SET DEFAULT` in `change_column` operations.
5
8
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lhm-shopify (4.2.0)
4
+ lhm-shopify (4.2.1)
5
5
  retriable (>= 3.0.0)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- lhm-shopify (4.2.0)
4
+ lhm-shopify (4.2.1)
5
5
  retriable (>= 3.0.0)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- lhm-shopify (4.2.0)
4
+ lhm-shopify (4.2.1)
5
5
  retriable (>= 3.0.0)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- lhm-shopify (4.2.0)
4
+ lhm-shopify (4.2.1)
5
5
  retriable (>= 3.0.0)
6
6
 
7
7
  GEM
data/lib/lhm/sql_retry.rb CHANGED
@@ -186,13 +186,26 @@ module Lhm
186
186
  def retriable_trilogy_errors
187
187
  return unless defined?(Trilogy::BaseError)
188
188
 
189
- {
189
+ errors = {
190
190
  ActiveRecord::StatementInvalid => [
191
- # Those sometimes appear as Trilogy::TimeoutError, and sometimes as ActiveRecord::StatementInvalid
192
191
  /Lock wait timeout exceeded/,
192
+ /Timeout waiting for a response from the last query/,
193
+ /Deadlock found when trying to get lock/,
194
+ /Query execution was interrupted/,
195
+ /Lost connection to MySQL server during query/,
196
+ /Max connect timeout reached/,
197
+ /Unknown MySQL server host/,
198
+ /connection is locked to hostgroup/,
199
+ /The MySQL server is running with the --read-only option so it cannot execute this statement/,
193
200
  ],
194
201
  Trilogy::ConnectionError => nil,
195
202
  }
203
+
204
+ if ActiveRecord::VERSION::STRING >= "7.1"
205
+ errors[ActiveRecord::ConnectionFailed] = nil
206
+ end
207
+
208
+ errors
196
209
  end
197
210
  end
198
211
  end
data/lib/lhm/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
  # Schmidt
3
3
 
4
4
  module Lhm
5
- VERSION = '4.2.0'
5
+ VERSION = '4.2.1'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lhm-shopify
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.0
4
+ version: 4.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - SoundCloud
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2024-03-04 00:00:00.000000000 Z
15
+ date: 2024-03-11 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: retriable