-
Notifications
You must be signed in to change notification settings - Fork 463
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
Materialized views with inner tables fail to propagate to new nodes #989
Comments
@sunsingerus i think we could try to use ATTACH MATERIALIZED VIEW instead of CREATE MATERIALIZED VIEW ... |
This is weird, because operator filters out '.inner.' tables exactly for this reason. Maybe this is something new specific to 22.7? @johnny , do you have Distributed table on top of inner table by any chance? |
We have Distributed tables on top of some of the materialized views directly and we have distributed tables on top of views on top of materialized views in the other cases. We are running 22.7.3.5 Edit: We noticed that the operator creates the inner table directly, since the first attempt to create the tables fails when the DNS isn't setup, yet:
|
@alex-zaitsev tried that, did not work with any 22 version either. Even tried 21.9, did not work, unfortunately. Edit: Also newer versions than 22.7 did not work |
@Mit0x2 , thanks, your log record helped to detect the problem. MaterializedViews are stored differently in Atomic database, we did not have a test for that. We will release a fix in 0.19.1 |
While trying out different Versions of the clickhouse server with the clickhouse operator, we noticed another issue in sort of the same context. When adding a second replica we get the following issue for "normal" tables. I exchanged the actual DB and Table names with placeholders like DATABASE_NAME.
The scenario is, adding an additional replica to an already existing cluster. So replication of the tables seems to be broken? |
@Mit0x2 , 22.7+ has deprecated Ordinary databases, so all databases are Atomic now. It is weird you are seeing this error though, it is supposed to work in 0.19.0. We will double test on 22.7 |
Fixed in 0.19.1 |
We have materialized views created with the shorthand
This creates an implicit inner table. The syncing mechanism first creates the inner table.
Then it propagates the materialized view which again tries to create an inner table. The inner table already exists and the materialized view fails to propagate.
We use operator version 0.19.0
The text was updated successfully, but these errors were encountered: