Skip to content

DB::Exception: Session is locked by a concurrent client. (SESSION_IS_LOCKED)Β #7906

@ranjeetranjan

Description

@ranjeetranjan

Getting error

{
    "error": "Error: Code: 373. DB::Exception: Session is locked by a concurrent client. (SESSION_IS_LOCKED) (version 22.3.20.29 (official build))\n"
}

To Reproduce
As per the CLickHouse expert

ClickHouse shows an error message if there are two or more parallel queries with the same session_id. Usually the session_id must be different each time

In details
The error occurs within ClickHouse's internals when a session is trying to be acquired, but it's already locked by another client. This might happen due to concurrent queries or operations trying to access the same session simultaneously, causing contention.

Version:
0.34.61

Metadata

Metadata

Assignees

Labels

bugLEGACY. Use the Bug issue type insteaddriver:clickhouseIssues related to the ClickHouse driverhelp wantedCommunity contributions are welcome.questionThe issue is a question. Please use Stack Overflow for questions.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions