You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Nixon Rodrigues (Jira)" <ji...@apache.org> on 2022/12/05 07:02:00 UTC

[jira] [Commented] (RANGER-3554) [Intermittent] API call to fetch the list of policies for a particular service repo returns a deleted policy in the response

    [ https://issues.apache.org/jira/browse/RANGER-3554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17643138#comment-17643138 ] 

Nixon Rodrigues commented on RANGER-3554:
-----------------------------------------

[~abhayk], @madhan

Can you please let know what was the cause of the issue and the how the fix provided fixed the issue.

Here in the fix, the  below code lines block is moved out _isParentTransactionCommitted_ if statement block. How will this the issue. 
{noformat}
List<Runnable> runnables = RUNNABLES.get();
RUNNABLES.remove(); {noformat}
 

[~abhishek.patil] , Can you please provide the repo steps here.

 

Please let me know.

Thanks

> [Intermittent] API call to fetch the list of policies for a particular service repo returns a deleted policy in the response
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: RANGER-3554
>                 URL: https://issues.apache.org/jira/browse/RANGER-3554
>             Project: Ranger
>          Issue Type: Bug
>          Components: Ranger
>            Reporter: Abhay Kulkarni
>            Assignee: Abhay Kulkarni
>            Priority: Major
>             Fix For: 3.0.0, 2.3.0
>
>
> Multiple tests are executed during the test run, and the flow of the tests is as follows:-
>  # A set of policies needed for the test are created for a Ranger service.
>  # Tests are run.
>  # All existing policies in the Ranger service are deleted by fetching all policies in the service, and deleting them one-by-one. Each delete call are successful.
>  # All policies in the Ranger service are fetched to ensure that no policies are remaining in the Ranger service.
> It is expected that in step 4, no policies are returned. However, intermittently, step 4 returns policy that is deleted in step 3.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)