Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[branch/v7] Respect Firestore commit write limits (#12111) #12175

Merged
merged 2 commits into from
Apr 25, 2022

Conversation

rosstimothy
Copy link
Contributor

Backport

This will backport the following commits from master to branch/v7:

Questions ?

Please refer to the Backport tool documentation

Firestore only allows 500 writes per commit. Prior to this change
DeleteRange or purgeExpiredDocuments could result in deleting
more than 500 documents and would result in an error. To comply with
the limits both DeletRange and purgeExpiredDocuments now call
deleteDocuments which properly handles limiting a batch to 500 writes
and commiting multiple times until all documents have been removed.

Fixes #12007

(cherry picked from commit b543b99)

# Conflicts:
#	lib/backend/firestore/firestorebk_test.go
@rosstimothy rosstimothy enabled auto-merge (squash) April 22, 2022 21:04
@rosstimothy rosstimothy merged commit 48e23c4 into branch/v7 Apr 25, 2022
@rosstimothy rosstimothy deleted the backport/branch/v7/pr-12111 branch April 25, 2022 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants