Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-14850 C++ client implementation
  3. HBASE-18407

[C++] make Configuration::Set/GetBool work for both true/false and 1/0

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • HBASE-14850
    • None
    • None
    • Reviewed

    Description

      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.

      Attachments

        1. HBASE-18407.000.patch
          4 kB
          Xiaobing Zhou
        2. HBASE-18407-HBASE-14850.000.patch
          4 kB
          Xiaobing Zhou

        Activity

          People

            xiaobingo Xiaobing Zhou
            xiaobingo Xiaobing Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: