-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
"allow_inconsistent_metadata" env var missing from cli-migrations image #8095
Comments
@jflambert can you elaborate a bit on the behaviour that you expect here? In the CLI migrations image at a high level, the following are the steps which are executed:
if after the cc @rikinsk |
I expect:
to be honest I never want rollbacks to "old" state. I never write SQL downgrades. |
@jflambert Thanks. Can you clarify what you mean by "broken metadata"? If we call the new metadata that we are applying "new" and the current metadata on the server "old". Then if when trying to apply "new" metadata results in an inconsistency you expect the metadata on the server to be unchanged ie the server will have "old" metadata. is that so? |
Hello, I know this is a very old thread, but I just wanted to chime in to say that exposing the CLI's This setup breaks the standard mental model of rolling updates (in which a functioning deployment's replicas won't be torn down until the new deployment has available replicas) because the inconsistent metadata "leaks" into the old replicas. My team ran into this issue earlier this week, and while obviously we can do our best to avoid these situations in the future, a production deployment of Hasura relies on a lot of coordination that any team of human beings is bound to get wrong every once in a while. Ensuring that inconsistent metadata will fail a new deployment's rollout without affecting an existing deployment would go a long way towards making me feel safer about running Hasura in prod. @scriptonist curious to get your thoughts about exposing a flag or configuration env variable in the |
Version Information
Server Version: 2.1.1
Environment
Linux
What is the expected behaviour?
2.0.0 added the
allow_inconsistent_metadata
argument to thereplace_metadata
API call. Unless documentation is wrong, it doesn't seem to be available as an environment variable for the cli-migrations image.It would also be nice to have a checkbox in the frontend when importing metadata.json there, but I don't personally need that.
What is the current behaviour?
allow_inconsistent_metadata
only seems available through API calls.The text was updated successfully, but these errors were encountered: