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

🐛 After Dictionary Migration, other instances of this service are not updating to the new dictionary #1211

Open
joneubank opened this issue Oct 22, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@joneubank
Copy link
Member

Describe the bug

In an environment where there are multiple instances of the clinical system running, if a dictionary migration is performed successfully, then the "current dictionary" should be updated to the new dictionary version. The instance that performed the migration correctly reports the new version, but any other instances in the network do not.

Steps To Reproduce

  1. Run multiple instances of argo-clinical connecting to the same DB
  2. Run a dictionary migration using one of these instances
  3. Call GET /dictionary on both running instances

You will see the instance that performed the migration reports the new dictionary version, while the other instance does not.

Expected behaviour

Both instances should report the dictionary version of the dictionary that was migrated to.

Suggested Solution

The current active dictionary state needs to be held in the database in a way that any running instance can query to report the current state of the clinical data system.

Currently the "current dictionary" is determined at startup and then never checked vs the database again.

@joneubank joneubank added the bug Something isn't working label Oct 22, 2024
@joneubank
Copy link
Member Author

Until this is fixed, the inconsistent state between instances can be resolved by restarting all instances after a migration completes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants