feat: retry CommitRequests that fail with UNAVAILABLE

PiperOrigin-RevId: 316514901
This commit is contained in:
Google APIs 2020-06-15 12:00:19 -07:00 committed by Copybara-Service
parent 9ba904b233
commit 9b170a4f3b
2 changed files with 15 additions and 6 deletions

View File

@ -15,7 +15,16 @@
"method": "Commit"
}
],
"timeout": "60s"
"timeout": "60s",
"retryPolicy": {
"maxAttempts": 5,
"initialBackoff": "0.100s",
"maxBackoff": "60s",
"backoffMultiplier": 1.3,
"retryableStatusCodes": [
"UNAVAILABLE"
]
}
},
{
"name": [

View File

@ -170,11 +170,6 @@ message StructuredQuery {
}
}
// A reference to a field, such as `max(messages.time) as max_time`.
message FieldReference {
string field_path = 2;
}
// An order on a field.
message Order {
// The field to order by.
@ -184,6 +179,11 @@ message StructuredQuery {
Direction direction = 2;
}
// A reference to a field, such as `max(messages.time) as max_time`.
message FieldReference {
string field_path = 2;
}
// The projection of document's fields to return.
message Projection {
// The fields to return.