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

adding new replica does not create materialized views and normal views #385

Closed
samene opened this issue May 12, 2020 · 3 comments
Closed

Comments

@samene
Copy link

samene commented May 12, 2020

Latest release, I have a deployment with 3 shards and 1 replica. I increased to 2 replicas and expected that the schema propagate to the new replica. All distributed and replicated tables were created but the materialized views and normal views were not created on the new replica.

I see in schemer.go you are only querying tables where engine like 'Replciated%' or 'Distributed'. This does not include materialized views and normal views. Is this on purposed and what is the reason behind this?

This is more of a question rather than a issue.

@alex-zaitsev
Copy link
Member

Hi @samene , we were mostly focused on replicated and distrubuted objects and dependencies. Looks like we overlooked over objects. This needs to be fixed, and we have a task already scheduled to re-write schemer completely.

Note, operator will create objects for the same shard only, i.e. if you happen to have different views and MVs on different shards, those will be populated to corresponding replicas respectively.

@alex-zaitsev
Copy link
Member

Hi @samene ,
We have patched 0.9.9 version, so it should create all schema objects on new replica now. Please test if it fixes the issue for you.
Thanks

@alex-zaitsev
Copy link
Member

Fixed in 0.10.0

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