Skip to content

Commit 2993832

Browse files
Google APIscopybara-github
authored andcommitted
fix: retry RESOURCE_EXHAUSTED errors
docs: various documentation improvements PiperOrigin-RevId: 367054341
1 parent 9a386bc commit 2993832

7 files changed

Lines changed: 32 additions & 6 deletions

File tree

google/firestore/v1/common.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

google/firestore/v1/document.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

google/firestore/v1/firestore.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

google/firestore/v1/firestore_grpc_service_config.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"maxBackoff": "60s",
2323
"backoffMultiplier": 1.3,
2424
"retryableStatusCodes": [
25+
"RESOURCE_EXHAUSTED",
2526
"UNAVAILABLE"
2627
]
2728
}
@@ -48,6 +49,7 @@
4849
"maxBackoff": "60s",
4950
"backoffMultiplier": 1.3,
5051
"retryableStatusCodes": [
52+
"RESOURCE_EXHAUSTED",
5153
"UNAVAILABLE",
5254
"INTERNAL",
5355
"DEADLINE_EXCEEDED"
@@ -68,6 +70,7 @@
6870
"maxBackoff": "60s",
6971
"backoffMultiplier": 1.3,
7072
"retryableStatusCodes": [
73+
"RESOURCE_EXHAUSTED",
7174
"UNAVAILABLE",
7275
"INTERNAL",
7376
"DEADLINE_EXCEEDED"
@@ -117,6 +120,7 @@
117120
"maxBackoff": "60s",
118121
"backoffMultiplier": 1.3,
119122
"retryableStatusCodes": [
123+
"RESOURCE_EXHAUSTED",
120124
"UNAVAILABLE",
121125
"INTERNAL",
122126
"DEADLINE_EXCEEDED"
@@ -137,6 +141,7 @@
137141
"maxBackoff": "60s",
138142
"backoffMultiplier": 1.3,
139143
"retryableStatusCodes": [
144+
"RESOURCE_EXHAUSTED",
140145
"UNAVAILABLE",
141146
"ABORTED"
142147
]

google/firestore/v1/firestore_v1.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,19 @@ documentation:
1010
summary: |-
1111
Accesses the NoSQL document database built for automatic scaling, high
1212
performance, and ease of application development.
13+
rules:
14+
- selector: google.cloud.location.Locations.GetLocation
15+
description: Gets information about a location.
16+
17+
- selector: google.cloud.location.Locations.ListLocations
18+
description: Lists information about the supported locations for this service.
1319

1420
backend:
1521
rules:
22+
- selector: google.cloud.location.Locations.GetLocation
23+
deadline: 295.0
24+
- selector: google.cloud.location.Locations.ListLocations
25+
deadline: 295.0
1626
- selector: 'google.firestore.v1.Firestore.*'
1727
deadline: 295.0
1828
- selector: 'google.longrunning.Operations.*'
@@ -32,6 +42,16 @@ http:
3242

3343
authentication:
3444
rules:
45+
- selector: google.cloud.location.Locations.GetLocation
46+
oauth:
47+
canonical_scopes: |-
48+
https://www.googleapis.com/auth/cloud-platform,
49+
https://www.googleapis.com/auth/datastore
50+
- selector: google.cloud.location.Locations.ListLocations
51+
oauth:
52+
canonical_scopes: |-
53+
https://www.googleapis.com/auth/cloud-platform,
54+
https://www.googleapis.com/auth/datastore
3555
- selector: 'google.firestore.v1.Firestore.*'
3656
oauth:
3757
canonical_scopes: |-

google/firestore/v1/query.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

google/firestore/v1/write.proto

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -80,7 +80,8 @@ message DocumentTransform {
8080
SERVER_VALUE_UNSPECIFIED = 0;
8181

8282
// The time at which the server processed the request, with millisecond
83-
// precision.
83+
// precision. If used on multiple fields (same or different documents) in
84+
// a transaction, all the fields will get the same server timestamp.
8485
REQUEST_TIME = 1;
8586
}
8687

0 commit comments

Comments
 (0)