Skip to content

changefeedccl,backupccl,*: telemetry counters may be incremented multiple times during txn restarts #91827

@stevendanna

Description

@stevendanna

Describe the problem

In a number of places we incremental telemetry counters from inside sql.PlanHookRowFns. These functions may be called multiple times in the face of automatic transaction retries, leading to the telemetry counters being erroneously incremented on each retry.

Jira issue: CRDB-21444

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions