Skip to content

[17.0][FIX] access_roles: serialization errors multiworker#419

Open
BT-sschmid wants to merge 3 commits into
CybroOdoo:17.0from
brain-tec:17.0.fix_access_roles_concurrency
Open

[17.0][FIX] access_roles: serialization errors multiworker#419
BT-sschmid wants to merge 3 commits into
CybroOdoo:17.0from
brain-tec:17.0.fix_access_roles_concurrency

Conversation

@BT-sschmid

@BT-sschmid BT-sschmid commented Jun 11, 2026

Copy link
Copy Markdown

This fixes serialization errors when multiple worker are trying to populate the registry tables.
To prevent concurrent updates, we use a pg_try_advisory_xact_lock call to check if another worker is
already processing the data. If the lock is already held, other workers just skip the registry population.

This fixes serialization errors when multiple worker are trying to populate the registry tables.
To prevent concurrent updates, we use a pg_try_advisory_xact_lock call to check if another worker is
already processing the data. If the lock is already held, other workers just skip the registry population.
@BT-sschmid BT-sschmid force-pushed the 17.0.fix_access_roles_concurrency branch from 7765d7a to 9913c2e Compare June 11, 2026 11:35
@BT-sschmid BT-sschmid changed the title [FIX] access_roles: serialization errors multiworker [17.0][FIX] access_roles: serialization errors multiworker Jun 11, 2026
@BT-sschmid

Copy link
Copy Markdown
Author

Hi @CybroOdoo
please check this.

Simon Schmid added 2 commits July 6, 2026 11:15
This fixes serialization errors when multiple worker are trying to populate the registry tables.
To prevent concurrent updates, we use a pg_try_advisory_xact_lock call to check if another worker is
already processing the data. If the lock is already held, other workers just skip the registry population.
@BT-sschmid BT-sschmid force-pushed the 17.0.fix_access_roles_concurrency branch from 69d9fbc to 464f86a Compare July 6, 2026 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant