Skip to content

After 439 exception clickhouse does not release threads #33712

@rad1k4l

Description

@rad1k4l

I have a table A which have ~ 200M rows and table B with same structure. Clickhouse uses in normal state up to 1k threads. I tried transfer data from A to B with query INSERT INTO B SELECT * FROM A. Thread count used by clickhouse incremented to 2k and query throws exception Code: 439. DB::Exception: Received from localhost:9000. DB::Exception: Cannot schedule a task: no free thread. After that clickhouse should decrement thread count using for query execution. But thread count still is 2k

Does it reproduce on recent release?

No , i am use clickhouse 21.12.3.32 version

How to reproduce

  • Which ClickHouse server version to use
  • 21.12.3.32 version
  • Queries to run that lead to unexpected result
    INSERT INTO B SELECT * FROM A

Expected behavior

1k thread using by clickhouse process

Metadata

Metadata

Assignees

No one assigned

    Labels

    potential bugTo be reviewed by developers and confirmed/rejected.st-need-infoWe need extra data to continue (waiting for response). Either some details or a repro of the issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions