ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spolavar...@apache.org
Subject ranger git commit: RANGER-1475: reducing the highest time stamp value to pick all the users syncd during sync cycle
Date Thu, 04 May 2017 18:22:59 GMT
Repository: ranger
Updated Branches:
  refs/heads/master 93ccc5237 -> 54e0e8d02


RANGER-1475: reducing the highest time stamp value to pick all the users syncd during sync
cycle

Signed-off-by: Sailaja Polavarapu <spolavarapu@hortonworks.com>


Project: http://git-wip-us.apache.org/repos/asf/ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/ranger/commit/54e0e8d0
Tree: http://git-wip-us.apache.org/repos/asf/ranger/tree/54e0e8d0
Diff: http://git-wip-us.apache.org/repos/asf/ranger/diff/54e0e8d0

Branch: refs/heads/master
Commit: 54e0e8d027130224416a235052be9a912a2f85a9
Parents: 93ccc52
Author: Deepak Sharma <dsharma@hortonworks.com>
Authored: Thu May 4 11:17:29 2017 -0700
Committer: Sailaja Polavarapu <spolavarapu@hortonworks.com>
Committed: Thu May 4 11:21:17 2017 -0700

----------------------------------------------------------------------
 .../ldapusersync/process/LdapDeltaUserGroupBuilder.java       | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ranger/blob/54e0e8d0/ugsync/src/main/java/org/apache/ranger/ldapusersync/process/LdapDeltaUserGroupBuilder.java
----------------------------------------------------------------------
diff --git a/ugsync/src/main/java/org/apache/ranger/ldapusersync/process/LdapDeltaUserGroupBuilder.java
b/ugsync/src/main/java/org/apache/ranger/ldapusersync/process/LdapDeltaUserGroupBuilder.java
index d65ba52..645a248 100644
--- a/ugsync/src/main/java/org/apache/ranger/ldapusersync/process/LdapDeltaUserGroupBuilder.java
+++ b/ugsync/src/main/java/org/apache/ranger/ldapusersync/process/LdapDeltaUserGroupBuilder.java
@@ -545,11 +545,10 @@ public class LdapDeltaUserGroupBuilder extends AbstractUserGroupSource
{
 			}
 			if (deltaSyncUserTime < highestdeltaSyncUserTime) {
 				// Incrementing highestdeltaSyncUserTime (for AD) in order to avoid search record repetition
for next sync cycle.
-				deltaSyncUserTime = highestdeltaSyncUserTime+1; 
-				// Incrementing the highest timestamp value (for Openldap) with 1min in order to avoid
search record repetition for next sync cycle.
-				deltaSyncUserTimeStamp = dateFormat.format(new Date(highestdeltaSyncUserTime + 60000l));
+				deltaSyncUserTime = highestdeltaSyncUserTime+1;
+				// Incrementing the highest timestamp value (for Openldap) with 1sec in order to avoid
search record repetition for next sync cycle.
+				deltaSyncUserTimeStamp = dateFormat.format(new Date(highestdeltaSyncUserTime + 60l));
 			}
-			
 		} finally {
 			if (userSearchResultEnum != null) {
 				userSearchResultEnum.close();


Mime
View raw message