[ https://issues.apache.org/jira/browse/RANGER-2088?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hajime Osako updated RANGER-2088: --------------------------------- Description: *SYMPTOM* With LDAP server which has hundreds of users and groups, Ranger Usersync never finishes the initial sync or takes extremely long time, when Group Search First & Enable User Search both are set to true. The usersync.log shows similar to below repeatedly. {noformat} 19 Apr 2018 17:15:19 INFO LdapUserGroupBuilder [UnixUserSyncThread] - Updating username for cn=xxxxx... {noformat} *WORKAROUND:* If deltasync (Incremental Sync) is enabled, do not see this symptom, because LdapUserGroupBuilder calls getUsers() in the for loop, but LdapDeltaUserGroupBuilder doesn't use this method in the loop in updateSink(). was: *SYMPTOM* With LDAP server which has hundreds of users and groups, Ranger Usersync never finishes the initial sync or takes extremely long time, when Group Search First & Enable User Search both are set to true. The usersync.log shows similar to below repeatedly. {noformat} 19 Apr 2018 17:15:19 INFO LdapUserGroupBuilder [UnixUserSyncThread] - Updating username for cn=xxxxx... {noformat} *WORKAROUND:* If deltasync (Incremental Sync) is enabled, do not see this symptom, because LdapUserGroupBuilder calls getUsers() in the for loop, but LdapDeltaUserGroupBuilder doesn't in updateSink(). > If not deltasync (Incremental Sync) enabled, getUsers is called too many times > ------------------------------------------------------------------------------ > > Key: RANGER-2088 > URL: https://issues.apache.org/jira/browse/RANGER-2088 > Project: Ranger > Issue Type: Bug > Components: usersync > Affects Versions: 0.7.0 > Reporter: Hajime Osako > Priority: Major > > *SYMPTOM* > With LDAP server which has hundreds of users and groups, Ranger Usersync > never finishes the initial sync or takes extremely long time, when Group > Search First & Enable User Search both are set to true. > The usersync.log shows similar to below repeatedly. > {noformat} > 19 Apr 2018 17:15:19 INFO LdapUserGroupBuilder [UnixUserSyncThread] - > Updating username for cn=xxxxx... > {noformat} > > *WORKAROUND:* > If deltasync (Incremental Sync) is enabled, do not see this symptom, because > LdapUserGroupBuilder calls getUsers() in the for loop, but > LdapDeltaUserGroupBuilder doesn't use this method in the loop in updateSink(). > -- This message was sent by Atlassian JIRA (v7.6.3#76005)