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

bug: schema out of sync between workers when creating a new branch #5130

Closed
wvandeun opened this issue Dec 2, 2024 · 0 comments · Fixed by #5138
Closed

bug: schema out of sync between workers when creating a new branch #5130

wvandeun opened this issue Dec 2, 2024 · 0 comments · Fixed by #5138
Assignees
Labels
group/backend Issue related to the backend (API Server, Git Agent) type/bug Something isn't working as expected

Comments

@wvandeun
Copy link
Contributor

wvandeun commented Dec 2, 2024

Component

API Server / GraphQL

Infrahub version

stable

Current Behavior

When you create a new branch, and in that branch query for the schema_has_synced status you will see that the status is false. One of the workers reports a null value for the schema_hash.

Expected Behavior

The schema is in sync between the different workers after a branch has been created.

Steps to Reproduce

  • load instance of Infrahub
  • load a schema

version: "1.0"
nodes:
* name: Device
    namespace: Infra
    attributes:
* name: hostname
        kind: Text
        optional: false
* name: flash_size
        kind: Text
        optional: false
  • create a branch infrahubctl branch create test
  • in the branch execute the following GraphQL query
query {
  InfrahubStatus {
    summary {
      schema_hash_synced
    }
    workers {
      edges {
        node {
          id
          schema_hash
        }
      }
    }
  }
}

Additional Information

  • the issue does not seem to occur on 1.0.7
  • schema hash is in sync between the different workers for the main branch
  • restarting the workers seems to be solving the issue
  • loading a new schema in the branch seems to solve the issue
@wvandeun wvandeun added type/bug Something isn't working as expected group/backend Issue related to the backend (API Server, Git Agent) labels Dec 2, 2024
@ogenstad ogenstad self-assigned this Dec 3, 2024
@ogenstad ogenstad added this to the Infrahub - 1.0.x milestone Dec 3, 2024
@exalate-issue-sync exalate-issue-sync bot removed this from the Infrahub - 1.0.x milestone Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
group/backend Issue related to the backend (API Server, Git Agent) type/bug Something isn't working as expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants