Akash Gupta created RANGER-5820:
-----------------------------------

             Summary: 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
             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)

Reply via email to