Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The query is blocked during the FE plan generation phase and never times out #55176

Open
zxf216 opened this issue Jan 17, 2025 · 0 comments
Open
Labels
type/bug Something isn't working

Comments

@zxf216
Copy link

zxf216 commented Jan 17, 2025

Steps to reproduce the behavior (Required)

  • In the source code, the timeout - related code is detected at: com.starrocks.qe.ConnectContext#checkTimeout, com/starrocks/qe/ConnectContext.java:816. However, when the query takes a long time to obtain HDFS metadata during the planning phase, the query does not time out and exit even if it exceeds 5 minutes.
  • After the query times out (com/starrocks/qe/StmtExecutor.java:1297), it only requires BE to cancel the task. In fact, the query was not in the execution phase at that time but still in the planning phase, resulting in the inability to cancel.

Expected behavior (Required)

Queries can be cancelled if they exceed 5 minutes during the FE plan generation phase.

Real behavior (Required)

The query is blocked during the FE plan generation phase and never times out, so resources should be released.

StarRocks version (Required)

  • 3.2.5
@zxf216 zxf216 added the type/bug Something isn't working label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant