Skip to content

[Feature Request]: Support Statement Timeout setting #23361

Closed

Description

@dengn

Is there an existing issue for the same feature request?

  • I have checked the existing issues.

Is your feature request related to a problem?

Describe the feature you'd like

Implement a setting to control query execution timeout (Statement Timeout).

Describe implementation you've considered

No response

Documentation, Adoption, Use Case, Migration Strategy

Additional information

No response

Activity

  1. added this to the MO-202601 milestone on Dec 23, 2025
  2. added
    priority/p1
    on Dec 23, 2025
  3. added theissue type on Dec 23, 2025
  4. modified the milestones: MO-202601, MO-202603 on Feb 3, 2026
  5. added
    ai-medium
    on Jul 1, 2026
  6. XuPeng-SH commented on Oct 22, 2026

    @XuPeng-SH
    Contributor

    Implemented on current main by #27020. max_execution_time is a session/global setting in milliseconds (0 disables it); it applies to top-level read-only SELECT statements, including prepared SELECT, and reports MySQL error 3024 on timeout. Locking reads and non-SELECT statements are outside the current implementation. Closing this request as fulfilled for the implemented SELECT timeout scope; if timeout coverage for all statement types is required, please track that separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ai-mediumkind/featurepriority/p1

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions