You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by sanket shelar <sa...@gmail.com> on 2024/12/30 10:49:00 UTC
Re: Review Request 74737: RANGER-4520: Both usersync/tagsync instances becoming active and syncing users/tags
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/74737/
-----------------------------------------------------------
(Updated Dec. 30, 2024, 10:48 a.m.)
Review request for ranger, Dineshkumar Yadav, Kishor Gollapalliwar, Abhay Kulkarni, Madhan Neethiraj, Mehul Parikh, Pradeep Agrawal, Sailaja Polavarapu, and Velmurugan Periasamy.
Bugs: RANGER-4520
https://issues.apache.org/jira/browse/RANGER-4520
Repository: ranger
Description
-------
Both usersync/tagsync instances becoming active and syncing users/tags in the following scenario
Scenario:
Bring up 2 instances of UserSync so that one is active and other is passive
Cluster has 3 zk instances, stop 2 zk servers so that there is no quorum
Both usersync instances fail to establish Zk connection
Start both zk servers
Both usersync instances have transitioned to active and started performing usersync
Same issue exists for tagsync also
Test:
Add user u1 to host1
Add user u2 to host2
Both users are synced and available on ranger admin side.
Usersync audits show details of both users synced
EXPECTED BEHAVIOUR:
In case of usersync/tagsync running in HA mode, there should be only 1 instance active at any point of time
CURRENT BEHAVIOUR:
After zk goes down and is back functional, more than 1 usersync/tagsync instance becoming active
Diffs (updated)
-----
ranger-common-ha/src/main/java/org/apache/ranger/ha/ActiveInstanceState.java ca8c64f3f
Diff: https://reviews.apache.org/r/74737/diff/2/
Changes: https://reviews.apache.org/r/74737/diff/1-2/
Testing
-------
Thanks,
sanket shelar
Re: Review Request 74737: RANGER-4520: Both usersync/tagsync instances becoming active and syncing users/tags
Posted by Dineshkumar Yadav <di...@outlook.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/74737/#review227147
-----------------------------------------------------------
Ship it!
Ship It!
- Dineshkumar Yadav
On Dec. 30, 2024, 10:48 a.m., sanket shelar wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/74737/
> -----------------------------------------------------------
>
> (Updated Dec. 30, 2024, 10:48 a.m.)
>
>
> Review request for ranger, Dineshkumar Yadav, Kishor Gollapalliwar, Abhay Kulkarni, Madhan Neethiraj, Mehul Parikh, Pradeep Agrawal, Sailaja Polavarapu, and Velmurugan Periasamy.
>
>
> Bugs: RANGER-4520
> https://issues.apache.org/jira/browse/RANGER-4520
>
>
> Repository: ranger
>
>
> Description
> -------
>
> Both usersync/tagsync instances becoming active and syncing users/tags in the following scenario
> Scenario:
> Bring up 2 instances of UserSync so that one is active and other is passive
> Cluster has 3 zk instances, stop 2 zk servers so that there is no quorum
> Both usersync instances fail to establish Zk connection
> Start both zk servers
> Both usersync instances have transitioned to active and started performing usersync
> Same issue exists for tagsync also
> Test:
> Add user u1 to host1
> Add user u2 to host2
> Both users are synced and available on ranger admin side.
> Usersync audits show details of both users synced
>
> EXPECTED BEHAVIOUR:
> In case of usersync/tagsync running in HA mode, there should be only 1 instance active at any point of time
> CURRENT BEHAVIOUR:
> After zk goes down and is back functional, more than 1 usersync/tagsync instance becoming active
>
>
> Diffs
> -----
>
> ranger-common-ha/src/main/java/org/apache/ranger/ha/ActiveInstanceState.java ca8c64f3f
>
>
> Diff: https://reviews.apache.org/r/74737/diff/2/
>
>
> Testing
> -------
>
>
> Thanks,
>
> sanket shelar
>
>
Re: Review Request 74737: RANGER-4520: Both usersync/tagsync instances becoming active and syncing users/tags
Posted by sanket shelar <sa...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/74737/
-----------------------------------------------------------
(Updated Dec. 31, 2024, 7:08 a.m.)
Review request for ranger, Dineshkumar Yadav, Kishor Gollapalliwar, Abhay Kulkarni, Madhan Neethiraj, Mehul Parikh, Pradeep Agrawal, Sailaja Polavarapu, and Velmurugan Periasamy.
Bugs: RANGER-4520
https://issues.apache.org/jira/browse/RANGER-4520
Repository: ranger
Description
-------
Both usersync/tagsync instances becoming active and syncing users/tags in the following scenario
Scenario:
Bring up 2 instances of UserSync so that one is active and other is passive
Cluster has 3 zk instances, stop 2 zk servers so that there is no quorum
Both usersync instances fail to establish Zk connection
Start both zk servers
Both usersync instances have transitioned to active and started performing usersync
Same issue exists for tagsync also
Test:
Add user u1 to host1
Add user u2 to host2
Both users are synced and available on ranger admin side.
Usersync audits show details of both users synced
EXPECTED BEHAVIOUR:
In case of usersync/tagsync running in HA mode, there should be only 1 instance active at any point of time
CURRENT BEHAVIOUR:
After zk goes down and is back functional, more than 1 usersync/tagsync instance becoming active
Diffs (updated)
-----
ranger-common-ha/src/main/java/org/apache/ranger/ha/ActiveInstanceState.java ca8c64f3f
Diff: https://reviews.apache.org/r/74737/diff/3/
Changes: https://reviews.apache.org/r/74737/diff/2-3/
Testing
-------
Thanks,
sanket shelar