Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Closed
2 tasks done
doctorpangloss opened this issue Feb 2, 2024 · 1 comment
Closed
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
@plausible plausible locked and limited conversation to collaborators Jul 27, 2024
@ruslandoga ruslandoga converted this issue into discussion #4397 Jul 27, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants