You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Bob Hansen (JIRA)" <ji...@apache.org> on 2016/02/11 20:25:18 UTC
[jira] [Updated] (HDFS-9791) libhfds++: ConfigurationLoader throws
parse_exception on invalid input
[ https://issues.apache.org/jira/browse/HDFS-9791?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bob Hansen updated HDFS-9791:
-----------------------------
Attachment: HDFS-9791.HDFS-8707.000.patch
First pass at a solution; doesn't throw exceptions any more, but doesn't return a Status object yet.
> libhfds++: ConfigurationLoader throws parse_exception on invalid input
> ----------------------------------------------------------------------
>
> Key: HDFS-9791
> URL: https://issues.apache.org/jira/browse/HDFS-9791
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: hdfs-client
> Reporter: Bob Hansen
> Attachments: HDFS-9791.HDFS-8707.000.patch
>
>
> The coding style for libhdfs++ is to return Status objects rather than throwing exceptions. The interface for ConfigurationLoader should switch out bools for Status objects, and ConfigurationLoader::UpdateMapWithBytes (and any other place we interact wtih rapidxml) should catch rapidxml exceptions, returning an appropriate Status message.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)