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

Bhavesh Amre commented on RANGER-5428:
--------------------------------------

Hi [~madhan] /[~rmani] , 

Can you confirm the above behavior is expected as per design or do we need to 
fix it ?

cc: [~kishor.gollapalliwar] 

> [GDS] Datashare is getting deleted when security zone is deleted assigned in 
> datashare
> --------------------------------------------------------------------------------------
>
>                 Key: RANGER-5428
>                 URL: https://issues.apache.org/jira/browse/RANGER-5428
>             Project: Ranger
>          Issue Type: Bug
>          Components: Ranger
>            Reporter: Bhavesh Amre
>            Assignee: Bhavesh Amre
>            Priority: Major
>
> *Current Behavior*
> When a security zone is deleted in Apache Ranger, all associated datashares 
> are automatically deleted through the `deleteAllGdsObjectsForSecurityZone()` 
> method. This cascading deletion occurs even when the datashare is actively 
> assigned to one or more datasets and some other scenarios.
> *Steps To Reproduce*
> 1. Create a security zone with resources:
>    - Database: `vehicle`
>    - Table: `cars`
>    - Column: `*`
> 2. Create a datashare with resources and default 'select' privilege:
>    - Database: `vehicle`
>    - Table: `cars`
>    - Column: `*`
>    - Assign to the security zone created in step 1
> 3. Create a dataset with policy for user 'hrt_1' having '_READ' permission
> 4. Add the datashare to the dataset and activate it (status: ACTIVE)
> 5. Delete the security zone
> *Result*: The datashare is deleted along with the security zone



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

Reply via email to