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

source-firestore: Increase re-backfill period from 6h to 24h #2266

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

willdonnelly
Copy link
Member

@willdonnelly willdonnelly commented Jan 10, 2025

Description:

Typically the whole "we have to go re-backfill the collection because it's inconsistent" thing only triggers on massive collections which are likely to fail again in the future, and Firestore is really an expensive datastore, so having a default of re-backfilling these collections at most once per day is a nontrivial cost savings.

I'm taking the simplest, dumbest possible route here and just changing the existing hard-coded constant from 6 to 24 hours.

I'd like to go and make this user-configurable at some point, but that's actually more complicated than it seems because of how multiple bindings can share a collection ID and thus fail and need restarting as a group.

This fixes #2250


This change is Reviewable

Typically the whole "we have to go re-backfill the collection
because it's inconsistent" thing only triggers on massive
collections which are likely to fail again in the future,
_and_ Firestore is really an expensive datastore, so having
a default of re-backfilling these collections at most once per
day is a nontrivial cost savings.

I'm taking the simplest, dumbest possible route here and just
changing the existing hard-coded constant from 6 to 24 hours.

I'd like to go and make this user-configurable at some point,
but that's actually more complicated than it seems because
of how multiple bindings can share a collection ID and thus
fail and need restarting as a group.
@willdonnelly willdonnelly requested a review from a team January 10, 2025 22:23
@willdonnelly willdonnelly added the change:unplanned Unplanned change, useful for things like doc updates label Jan 10, 2025
Copy link
Member

@williamhbaker williamhbaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change:unplanned Unplanned change, useful for things like doc updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cap backfills for Firestore at once per day
2 participants