Skip to content

sql/sessioninit: use syncutil.RWMutex for the cache #80466

Open
@knz

Description

@knz

Describe the problem

During a postmortem we've found that the syncutil.Mutex in sessioninit.Cache may be a source of contention when there is a high rate of session establishments.

We can reduce this by using syncutil.RWMutex instead.

Jira issue: CRDB-15599

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-authenticationPertains to authn subsystemsC-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.T-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions