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

Fix starving caused by GIL #289

Merged
merged 2 commits into from
Dec 12, 2024
Merged

Fix starving caused by GIL #289

merged 2 commits into from
Dec 12, 2024

Conversation

auxten
Copy link
Member

@auxten auxten commented Dec 9, 2024

  • Fix starving caused by GIL

    Calling isInheritsFromPyReader()(Need acquire GIL) from Chunk PythonSource::generate() will cause hard to re-produce deadlock. The Python thread might already hold GIL, and waiting for ClickHouse engine returning data, but the pipeline running is also wait for GIL💥
    We should doing everything require GIL before the pipeline start!

@auxten auxten merged commit 01afb91 into main Dec 12, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant