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

fix(image): multiple dynamic scopes created when using 2 replicas #2869

Closed
iromli opened this issue Nov 6, 2022 · 0 comments · Fixed by #2871
Closed

fix(image): multiple dynamic scopes created when using 2 replicas #2869

iromli opened this issue Nov 6, 2022 · 0 comments · Fixed by #2871
Assignees
Labels
kind-bug Issue or PR is a bug in existing functionality
Milestone

Comments

@iromli
Copy link
Contributor

iromli commented Nov 6, 2022

Describe the bug

After switching to dynamic scopes loaded from swagger/openapi docs, multiple scopes with same jansId are created when running 2 replicas of config-api/scim at the same time.

The issue occurs when each of replica sees there are missing scopes in persistence hence each of them tries to insert scopes with same jansId but different DN.

The thing is there's no constraint on jansId to prevent duplicated jansId.

To Reproduce
Steps to reproduce the behavior:

  1. Deploy config-api/scim pod with 2 replicas
  2. Check entries in persistence
  3. See multiple scopes with same jansId are created

Expected behavior

No duplicated scopes for same jansId.

Additional context

Affected version: v1.0.3+

@mo-auto mo-auto added the kind-bug Issue or PR is a bug in existing functionality label Nov 6, 2022
@iromli iromli added this to the 1.0.4 milestone Nov 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind-bug Issue or PR is a bug in existing functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants