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

Check to determine if Clickhouse tables should be clustered is catastrophically flawed #3749

Open
2 tasks done
doctorpangloss opened this issue Feb 2, 2024 · 1 comment
Open
2 tasks done

Comments

@doctorpangloss
Copy link

Past Issues Searched

  • I have searched open and closed issues to make sure that the bug has not yet been reported

Issue is a Bug Report

  • This is a bug report and not a feature request, nor asking for self-hosted support

Using official Plausible Cloud hosting or self-hosting?

Self-hosting

Describe the bug

{:ok, %{num_rows: 1}} -> true

which calls

SELECT 1 FROM system.replicas WHERE table = 'events'

On a clean clustered Clickhouse, this will return 0.

Expected behavior

You must determine if clustered tables should be used some other way.

Screenshots

No response

Environment

No response

@doctorpangloss
Copy link
Author

doctorpangloss commented Feb 2, 2024

select 1 from system.clusters where host_address != '127.0.0.1'

should work instead. additionally, the legacy ddl needs to be updated

@ruslandoga ruslandoga self-assigned this Feb 17, 2024
@ruslandoga ruslandoga removed their assignment Apr 6, 2024
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

No branches or pull requests

2 participants