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: clickhouse worker hang when interpreter fail to execute #5091

Merged
merged 1 commit into from
Apr 29, 2022

Conversation

chowc
Copy link
Contributor

@chowc chowc commented Apr 28, 2022

I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/

Summary

fix clickhouse interactive_worker hang and does not send response to client.

  1. set cancel_clone to Relaxed when interpreter.execute return a error;
  2. make process_select_query return Err when things go wrong rather than always return Ok(rx)

Changelog

  • Bug Fix

Related Issues

Fixes #5005

@vercel
Copy link

vercel bot commented Apr 28, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
databend ⬜️ Ignored (Inspect) Apr 29, 2022 at 2:39AM (UTC)

@mergify
Copy link
Contributor

mergify bot commented Apr 28, 2022

Thanks for the contribution!
I have applied any labels matching special text in your PR Changelog.

Please review the labels and make any necessary changes.

@mergify mergify bot added the pr-bugfix this PR patches a bug in codebase label Apr 28, 2022
@chowc chowc force-pushed the fix-clickhouse-hang branch from 72bfbef to c2e59a4 Compare April 29, 2022 02:39
@chowc chowc marked this pull request as ready for review April 29, 2022 06:30
@chowc chowc requested a review from BohuTANG as a code owner April 29, 2022 06:30
@BohuTANG BohuTANG requested a review from zhang2014 April 29, 2022 06:38
@zhang2014 zhang2014 merged commit f82d66d into databendlabs:main Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need-review pr-bugfix this PR patches a bug in codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: clickhouse client will hang when execute USE ;
3 participants