Skip to content

[Bug] (fe) query request would be blocked when tasks are rejected from StatementSubmitter #15783

@wyj12501

Description

@wyj12501

Search before asking

  • I had searched in the issues and found no similar issues.

Version

trunk
7767931

What's Wrong?

StmtExecutionAction might be blocked forever when concurrent requests more than 2.
StmtExecutionAction would never be timeout because the threadpool in StatementSubmitter with LogDiscardPolicy do NOT throw exceptions when tasks are rejected

当并发请求大于2时,StmtExecutionAction 会一直阻塞,请求一直不会返回。
由于 StatementSubmitter 中的线程池使用了LogDiscardPolicy,被拒绝的请求不会抛异常。StmtExecutionAction 中的future.get() 没有超时,只会一直等待。

What You Expected?

add timeout parameter when invoke future.get()

How to Reproduce?

concurrent requests this interface more than 2.

POST /api/query/<ns_name>/<db_name>

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

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