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

Clean replication and distributed_ddl queues method #83

Merged
merged 8 commits into from
Jun 14, 2024

Conversation

lesandie
Copy link
Contributor

I have read the CLA Document and I hereby sign the CLA

@lesandie lesandie self-assigned this May 31, 2024
- ensure that detached_parts are empty, detach partition, then attach it back (on sinlge replica!), then remove leftovers from detached_parts
- detach the tables, remove the merge from the queue, attach tables back

Check: https://github.com/Altinity/support-team/blob/main/common_issues/ImpossibleMergeInQueue.md
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

private link

- try to SYSTEM RESTART REPLICA
- try to restart ClickHouse

## don't run things below blindly!!! they are dangerous! you can make it worse! Only if you clearly understand the problem and what that solution will do.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit afraid of publishing that because of that... It can be harmful, and fixing the ClickHouse after unsuccessful attempts of fixing that is more cumbersome, and data can be damaged.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes agree i can delete it and rephrase. This also is a WIP, need to add a section for cleaning the distributed_ddl_queue that I will probably need to write it with care. I'll fix many stuff in next commit

@lesandie
Copy link
Contributor Author

lesandie commented Jun 7, 2024

@filimonov @BorisTyshkevich @SaltTan @UnamedRus @realyota what do you think? is it very detailed/problematic?

@BorisTyshkevich
Copy link
Contributor

BorisTyshkevich commented Jun 7, 2024 via email

@lesandie
Copy link
Contributor Author

delete the dangerous stuff (agree) and added the task_ddl_queue cleanup but again is ZK manual intervention which is something dangerous too. I'll try to rewrite

@lesandie lesandie merged commit 5fad220 into main Jun 14, 2024
2 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jun 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants