[ https://issues.apache.org/jira/browse/RANGER-4520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17910018#comment-17910018 ]
Sanket Shelar commented on RANGER-4520: --------------------------------------- ranger-2.6 : https://github.com/apache/ranger/commit/f8444190679d9c4276a64ba350f6e1ffdca7f3a1 > Both usersync/tagsync instances becoming active and syncing users/tags > ---------------------------------------------------------------------- > > Key: RANGER-4520 > URL: https://issues.apache.org/jira/browse/RANGER-4520 > Project: Ranger > Issue Type: Bug > Components: Ranger > Affects Versions: 3.0.0, 2.6.0 > Reporter: suja s > Assignee: Sanket Shelar > Priority: Major > Fix For: 3.0.0 > > Attachments: 0001-RANGER-4520.patch, 0002-RANGER-4520.patch, > 0003-RANGER-4520.patch > > > 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 -- This message was sent by Atlassian Jira (v8.20.10#820010)