-
Notifications
You must be signed in to change notification settings - Fork 75
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
fix: duplicate configapi scopes in cn update #2851
Comments
I was unable to replicate the issue when using 1 replica, but it does occurs when using 2 replicas. There was race condition when multiple replicas trying to create new scopes. Each of them assume there are missing scopes in persistence hence each of config-api creates new scopes which eventually are persisted into persistence. |
I tested by reverting back scopes creation to old scopes.ldif template (created statically before running config-api), but after that multiple jans-config-api replicas are creating missing scopes at the same time. Eventually, multiple scopes with same jansId are created (checked by querying persistence and found entries with same jansId -- DN is prefixed with UUID4 format). |
to summarize the multiple scopes issue:
|
Point no. 1 is tracked in #2869 |
The scope insertion is now based on static |
Describe the bug
Upon upgrading jans cn setup from
1.0.2
to the latest currently1.0.4_dev
multiple duplicate scopes are created.config-api replicas:
1
persistence and config jobs were ran on upgrade
Expected behavior
Existing scopes should be skipped
The text was updated successfully, but these errors were encountered: