hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r1079138 - /hadoop/common/branches/yahoo-merge/src/java/org/apache/hadoop/security/UserGroupInformation.java
Date Tue, 08 Mar 2011 04:38:33 GMT
Author: omalley
Date: Tue Mar  8 04:38:33 2011
New Revision: 1079138

URL: http://svn.apache.org/viewvc?rev=1079138&view=rev
Log:
commit 9bd80b12bccc5244ebdb76659f9add3bf7eea858
Author: Devaraj Das <ddas@yahoo-inc.com>
Date:   Fri Nov 19 19:00:44 2010 -0800

    . Fix on top of the earlier patch.

Modified:
    hadoop/common/branches/yahoo-merge/src/java/org/apache/hadoop/security/UserGroupInformation.java

Modified: hadoop/common/branches/yahoo-merge/src/java/org/apache/hadoop/security/UserGroupInformation.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/yahoo-merge/src/java/org/apache/hadoop/security/UserGroupInformation.java?rev=1079138&r1=1079137&r2=1079138&view=diff
==============================================================================
--- hadoop/common/branches/yahoo-merge/src/java/org/apache/hadoop/security/UserGroupInformation.java
(original)
+++ hadoop/common/branches/yahoo-merge/src/java/org/apache/hadoop/security/UserGroupInformation.java
Tue Mar  8 04:38:33 2011
@@ -635,6 +635,11 @@ public class UserGroupInformation {
          !isKeytab)
       return;
     
+    long now = System.currentTimeMillis();
+    if (!hasSufficientTimeElapsed(now)) {
+      return;
+    }
+
     KerberosTicket tgt = getTGT();
     //Return if TGT is valid and is not going to expire soon.
     if (tgt != null && System.currentTimeMillis() < getRefreshTime(tgt)) {
@@ -645,7 +650,6 @@ public class UserGroupInformation {
     if (login == null || keytabFile == null) {
       throw new IOException("loginUserFromKeyTab must be done first");
     }
-    long now = System.currentTimeMillis();
     
     long start = 0;
     // register most recent relogin attempt



Mime
View raw message