Skip to content

[Reliability] transact/readTransact retry unbounded with no default ceiling #52

Description

@s2x

Context / Problem

The transaction retry loops spin while (true) and rely entirely on FoundationDB's on_error backoff to eventually throw on non-retryable errors:

src/Database.php:62-89,199-267

There is no library-level retry/time ceiling and no convenient way to set a default RETRY_LIMIT/TIMEOUT. A persistently conflicting workload can spin indefinitely.

Affected files / locations

  • src/Database.php:62-89,199-267

Proposed approach

Document the unbounded retry behavior and provide an optional, configurable default retry limit and/or timeout applied to transactions created via the convenience helpers, without changing the default FDB semantics for users who do not opt in.

Acceptance Criteria

  • Documentation updated/added (retry/timeout behavior and configuration)
  • Unit test(s) added covering the configurable ceiling logic
  • Functional test(s) added: a transaction that exceeds the configured limit fails deterministically
  • Changelog entry added
  • Post-implementation comment posted on this issue describing what was changed

Severity

Low

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions