From 9f32781fd4edfce7e509a55c3e8b364043bbe5cd Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Fri, 16 Oct 2020 22:41:21 -0700 Subject: [PATCH] fix: retry PartitionQuery for INTERNAL and DEADLINE_EXCEEDED PiperOrigin-RevId: 337565369 Source-Author: Google APIs Source-Date: Fri Oct 16 13:17:26 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: 4f3ef93916730f1639179ad623c65279ff5799e7 Source-Link: https://github.com/googleapis/googleapis/commit/4f3ef93916730f1639179ad623c65279ff5799e7 --- .../Google.Cloud.Firestore.V1/FirestoreClient.g.cs | 4 ++-- apis/Google.Cloud.Firestore.V1/synth.metadata | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apis/Google.Cloud.Firestore.V1/Google.Cloud.Firestore.V1/FirestoreClient.g.cs b/apis/Google.Cloud.Firestore.V1/Google.Cloud.Firestore.V1/FirestoreClient.g.cs index 128e7039d1d9..2a5913feecc7 100644 --- a/apis/Google.Cloud.Firestore.V1/Google.Cloud.Firestore.V1/FirestoreClient.g.cs +++ b/apis/Google.Cloud.Firestore.V1/Google.Cloud.Firestore.V1/FirestoreClient.g.cs @@ -197,10 +197,10 @@ private FirestoreSettings(FirestoreSettings existing) : base(existing) /// Retry delay multiplier: 1.3 /// Retry maximum delay: 60000 milliseconds. /// Maximum attempts: 5 - /// Timeout: 60 seconds. + /// Timeout: 300 seconds. /// /// - 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))); /// /// for synchronous and asynchronous calls to FirestoreClient.Write diff --git a/apis/Google.Cloud.Firestore.V1/synth.metadata b/apis/Google.Cloud.Firestore.V1/synth.metadata index da62684eb3c6..d78934277240 100644 --- a/apis/Google.Cloud.Firestore.V1/synth.metadata +++ b/apis/Google.Cloud.Firestore.V1/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "610bf8f0262846bd1bc045a2913631c00e5e0199" + "sha": "4f3ef93916730f1639179ad623c65279ff5799e7" } } ]