You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by bh...@apache.org on 2014/01/17 04:59:57 UTC

[06/12] git commit: ACCUMULO-2211 Add missing delay in Security randomwalk CreateUser

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/master
Commit: 0ffb01a5600c4133f502a4b2a5befa2d0c70d8f4
Parents: cd4eac0
Author: Bill Havanki <bh...@cloudera.com>
Authored: Thu Jan 16 22:54:04 2014 -0500
Committer: Bill Havanki <bh...@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;
           }