lujiefsi commented on pull request #2809: URL: https://github.com/apache/hbase/pull/2809#issuecomment-750732797
> (hahaha, sorry. I'm overlapping with Duo :) ) > > > I try to use code "hbck = TEST_UTIL.getConnection(USER_NONE).getHbck()" to gain the hbck, but UT still failed to pass. So I perfer to commit this PR without UT as its patch works fine in a real cluster. > > Look at `getAsyncConnection` in `HBaseTestingUtility.java`. Can you verify what `User` is here? > > You could also just instantiate your own `Connection` and call `getHbck()` on that `Connection`, to avoid whatever HBaseTestingUtility is doing. The `TestAccessController#testRead()` method has an example of creating a new `Connection`. > > Could you try that, please? I have inserted a log to find what User is here. I found that the user is 'lujie' who runs the test. 2020-12-24 12:07:00,160 INFO [RpcServer.default.FPBQ.Fifo.handler=2,queue=0,port=46723] regionserver.RSRpcServices(1301): the user name is lujie (auth:SIMPLE) ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
