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

Schema Cache doesn't get flushed after successful schema snapshot apply while Directus is running #11436

Closed
3 tasks done
rijkvanzanten opened this issue Feb 4, 2022 · 1 comment · Fixed by #13762
Closed
3 tasks done
Assignees
Labels
Milestone

Comments

@rijkvanzanten
Copy link
Member

Preflight Checklist

Describe the Bug

When applying a schema snapshot while Directus itself is running on the same database, the schema cache doesn't get flushed properly, causing in unexpected errors / missing fields on the currently running Directus instance.

To Reproduce

Have a running instance of Directus, apply a schema snapshot from a secondary process.

Errors Shown

n/a

What version of Directus are you using?

9.5.1

What version of Node.js are you using?

16

What database are you using?

postgres 13

What browser are you using?

safari

What operating system are you using?

macos

How are you deploying Directus?

n/a

@azrikahar
Copy link
Contributor

Have indeed came across this in the past after applying a schema via docker exec <container-name> npx directus schema apply ./path/to/schema.yaml. Restarting the container does resolve it.

@rijkvanzanten rijkvanzanten self-assigned this May 26, 2022
@rijkvanzanten rijkvanzanten added this to the v9-next milestone Jun 6, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants