Skip to content

Analyze cannot be cancelled promptly #65818

Closed

Description

@hawkingrei

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

  1. Create a table and insert some rows.
  2. Enable a failpoint to stall analyze RPC or NextRaw (e.g. a sleep in analyze pushdown).
  3. Run ANALYZE TABLE t in one session.
  4. From another session, issue KILL QUERY <conn_id>.

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

The ANALYZE job should terminate quickly after KILL QUERY, and its RPC/streaming should stop without blocking workers.

3. What did you see instead (Required)

The analyze worker blocks on RPC/NextRaw; the job does not exit promptly after kill, and the analyze execution can hang.

4. What is your TiDB version? (Required)

d731491

Activity

  1. added a commit that references this issue on Mar 18, 2026
    02d7ea9
  2. added a commit that references this issue on Jun 2, 2026
    e198e2d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions