Skip to content

task: add database query retry for read queries (not only mutations) #8696

@fatih-acar

Description

@fatih-acar

Component

API Server / GraphQL

Task Description

When running concurrent GraphQL queries that fetches a cardinality many relationship with a lot of peers, we can end up in a situation where we exhaust Neo4j's client thread pool; thus throwing a TransientError to the user.

We already have the retry_db_transaction decorator that handles such transient errors but it's mostly applied to mutations. We should also use it for the many_relationship_resolver and make the retries smoother (by implementing exponential backoff retries?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    group/backendIssue related to the backend (API Server, Git Agent)type/taskBody of work related to an epic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions