Nanda kumar created HDDS-823:
--------------------------------

             Summary: OzoneRestClient is failing with NPE on getKeyDetails call
                 Key: HDDS-823
                 URL: https://issues.apache.org/jira/browse/HDDS-823
             Project: Hadoop Distributed Data Store
          Issue Type: Bug
          Components: Ozone Client
    Affects Versions: 0.3.0
            Reporter: Nanda kumar


{{RestClient#getKeyDetails}} is failing with {{NullPointerException}} which is 
causing a lot of unit test and smoke test to fail.
Exception trace:
{code:java}
Error while calling command 
(org.apache.hadoop.ozone.web.ozShell.keys.InfoKeyHandler@13713486): 
java.lang.NullPointerException
        at picocli.CommandLine.execute(CommandLine.java:926)
        at picocli.CommandLine.access$700(CommandLine.java:104)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:1083)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:1051)
        at 
picocli.CommandLine$AbstractParseResultHandler.handleParseResult(CommandLine.java:959)
        at picocli.CommandLine.parseWithHandlers(CommandLine.java:1242)
        at 
org.apache.hadoop.ozone.ozShell.TestOzoneShell.execute(TestOzoneShell.java:259)
        at 
org.apache.hadoop.ozone.ozShell.TestOzoneShell.testInfoDirKey(TestOzoneShell.java:1013)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
        at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
        at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
        at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
        at 
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
        at 
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
        at 
org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:74)
Caused by: java.lang.NullPointerException
        at 
org.apache.hadoop.ozone.client.rest.RestClient.getKeyDetails(RestClient.java:817)
        at 
org.apache.hadoop.ozone.client.OzoneBucket.getKey(OzoneBucket.java:282)
        at 
org.apache.hadoop.ozone.web.ozShell.keys.InfoKeyHandler.call(InfoKeyHandler.java:65)
        at 
org.apache.hadoop.ozone.web.ozShell.keys.InfoKeyHandler.call(InfoKeyHandler.java:37)
        at picocli.CommandLine.execute(CommandLine.java:919)
        ... 18 more
        {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to