[
https://issues.apache.org/jira/browse/RANGER-5820?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Akash Gupta reassigned RANGER-5820:
-----------------------------------
Assignee: Akash Gupta
> Concurrent GRANT requests for ranger resulting into sql unique constraint
> violations and exposed as raw HTTP 400 errors.
> ------------------------------------------------------------------------------------------------------------------------
>
> Key: RANGER-5820
> URL: https://issues.apache.org/jira/browse/RANGER-5820
> Project: Ranger
> Issue Type: Bug
> Components: Ranger
> Reporter: Akash Gupta
> Assignee: Akash Gupta
> Priority: Major
> Fix For: 3.0.0
>
>
> Ranger Admin's policy creation code path (invoked when {{GRANT}} request
> requiring a new policy row) is not thread-safe under concurrent execution.
> When multiple {{GRANT}} statements execute in parallel, they trigger MySQL
> Unique Key constraint violations. Rather than handling these race conditions
> gracefully or surfacing a retryable conflict, Ranger Admin propagates raw
> {*}HTTP 400 Bad Request{*}.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)