Skip to content

Commit

Permalink
fix: retry PartitionQuery for INTERNAL and DEADLINE_EXCEEDED
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 337565369

Source-Author: Google APIs <noreply@google.com>
Source-Date: Fri Oct 16 13:17:26 2020 -0700
Source-Repo: googleapis/googleapis
Source-Sha: 4f3ef93916730f1639179ad623c65279ff5799e7
Source-Link: googleapis/googleapis@4f3ef93
  • Loading branch information
yoshi-automation authored and jskeet committed Oct 17, 2020
1 parent 37972de commit 9f32781
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -197,10 +197,10 @@ private FirestoreSettings(FirestoreSettings existing) : base(existing)
/// <item><description>Retry delay multiplier: 1.3</description></item>
/// <item><description>Retry maximum delay: 60000 milliseconds.</description></item>
/// <item><description>Maximum attempts: 5</description></item>
/// <item><description>Timeout: 60 seconds.</description></item>
/// <item><description>Timeout: 300 seconds.</description></item>
/// </list>
/// </remarks>
public gaxgrpc::CallSettings PartitionQuerySettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(60000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable)));
public gaxgrpc::CallSettings PartitionQuerySettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(300000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 5, initialBackoff: sys::TimeSpan.FromMilliseconds(100), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.Internal, grpccore::StatusCode.DeadlineExceeded)));

/// <summary>
/// <see cref="gaxgrpc::CallSettings"/> for synchronous and asynchronous calls to <c>FirestoreClient.Write</c>
Expand Down
2 changes: 1 addition & 1 deletion apis/Google.Cloud.Firestore.V1/synth.metadata
Expand Up @@ -4,7 +4,7 @@
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "610bf8f0262846bd1bc045a2913631c00e5e0199"
"sha": "4f3ef93916730f1639179ad623c65279ff5799e7"
}
}
]
Expand Down

0 comments on commit 9f32781

Please sign in to comment.