accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vi...@apache.org
Subject svn commit: r1454165 - in /accumulo/branches/1.5/test/src/main/java/org/apache/accumulo/test/randomwalk/security: SecurityFixture.java WalkingSecurity.java
Date Thu, 07 Mar 2013 23:26:51 GMT
Author: vines
Date: Thu Mar  7 23:26:51 2013
New Revision: 1454165

URL: http://svn.apache.org/r1454165
Log:
ACCUMULO-1162 - WalkingSecurity was being cached, so state initialization in it never happened


Modified:
    accumulo/branches/1.5/test/src/main/java/org/apache/accumulo/test/randomwalk/security/SecurityFixture.java
    accumulo/branches/1.5/test/src/main/java/org/apache/accumulo/test/randomwalk/security/WalkingSecurity.java

Modified: accumulo/branches/1.5/test/src/main/java/org/apache/accumulo/test/randomwalk/security/SecurityFixture.java
URL: http://svn.apache.org/viewvc/accumulo/branches/1.5/test/src/main/java/org/apache/accumulo/test/randomwalk/security/SecurityFixture.java?rev=1454165&r1=1454164&r2=1454165&view=diff
==============================================================================
--- accumulo/branches/1.5/test/src/main/java/org/apache/accumulo/test/randomwalk/security/SecurityFixture.java
(original)
+++ accumulo/branches/1.5/test/src/main/java/org/apache/accumulo/test/randomwalk/security/SecurityFixture.java
Thu Mar  7 23:26:51 2013
@@ -95,6 +95,7 @@ public class SecurityFixture extends Fix
     String systemUserName = WalkingSecurity.get(state).getSysUserName();
     log.debug("Dropping user: " + systemUserName);
     conn.securityOperations().dropLocalUser(systemUserName);
+    WalkingSecurity.clearInstance();
     
   }
 }

Modified: accumulo/branches/1.5/test/src/main/java/org/apache/accumulo/test/randomwalk/security/WalkingSecurity.java
URL: http://svn.apache.org/viewvc/accumulo/branches/1.5/test/src/main/java/org/apache/accumulo/test/randomwalk/security/WalkingSecurity.java?rev=1454165&r1=1454164&r2=1454165&view=diff
==============================================================================
--- accumulo/branches/1.5/test/src/main/java/org/apache/accumulo/test/randomwalk/security/WalkingSecurity.java
(original)
+++ accumulo/branches/1.5/test/src/main/java/org/apache/accumulo/test/randomwalk/security/WalkingSecurity.java
Thu Mar  7 23:26:51 2013
@@ -419,4 +419,8 @@ public class WalkingSecurity extends Sec
     toRet.add(internal);
     return toRet;
   }
+
+  public static void clearInstance() {
+    instance = null;
+  }
 }



Mime
View raw message