Skip to content

Retry requests in tests where we run out of admin request quota  #958

Closed
@skuruppu

Description

@skuruppu

We get flaky test failure notifications regularly due to the following error (#944 and issues referencing it):

8 RESOURCE_EXHAUSTED: Quota exceeded for quota metric 'Administrative requests' and limit 'Administrative requests per minute' of service 'spanner.googleapis.com' for consumer 'project_number:<project>'.
Error: 8 RESOURCE_EXHAUSTED: Quota exceeded for quota metric 'Administrative requests' and limit 'Administrative requests per minute' of service 'spanner.googleapis.com' for consumer 'project_number:<project>'.

I requested a quota increase for the project but the Spanner team recommended that we "implement exponential back-off with extended total timeout and number of re-tries for admin operations".

I think this is reasonable to do in the system and samples tests, starting with the create instance and database requests.

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.api: spannerIssues related to the googleapis/nodejs-spanner API.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions