Skip to content

Refactor BulkWriter retries #15385

Open
Open

Description

@daniel-sanche

There are a number of issues with the current BulkWriter retry implementation:

  • the limit of 15 retries is hard-coded, not user configurable
  • the BulkWriter-level retries doesn't limit the underlying gapi-clevel retries, resulting in potentially very slow retries
  • no max backoff cap
  • does not check for idempotency, meaning some operations may be retried when they shouldn't
  • uses custom hand-rolled retry logic, instead of relying on the standard api_core

I sugest a full internal refactor of the class, keeping the API the same but cleaning up the internals, and surfacing some extra user configuration

Activity

  1. added
    priority: p3
    on Mar 11, 2024
  2. added
    api: firestore
    on Mar 11, 2024
  3. added
    type: cleanup
    on Apr 5, 2024
  4. parthea commented on Jan 13, 2026

    @parthea
    Contributor

    Transferring to google-cloud-python as the code for python-firestore will be migrated there in 1-3 weeks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: firestorepriority: p3type: cleanup

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions