Skip to content

join should be aware of cancel signal #9430

@windtalker

Description

@windtalker

Bug Report

Please answer these questions before submitting your issue. Thanks!
Currently, inside join, it does not aware of cancel signal, so if you wants to cancel a query that contains join, it can only wait until joinBlock returns

https://github.com/pingcap/tiflash/blob/v8.3.0/dbms/src/Interpreters/Join.h#L201

If joinBlock() takes a long time(it could happen in some extrame cases, like cross join with a lot of build side data), the query can not be cancelled for a long time

1. Minimal reproduce step (Required)

2. What did you expect to see? (Required)

3. What did you see instead (Required)

4. What is your TiFlash version? (Required)

Metadata

Metadata

Assignees

No one assigned

    Labels

    affects-5.4This bug affects the 5.4.x(LTS) versions.affects-6.1This bug affects the 6.1.x(LTS) versions.affects-6.5This bug affects the 6.5.x(LTS) versions.affects-7.1This bug affects the 7.1.x(LTS) versions.affects-7.5This bug affects the 7.5.x(LTS) versions.affects-8.1This bug affects the 8.1.x(LTS) versions.component/computereport/customerCustomers have encountered this bug.severity/majortype/bugThe issue is confirmed as a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions