Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-823

OzoneRestClient is failing with NPE on getKeyDetails call

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 0.3.0
    • 0.3.0, 0.4.0
    • Ozone Client
    • None

    Description

      RestClient#getKeyDetails is failing with NullPointerException which is causing few of unit test and smoke test to fail.
      Exception trace:

      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
      	

      Attachments

        1. report.html
          213 kB
          Bharat Viswanadham
        2. HDDS-823.00.patch
          2 kB
          Bharat Viswanadham

        Activity

          People

            bharat Bharat Viswanadham
            nanda Nandakumar
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: