Skip to content

RANGER-5678: Concurrent policy-engine rebuild on shared serviceDef ca… - #1141

Merged
kumaab merged 1 commit into
apache:masterfrom
vyommani:RANGER-5678-v3
Aug 6, 2026
Merged

RANGER-5678: Concurrent policy-engine rebuild on shared serviceDef ca…#1141
kumaab merged 1 commit into
apache:masterfrom
vyommani:RANGER-5678-v3

Conversation

@vyommani

@vyommani vyommani commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

…uses CME/NPE for delegated-admin User

What changes were proposed in this pull request?

this patch is built on top of Madhan's approach.

normalize() is correctly protected in the base patch, but ServiceDefUtil.normalizeAccessTypeDefs() — called separately right after it in RangerPolicyRepository and PolicyEngine — was still mutating the shared serviceDef's access-type lists with no synchronization. This PR moves that logic into RangerServiceDef with the same double-checked-locking pattern already used for normalize(), and updates both call sites.

How was this patch tested?

Includes a concurrency test that fails against the base patch alone, and passes once this fix is applied on top.

@kumaab
kumaab merged commit 2a79372 into apache:master Aug 6, 2026
4 checks passed
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.

3 participants