Thanks to visit codestin.com
Credit goes to github.com

Skip to content

When syncing roles, the database layer can see deadlocks #43682

@ahus1

Description

@ahus1

Description

When user data is synchronized for example with mappers on SAML login, roles are removed when they don't exist. As the DB code is using excessive locking, this is both slow and leads to deadlocks on concurrent logins.

Value Proposition

Better performance, and no deadlocks that slow down Keycloak and annoy users.

Goals

All user methods that update the user should in the caching layer first check if there is actually a change. Most of the time there is no change when synchronizing users.

Non-Goals

Other entities

Discussion

No response

Notes

I'll create a PR

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions