<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Kudu rebalance crash in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Kudu-rebalance-crash/m-p/88494#M11925</link>
    <description>&lt;P&gt;This is a known issue with some code&amp;nbsp;to auto-detect whether replicas of non-replicated tablets can be moved without issues (see KUDU-2443). The code relied on std::regex. The tool was built with g++/libstdc++ of versions &amp;lt; 4.9, which means std::regex unexpectedly fails to compile a regular expression containing a bracket, throwing&lt;BR /&gt;a std::regex_error exception (see [1]). Starting from version 4.9.1, the libstdc++ has proper support for the C++11's regular expressions (see [2]). This makes the kudu CLI crash if running 'kudu cluster rebalance' on the following platforms:&lt;BR /&gt;* RHEL/CentOS 7&lt;BR /&gt;* Ubuntu14.04 LTS (Trusty)&lt;BR /&gt;* SLES12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should be able to work around the problem by specifying the flag --move_single_replicas to either 'enabled' or 'disabled', as you require, instead of the default 'auto'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately there's no release in the CDH 5 line in which this issue is fixed (yet).&lt;/P&gt;</description>
    <pubDate>Fri, 29 Mar 2019 20:48:17 GMT</pubDate>
    <dc:creator>wdberkeley</dc:creator>
    <dc:date>2019-03-29T20:48:17Z</dc:date>
    <item>
      <title>Kudu rebalance crash</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kudu-rebalance-crash/m-p/88462#M11924</link>
      <description>&lt;P&gt;Kudu rebalance tool crashes - when I run it in command line as well as when I use Cloudera Manager UI.&lt;/P&gt;
&lt;P&gt;Here is the stderr displayed in the Cloudera Manager:&lt;/P&gt;
&lt;PRE&gt;+ exec kudu cluster rebalance master1.domain.com,master2.domain.com,master3.domain.com --max_moves_per_server=5 --max_run_time_sec=0 --max_staleness_interval_sec=300
terminate called after throwing an instance of 'std::regex_error'
  what():  regex_error
*** Aborted at 1553857242 (unix time) try "date -d @1553857242" if you are using GNU date ***
PC: @     0x7fbfc3637207 __GI_raise
*** SIGABRT (@0x3ec00005c50) received by PID 23632 (TID 0x7fbfc5c83a00) from PID 23632; stack trace: ***
    @     0x7fbfc5642680 (unknown)
    @     0x7fbfc3637207 __GI_raise
    @     0x7fbfc36388f8 __GI_abort
    @     0x7fbfc3f467d5 __gnu_cxx::__verbose_terminate_handler()
    @     0x7fbfc3f44746 (unknown)
    @     0x7fbfc3f44773 std::terminate()
    @     0x7fbfc3f44993 __cxa_throw
    @     0x7fbfc3f99dd5 std::__throw_regex_error()
    @           0x931c32 std::__detail::_Compiler&amp;lt;&amp;gt;::_M_bracket_expression()
    @           0x931e3a std::__detail::_Compiler&amp;lt;&amp;gt;::_M_atom()
    @           0x932469 std::__detail::_Compiler&amp;lt;&amp;gt;::_M_alternative()
    @           0x9324c4 std::__detail::_Compiler&amp;lt;&amp;gt;::_M_alternative()
    @           0x932649 std::__detail::_Compiler&amp;lt;&amp;gt;::_M_disjunction()
    @           0x93297b std::__detail::_Compiler&amp;lt;&amp;gt;::_Compiler()
    @           0x932cb7 std::__detail::__compile&amp;lt;&amp;gt;()
    @           0x92bfc6 (unknown)
    @           0x92c664 std::_Function_handler&amp;lt;&amp;gt;::_M_invoke()
    @           0xde6672 kudu::tools::Action::Run()
    @           0x9957d7 kudu::tools::DispatchCommand()
    @           0x99619b kudu::tools::RunTool()
    @           0x8dee4d main
    @     0x7fbfc36233d5 __libc_start_main
    @           0x9284b5 (unknown)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have already created an issue: &lt;A href="https://issues.apache.org/jira/browse/KUDU-2753" target="_blank" rel="noopener"&gt;https://issues.apache.org/jira/browse/KUDU-2753&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Strange that there was no such issue in Jira yet. Did anybody face this issue before?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 14:16:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kudu-rebalance-crash/m-p/88462#M11924</guid>
      <dc:creator>arseniy</dc:creator>
      <dc:date>2022-09-16T14:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Kudu rebalance crash</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Kudu-rebalance-crash/m-p/88494#M11925</link>
      <description>&lt;P&gt;This is a known issue with some code&amp;nbsp;to auto-detect whether replicas of non-replicated tablets can be moved without issues (see KUDU-2443). The code relied on std::regex. The tool was built with g++/libstdc++ of versions &amp;lt; 4.9, which means std::regex unexpectedly fails to compile a regular expression containing a bracket, throwing&lt;BR /&gt;a std::regex_error exception (see [1]). Starting from version 4.9.1, the libstdc++ has proper support for the C++11's regular expressions (see [2]). This makes the kudu CLI crash if running 'kudu cluster rebalance' on the following platforms:&lt;BR /&gt;* RHEL/CentOS 7&lt;BR /&gt;* Ubuntu14.04 LTS (Trusty)&lt;BR /&gt;* SLES12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should be able to work around the problem by specifying the flag --move_single_replicas to either 'enabled' or 'disabled', as you require, instead of the default 'auto'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately there's no release in the CDH 5 line in which this issue is fixed (yet).&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 20:48:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Kudu-rebalance-crash/m-p/88494#M11925</guid>
      <dc:creator>wdberkeley</dc:creator>
      <dc:date>2019-03-29T20:48:17Z</dc:date>
    </item>
  </channel>
</rss>

