bug: Invalid schema after renaming schema nodes #4909
Labels
group/backend
Issue related to the backend (API Server, Git Agent)
group/schema
Issue related to some schemas
type/bug
Something isn't working as expected
Milestone
Component
API Server / GraphQL
Infrahub version
v1.1.0-dev
Current Behavior
When you rename a schema node problems within the GraphQL schema. This can be observed in the temporary PR #4908, which fails the test TestSchemaLifecycleMain::test_step03_load
It's also now confirmed to be an actual problem that would impact you after you renamed a schema node, or at least "took over" another one that is the case here.
When running using gunicorn the issue doesn't always appear it comes and goes, if you just run "infrahub server" the issue seems to always appear. This indicates that the problem only exists on the worker that was responsible for the schema load.
Expected Behavior
This shouldn't cause an issue
Steps to Reproduce
Load the initial schema
Note that you might need to run it multiple times if you have several workers before the error appears:
The output from the good condition:
The output from the bad condition:
Additional Information
Temporary workaround: The issue should clear up after a restart of the server
The text was updated successfully, but these errors were encountered: