Skip to content

kv: refactor use of gateway node ids in batch request headers #73871

@AlexTalks

Description

@AlexTalks

Currently, we embed a GatewayNodeID into batch request headers so that they can be tracked for lease rebalancing decisions. In #73500, a SQLInstanceID was embedded into the TxnMeta structure, representing a gateway node (in the case of a single tenant cluster) or a SQL pod (in the case of a multitenant cluster). This could be refactored to replace passing in both a GatewayNodeID, which is 0 in a multitenant cluster, and a SQLInstanceID when creating a transaction in txn.go.

Jira issue: CRDB-11793

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-cleanupTech debt, refactors, loose ends, etc. Solution not expected to significantly change behavior.X-staleno-issue-activity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions