accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhava...@apache.org
Subject [04/12] git commit: ACCUMULO-2211 Add missing delay in Security randomwalk CreateUser
Date Fri, 17 Jan 2014 03:59:55 GMT
ACCUMULO-2211 Add missing delay in Security randomwalk CreateUser

This commit adds a one second delay after creating the "table" user in the Security
randomwalk test, in the case where the creation fails with a permission denied error,
but the user needs to be created anyway to continue the test. The delay accompanies
those added in ACCUMULO-1123.


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/0ffb01a5
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/0ffb01a5
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/0ffb01a5

Branch: refs/heads/1.6.0-SNAPSHOT
Commit: 0ffb01a5600c4133f502a4b2a5befa2d0c70d8f4
Parents: cd4eac0
Author: Bill Havanki <bhavanki@cloudera.com>
Authored: Thu Jan 16 22:54:04 2014 -0500
Committer: Bill Havanki <bhavanki@cloudera.com>
Committed: Thu Jan 16 22:54:04 2014 -0500

----------------------------------------------------------------------
 .../apache/accumulo/server/test/randomwalk/security/CreateUser.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/0ffb01a5/src/server/src/main/java/org/apache/accumulo/server/test/randomwalk/security/CreateUser.java
----------------------------------------------------------------------
diff --git a/src/server/src/main/java/org/apache/accumulo/server/test/randomwalk/security/CreateUser.java
b/src/server/src/main/java/org/apache/accumulo/server/test/randomwalk/security/CreateUser.java
index fe6458f..8ebf727 100644
--- a/src/server/src/main/java/org/apache/accumulo/server/test/randomwalk/security/CreateUser.java
+++ b/src/server/src/main/java/org/apache/accumulo/server/test/randomwalk/security/CreateUser.java
@@ -53,6 +53,7 @@ public class CreateUser extends Test {
               state.getConnector().securityOperations().createUser(tableUserName, tabUserPass,
new Authorizations());
               SecurityHelper.setTabUserPass(state, tabUserPass);
               SecurityHelper.setTabUserExists(state, true);
+              Thread.sleep(1000);
             }
             return;
           }


Mime
View raw message