task: Troubleshoot schema hashes and reconsider saving updated branches during init #4781
Labels
group/backend
Issue related to the backend (API Server, Git Agent)
type/task
Body of work related to an epic
Component
API Server / GraphQL
Task Description
The PR #4769 made a change saves a branch back to the database during initialization if the hash defined on the branch object in the database is different compared to the full hash of the schema after it has been loaded in the database. In theory this is something that should not happen. We need to spend a bit more time to troubleshoot this to see when and why it can occur and fix those instances.
After doing so we could revert the changes when we save the brach information back to the database. We might still want some type of recovery in place but at that point we should use some form of lock to avoid having multiple workers trying to update the same information during server restarts.
The text was updated successfully, but these errors were encountered: