You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/04/29 12:40:00 UTC

[jira] [Updated] (HDDS-2406) ozone shell key get throws IllegalArgumentException if pipeline is empty

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

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

> ozone shell key get throws IllegalArgumentException if pipeline is empty
> ------------------------------------------------------------------------
>
>                 Key: HDDS-2406
>                 URL: https://issues.apache.org/jira/browse/HDDS-2406
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>          Components: Ozone CLI
>            Reporter: Attila Doroszlai
>            Assignee: Huang Mu, Zheng
>            Priority: Minor
>              Labels: pull-request-available
>
> {{ozone shell key get}} throws when trying to get a key from a pipeline whose datanodes are all down:
> {code}
> java.lang.IllegalArgumentException
> 	at com.google.common.base.Preconditions.checkArgument(Preconditions.java:72)
> 	at org.apache.hadoop.hdds.scm.XceiverClientManager.acquireClient(XceiverClientManager.java:169)
> 	at org.apache.hadoop.hdds.scm.XceiverClientManager.acquireClientForReadData(XceiverClientManager.java:162)
> 	at org.apache.hadoop.hdds.scm.storage.BlockInputStream.getChunkInfos(BlockInputStream.java:154)
> 	at org.apache.hadoop.hdds.scm.storage.BlockInputStream.initialize(BlockInputStream.java:118)
> 	at org.apache.hadoop.hdds.scm.storage.BlockInputStream.read(BlockInputStream.java:224)
> 	at org.apache.hadoop.ozone.client.io.KeyInputStream.read(KeyInputStream.java:173)
> 	at org.apache.hadoop.ozone.client.io.OzoneInputStream.read(OzoneInputStream.java:47)
> 	at java.base/java.io.InputStream.read(InputStream.java:205)
> 	at org.apache.hadoop.io.IOUtils.copyBytes(IOUtils.java:94)
> 	at org.apache.hadoop.ozone.web.ozShell.keys.GetKeyHandler.call(GetKeyHandler.java:98)
> 	at org.apache.hadoop.ozone.web.ozShell.keys.GetKeyHandler.call(GetKeyHandler.java:48)
> 	at picocli.CommandLine.execute(CommandLine.java:1173)
> 	at picocli.CommandLine.access$800(CommandLine.java:141)
> 	at picocli.CommandLine$RunLast.handle(CommandLine.java:1367)
> 	at picocli.CommandLine$RunLast.handle(CommandLine.java:1335)
> 	at picocli.CommandLine$AbstractParseResultHandler.handleParseResult(CommandLine.java:1243)
> 	at picocli.CommandLine.parseWithHandlers(CommandLine.java:1526)
> 	at picocli.CommandLine.parseWithHandler(CommandLine.java:1465)
> 	at org.apache.hadoop.hdds.cli.GenericCli.execute(GenericCli.java:65)
> 	at org.apache.hadoop.ozone.web.ozShell.OzoneShell.execute(OzoneShell.java:60)
> 	at org.apache.hadoop.hdds.cli.GenericCli.run(GenericCli.java:56)
> 	at org.apache.hadoop.ozone.web.ozShell.OzoneShell.main(OzoneShell.java:53)
> {code}
> I think the exception should be caught and shell should output a more friendly / less verbose message.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org