You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hawq.apache.org by "Lin Wen (JIRA)" <ji...@apache.org> on 2016/10/31 05:07:58 UTC
[jira] [Created] (HAWQ-1127) HAWQ should print error message
instead of python function stack when yaml file is invalid.
Lin Wen created HAWQ-1127:
-----------------------------
Summary: HAWQ should print error message instead of python function stack when yaml file is invalid.
Key: HAWQ-1127
URL: https://issues.apache.org/jira/browse/HAWQ-1127
Project: Apache HAWQ
Issue Type: Bug
Components: Command Line Tools
Reporter: Lin Wen
Assignee: Lei Chang
when use a invalid yaml file to register, hawq prints python stack:
[linw@linw-rhel feature]$ hawq register --force -d hawq_feature_test -c /home/linw/workspace/hawq_working/apache-hawq/src/test/feature/ManagementTool/partition/force_mode_normal.yml testhawqregister_testpartitionforcemodenormal.nt
20161031:12:48:49:557022 hawqregister:linw-rhel:linw-[INFO]:-try to connect database localhost:5432 hawq_feature_test
Traceback (most recent call last):
File "/home/linw/hawq-bin/bin/hawqregister", line 1137, in <module>
main(options, args)
File "/home/linw/hawq-bin/bin/hawqregister", line 1093, in main
ins.prepare()
File "/home/linw/hawq-bin/bin/hawqregister", line 1021, in prepare
self._option_parser_yml(options.yml_config)
File "/home/linw/hawq-bin/bin/hawqregister", line 475, in _option_parser_yml
partitions_constraint = [d['Constraint'] for d in params[Format_FileLocations]['Partitions']]
KeyError: 'Constraint'
Instead, hawq should print an error message.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)