[ 
https://issues.apache.org/jira/browse/HBASE-7581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13555239#comment-13555239
 ] 

Andrew Purtell edited comment on HBASE-7581 at 1/16/13 5:33 PM:
----------------------------------------------------------------

I ran into this yesterday and was trying to figure it out too, the bulk load 
test was the issue. I've been testing a local fix that looks like this part, +1:

{noformat}
diff --git 
a/hbase-server/src/test/java/org/apache/hadoop/hbase/security/access/TestAccessController.java
 
b/hbase-server/src/test/java/org/apache/hadoop/hbase/security/access/TestAccessController.java
index 9b38eb7..3e14276 100644
--- 
a/hbase-server/src/test/java/org/apache/hadoop/hbase/security/access/TestAccessController.java
+++ 
b/hbase-server/src/test/java/org/apache/hadoop/hbase/security/access/TestAccessController.java
@@ -675,10 +675,9 @@ public class TestAccessController {
     // action for checkAndPut()
     PrivilegedExceptionAction checkAndPut = new PrivilegedExceptionAction() {
       public Object run() throws Exception {
+        HTable t = new HTable(conf, TEST_TABLE);
         Put p = new Put(Bytes.toBytes("random_row"));
         p.add(TEST_FAMILY, Bytes.toBytes("Qualifier"), Bytes.toBytes(1));
-
-        HTable t = new HTable(conf, TEST_TABLE);
         t.checkAndPut(Bytes.toBytes("random_row"), TEST_FAMILY, 
Bytes.toBytes("q"),
           Bytes.toBytes("test_value"), p);
         return null;
@@ -711,6 +710,10 @@ public class TestAccessController {
       }
     };
     verifyWrite(bulkLoadAction);
+
+    // Reinit after the bulk upload
+    TEST_UTIL.getHBaseAdmin().disableTable(TEST_TABLE);
+    TEST_UTIL.getHBaseAdmin().enableTable(TEST_TABLE);
   }
 
   public class BulkLoadHelper {
{noformat}
                
      was (Author: apurtell):
    I ran into this yesterday and was trying to figure it out too, the bulk 
load test was the issue. I've been testing a local fix that looks like this 
one, +1.
                  
> TestAccessController depends on the execution order
> ---------------------------------------------------
>
>                 Key: HBASE-7581
>                 URL: https://issues.apache.org/jira/browse/HBASE-7581
>             Project: HBase
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 0.96.0
>            Reporter: nkeywal
>            Assignee: nkeywal
>             Fix For: 0.96.0
>
>         Attachments: 7581.v1.patch
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to