You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "guanyun (Jira)" <ji...@apache.org> on 2019/12/08 13:35:02 UTC
[jira] [Created] (HBASE-23501) CLONE - [C++] make
Configuration::Set/GetBool work for both true/false and 1/0
guanyun created HBASE-23501:
-------------------------------
Summary: CLONE - [C++] make Configuration::Set/GetBool work for both true/false and 1/0
Key: HBASE-23501
URL: https://issues.apache.org/jira/browse/HBASE-23501
Project: HBase
Issue Type: Sub-task
Reporter: guanyun
Assignee: Xiaobing Zhou
Fix For: HBASE-14850
Attachments: HBASE-18407-HBASE-14850.000.patch, HBASE-18407.000.patch
Configuration::SetBool internally converts true/false to 1/0 using boost::lexical_cast<std::string>(value), this results in runtime exception with 'Unexpected value found while conversion to bool.' in Configuration::GetBool since it only recognizes "true" or "false" as string representation of true or false. 1/0 should be considered in the check in GetBool.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)