[
https://issues.apache.org/jira/browse/KUDU-3623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17895488#comment-17895488
]
ASF subversion and git services commented on KUDU-3623:
-------------------------------------------------------
Commit a82c1cdcf902330410eb3dca438c0690fff94000 in kudu's branch
refs/heads/branch-1.18.x from Alexey Serbin
[ https://gitbox.apache.org/repos/asf?p=kudu.git;h=a82c1cdcf ]
KUDU-3623 do not crash on invalid input for 'kudu table copy'
This patch adds code to handle invalid input for the --predicates flag
of the 'kudu table copy' tool. Now, instead of crashing on any
non-expected input, the tool exists gracefully and reports an actionable
error message. With that, now it's easier to understand what was wrong,
correct typos/mistakes, and re-run the tool again, eventually achieving
the desired goal.
A new test is added to cover the newly introduced functionality.
This is a follow-up to 0afeddf9e530762e0e47beb7428982763715c746.
Change-Id: I96ee4c38f3074b44ce89ac1b18784058e9148daf
Reviewed-on: http://gerrit.cloudera.org:8080/22009
Tested-by: Alexey Serbin <[email protected]>
Reviewed-by: Zoltan Chovan <[email protected]>
Reviewed-by: Marton Greber <[email protected]>
(cherry picked from commit 89ebb94e4a1b79557b3d3e8482edcd0352bf6968)
Reviewed-on: http://gerrit.cloudera.org:8080/22020
Reviewed-by: Alexey Serbin <[email protected]>
> The 'kudu table copy' CLI tool crashes on invalid user input for filter
> predicates
> ----------------------------------------------------------------------------------
>
> Key: KUDU-3623
> URL: https://issues.apache.org/jira/browse/KUDU-3623
> Project: Kudu
> Issue Type: Bug
> Components: CLI
> Affects Versions: 1.9.0, 1.10.0, 1.10.1, 1.11.0, 1.12.0, 1.11.1, 1.13.0,
> 1.14.0, 1.15.0, 1.16.0, 1.17.0, 1.17.1
> Reporter: Alexey Serbin
> Priority: Major
>
> It's quite funny and simultaneously very annoying that the {{kudu table
> copy}} CLI tool crashes on malformed input for its {{\-\-predicates}} flag.
> When encountering an invalid input from a user, the tool should at least:
> * not crash, but exit gracefully returning non-zero exit code
> * provide actionable error message to the user, so they are able to fix
> typos/mistakes and run the tool again, eventually achieving the desired result
--
This message was sent by Atlassian Jira
(v8.20.10#820010)