You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hawq.apache.org by "Lin Wen (JIRA)" <ji...@apache.org> on 2016/10/31 07:44:59 UTC

[jira] [Resolved] (HAWQ-1127) HAWQ should print error message instead of python function stack when yaml file is invalid.

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

Lin Wen resolved HAWQ-1127.
---------------------------
       Resolution: Fixed
    Fix Version/s: 2.0.1.0-incubating

> 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: Lin Wen
>             Fix For: 2.0.1.0-incubating
>
>         Attachments: force_mode_normal_tpl.yml
>
>
> 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)