hawq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lin Wen (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HAWQ-1127) HAWQ should print error message instead of python function stack when yaml file is invalid.
Date Mon, 31 Oct 2016 05:07:58 GMT
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)

Mime
View raw message