[ 
https://issues.apache.org/jira/browse/HDDS-10581?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated HDDS-10581:
----------------------------------
    Labels: pull-request-available  (was: )

> NPE in SummarySubCommand & DiskUsageSubCommand
> ----------------------------------------------
>
>                 Key: HDDS-10581
>                 URL: https://issues.apache.org/jira/browse/HDDS-10581
>             Project: Apache Ozone
>          Issue Type: Bug
>          Components: Ozone CLI
>            Reporter: Attila Doroszlai
>            Assignee: Mohammad Arafat Khan
>            Priority: Minor
>              Labels: pull-request-available
>
> {{TestNSSummaryAdmin}} invokes various subcommands of {{{}ozone admin 
> namespace{}}}. It only checks for certain patterns in the output. NPE occurs 
> in {{{}*SummarySubCommand* & {*}DiskUsageSubCommand{*}}}, but it is silently 
> ignored. (It can be observed by logging \{{{}getErrContentString(){}}}).
> {code:java}
> java.lang.NullPointerException
>       at 
> org.apache.hadoop.ozone.admin.nssummary.SummarySubCommand.call(SummarySubCommand.java:86)
>       at 
> org.apache.hadoop.ozone.admin.nssummary.SummarySubCommand.call(SummarySubCommand.java:39)
>       at picocli.CommandLine.executeUserObject(CommandLine.java:2041)
>       at picocli.CommandLine.access$1500(CommandLine.java:148)
>       at 
> picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
>       at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
>       at picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
>       at 
> picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
>       at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
>       at picocli.CommandLine.execute(CommandLine.java:2170)
>       at org.apache.hadoop.hdds.cli.GenericCli.execute(GenericCli.java:100)
>       at 
> org.apache.hadoop.hdds.cli.OzoneAdmin.lambda$execute$0(OzoneAdmin.java:80)
>       at 
> org.apache.hadoop.hdds.tracing.TracingUtil.executeInSpan(TracingUtil.java:159)
>       at 
> org.apache.hadoop.hdds.tracing.TracingUtil.executeInNewSpan(TracingUtil.java:149)
>       at org.apache.hadoop.hdds.cli.OzoneAdmin.execute(OzoneAdmin.java:79)
>       at 
> org.apache.hadoop.ozone.shell.TestNSSummaryAdmin.executeAdminCommands(TestNSSummaryAdmin.java:172)
>       at 
> org.apache.hadoop.ozone.shell.TestNSSummaryAdmin.testNSSummaryCLIFSO(TestNSSummaryAdmin.java:135)
> {code}
> Note: this changes slightly after HDDS-10540, but the problem is similar.
> {code:java}
> Cannot invoke "com.fasterxml.jackson.databind.JsonNode.asInt()" because the 
> return value of "com.fasterxml.jackson.databind.JsonNode.get(String)" is null
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to