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/03/20 20:02:51 UTC
[01/10] git commit: ACCUMULO-2508 Add delay after dropping user in
security randomwalk
Repository: accumulo
Updated Branches:
refs/heads/1.4.5-SNAPSHOT 4a27da546 -> bbd6aeb33
refs/heads/1.5.2-SNAPSHOT d22bf18f4 -> 4b7a011ca
refs/heads/1.6.0-SNAPSHOT acce1d53f -> aefa52e2a
refs/heads/master 7988f8f6c -> b644edade
ACCUMULO-2508 Add delay after dropping user in security randomwalk
Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/bbd6aeb3
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/bbd6aeb3
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/bbd6aeb3
Branch: refs/heads/1.4.5-SNAPSHOT
Commit: bbd6aeb3303ddd230f7f609b1cf7d3137cbc180d
Parents: 4a27da5
Author: Bill Havanki <bh...@cloudera.com>
Authored: Thu Mar 20 14:57:25 2014 -0400
Committer: Bill Havanki <bh...@cloudera.com>
Committed: Thu Mar 20 14:57:25 2014 -0400
----------------------------------------------------------------------
.../apache/accumulo/server/test/randomwalk/security/DropUser.java | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/accumulo/blob/bbd6aeb3/src/server/src/main/java/org/apache/accumulo/server/test/randomwalk/security/DropUser.java
----------------------------------------------------------------------
diff --git a/src/server/src/main/java/org/apache/accumulo/server/test/randomwalk/security/DropUser.java b/src/server/src/main/java/org/apache/accumulo/server/test/randomwalk/security/DropUser.java
index 8957e6a..1fa3789 100644
--- a/src/server/src/main/java/org/apache/accumulo/server/test/randomwalk/security/DropUser.java
+++ b/src/server/src/main/java/org/apache/accumulo/server/test/randomwalk/security/DropUser.java
@@ -71,6 +71,7 @@ public class DropUser extends Test {
SecurityHelper.setTabPerm(state, tableUserName, tp, false);
for (SystemPermission sp : SystemPermission.values())
SecurityHelper.setSysPerm(state, tableUserName, sp, false);
+ Thread.sleep(1000);
if (!hasPermission)
throw new AccumuloException("Didn't get Security Exception when we should have");
}
[03/10] git commit: ACCUMULO-2508 Add delay after dropping user in
security randomwalk
Posted by bh...@apache.org.
ACCUMULO-2508 Add delay after dropping user in security randomwalk
Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/bbd6aeb3
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/bbd6aeb3
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/bbd6aeb3
Branch: refs/heads/1.6.0-SNAPSHOT
Commit: bbd6aeb3303ddd230f7f609b1cf7d3137cbc180d
Parents: 4a27da5
Author: Bill Havanki <bh...@cloudera.com>
Authored: Thu Mar 20 14:57:25 2014 -0400
Committer: Bill Havanki <bh...@cloudera.com>
Committed: Thu Mar 20 14:57:25 2014 -0400
----------------------------------------------------------------------
.../apache/accumulo/server/test/randomwalk/security/DropUser.java | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/accumulo/blob/bbd6aeb3/src/server/src/main/java/org/apache/accumulo/server/test/randomwalk/security/DropUser.java
----------------------------------------------------------------------
diff --git a/src/server/src/main/java/org/apache/accumulo/server/test/randomwalk/security/DropUser.java b/src/server/src/main/java/org/apache/accumulo/server/test/randomwalk/security/DropUser.java
index 8957e6a..1fa3789 100644
--- a/src/server/src/main/java/org/apache/accumulo/server/test/randomwalk/security/DropUser.java
+++ b/src/server/src/main/java/org/apache/accumulo/server/test/randomwalk/security/DropUser.java
@@ -71,6 +71,7 @@ public class DropUser extends Test {
SecurityHelper.setTabPerm(state, tableUserName, tp, false);
for (SystemPermission sp : SystemPermission.values())
SecurityHelper.setSysPerm(state, tableUserName, sp, false);
+ Thread.sleep(1000);
if (!hasPermission)
throw new AccumuloException("Didn't get Security Exception when we should have");
}
[07/10] git commit: Merge branch '1.4.5-SNAPSHOT' into 1.5.2-SNAPSHOT
Posted by bh...@apache.org.
Merge branch '1.4.5-SNAPSHOT' into 1.5.2-SNAPSHOT
Conflicts:
test/src/main/java/org/apache/accumulo/test/randomwalk/security/DropUser.java
Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/4b7a011c
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/4b7a011c
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/4b7a011c
Branch: refs/heads/master
Commit: 4b7a011ca59cd0f731192169d3999c630e14c0e1
Parents: d22bf18 bbd6aeb
Author: Bill Havanki <bh...@cloudera.com>
Authored: Thu Mar 20 15:01:37 2014 -0400
Committer: Bill Havanki <bh...@cloudera.com>
Committed: Thu Mar 20 15:01:37 2014 -0400
----------------------------------------------------------------------
.../java/org/apache/accumulo/test/randomwalk/security/DropUser.java | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/accumulo/blob/4b7a011c/test/src/main/java/org/apache/accumulo/test/randomwalk/security/DropUser.java
----------------------------------------------------------------------
diff --cc test/src/main/java/org/apache/accumulo/test/randomwalk/security/DropUser.java
index ddf39aa,0000000..d48a2cd
mode 100644,000000..100644
--- a/test/src/main/java/org/apache/accumulo/test/randomwalk/security/DropUser.java
+++ b/test/src/main/java/org/apache/accumulo/test/randomwalk/security/DropUser.java
@@@ -1,66 -1,0 +1,67 @@@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.accumulo.test.randomwalk.security;
+
+import java.util.Properties;
+
+import org.apache.accumulo.core.client.AccumuloException;
+import org.apache.accumulo.core.client.AccumuloSecurityException;
+import org.apache.accumulo.core.client.Connector;
+import org.apache.accumulo.test.randomwalk.State;
+import org.apache.accumulo.test.randomwalk.Test;
+
+public class DropUser extends Test {
+
+ @Override
+ public void visit(State state, Properties props) throws Exception {
+ Connector conn = state.getInstance().getConnector(WalkingSecurity.get(state).getSysUserName(), WalkingSecurity.get(state).getSysToken());
+
+ String tableUserName = WalkingSecurity.get(state).getTabUserName();
+
+ boolean exists = WalkingSecurity.get(state).userExists(tableUserName);
+ boolean hasPermission = WalkingSecurity.get(state).canDropUser(WalkingSecurity.get(state).getSysCredentials(), tableUserName);
+
+ try {
+ conn.securityOperations().dropLocalUser(tableUserName);
+ } catch (AccumuloSecurityException ae) {
+ switch (ae.getSecurityErrorCode()) {
+ case PERMISSION_DENIED:
+ if (hasPermission)
+ throw new AccumuloException("Got a security exception when I should have had permission.", ae);
+ else {
+ if (exists) {
+ state.getConnector().securityOperations().dropLocalUser(tableUserName);
+ WalkingSecurity.get(state).dropUser(tableUserName);
+ }
+ return;
+ }
+
+ case USER_DOESNT_EXIST:
+ if (exists)
+ throw new AccumuloException("Got user DNE exception when user should exists.", ae);
+ else
+ return;
+ default:
+ throw new AccumuloException("Got unexpected exception", ae);
+ }
+ }
+ WalkingSecurity.get(state).dropUser(tableUserName);
++ Thread.sleep(1000);
+ if (!hasPermission)
+ throw new AccumuloException("Didn't get Security Exception when we should have");
+ }
+}
[08/10] git commit: Merge branch '1.5.2-SNAPSHOT' into 1.6.0-SNAPSHOT
Posted by bh...@apache.org.
Merge branch '1.5.2-SNAPSHOT' into 1.6.0-SNAPSHOT
Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/aefa52e2
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/aefa52e2
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/aefa52e2
Branch: refs/heads/1.6.0-SNAPSHOT
Commit: aefa52e2af722ef3dc8ea6ebf342b61a40611397
Parents: acce1d5 4b7a011
Author: Bill Havanki <bh...@cloudera.com>
Authored: Thu Mar 20 15:01:47 2014 -0400
Committer: Bill Havanki <bh...@cloudera.com>
Committed: Thu Mar 20 15:01:47 2014 -0400
----------------------------------------------------------------------
.../java/org/apache/accumulo/test/randomwalk/security/DropUser.java | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
[05/10] git commit: Merge branch '1.4.5-SNAPSHOT' into 1.5.2-SNAPSHOT
Posted by bh...@apache.org.
Merge branch '1.4.5-SNAPSHOT' into 1.5.2-SNAPSHOT
Conflicts:
test/src/main/java/org/apache/accumulo/test/randomwalk/security/DropUser.java
Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/4b7a011c
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/4b7a011c
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/4b7a011c
Branch: refs/heads/1.6.0-SNAPSHOT
Commit: 4b7a011ca59cd0f731192169d3999c630e14c0e1
Parents: d22bf18 bbd6aeb
Author: Bill Havanki <bh...@cloudera.com>
Authored: Thu Mar 20 15:01:37 2014 -0400
Committer: Bill Havanki <bh...@cloudera.com>
Committed: Thu Mar 20 15:01:37 2014 -0400
----------------------------------------------------------------------
.../java/org/apache/accumulo/test/randomwalk/security/DropUser.java | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/accumulo/blob/4b7a011c/test/src/main/java/org/apache/accumulo/test/randomwalk/security/DropUser.java
----------------------------------------------------------------------
diff --cc test/src/main/java/org/apache/accumulo/test/randomwalk/security/DropUser.java
index ddf39aa,0000000..d48a2cd
mode 100644,000000..100644
--- a/test/src/main/java/org/apache/accumulo/test/randomwalk/security/DropUser.java
+++ b/test/src/main/java/org/apache/accumulo/test/randomwalk/security/DropUser.java
@@@ -1,66 -1,0 +1,67 @@@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.accumulo.test.randomwalk.security;
+
+import java.util.Properties;
+
+import org.apache.accumulo.core.client.AccumuloException;
+import org.apache.accumulo.core.client.AccumuloSecurityException;
+import org.apache.accumulo.core.client.Connector;
+import org.apache.accumulo.test.randomwalk.State;
+import org.apache.accumulo.test.randomwalk.Test;
+
+public class DropUser extends Test {
+
+ @Override
+ public void visit(State state, Properties props) throws Exception {
+ Connector conn = state.getInstance().getConnector(WalkingSecurity.get(state).getSysUserName(), WalkingSecurity.get(state).getSysToken());
+
+ String tableUserName = WalkingSecurity.get(state).getTabUserName();
+
+ boolean exists = WalkingSecurity.get(state).userExists(tableUserName);
+ boolean hasPermission = WalkingSecurity.get(state).canDropUser(WalkingSecurity.get(state).getSysCredentials(), tableUserName);
+
+ try {
+ conn.securityOperations().dropLocalUser(tableUserName);
+ } catch (AccumuloSecurityException ae) {
+ switch (ae.getSecurityErrorCode()) {
+ case PERMISSION_DENIED:
+ if (hasPermission)
+ throw new AccumuloException("Got a security exception when I should have had permission.", ae);
+ else {
+ if (exists) {
+ state.getConnector().securityOperations().dropLocalUser(tableUserName);
+ WalkingSecurity.get(state).dropUser(tableUserName);
+ }
+ return;
+ }
+
+ case USER_DOESNT_EXIST:
+ if (exists)
+ throw new AccumuloException("Got user DNE exception when user should exists.", ae);
+ else
+ return;
+ default:
+ throw new AccumuloException("Got unexpected exception", ae);
+ }
+ }
+ WalkingSecurity.get(state).dropUser(tableUserName);
++ Thread.sleep(1000);
+ if (!hasPermission)
+ throw new AccumuloException("Didn't get Security Exception when we should have");
+ }
+}
[02/10] git commit: ACCUMULO-2508 Add delay after dropping user in
security randomwalk
Posted by bh...@apache.org.
ACCUMULO-2508 Add delay after dropping user in security randomwalk
Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/bbd6aeb3
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/bbd6aeb3
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/bbd6aeb3
Branch: refs/heads/1.5.2-SNAPSHOT
Commit: bbd6aeb3303ddd230f7f609b1cf7d3137cbc180d
Parents: 4a27da5
Author: Bill Havanki <bh...@cloudera.com>
Authored: Thu Mar 20 14:57:25 2014 -0400
Committer: Bill Havanki <bh...@cloudera.com>
Committed: Thu Mar 20 14:57:25 2014 -0400
----------------------------------------------------------------------
.../apache/accumulo/server/test/randomwalk/security/DropUser.java | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/accumulo/blob/bbd6aeb3/src/server/src/main/java/org/apache/accumulo/server/test/randomwalk/security/DropUser.java
----------------------------------------------------------------------
diff --git a/src/server/src/main/java/org/apache/accumulo/server/test/randomwalk/security/DropUser.java b/src/server/src/main/java/org/apache/accumulo/server/test/randomwalk/security/DropUser.java
index 8957e6a..1fa3789 100644
--- a/src/server/src/main/java/org/apache/accumulo/server/test/randomwalk/security/DropUser.java
+++ b/src/server/src/main/java/org/apache/accumulo/server/test/randomwalk/security/DropUser.java
@@ -71,6 +71,7 @@ public class DropUser extends Test {
SecurityHelper.setTabPerm(state, tableUserName, tp, false);
for (SystemPermission sp : SystemPermission.values())
SecurityHelper.setSysPerm(state, tableUserName, sp, false);
+ Thread.sleep(1000);
if (!hasPermission)
throw new AccumuloException("Didn't get Security Exception when we should have");
}
[10/10] git commit: Merge branch '1.6.0-SNAPSHOT'
Posted by bh...@apache.org.
Merge branch '1.6.0-SNAPSHOT'
Conflicts:
test/src/main/java/org/apache/accumulo/test/randomwalk/security/DropUser.java
Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/b644edad
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/b644edad
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/b644edad
Branch: refs/heads/master
Commit: b644edade2041f05cd837542cadce3fa5a7e2923
Parents: 7988f8f aefa52e
Author: Bill Havanki <bh...@cloudera.com>
Authored: Thu Mar 20 15:02:19 2014 -0400
Committer: Bill Havanki <bh...@cloudera.com>
Committed: Thu Mar 20 15:02:19 2014 -0400
----------------------------------------------------------------------
.../java/org/apache/accumulo/test/randomwalk/security/DropUser.java | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/accumulo/blob/b644edad/test/src/main/java/org/apache/accumulo/test/randomwalk/security/DropUser.java
----------------------------------------------------------------------
diff --cc test/src/main/java/org/apache/accumulo/test/randomwalk/security/DropUser.java
index f310116,d48a2cd..40bde3b
--- a/test/src/main/java/org/apache/accumulo/test/randomwalk/security/DropUser.java
+++ b/test/src/main/java/org/apache/accumulo/test/randomwalk/security/DropUser.java
@@@ -60,7 -59,8 +60,8 @@@ public class DropUser extends Test
throw new AccumuloException("Got unexpected exception", ae);
}
}
- WalkingSecurity.get(state).dropUser(tableUserName);
+ WalkingSecurity.get(state,env).dropUser(tableUserName);
+ Thread.sleep(1000);
if (!hasPermission)
throw new AccumuloException("Didn't get Security Exception when we should have");
}
[06/10] git commit: Merge branch '1.4.5-SNAPSHOT' into 1.5.2-SNAPSHOT
Posted by bh...@apache.org.
Merge branch '1.4.5-SNAPSHOT' into 1.5.2-SNAPSHOT
Conflicts:
test/src/main/java/org/apache/accumulo/test/randomwalk/security/DropUser.java
Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/4b7a011c
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/4b7a011c
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/4b7a011c
Branch: refs/heads/1.5.2-SNAPSHOT
Commit: 4b7a011ca59cd0f731192169d3999c630e14c0e1
Parents: d22bf18 bbd6aeb
Author: Bill Havanki <bh...@cloudera.com>
Authored: Thu Mar 20 15:01:37 2014 -0400
Committer: Bill Havanki <bh...@cloudera.com>
Committed: Thu Mar 20 15:01:37 2014 -0400
----------------------------------------------------------------------
.../java/org/apache/accumulo/test/randomwalk/security/DropUser.java | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/accumulo/blob/4b7a011c/test/src/main/java/org/apache/accumulo/test/randomwalk/security/DropUser.java
----------------------------------------------------------------------
diff --cc test/src/main/java/org/apache/accumulo/test/randomwalk/security/DropUser.java
index ddf39aa,0000000..d48a2cd
mode 100644,000000..100644
--- a/test/src/main/java/org/apache/accumulo/test/randomwalk/security/DropUser.java
+++ b/test/src/main/java/org/apache/accumulo/test/randomwalk/security/DropUser.java
@@@ -1,66 -1,0 +1,67 @@@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.accumulo.test.randomwalk.security;
+
+import java.util.Properties;
+
+import org.apache.accumulo.core.client.AccumuloException;
+import org.apache.accumulo.core.client.AccumuloSecurityException;
+import org.apache.accumulo.core.client.Connector;
+import org.apache.accumulo.test.randomwalk.State;
+import org.apache.accumulo.test.randomwalk.Test;
+
+public class DropUser extends Test {
+
+ @Override
+ public void visit(State state, Properties props) throws Exception {
+ Connector conn = state.getInstance().getConnector(WalkingSecurity.get(state).getSysUserName(), WalkingSecurity.get(state).getSysToken());
+
+ String tableUserName = WalkingSecurity.get(state).getTabUserName();
+
+ boolean exists = WalkingSecurity.get(state).userExists(tableUserName);
+ boolean hasPermission = WalkingSecurity.get(state).canDropUser(WalkingSecurity.get(state).getSysCredentials(), tableUserName);
+
+ try {
+ conn.securityOperations().dropLocalUser(tableUserName);
+ } catch (AccumuloSecurityException ae) {
+ switch (ae.getSecurityErrorCode()) {
+ case PERMISSION_DENIED:
+ if (hasPermission)
+ throw new AccumuloException("Got a security exception when I should have had permission.", ae);
+ else {
+ if (exists) {
+ state.getConnector().securityOperations().dropLocalUser(tableUserName);
+ WalkingSecurity.get(state).dropUser(tableUserName);
+ }
+ return;
+ }
+
+ case USER_DOESNT_EXIST:
+ if (exists)
+ throw new AccumuloException("Got user DNE exception when user should exists.", ae);
+ else
+ return;
+ default:
+ throw new AccumuloException("Got unexpected exception", ae);
+ }
+ }
+ WalkingSecurity.get(state).dropUser(tableUserName);
++ Thread.sleep(1000);
+ if (!hasPermission)
+ throw new AccumuloException("Didn't get Security Exception when we should have");
+ }
+}
[09/10] git commit: Merge branch '1.5.2-SNAPSHOT' into 1.6.0-SNAPSHOT
Posted by bh...@apache.org.
Merge branch '1.5.2-SNAPSHOT' into 1.6.0-SNAPSHOT
Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/aefa52e2
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/aefa52e2
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/aefa52e2
Branch: refs/heads/master
Commit: aefa52e2af722ef3dc8ea6ebf342b61a40611397
Parents: acce1d5 4b7a011
Author: Bill Havanki <bh...@cloudera.com>
Authored: Thu Mar 20 15:01:47 2014 -0400
Committer: Bill Havanki <bh...@cloudera.com>
Committed: Thu Mar 20 15:01:47 2014 -0400
----------------------------------------------------------------------
.../java/org/apache/accumulo/test/randomwalk/security/DropUser.java | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
[04/10] git commit: ACCUMULO-2508 Add delay after dropping user in
security randomwalk
Posted by bh...@apache.org.
ACCUMULO-2508 Add delay after dropping user in security randomwalk
Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/bbd6aeb3
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/bbd6aeb3
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/bbd6aeb3
Branch: refs/heads/master
Commit: bbd6aeb3303ddd230f7f609b1cf7d3137cbc180d
Parents: 4a27da5
Author: Bill Havanki <bh...@cloudera.com>
Authored: Thu Mar 20 14:57:25 2014 -0400
Committer: Bill Havanki <bh...@cloudera.com>
Committed: Thu Mar 20 14:57:25 2014 -0400
----------------------------------------------------------------------
.../apache/accumulo/server/test/randomwalk/security/DropUser.java | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/accumulo/blob/bbd6aeb3/src/server/src/main/java/org/apache/accumulo/server/test/randomwalk/security/DropUser.java
----------------------------------------------------------------------
diff --git a/src/server/src/main/java/org/apache/accumulo/server/test/randomwalk/security/DropUser.java b/src/server/src/main/java/org/apache/accumulo/server/test/randomwalk/security/DropUser.java
index 8957e6a..1fa3789 100644
--- a/src/server/src/main/java/org/apache/accumulo/server/test/randomwalk/security/DropUser.java
+++ b/src/server/src/main/java/org/apache/accumulo/server/test/randomwalk/security/DropUser.java
@@ -71,6 +71,7 @@ public class DropUser extends Test {
SecurityHelper.setTabPerm(state, tableUserName, tp, false);
for (SystemPermission sp : SystemPermission.values())
SecurityHelper.setSysPerm(state, tableUserName, sp, false);
+ Thread.sleep(1000);
if (!hasPermission)
throw new AccumuloException("Didn't get Security Exception when we should have");
}