[
https://issues.apache.org/jira/browse/HDDS-15186?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Will Xiao reassigned HDDS-15186:
--------------------------------
Assignee: Will Xiao
> Omit stack trace in ozone interactive
> -------------------------------------
>
> Key: HDDS-15186
> URL: https://issues.apache.org/jira/browse/HDDS-15186
> Project: Apache Ozone
> Issue Type: Sub-task
> Components: Ozone CLI
> Reporter: Attila Doroszlai
> Assignee: Will Xiao
> Priority: Major
>
> Unlike other {{ozone}} commands, {{ozone interactive}} prints stack trace of
> exceptions. It is too verbose, should be suppressed by default.
> {{--verbose}} mode turns it on for other commands, but {{ozone interactive}}
> does not have this flag. Consider extending {{GenericCli}} for that.
> {code}
> $ ozone sh --interactive
> ozone sh> vol create /v
> INVALID_VOLUME_NAME volume name 'v' is too short, valid length is 3-63
> characters
> $ ozone interactive
> ozone> sh vol create /v
> INVALID_VOLUME_NAME org.apache.hadoop.ozone.om.exceptions.OMException: volume
> name 'v' is too short, valid length is 3-63 characters
> at
> org.apache.hadoop.ozone.client.rpc.RpcClient.verifyVolumeName(RpcClient.java:702)
> at
> org.apache.hadoop.ozone.client.rpc.RpcClient.createVolume(RpcClient.java:436)
> at
> org.apache.hadoop.ozone.client.ObjectStore.createVolume(ObjectStore.java:121)
> at
> org.apache.hadoop.ozone.shell.volume.CreateVolumeHandler.execute(CreateVolumeHandler.java:70)
> at org.apache.hadoop.ozone.shell.Handler.call(Handler.java:71)
> at org.apache.hadoop.ozone.shell.Handler.call(Handler.java:36)
> 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 picocli.shell.jline3.PicocliCommands.invoke(PicocliCommands.java:287)
> at
> org.jline.console.impl.SystemRegistryImpl.execute(SystemRegistryImpl.java:1228)
> at
> org.jline.console.impl.SystemRegistryImpl.execute(SystemRegistryImpl.java:1274)
> at org.apache.hadoop.ozone.shell.REPL.<init>(REPL.java:87)
> at
> org.apache.hadoop.ozone.shell.OzoneInteractiveShell.main(OzoneInteractiveShell.java:63)
> {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]