aws-sdk-dynamodb 1.134.0 → 1.135.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-dynamodb/client.rb +5 -4
- data/lib/aws-sdk-dynamodb/plugins/extended_retries.rb +34 -10
- data/lib/aws-sdk-dynamodb.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: 2368462c4536ca2358bbca7754262045cd96aac37cafd504283f97b629743364
|
4
|
+
data.tar.gz: 2740ad8fc2e2849fbb2b54be577fd22e02c04eae0aae431786bbdd0ebaad0dac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffde9da1b687ce79d151dd8187569caf2f3f65fa215bcaaa06e3e50dd1c1c2fd5b476275a9fd5e9e51e526c00790c498c0d3c8169153a70eb7ba5452f190f450
|
7
|
+
data.tar.gz: 9bb27b429e6ae8112162060d3e2d37db569ca163ef6aeec5d2cda36e60cb537d3f8cfafcb142a2cdb6587413ae3e45a55c1a7f8199ba1f311a89baaad5ab79de
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.135.0 (2025-01-30)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
* Issue - Allow other retry configs to influence DynamoDB extended retries.
|
10
|
+
|
4
11
|
1.134.0 (2025-01-15)
|
5
12
|
------------------
|
6
13
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.135.0
|
@@ -301,7 +301,7 @@ module Aws::DynamoDB
|
|
301
301
|
# A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
|
302
302
|
# This option is only used in the `legacy` retry mode.
|
303
303
|
#
|
304
|
-
# @option options [Float] :retry_base_delay (0.
|
304
|
+
# @option options [Float] :retry_base_delay (0.05)
|
305
305
|
# The base delay in seconds used by the default backoff function. This option
|
306
306
|
# is only used in the `legacy` retry mode.
|
307
307
|
#
|
@@ -317,8 +317,9 @@ module Aws::DynamoDB
|
|
317
317
|
# The maximum number of times to retry failed requests. Only
|
318
318
|
# ~ 500 level server errors and certain ~ 400 level client errors
|
319
319
|
# are retried. Generally, these are throttling errors, data
|
320
|
-
# checksum errors, networking errors, timeout errors
|
321
|
-
# errors from expired credentials.
|
320
|
+
# checksum errors, networking errors, timeout errors, auth errors,
|
321
|
+
# endpoint discovery, and errors from expired credentials.
|
322
|
+
# This option is only used in the `legacy` retry mode.
|
322
323
|
#
|
323
324
|
# @option options [Integer] :retry_max_delay (0)
|
324
325
|
# The maximum number of seconds to delay between retries (0 for no limit)
|
@@ -8625,7 +8626,7 @@ module Aws::DynamoDB
|
|
8625
8626
|
tracer: tracer
|
8626
8627
|
)
|
8627
8628
|
context[:gem_name] = 'aws-sdk-dynamodb'
|
8628
|
-
context[:gem_version] = '1.
|
8629
|
+
context[:gem_version] = '1.135.0'
|
8629
8630
|
Seahorse::Client::Request.new(handlers, context)
|
8630
8631
|
end
|
8631
8632
|
|
@@ -4,25 +4,49 @@ module Aws
|
|
4
4
|
module DynamoDB
|
5
5
|
module Plugins
|
6
6
|
class ExtendedRetries < Seahorse::Client::Plugin
|
7
|
+
DEFAULT_BACKOFF = lambda do |c|
|
8
|
+
return unless c.retries > 1
|
7
9
|
|
8
|
-
|
10
|
+
delay = 2**(c.retries - 1) * c.config.retry_base_delay
|
11
|
+
if (c.config.retry_max_delay || 0) > 0
|
12
|
+
delay = [delay, c.config.retry_max_delay].min
|
13
|
+
end
|
14
|
+
jitter = c.config.retry_jitter
|
15
|
+
jitter = Aws::Plugins::RetryErrors::JITTERS[jitter] if jitter.is_a?(Symbol)
|
16
|
+
delay = jitter.call(delay) if jitter
|
17
|
+
Kernel.sleep(delay)
|
18
|
+
end
|
19
|
+
|
20
|
+
option(
|
21
|
+
:retry_limit,
|
9
22
|
default: 10,
|
10
|
-
required: false,
|
11
23
|
doc_type: Integer,
|
12
24
|
docstring: <<-DOCS)
|
13
25
|
The maximum number of times to retry failed requests. Only
|
14
26
|
~ 500 level server errors and certain ~ 400 level client errors
|
15
27
|
are retried. Generally, these are throttling errors, data
|
16
|
-
checksum errors, networking errors, timeout errors
|
17
|
-
errors from expired credentials.
|
18
|
-
|
28
|
+
checksum errors, networking errors, timeout errors, auth errors,
|
29
|
+
endpoint discovery, and errors from expired credentials.
|
30
|
+
This option is only used in the `legacy` retry mode.
|
31
|
+
DOCS
|
19
32
|
|
20
|
-
option(
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
33
|
+
option(
|
34
|
+
:retry_base_delay,
|
35
|
+
default: 0.05,
|
36
|
+
doc_type: Float,
|
37
|
+
docstring: <<-DOCS)
|
38
|
+
The base delay in seconds used by the default backoff function. This option
|
39
|
+
is only used in the `legacy` retry mode.
|
40
|
+
DOCS
|
25
41
|
|
42
|
+
option(
|
43
|
+
:retry_backoff,
|
44
|
+
default: DEFAULT_BACKOFF,
|
45
|
+
doc_type: Proc,
|
46
|
+
docstring: <<-DOCS)
|
47
|
+
A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
|
48
|
+
This option is only used in the `legacy` retry mode.
|
49
|
+
DOCS
|
26
50
|
end
|
27
51
|
end
|
28
52
|
end
|
data/lib/aws-sdk-dynamodb.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-dynamodb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.135.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-01-
|
11
|
+
date: 2025-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|