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

Steve Loughran edited comment on HADOOP-16707 at 11/13/19 5:29 PM:
-------------------------------------------------------------------

{code}
[INFO] Running org.apache.hadoop.fs.azurebfs.ITestAbfsIdentityTransformer
[ERROR] Tests run: 9, Failures: 0, Errors: 3, Skipped: 6, Time elapsed: 0.728 s 
<<< FAILURE! - in org.apache.hadoop.fs.azurebfs.ITestAbfsIdentityTransformer
[ERROR] 
testIdentityReplacementForSuperUserGetRequest(org.apache.hadoop.fs.azurebfs.ITestAbfsIdentityTransformer)
  Time elapsed: 0 s  <<< ERROR!
java.lang.NullPointerException
        at 
org.apache.hadoop.security.UserGroupInformation.createLoginUser(UserGroupInformation.java:762)
        at 
org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:696)
        at 
org.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java:607)
        at 
org.apache.hadoop.fs.azurebfs.ITestAbfsIdentityTransformer.<init>(ITestAbfsIdentityTransformer.java:66)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at 
org.junit.runners.BlockJUnit4ClassRunner.createTest(BlockJUnit4ClassRunner.java:217)
        at 
org.junit.runners.BlockJUnit4ClassRunner$1.runReflectiveCall(BlockJUnit4ClassRunner.java:266)
        at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
        at 
org.junit.runners.BlockJUnit4ClassRunner.methodBlock(BlockJUnit4ClassRunner.java:263)
        at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
        at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
        at 
org.apache.maven.surefire.junitcore.pc.Scheduler$1.run(Scheduler.java:405)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)


{code}


was (Author: [email protected]):
{code}

{code}

> NPE in UGI.getCurrentUser in ITestAbfsIdentityTransformer setup
> ---------------------------------------------------------------
>
>                 Key: HADOOP-16707
>                 URL: https://issues.apache.org/jira/browse/HADOOP-16707
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: auth, fs/azure, security
>    Affects Versions: 3.3.0
>            Reporter: Steve Loughran
>            Assignee: Steve Loughran
>            Priority: Major
>
> Change logs of the files point some of the blame at me here; 
> UGI.getCurrentUser is failing in ITestAbfsIdentityTransformer init just after 
> a UGI.reset()
> The public entry points in UGI should all call ensureInitialized(). 
> I have no idea how this worked at all. I've been fiddling with ABFS accounts 
> and tests which did work now cause NPEs in UGI.
> This is all test setup; I could probably fix it in the ABF S test case simply 
> by calling A UGI method we know calls {{ensureInitialized()}}. But fixing UGI 
> is the right thing to do.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to