Skip to content

Investigate: Confirm transaction conflicts are log verbosity only #373

@lfnovo

Description

@lfnovo

Context

This issue is tracked in the SurrealDB umbrella issue #372.

Problem

SurrealDB transaction conflicts appear frequently in logs under concurrent load. We need to confirm whether these are:

  1. Just log verbosity — The retry mechanism (Tenacity) handles them and operations succeed
  2. Real failures — Some operations are actually failing despite retries

Current State

  • We use Tenacity for automatic retries in surreal-commands
  • Transaction conflicts show up in logs but we haven't systematically verified outcomes
  • User-facing impact is unclear

Investigation Tasks

  • Add instrumentation to track retry counts vs final success/failure
  • Run load test with concurrent operations
  • Analyze logs to categorize conflict outcomes
  • Document findings with metrics

Expected Outcome

A clear answer with data:

  • "X% of conflicts resolve after retry, Y% fail permanently"
  • If mostly log noise → document and consider log level adjustment
  • If real failures → create follow-up issue for fixes

Related


🏷️ Part of SurrealDB infrastructure work

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: databaseDatabase, SurrealDB, and data layerbugSomething isn't workingneeds-triageNeeds initial review and classification

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions