Skip to content

[8.19] Fix built-in roles sync losing updates (#142433)#142892

Merged
elasticsearchmachine merged 1 commit intoelastic:8.19from
ebarlas:backport/8.19/pr-142433
Feb 23, 2026
Merged

[8.19] Fix built-in roles sync losing updates (#142433)#142892
elasticsearchmachine merged 1 commit intoelastic:8.19from
ebarlas:backport/8.19/pr-142433

Conversation

@ebarlas
Copy link
Copy Markdown
Contributor

@ebarlas ebarlas commented Feb 23, 2026

Backports the following commits to 8.19:

Built-in role sync requests arriving while another sync was
in progress were silently discarded. This caused roles to go
missing when cluster change events fired in quick succession
during bootstrap.

Replace the synchronizationInProgress AtomicBoolean with a
lock-free AtomicInteger state machine (RolesSync) that tracks
idle, syncing, and syncing_pending states. When a sync
completes and updates are pending, it automatically retries
with the latest roles.
@ebarlas ebarlas added :Security/Security Security issues without another label >bug auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Security Meta label for security team labels Feb 23, 2026
@elasticsearchmachine elasticsearchmachine merged commit 840cd2a into elastic:8.19 Feb 23, 2026
34 checks passed
@ebarlas ebarlas deleted the backport/8.19/pr-142433 branch February 23, 2026 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >bug :Security/Security Security issues without another label Team:Security Meta label for security team v8.19.13

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants