Skip to content

spawn_buffered will be dead-locked under current-thread tokio runtime #7206

@viirya

Description

@viirya

Describe the bug

spawn_buffered function will use tokio context to spawn the execution of stream if tokio runtime is started. However, if the started runtime is current-thread and it is blocked on, spawned tasks could be possibly dead-locked.

To Reproduce

Constructs a tokio current-thread runtime and uses it to block on a physical query execution which has used spawn_buffered function, e.g., Sort.

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions