Created https://issues.apache.org/jira/browse/HBASE-6851
On Thu, Sep 20, 2012 at 6:54 PM, Stack <[email protected]> wrote: > On Thu, Sep 20, 2012 at 3:49 PM, Gary Helmling <[email protected]> wrote: >> I ran TestAccessController locally in a loop 100 times without being >> able to reproduce the failure. Unfortunately surefire did not capture >> an output log from the test, maybe because it failed in the >> @BeforeClass setup method? What's weird is that, looking at the code, >> the first grant() operation succeeded. Only the second failed with an >> AccessDeniedException. >> >> Looking at TableAuthManager.refreshCacheFromWritable() and >> TableAuthManager.updateGlobalCache(), it looks like we do have a race >> condition, where the global caches are initially cleared and then >> rebuilt, so any authorization checks that come in in the interim will >> fail. >> > > Thanks for taking a look (I won't bother saying what you know I was > going to say next) > > St.Ack
