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

Cannot cancel distribution queue processes #32367

Open
ivan-tkatchev opened this issue Dec 8, 2021 · 1 comment
Open

Cannot cancel distribution queue processes #32367

ivan-tkatchev opened this issue Dec 8, 2021 · 1 comment

Comments

@ivan-tkatchev
Copy link

There is currently no way to cancel a distributed INSERT once it lands into the distribution queue.

This is a problem for us when more than one INSERT SELECT queries are accidentally executed - the distribution queue grows very large and is processed very slowly, the table ends up with duplicate rows and there is no way to stop this process until all the queues finish processing.

Basically, a distributed insert should look like a mutation from a UX perspective. (Our ETL process is ALTER TABLE DELETE followed by INSERT SELECT. The DELETE step works great, but the INSERT is not controllable at the moment and interacts poorly with the rest of the pipeline. Ideally there should be a way to cancel an INSERT SELECT mutation or wait until it finishes.)

@cangyin
Copy link
Contributor

cangyin commented Sep 13, 2022

may setting insert_distributed_sync=1 help a bit ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants