Skip to content

fix(jans-auth-server): lower possibility to get data loss during status index pool update #10284

@yuriyz

Description

@yuriyz

Description

When status has to be changed at index we load pool that holds indexes.
After loading we update indexes and save to database. Problem is what if between loading and updata another node updated that index?
In this case we can get data loss. The right approach is to add transactions support to ORM and it will work consistently only with DBs that supports transactions. With this PR we are making situation better but it's not solution as it should be with transactions support on ORM level.

Image

Metadata

Metadata

Assignees

Labels

comp-jans-auth-serverComponent affected by issue or PRkind-bugIssue or PR is a bug in existing functionality

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions