hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mi...@apache.org
Subject svn commit: r1711891 [50/50] - in /hbase/hbase.apache.org/trunk: ./ apidocs/ apidocs/org/apache/hadoop/hbase/ apidocs/org/apache/hadoop/hbase/class-use/ apidocs/org/apache/hadoop/hbase/client/ apidocs/org/apache/hadoop/hbase/client/class-use/ apidocs/o...
Date Mon, 02 Nov 2015 03:51:05 GMT
Modified: hbase/hbase.apache.org/trunk/xref/org/apache/hadoop/hbase/tmpl/regionserver/RSStatusTmpl.html
URL: http://svn.apache.org/viewvc/hbase/hbase.apache.org/trunk/xref/org/apache/hadoop/hbase/tmpl/regionserver/RSStatusTmpl.html?rev=1711891&r1=1711890&r2=1711891&view=diff
==============================================================================
--- hbase/hbase.apache.org/trunk/xref/org/apache/hadoop/hbase/tmpl/regionserver/RSStatusTmpl.html (original)
+++ hbase/hbase.apache.org/trunk/xref/org/apache/hadoop/hbase/tmpl/regionserver/RSStatusTmpl.html Mon Nov  2 03:51:02 2015
@@ -36,8 +36,8 @@
 <a class="jxr_linenumber" name="26" href="#26">26</a>      @org.jamon.annotations.Argument(name = <span class="jxr_string">"regionServer"</span>, type = <span class="jxr_string">"HRegionServer"</span>)},
 <a class="jxr_linenumber" name="27" href="#27">27</a>    optionalArguments = {
 <a class="jxr_linenumber" name="28" href="#28">28</a>      @org.jamon.annotations.Argument(name = <span class="jxr_string">"bcn"</span>, type = <span class="jxr_string">"String"</span>),
-<a class="jxr_linenumber" name="29" href="#29">29</a>      @org.jamon.annotations.Argument(name = <span class="jxr_string">"bcv"</span>, type = <span class="jxr_string">"String"</span>),
-<a class="jxr_linenumber" name="30" href="#30">30</a>      @org.jamon.annotations.Argument(name = <span class="jxr_string">"filter"</span>, type = <span class="jxr_string">"String"</span>),
+<a class="jxr_linenumber" name="29" href="#29">29</a>      @org.jamon.annotations.Argument(name = <span class="jxr_string">"filter"</span>, type = <span class="jxr_string">"String"</span>),
+<a class="jxr_linenumber" name="30" href="#30">30</a>      @org.jamon.annotations.Argument(name = <span class="jxr_string">"bcv"</span>, type = <span class="jxr_string">"String"</span>),
 <a class="jxr_linenumber" name="31" href="#31">31</a>      @org.jamon.annotations.Argument(name = <span class="jxr_string">"format"</span>, type = <span class="jxr_string">"String"</span>)})
 <a class="jxr_linenumber" name="32" href="#32">32</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../../org/apache/hadoop/hbase/tmpl/regionserver/RSStatusTmpl.html">RSStatusTmpl</a>
 <a class="jxr_linenumber" name="33" href="#33">33</a>    <strong class="jxr_keyword">extends</strong> org.jamon.AbstractTemplateProxy
@@ -96,40 +96,40 @@
 <a class="jxr_linenumber" name="86" href="#86">86</a>        <strong class="jxr_keyword">return</strong> m_bcn__IsNotDefault;
 <a class="jxr_linenumber" name="87" href="#87">87</a>      }
 <a class="jxr_linenumber" name="88" href="#88">88</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">boolean</strong> m_bcn__IsNotDefault;
-<a class="jxr_linenumber" name="89" href="#89">89</a>      <em class="jxr_comment">// 24, 1</em>
-<a class="jxr_linenumber" name="90" href="#90">90</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setBcv(String bcv)
+<a class="jxr_linenumber" name="89" href="#89">89</a>      <em class="jxr_comment">// 21, 1</em>
+<a class="jxr_linenumber" name="90" href="#90">90</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setFilter(String filter)
 <a class="jxr_linenumber" name="91" href="#91">91</a>      {
-<a class="jxr_linenumber" name="92" href="#92">92</a>        <em class="jxr_comment">// 24, 1</em>
-<a class="jxr_linenumber" name="93" href="#93">93</a>        m_bcv = bcv;
-<a class="jxr_linenumber" name="94" href="#94">94</a>        m_bcv__IsNotDefault = <strong class="jxr_keyword">true</strong>;
+<a class="jxr_linenumber" name="92" href="#92">92</a>        <em class="jxr_comment">// 21, 1</em>
+<a class="jxr_linenumber" name="93" href="#93">93</a>        m_filter = filter;
+<a class="jxr_linenumber" name="94" href="#94">94</a>        m_filter__IsNotDefault = <strong class="jxr_keyword">true</strong>;
 <a class="jxr_linenumber" name="95" href="#95">95</a>      }
-<a class="jxr_linenumber" name="96" href="#96">96</a>      <strong class="jxr_keyword">public</strong> String getBcv()
+<a class="jxr_linenumber" name="96" href="#96">96</a>      <strong class="jxr_keyword">public</strong> String getFilter()
 <a class="jxr_linenumber" name="97" href="#97">97</a>      {
-<a class="jxr_linenumber" name="98" href="#98">98</a>        <strong class="jxr_keyword">return</strong> m_bcv;
+<a class="jxr_linenumber" name="98" href="#98">98</a>        <strong class="jxr_keyword">return</strong> m_filter;
 <a class="jxr_linenumber" name="99" href="#99">99</a>      }
-<a class="jxr_linenumber" name="100" href="#100">100</a>     <strong class="jxr_keyword">private</strong> String m_bcv;
-<a class="jxr_linenumber" name="101" href="#101">101</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> getBcv__IsNotDefault()
+<a class="jxr_linenumber" name="100" href="#100">100</a>     <strong class="jxr_keyword">private</strong> String m_filter;
+<a class="jxr_linenumber" name="101" href="#101">101</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> getFilter__IsNotDefault()
 <a class="jxr_linenumber" name="102" href="#102">102</a>     {
-<a class="jxr_linenumber" name="103" href="#103">103</a>       <strong class="jxr_keyword">return</strong> m_bcv__IsNotDefault;
+<a class="jxr_linenumber" name="103" href="#103">103</a>       <strong class="jxr_keyword">return</strong> m_filter__IsNotDefault;
 <a class="jxr_linenumber" name="104" href="#104">104</a>     }
-<a class="jxr_linenumber" name="105" href="#105">105</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">boolean</strong> m_bcv__IsNotDefault;
-<a class="jxr_linenumber" name="106" href="#106">106</a>     <em class="jxr_comment">// 21, 1</em>
-<a class="jxr_linenumber" name="107" href="#107">107</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setFilter(String filter)
+<a class="jxr_linenumber" name="105" href="#105">105</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">boolean</strong> m_filter__IsNotDefault;
+<a class="jxr_linenumber" name="106" href="#106">106</a>     <em class="jxr_comment">// 24, 1</em>
+<a class="jxr_linenumber" name="107" href="#107">107</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setBcv(String bcv)
 <a class="jxr_linenumber" name="108" href="#108">108</a>     {
-<a class="jxr_linenumber" name="109" href="#109">109</a>       <em class="jxr_comment">// 21, 1</em>
-<a class="jxr_linenumber" name="110" href="#110">110</a>       m_filter = filter;
-<a class="jxr_linenumber" name="111" href="#111">111</a>       m_filter__IsNotDefault = <strong class="jxr_keyword">true</strong>;
+<a class="jxr_linenumber" name="109" href="#109">109</a>       <em class="jxr_comment">// 24, 1</em>
+<a class="jxr_linenumber" name="110" href="#110">110</a>       m_bcv = bcv;
+<a class="jxr_linenumber" name="111" href="#111">111</a>       m_bcv__IsNotDefault = <strong class="jxr_keyword">true</strong>;
 <a class="jxr_linenumber" name="112" href="#112">112</a>     }
-<a class="jxr_linenumber" name="113" href="#113">113</a>     <strong class="jxr_keyword">public</strong> String getFilter()
+<a class="jxr_linenumber" name="113" href="#113">113</a>     <strong class="jxr_keyword">public</strong> String getBcv()
 <a class="jxr_linenumber" name="114" href="#114">114</a>     {
-<a class="jxr_linenumber" name="115" href="#115">115</a>       <strong class="jxr_keyword">return</strong> m_filter;
+<a class="jxr_linenumber" name="115" href="#115">115</a>       <strong class="jxr_keyword">return</strong> m_bcv;
 <a class="jxr_linenumber" name="116" href="#116">116</a>     }
-<a class="jxr_linenumber" name="117" href="#117">117</a>     <strong class="jxr_keyword">private</strong> String m_filter;
-<a class="jxr_linenumber" name="118" href="#118">118</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> getFilter__IsNotDefault()
+<a class="jxr_linenumber" name="117" href="#117">117</a>     <strong class="jxr_keyword">private</strong> String m_bcv;
+<a class="jxr_linenumber" name="118" href="#118">118</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> getBcv__IsNotDefault()
 <a class="jxr_linenumber" name="119" href="#119">119</a>     {
-<a class="jxr_linenumber" name="120" href="#120">120</a>       <strong class="jxr_keyword">return</strong> m_filter__IsNotDefault;
+<a class="jxr_linenumber" name="120" href="#120">120</a>       <strong class="jxr_keyword">return</strong> m_bcv__IsNotDefault;
 <a class="jxr_linenumber" name="121" href="#121">121</a>     }
-<a class="jxr_linenumber" name="122" href="#122">122</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">boolean</strong> m_filter__IsNotDefault;
+<a class="jxr_linenumber" name="122" href="#122">122</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">boolean</strong> m_bcv__IsNotDefault;
 <a class="jxr_linenumber" name="123" href="#123">123</a>     <em class="jxr_comment">// 22, 1</em>
 <a class="jxr_linenumber" name="124" href="#124">124</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setFormat(String format)
 <a class="jxr_linenumber" name="125" href="#125">125</a>     {
@@ -165,17 +165,17 @@
 <a class="jxr_linenumber" name="155" href="#155">155</a>     <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;
 <a class="jxr_linenumber" name="156" href="#156">156</a>   }
 <a class="jxr_linenumber" name="157" href="#157">157</a>   
-<a class="jxr_linenumber" name="158" href="#158">158</a>   <strong class="jxr_keyword">protected</strong> String bcv;
-<a class="jxr_linenumber" name="159" href="#159">159</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">final</strong> org.apache.hadoop.hbase.tmpl.regionserver.RSStatusTmpl setBcv(String p_bcv)
+<a class="jxr_linenumber" name="158" href="#158">158</a>   <strong class="jxr_keyword">protected</strong> String filter;
+<a class="jxr_linenumber" name="159" href="#159">159</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">final</strong> org.apache.hadoop.hbase.tmpl.regionserver.RSStatusTmpl setFilter(String p_filter)
 <a class="jxr_linenumber" name="160" href="#160">160</a>   {
-<a class="jxr_linenumber" name="161" href="#161">161</a>     (getImplData()).setBcv(p_bcv);
+<a class="jxr_linenumber" name="161" href="#161">161</a>     (getImplData()).setFilter(p_filter);
 <a class="jxr_linenumber" name="162" href="#162">162</a>     <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;
 <a class="jxr_linenumber" name="163" href="#163">163</a>   }
 <a class="jxr_linenumber" name="164" href="#164">164</a>   
-<a class="jxr_linenumber" name="165" href="#165">165</a>   <strong class="jxr_keyword">protected</strong> String filter;
-<a class="jxr_linenumber" name="166" href="#166">166</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">final</strong> org.apache.hadoop.hbase.tmpl.regionserver.RSStatusTmpl setFilter(String p_filter)
+<a class="jxr_linenumber" name="165" href="#165">165</a>   <strong class="jxr_keyword">protected</strong> String bcv;
+<a class="jxr_linenumber" name="166" href="#166">166</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">final</strong> org.apache.hadoop.hbase.tmpl.regionserver.RSStatusTmpl setBcv(String p_bcv)
 <a class="jxr_linenumber" name="167" href="#167">167</a>   {
-<a class="jxr_linenumber" name="168" href="#168">168</a>     (getImplData()).setFilter(p_filter);
+<a class="jxr_linenumber" name="168" href="#168">168</a>     (getImplData()).setBcv(p_bcv);
 <a class="jxr_linenumber" name="169" href="#169">169</a>     <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;
 <a class="jxr_linenumber" name="170" href="#170">170</a>   }
 <a class="jxr_linenumber" name="171" href="#171">171</a>   

Modified: hbase/hbase.apache.org/trunk/xref/org/apache/hadoop/hbase/tmpl/regionserver/RSStatusTmplImpl.html
URL: http://svn.apache.org/viewvc/hbase/hbase.apache.org/trunk/xref/org/apache/hadoop/hbase/tmpl/regionserver/RSStatusTmplImpl.html?rev=1711891&r1=1711890&r2=1711891&view=diff
==============================================================================
--- hbase/hbase.apache.org/trunk/xref/org/apache/hadoop/hbase/tmpl/regionserver/RSStatusTmplImpl.html (original)
+++ hbase/hbase.apache.org/trunk/xref/org/apache/hadoop/hbase/tmpl/regionserver/RSStatusTmplImpl.html Mon Nov  2 03:51:02 2015
@@ -37,8 +37,8 @@
 <a class="jxr_linenumber" name="27" href="#27">27</a>  {
 <a class="jxr_linenumber" name="28" href="#28">28</a>    <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../../../org/apache/hadoop/hbase/regionserver/HRegionServer.html">HRegionServer</a> regionServer;
 <a class="jxr_linenumber" name="29" href="#29">29</a>    <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> String bcn;
-<a class="jxr_linenumber" name="30" href="#30">30</a>    <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> String bcv;
-<a class="jxr_linenumber" name="31" href="#31">31</a>    <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> String filter;
+<a class="jxr_linenumber" name="30" href="#30">30</a>    <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> String filter;
+<a class="jxr_linenumber" name="31" href="#31">31</a>    <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> String bcv;
 <a class="jxr_linenumber" name="32" href="#32">32</a>    <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> String format;
 <a class="jxr_linenumber" name="33" href="#33">33</a>    <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">static</strong> org.apache.hadoop.hbase.tmpl.regionserver.RSStatusTmpl.ImplData __jamon_setOptionalArguments(org.apache.hadoop.hbase.tmpl.regionserver.RSStatusTmpl.ImplData p_implData)
 <a class="jxr_linenumber" name="34" href="#34">34</a>    {
@@ -46,13 +46,13 @@
 <a class="jxr_linenumber" name="36" href="#36">36</a>      {
 <a class="jxr_linenumber" name="37" href="#37">37</a>        p_implData.setBcn(<span class="jxr_string">""</span>);
 <a class="jxr_linenumber" name="38" href="#38">38</a>      }
-<a class="jxr_linenumber" name="39" href="#39">39</a>      <strong class="jxr_keyword">if</strong>(! p_implData.getBcv__IsNotDefault())
+<a class="jxr_linenumber" name="39" href="#39">39</a>      <strong class="jxr_keyword">if</strong>(! p_implData.getFilter__IsNotDefault())
 <a class="jxr_linenumber" name="40" href="#40">40</a>      {
-<a class="jxr_linenumber" name="41" href="#41">41</a>        p_implData.setBcv(<span class="jxr_string">""</span>);
+<a class="jxr_linenumber" name="41" href="#41">41</a>        p_implData.setFilter(<span class="jxr_string">"general"</span>);
 <a class="jxr_linenumber" name="42" href="#42">42</a>      }
-<a class="jxr_linenumber" name="43" href="#43">43</a>      <strong class="jxr_keyword">if</strong>(! p_implData.getFilter__IsNotDefault())
+<a class="jxr_linenumber" name="43" href="#43">43</a>      <strong class="jxr_keyword">if</strong>(! p_implData.getBcv__IsNotDefault())
 <a class="jxr_linenumber" name="44" href="#44">44</a>      {
-<a class="jxr_linenumber" name="45" href="#45">45</a>        p_implData.setFilter(<span class="jxr_string">"general"</span>);
+<a class="jxr_linenumber" name="45" href="#45">45</a>        p_implData.setBcv(<span class="jxr_string">""</span>);
 <a class="jxr_linenumber" name="46" href="#46">46</a>      }
 <a class="jxr_linenumber" name="47" href="#47">47</a>      <strong class="jxr_keyword">if</strong>(! p_implData.getFormat__IsNotDefault())
 <a class="jxr_linenumber" name="48" href="#48">48</a>      {
@@ -65,8 +65,8 @@
 <a class="jxr_linenumber" name="55" href="#55">55</a>      <strong class="jxr_keyword">super</strong>(p_templateManager, __jamon_setOptionalArguments(p_implData));
 <a class="jxr_linenumber" name="56" href="#56">56</a>      regionServer = p_implData.getRegionServer();
 <a class="jxr_linenumber" name="57" href="#57">57</a>      bcn = p_implData.getBcn();
-<a class="jxr_linenumber" name="58" href="#58">58</a>      bcv = p_implData.getBcv();
-<a class="jxr_linenumber" name="59" href="#59">59</a>      filter = p_implData.getFilter();
+<a class="jxr_linenumber" name="58" href="#58">58</a>      filter = p_implData.getFilter();
+<a class="jxr_linenumber" name="59" href="#59">59</a>      bcv = p_implData.getBcv();
 <a class="jxr_linenumber" name="60" href="#60">60</a>      format = p_implData.getFormat();
 <a class="jxr_linenumber" name="61" href="#61">61</a>    }
 <a class="jxr_linenumber" name="62" href="#62">62</a>    
@@ -96,8 +96,8 @@
 <a class="jxr_linenumber" name="86" href="#86">86</a>        <em class="jxr_comment">// 41, 3</em>
 <a class="jxr_linenumber" name="87" href="#87">87</a>        {
 <a class="jxr_linenumber" name="88" href="#88">88</a>          org.apache.hadoop.hbase.tmpl.common.TaskMonitorTmpl __jamon__<strong class="jxr_keyword">var</strong>_7 = <strong class="jxr_keyword">new</strong> org.apache.hadoop.hbase.tmpl.common.TaskMonitorTmpl(<strong class="jxr_keyword">this</strong>.getTemplateManager());
-<a class="jxr_linenumber" name="89" href="#89">89</a>          __jamon__<strong class="jxr_keyword">var</strong>_7.setFormat(<span class="jxr_string">"json"</span> );
-<a class="jxr_linenumber" name="90" href="#90">90</a>          __jamon__<strong class="jxr_keyword">var</strong>_7.setFilter(filter);
+<a class="jxr_linenumber" name="89" href="#89">89</a>          __jamon__<strong class="jxr_keyword">var</strong>_7.setFilter(filter);
+<a class="jxr_linenumber" name="90" href="#90">90</a>          __jamon__<strong class="jxr_keyword">var</strong>_7.setFormat(<span class="jxr_string">"json"</span> );
 <a class="jxr_linenumber" name="91" href="#91">91</a>          __jamon__<strong class="jxr_keyword">var</strong>_7.renderNoFlush(jamonWriter);
 <a class="jxr_linenumber" name="92" href="#92">92</a>        }
 <a class="jxr_linenumber" name="93" href="#93">93</a>        <em class="jxr_comment">// 41, 68</em>

Modified: hbase/hbase.apache.org/trunk/xref/org/apache/hadoop/hbase/util/HBaseFsck.html
URL: http://svn.apache.org/viewvc/hbase/hbase.apache.org/trunk/xref/org/apache/hadoop/hbase/util/HBaseFsck.html?rev=1711891&r1=1711890&r2=1711891&view=diff
==============================================================================
--- hbase/hbase.apache.org/trunk/xref/org/apache/hadoop/hbase/util/HBaseFsck.html (original)
+++ hbase/hbase.apache.org/trunk/xref/org/apache/hadoop/hbase/util/HBaseFsck.html Mon Nov  2 03:51:02 2015
@@ -3427,7 +3427,7 @@
 <a class="jxr_linenumber" name="3417" href="#3417">3417</a>               || hri.isMetaRegion())) {
 <a class="jxr_linenumber" name="3418" href="#3418">3418</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
 <a class="jxr_linenumber" name="3419" href="#3419">3419</a>           }
-<a class="jxr_linenumber" name="3420" href="#3420">3420</a>           PairOfSameType&lt;HRegionInfo&gt; daughters = HRegionInfo.getDaughterRegions(result);
+<a class="jxr_linenumber" name="3420" href="#3420">3420</a>           PairOfSameType&lt;HRegionInfo&gt; daughters = MetaTableAccessor.getDaughterRegions(result);
 <a class="jxr_linenumber" name="3421" href="#3421">3421</a>           <strong class="jxr_keyword">for</strong> (HRegionLocation h : rl.getRegionLocations()) {
 <a class="jxr_linenumber" name="3422" href="#3422">3422</a>             <strong class="jxr_keyword">if</strong> (h == <strong class="jxr_keyword">null</strong> || h.getRegionInfo() == <strong class="jxr_keyword">null</strong>) {
 <a class="jxr_linenumber" name="3423" href="#3423">3423</a>               <strong class="jxr_keyword">continue</strong>;
@@ -3450,7 +3450,7 @@
 <a class="jxr_linenumber" name="3440" href="#3440">3440</a>               <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IOException(<span class="jxr_string">"Two entries in hbase:meta are same "</span> + previous);
 <a class="jxr_linenumber" name="3441" href="#3441">3441</a>             }
 <a class="jxr_linenumber" name="3442" href="#3442">3442</a>           }
-<a class="jxr_linenumber" name="3443" href="#3443">3443</a>           PairOfSameType&lt;HRegionInfo&gt; mergeRegions = HRegionInfo.getMergeRegions(result);
+<a class="jxr_linenumber" name="3443" href="#3443">3443</a>           PairOfSameType&lt;HRegionInfo&gt; mergeRegions = MetaTableAccessor.getMergeRegions(result);
 <a class="jxr_linenumber" name="3444" href="#3444">3444</a>           <strong class="jxr_keyword">for</strong> (HRegionInfo mergeRegion : <strong class="jxr_keyword">new</strong> HRegionInfo[] {
 <a class="jxr_linenumber" name="3445" href="#3445">3445</a>               mergeRegions.getFirst(), mergeRegions.getSecond() }) {
 <a class="jxr_linenumber" name="3446" href="#3446">3446</a>             <strong class="jxr_keyword">if</strong> (mergeRegion != <strong class="jxr_keyword">null</strong>) {

Modified: hbase/hbase.apache.org/trunk/xref/org/apache/hadoop/hbase/util/HMerge.html
URL: http://svn.apache.org/viewvc/hbase/hbase.apache.org/trunk/xref/org/apache/hadoop/hbase/util/HMerge.html?rev=1711891&r1=1711890&r2=1711891&view=diff
==============================================================================
--- hbase/hbase.apache.org/trunk/xref/org/apache/hadoop/hbase/util/HMerge.html (original)
+++ hbase/hbase.apache.org/trunk/xref/org/apache/hadoop/hbase/util/HMerge.html Mon Nov  2 03:51:02 2015
@@ -269,7 +269,7 @@
 <a class="jxr_linenumber" name="259" href="#259">259</a>         <strong class="jxr_keyword">if</strong> (results == <strong class="jxr_keyword">null</strong>) {
 <a class="jxr_linenumber" name="260" href="#260">260</a>           <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
 <a class="jxr_linenumber" name="261" href="#261">261</a>         }
-<a class="jxr_linenumber" name="262" href="#262">262</a>         <a href="../../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> region = HRegionInfo.getHRegionInfo(results);
+<a class="jxr_linenumber" name="262" href="#262">262</a>         <a href="../../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> region = MetaTableAccessor.getHRegionInfo(results);
 <a class="jxr_linenumber" name="263" href="#263">263</a>         <strong class="jxr_keyword">if</strong> (region == <strong class="jxr_keyword">null</strong>) {
 <a class="jxr_linenumber" name="264" href="#264">264</a>           <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> NoSuchElementException(<span class="jxr_string">"meta region entry missing "</span> +
 <a class="jxr_linenumber" name="265" href="#265">265</a>               Bytes.toString(HConstants.CATALOG_FAMILY) + <span class="jxr_string">":"</span> +
@@ -303,7 +303,7 @@
 <a class="jxr_linenumber" name="293" href="#293">293</a>           currentRow = metaScanner.next();
 <a class="jxr_linenumber" name="294" href="#294">294</a>           <strong class="jxr_keyword">continue</strong>;
 <a class="jxr_linenumber" name="295" href="#295">295</a>         }
-<a class="jxr_linenumber" name="296" href="#296">296</a>         <a href="../../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> region = HRegionInfo.getHRegionInfo(currentRow);
+<a class="jxr_linenumber" name="296" href="#296">296</a>         <a href="../../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> region = MetaTableAccessor.getHRegionInfo(currentRow);
 <a class="jxr_linenumber" name="297" href="#297">297</a>         <strong class="jxr_keyword">if</strong> (!region.getTable().equals(<strong class="jxr_keyword">this</strong>.tableName)) {
 <a class="jxr_linenumber" name="298" href="#298">298</a>           currentRow = metaScanner.next();
 <a class="jxr_linenumber" name="299" href="#299">299</a>           <strong class="jxr_keyword">continue</strong>;

Modified: hbase/hbase.apache.org/trunk/xref/org/apache/hadoop/hbase/util/Merge.html
URL: http://svn.apache.org/viewvc/hbase/hbase.apache.org/trunk/xref/org/apache/hadoop/hbase/util/Merge.html?rev=1711891&r1=1711890&r2=1711891&view=diff
==============================================================================
--- hbase/hbase.apache.org/trunk/xref/org/apache/hadoop/hbase/util/Merge.html (original)
+++ hbase/hbase.apache.org/trunk/xref/org/apache/hadoop/hbase/util/Merge.html Mon Nov  2 03:51:02 2015
@@ -33,248 +33,249 @@
 <a class="jxr_linenumber" name="23" href="#23">23</a>  
 <a class="jxr_linenumber" name="24" href="#24">24</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.logging.Log;
 <a class="jxr_linenumber" name="25" href="#25">25</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.logging.LogFactory;
-<a class="jxr_linenumber" name="26" href="#26">26</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.classification.InterfaceAudience;
-<a class="jxr_linenumber" name="27" href="#27">27</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.conf.Configured;
-<a class="jxr_linenumber" name="28" href="#28">28</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.fs.FileSystem;
-<a class="jxr_linenumber" name="29" href="#29">29</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.fs.Path;
-<a class="jxr_linenumber" name="30" href="#30">30</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.HBaseInterfaceAudience;
-<a class="jxr_linenumber" name="31" href="#31">31</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.TableDescriptor;
-<a class="jxr_linenumber" name="32" href="#32">32</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.TableName;
-<a class="jxr_linenumber" name="33" href="#33">33</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.HBaseConfiguration;
-<a class="jxr_linenumber" name="34" href="#34">34</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.HConstants;
-<a class="jxr_linenumber" name="35" href="#35">35</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.HRegionInfo;
-<a class="jxr_linenumber" name="36" href="#36">36</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.HTableDescriptor;
-<a class="jxr_linenumber" name="37" href="#37">37</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.MasterNotRunningException;
-<a class="jxr_linenumber" name="38" href="#38">38</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.ZooKeeperConnectionException;
-<a class="jxr_linenumber" name="39" href="#39">39</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.client.Delete;
-<a class="jxr_linenumber" name="40" href="#40">40</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.client.Get;
-<a class="jxr_linenumber" name="41" href="#41">41</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.client.HBaseAdmin;
-<a class="jxr_linenumber" name="42" href="#42">42</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.client.Result;
-<a class="jxr_linenumber" name="43" href="#43">43</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.regionserver.HRegion;
-<a class="jxr_linenumber" name="44" href="#44">44</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.io.WritableComparator;
-<a class="jxr_linenumber" name="45" href="#45">45</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.util.Tool;
-<a class="jxr_linenumber" name="46" href="#46">46</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.util.ToolRunner;
-<a class="jxr_linenumber" name="47" href="#47">47</a>  
-<a class="jxr_linenumber" name="48" href="#48">48</a>  <strong class="jxr_keyword">import</strong> com.google.common.base.Preconditions;
-<a class="jxr_linenumber" name="49" href="#49">49</a>  
-<a class="jxr_linenumber" name="50" href="#50">50</a>  <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="51" href="#51">51</a>  <em class="jxr_javadoccomment"> * Utility that can merge any two regions in the same table: adjacent,</em>
-<a class="jxr_linenumber" name="52" href="#52">52</a>  <em class="jxr_javadoccomment"> * overlapping or disjoint.</em>
-<a class="jxr_linenumber" name="53" href="#53">53</a>  <em class="jxr_javadoccomment"> */</em>
-<a class="jxr_linenumber" name="54" href="#54">54</a>  @InterfaceAudience.LimitedPrivate(HBaseInterfaceAudience.TOOLS)
-<a class="jxr_linenumber" name="55" href="#55">55</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/hadoop/hbase/util/Merge.html">Merge</a> <strong class="jxr_keyword">extends</strong> Configured <strong class="jxr_keyword">implements</strong> Tool {
-<a class="jxr_linenumber" name="56" href="#56">56</a>    <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> Log LOG = LogFactory.getLog(Merge.<strong class="jxr_keyword">class</strong>);
-<a class="jxr_linenumber" name="57" href="#57">57</a>    <strong class="jxr_keyword">private</strong> Path rootdir;
-<a class="jxr_linenumber" name="58" href="#58">58</a>    <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">volatile</strong> <a href="../../../../../org/apache/hadoop/hbase/util/MetaUtils.html">MetaUtils</a> utils;
-<a class="jxr_linenumber" name="59" href="#59">59</a>    <strong class="jxr_keyword">private</strong> <a href="../../../../../org/apache/hadoop/hbase/TableName.html">TableName</a> tableName;               <em class="jxr_comment">// Name of table</em>
-<a class="jxr_linenumber" name="60" href="#60">60</a>    <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">volatile</strong> byte [] region1;        <em class="jxr_comment">// Name of region 1</em>
-<a class="jxr_linenumber" name="61" href="#61">61</a>    <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">volatile</strong> byte [] region2;        <em class="jxr_comment">// Name of region 2</em>
-<a class="jxr_linenumber" name="62" href="#62">62</a>    <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">volatile</strong> <a href="../../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> mergeInfo = <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="63" href="#63">63</a>  
-<a class="jxr_linenumber" name="64" href="#64">64</a>    @Override
-<a class="jxr_linenumber" name="65" href="#65">65</a>    <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> run(String[] args) <strong class="jxr_keyword">throws</strong> Exception {
-<a class="jxr_linenumber" name="66" href="#66">66</a>      <strong class="jxr_keyword">if</strong> (parseArgs(args) != 0) {
-<a class="jxr_linenumber" name="67" href="#67">67</a>        <strong class="jxr_keyword">return</strong> -1;
-<a class="jxr_linenumber" name="68" href="#68">68</a>      }
-<a class="jxr_linenumber" name="69" href="#69">69</a>  
-<a class="jxr_linenumber" name="70" href="#70">70</a>      <em class="jxr_comment">// Verify file system is up.</em>
-<a class="jxr_linenumber" name="71" href="#71">71</a>      FileSystem fs = FileSystem.get(getConf());              <em class="jxr_comment">// get DFS handle</em>
-<a class="jxr_linenumber" name="72" href="#72">72</a>      LOG.info(<span class="jxr_string">"Verifying that file system is available..."</span>);
-<a class="jxr_linenumber" name="73" href="#73">73</a>      <strong class="jxr_keyword">try</strong> {
-<a class="jxr_linenumber" name="74" href="#74">74</a>        FSUtils.checkFileSystemAvailable(fs);
-<a class="jxr_linenumber" name="75" href="#75">75</a>      } <strong class="jxr_keyword">catch</strong> (IOException e) {
-<a class="jxr_linenumber" name="76" href="#76">76</a>        LOG.fatal(<span class="jxr_string">"File system is not available"</span>, e);
-<a class="jxr_linenumber" name="77" href="#77">77</a>        <strong class="jxr_keyword">return</strong> -1;
-<a class="jxr_linenumber" name="78" href="#78">78</a>      }
-<a class="jxr_linenumber" name="79" href="#79">79</a>  
-<a class="jxr_linenumber" name="80" href="#80">80</a>      <em class="jxr_comment">// Verify HBase is down</em>
-<a class="jxr_linenumber" name="81" href="#81">81</a>      LOG.info(<span class="jxr_string">"Verifying that HBase is not running..."</span>);
-<a class="jxr_linenumber" name="82" href="#82">82</a>      <strong class="jxr_keyword">try</strong> {
-<a class="jxr_linenumber" name="83" href="#83">83</a>        HBaseAdmin.checkHBaseAvailable(getConf());
-<a class="jxr_linenumber" name="84" href="#84">84</a>        LOG.fatal(<span class="jxr_string">"HBase cluster must be off-line, and is not. Aborting."</span>);
-<a class="jxr_linenumber" name="85" href="#85">85</a>        <strong class="jxr_keyword">return</strong> -1;
-<a class="jxr_linenumber" name="86" href="#86">86</a>      } <strong class="jxr_keyword">catch</strong> (ZooKeeperConnectionException zkce) {
-<a class="jxr_linenumber" name="87" href="#87">87</a>        <em class="jxr_comment">// If no zk, presume no master.</em>
-<a class="jxr_linenumber" name="88" href="#88">88</a>      } <strong class="jxr_keyword">catch</strong> (MasterNotRunningException e) {
-<a class="jxr_linenumber" name="89" href="#89">89</a>        <em class="jxr_comment">// Expected. Ignore.</em>
-<a class="jxr_linenumber" name="90" href="#90">90</a>      }
-<a class="jxr_linenumber" name="91" href="#91">91</a>  
-<a class="jxr_linenumber" name="92" href="#92">92</a>      <em class="jxr_comment">// Initialize MetaUtils and and get the root of the HBase installation</em>
-<a class="jxr_linenumber" name="93" href="#93">93</a>  
-<a class="jxr_linenumber" name="94" href="#94">94</a>      <strong class="jxr_keyword">this</strong>.utils = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/hadoop/hbase/util/MetaUtils.html">MetaUtils</a>(getConf());
-<a class="jxr_linenumber" name="95" href="#95">95</a>      <strong class="jxr_keyword">this</strong>.rootdir = FSUtils.getRootDir(getConf());
-<a class="jxr_linenumber" name="96" href="#96">96</a>      <strong class="jxr_keyword">try</strong> {
-<a class="jxr_linenumber" name="97" href="#97">97</a>        mergeTwoRegions();
-<a class="jxr_linenumber" name="98" href="#98">98</a>        <strong class="jxr_keyword">return</strong> 0;
-<a class="jxr_linenumber" name="99" href="#99">99</a>      } <strong class="jxr_keyword">catch</strong> (IOException e) {
-<a class="jxr_linenumber" name="100" href="#100">100</a>       LOG.fatal(<span class="jxr_string">"Merge failed"</span>, e);
-<a class="jxr_linenumber" name="101" href="#101">101</a>       <strong class="jxr_keyword">return</strong> -1;
-<a class="jxr_linenumber" name="102" href="#102">102</a> 
-<a class="jxr_linenumber" name="103" href="#103">103</a>     } <strong class="jxr_keyword">finally</strong> {
-<a class="jxr_linenumber" name="104" href="#104">104</a>       <strong class="jxr_keyword">if</strong> (<strong class="jxr_keyword">this</strong>.utils != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="105" href="#105">105</a>         <strong class="jxr_keyword">this</strong>.utils.shutdown();
-<a class="jxr_linenumber" name="106" href="#106">106</a>       }
-<a class="jxr_linenumber" name="107" href="#107">107</a>     }
-<a class="jxr_linenumber" name="108" href="#108">108</a>   }
-<a class="jxr_linenumber" name="109" href="#109">109</a> 
-<a class="jxr_linenumber" name="110" href="#110">110</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> @return <a href="../../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> for merge result */</em>
-<a class="jxr_linenumber" name="111" href="#111">111</a>   <a href="../../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> getMergedHRegionInfo() {
-<a class="jxr_linenumber" name="112" href="#112">112</a>     <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>.mergeInfo;
-<a class="jxr_linenumber" name="113" href="#113">113</a>   }
-<a class="jxr_linenumber" name="114" href="#114">114</a> 
-<a class="jxr_linenumber" name="115" href="#115">115</a>   <em class="jxr_comment">/*</em>
-<a class="jxr_linenumber" name="116" href="#116">116</a> <em class="jxr_comment">   * Merges two regions from a user table.</em>
-<a class="jxr_linenumber" name="117" href="#117">117</a> <em class="jxr_comment">   */</em>
-<a class="jxr_linenumber" name="118" href="#118">118</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> mergeTwoRegions() <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="119" href="#119">119</a>     LOG.info(<span class="jxr_string">"Merging regions "</span> + Bytes.toStringBinary(<strong class="jxr_keyword">this</strong>.region1) + <span class="jxr_string">" and "</span> +
-<a class="jxr_linenumber" name="120" href="#120">120</a>         Bytes.toStringBinary(<strong class="jxr_keyword">this</strong>.region2) + <span class="jxr_string">" in table "</span> + <strong class="jxr_keyword">this</strong>.tableName);
-<a class="jxr_linenumber" name="121" href="#121">121</a>     <a href="../../../../../org/apache/hadoop/hbase/regionserver/HRegion.html">HRegion</a> meta = <strong class="jxr_keyword">this</strong>.utils.getMetaRegion();
-<a class="jxr_linenumber" name="122" href="#122">122</a>     <a href="../../../../../org/apache/hadoop/hbase/client/Get.html">Get</a> get = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/hadoop/hbase/client/Get.html">Get</a>(region1);
-<a class="jxr_linenumber" name="123" href="#123">123</a>     get.addColumn(HConstants.CATALOG_FAMILY, HConstants.REGIONINFO_QUALIFIER);
-<a class="jxr_linenumber" name="124" href="#124">124</a>     <a href="../../../../../org/apache/hadoop/hbase/client/Result.html">Result</a> result1 =  meta.get(get);
-<a class="jxr_linenumber" name="125" href="#125">125</a>     Preconditions.checkState(!result1.isEmpty(),
-<a class="jxr_linenumber" name="126" href="#126">126</a>         <span class="jxr_string">"First region cells can not be null"</span>);
-<a class="jxr_linenumber" name="127" href="#127">127</a>     <a href="../../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> info1 = HRegionInfo.getHRegionInfo(result1);
-<a class="jxr_linenumber" name="128" href="#128">128</a>     <strong class="jxr_keyword">if</strong> (info1 == <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="129" href="#129">129</a>       <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> NullPointerException(<span class="jxr_string">"info1 is null using key "</span> +
-<a class="jxr_linenumber" name="130" href="#130">130</a>           Bytes.toStringBinary(region1) + <span class="jxr_string">" in "</span> + meta);
-<a class="jxr_linenumber" name="131" href="#131">131</a>     }
-<a class="jxr_linenumber" name="132" href="#132">132</a>     get = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/hadoop/hbase/client/Get.html">Get</a>(region2);
-<a class="jxr_linenumber" name="133" href="#133">133</a>     get.addColumn(HConstants.CATALOG_FAMILY, HConstants.REGIONINFO_QUALIFIER);
-<a class="jxr_linenumber" name="134" href="#134">134</a>     <a href="../../../../../org/apache/hadoop/hbase/client/Result.html">Result</a> result2 =  meta.get(get);
-<a class="jxr_linenumber" name="135" href="#135">135</a>     Preconditions.checkState(!result2.isEmpty(),
-<a class="jxr_linenumber" name="136" href="#136">136</a>         <span class="jxr_string">"Second region cells can not be null"</span>);
-<a class="jxr_linenumber" name="137" href="#137">137</a>     <a href="../../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> info2 = HRegionInfo.getHRegionInfo(result2);
-<a class="jxr_linenumber" name="138" href="#138">138</a>     <strong class="jxr_keyword">if</strong> (info2 == <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="139" href="#139">139</a>       <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> NullPointerException(<span class="jxr_string">"info2 is null using key "</span> + meta);
-<a class="jxr_linenumber" name="140" href="#140">140</a>     }
-<a class="jxr_linenumber" name="141" href="#141">141</a>     <a href="../../../../../org/apache/hadoop/hbase/TableDescriptor.html">TableDescriptor</a> htd = FSTableDescriptors.getTableDescriptorFromFs(FileSystem.get(getConf()),
-<a class="jxr_linenumber" name="142" href="#142">142</a>       <strong class="jxr_keyword">this</strong>.rootdir, <strong class="jxr_keyword">this</strong>.tableName);
-<a class="jxr_linenumber" name="143" href="#143">143</a>     <a href="../../../../../org/apache/hadoop/hbase/regionserver/HRegion.html">HRegion</a> merged = merge(htd.getHTableDescriptor(), meta, info1, info2);
-<a class="jxr_linenumber" name="144" href="#144">144</a> 
-<a class="jxr_linenumber" name="145" href="#145">145</a>     LOG.info(<span class="jxr_string">"Adding "</span> + merged.getRegionInfo() + <span class="jxr_string">" to "</span> +
-<a class="jxr_linenumber" name="146" href="#146">146</a>         meta.getRegionInfo());
-<a class="jxr_linenumber" name="147" href="#147">147</a> 
-<a class="jxr_linenumber" name="148" href="#148">148</a>     HRegion.addRegionToMETA(meta, merged);
-<a class="jxr_linenumber" name="149" href="#149">149</a>     merged.close();
-<a class="jxr_linenumber" name="150" href="#150">150</a>   }
-<a class="jxr_linenumber" name="151" href="#151">151</a> 
-<a class="jxr_linenumber" name="152" href="#152">152</a>   <em class="jxr_comment">/*</em>
-<a class="jxr_linenumber" name="153" href="#153">153</a> <em class="jxr_comment">   * Actually merge two regions and update their info in the meta region(s)</em>
-<a class="jxr_linenumber" name="154" href="#154">154</a> <em class="jxr_comment">   * Returns HRegion object for newly merged region</em>
-<a class="jxr_linenumber" name="155" href="#155">155</a> <em class="jxr_comment">   */</em>
-<a class="jxr_linenumber" name="156" href="#156">156</a>   <strong class="jxr_keyword">private</strong> <a href="../../../../../org/apache/hadoop/hbase/regionserver/HRegion.html">HRegion</a> merge(<strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/hadoop/hbase/HTableDescriptor.html">HTableDescriptor</a> htd, <a href="../../../../../org/apache/hadoop/hbase/regionserver/HRegion.html">HRegion</a> meta,
-<a class="jxr_linenumber" name="157" href="#157">157</a>                         <a href="../../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> info1, <a href="../../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> info2)
-<a class="jxr_linenumber" name="158" href="#158">158</a>   <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="159" href="#159">159</a>     <strong class="jxr_keyword">if</strong> (info1 == <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="160" href="#160">160</a>       <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IOException(<span class="jxr_string">"Could not find "</span> + Bytes.toStringBinary(region1) + <span class="jxr_string">" in "</span> +
-<a class="jxr_linenumber" name="161" href="#161">161</a>           Bytes.toStringBinary(meta.getRegionInfo().getRegionName()));
-<a class="jxr_linenumber" name="162" href="#162">162</a>     }
-<a class="jxr_linenumber" name="163" href="#163">163</a>     <strong class="jxr_keyword">if</strong> (info2 == <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="164" href="#164">164</a>       <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IOException(<span class="jxr_string">"Could not find "</span> + Bytes.toStringBinary(region2) + <span class="jxr_string">" in "</span> +
-<a class="jxr_linenumber" name="165" href="#165">165</a>           Bytes.toStringBinary(meta.getRegionInfo().getRegionName()));
-<a class="jxr_linenumber" name="166" href="#166">166</a>     }
-<a class="jxr_linenumber" name="167" href="#167">167</a>     <a href="../../../../../org/apache/hadoop/hbase/regionserver/HRegion.html">HRegion</a> merged = <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="168" href="#168">168</a>     <a href="../../../../../org/apache/hadoop/hbase/regionserver/HRegion.html">HRegion</a> r1 = HRegion.openHRegion(info1, htd, utils.getLog(info1), getConf());
-<a class="jxr_linenumber" name="169" href="#169">169</a>     <strong class="jxr_keyword">try</strong> {
-<a class="jxr_linenumber" name="170" href="#170">170</a>       <a href="../../../../../org/apache/hadoop/hbase/regionserver/HRegion.html">HRegion</a> r2 = HRegion.openHRegion(info2, htd, utils.getLog(info2), getConf());
-<a class="jxr_linenumber" name="171" href="#171">171</a>       <strong class="jxr_keyword">try</strong> {
-<a class="jxr_linenumber" name="172" href="#172">172</a>         merged = HRegion.merge(r1, r2);
-<a class="jxr_linenumber" name="173" href="#173">173</a>       } <strong class="jxr_keyword">finally</strong> {
-<a class="jxr_linenumber" name="174" href="#174">174</a>         <strong class="jxr_keyword">if</strong> (!r2.isClosed()) {
-<a class="jxr_linenumber" name="175" href="#175">175</a>           r2.close();
-<a class="jxr_linenumber" name="176" href="#176">176</a>         }
-<a class="jxr_linenumber" name="177" href="#177">177</a>       }
-<a class="jxr_linenumber" name="178" href="#178">178</a>     } <strong class="jxr_keyword">finally</strong> {
-<a class="jxr_linenumber" name="179" href="#179">179</a>       <strong class="jxr_keyword">if</strong> (!r1.isClosed()) {
-<a class="jxr_linenumber" name="180" href="#180">180</a>         r1.close();
-<a class="jxr_linenumber" name="181" href="#181">181</a>       }
-<a class="jxr_linenumber" name="182" href="#182">182</a>     }
-<a class="jxr_linenumber" name="183" href="#183">183</a> 
-<a class="jxr_linenumber" name="184" href="#184">184</a>     <em class="jxr_comment">// Remove the old regions from meta.</em>
-<a class="jxr_linenumber" name="185" href="#185">185</a>     <em class="jxr_comment">// HRegion.merge has already deleted their files</em>
-<a class="jxr_linenumber" name="186" href="#186">186</a> 
-<a class="jxr_linenumber" name="187" href="#187">187</a>     removeRegionFromMeta(meta, info1);
-<a class="jxr_linenumber" name="188" href="#188">188</a>     removeRegionFromMeta(meta, info2);
-<a class="jxr_linenumber" name="189" href="#189">189</a> 
-<a class="jxr_linenumber" name="190" href="#190">190</a>     <strong class="jxr_keyword">this</strong>.mergeInfo = merged.getRegionInfo();
-<a class="jxr_linenumber" name="191" href="#191">191</a>     <strong class="jxr_keyword">return</strong> merged;
-<a class="jxr_linenumber" name="192" href="#192">192</a>   }
-<a class="jxr_linenumber" name="193" href="#193">193</a> 
-<a class="jxr_linenumber" name="194" href="#194">194</a>   <em class="jxr_comment">/*</em>
-<a class="jxr_linenumber" name="195" href="#195">195</a> <em class="jxr_comment">   * Removes a region's meta information from the passed &lt;code&gt;meta&lt;/code&gt;</em>
-<a class="jxr_linenumber" name="196" href="#196">196</a> <em class="jxr_comment">   * region.</em>
-<a class="jxr_linenumber" name="197" href="#197">197</a> <em class="jxr_comment">   *</em>
-<a class="jxr_linenumber" name="198" href="#198">198</a> <em class="jxr_comment">   * @param meta hbase:meta HRegion to be updated</em>
-<a class="jxr_linenumber" name="199" href="#199">199</a> <em class="jxr_comment">   * @param regioninfo HRegionInfo of region to remove from &lt;code&gt;meta&lt;/code&gt;</em>
-<a class="jxr_linenumber" name="200" href="#200">200</a> <em class="jxr_comment">   *</em>
-<a class="jxr_linenumber" name="201" href="#201">201</a> <em class="jxr_comment">   * @throws IOException</em>
-<a class="jxr_linenumber" name="202" href="#202">202</a> <em class="jxr_comment">   */</em>
-<a class="jxr_linenumber" name="203" href="#203">203</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> removeRegionFromMeta(<a href="../../../../../org/apache/hadoop/hbase/regionserver/HRegion.html">HRegion</a> meta, <a href="../../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> regioninfo)
-<a class="jxr_linenumber" name="204" href="#204">204</a>   <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="205" href="#205">205</a>     <strong class="jxr_keyword">if</strong> (LOG.isDebugEnabled()) {
-<a class="jxr_linenumber" name="206" href="#206">206</a>       LOG.debug(<span class="jxr_string">"Removing region: "</span> + regioninfo + <span class="jxr_string">" from "</span> + meta);
-<a class="jxr_linenumber" name="207" href="#207">207</a>     }
-<a class="jxr_linenumber" name="208" href="#208">208</a> 
-<a class="jxr_linenumber" name="209" href="#209">209</a>     <a href="../../../../../org/apache/hadoop/hbase/client/Delete.html">Delete</a> delete  = <strong class="jxr_keyword">new</strong> Delete(regioninfo.getRegionName(),
-<a class="jxr_linenumber" name="210" href="#210">210</a>         System.currentTimeMillis());
-<a class="jxr_linenumber" name="211" href="#211">211</a>     meta.delete(delete);
-<a class="jxr_linenumber" name="212" href="#212">212</a>   }
-<a class="jxr_linenumber" name="213" href="#213">213</a> 
-<a class="jxr_linenumber" name="214" href="#214">214</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="215" href="#215">215</a> <em class="jxr_javadoccomment">   * Parse given arguments and assign table name and regions names.</em>
-<a class="jxr_linenumber" name="216" href="#216">216</a> <em class="jxr_javadoccomment">   * (generic args are handled by ToolRunner.)</em>
-<a class="jxr_linenumber" name="217" href="#217">217</a> <em class="jxr_javadoccomment">   *</em>
-<a class="jxr_linenumber" name="218" href="#218">218</a> <em class="jxr_javadoccomment">   * @param args the arguments to parse</em>
-<a class="jxr_linenumber" name="219" href="#219">219</a> <em class="jxr_javadoccomment">   *</em>
-<a class="jxr_linenumber" name="220" href="#220">220</a> <em class="jxr_javadoccomment">   * @throws IOException</em>
-<a class="jxr_linenumber" name="221" href="#221">221</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="222" href="#222">222</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">int</strong> parseArgs(String[] args) <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="223" href="#223">223</a>     <strong class="jxr_keyword">if</strong> (args.length != 3) {
-<a class="jxr_linenumber" name="224" href="#224">224</a>       usage();
-<a class="jxr_linenumber" name="225" href="#225">225</a>       <strong class="jxr_keyword">return</strong> -1;
-<a class="jxr_linenumber" name="226" href="#226">226</a>     }
-<a class="jxr_linenumber" name="227" href="#227">227</a>     tableName = TableName.valueOf(args[0]);
-<a class="jxr_linenumber" name="228" href="#228">228</a> 
-<a class="jxr_linenumber" name="229" href="#229">229</a>     region1 = Bytes.toBytesBinary(args[1]);
-<a class="jxr_linenumber" name="230" href="#230">230</a>     region2 = Bytes.toBytesBinary(args[2]);
-<a class="jxr_linenumber" name="231" href="#231">231</a>     <strong class="jxr_keyword">int</strong> status = 0;
-<a class="jxr_linenumber" name="232" href="#232">232</a>     <strong class="jxr_keyword">if</strong> (notInTable(tableName, region1) || notInTable(tableName, region2)) {
-<a class="jxr_linenumber" name="233" href="#233">233</a>       status = -1;
-<a class="jxr_linenumber" name="234" href="#234">234</a>     } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (Bytes.equals(region1, region2)) {
-<a class="jxr_linenumber" name="235" href="#235">235</a>       LOG.error(<span class="jxr_string">"Can't merge a region with itself"</span>);
-<a class="jxr_linenumber" name="236" href="#236">236</a>       status = -1;
-<a class="jxr_linenumber" name="237" href="#237">237</a>     }
-<a class="jxr_linenumber" name="238" href="#238">238</a>     <strong class="jxr_keyword">return</strong> status;
-<a class="jxr_linenumber" name="239" href="#239">239</a>   }
-<a class="jxr_linenumber" name="240" href="#240">240</a> 
-<a class="jxr_linenumber" name="241" href="#241">241</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">boolean</strong> notInTable(<strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/hadoop/hbase/TableName.html">TableName</a> tn, <strong class="jxr_keyword">final</strong> byte [] rn) {
-<a class="jxr_linenumber" name="242" href="#242">242</a>     <strong class="jxr_keyword">if</strong> (WritableComparator.compareBytes(tn.getName(), 0, tn.getName().length,
-<a class="jxr_linenumber" name="243" href="#243">243</a>         rn, 0, tn.getName().length) != 0) {
-<a class="jxr_linenumber" name="244" href="#244">244</a>       LOG.error(<span class="jxr_string">"Region "</span> + Bytes.toStringBinary(rn) + <span class="jxr_string">" does not belong to table "</span> +
-<a class="jxr_linenumber" name="245" href="#245">245</a>         tn);
-<a class="jxr_linenumber" name="246" href="#246">246</a>       <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
-<a class="jxr_linenumber" name="247" href="#247">247</a>     }
-<a class="jxr_linenumber" name="248" href="#248">248</a>     <strong class="jxr_keyword">return</strong> false;
-<a class="jxr_linenumber" name="249" href="#249">249</a>   }
-<a class="jxr_linenumber" name="250" href="#250">250</a> 
-<a class="jxr_linenumber" name="251" href="#251">251</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> usage() {
-<a class="jxr_linenumber" name="252" href="#252">252</a>     System.err
-<a class="jxr_linenumber" name="253" href="#253">253</a>         .println(<span class="jxr_string">"For hadoop 0.21+, Usage: bin/hbase org.apache.hadoop.hbase.util.Merge "</span>
-<a class="jxr_linenumber" name="254" href="#254">254</a>             + <span class="jxr_string">"[-Dfs.defaultFS=hdfs://nn:port] &lt;table-name&gt; &lt;region-1&gt; &lt;region-2&gt;\n"</span>);
-<a class="jxr_linenumber" name="255" href="#255">255</a>   }
-<a class="jxr_linenumber" name="256" href="#256">256</a> 
-<a class="jxr_linenumber" name="257" href="#257">257</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">void</strong> main(String[] args) {
-<a class="jxr_linenumber" name="258" href="#258">258</a>     <strong class="jxr_keyword">int</strong> status;
-<a class="jxr_linenumber" name="259" href="#259">259</a>     <strong class="jxr_keyword">try</strong> {
-<a class="jxr_linenumber" name="260" href="#260">260</a>       status = ToolRunner.run(HBaseConfiguration.create(), <strong class="jxr_keyword">new</strong> Merge(), args);
-<a class="jxr_linenumber" name="261" href="#261">261</a>     } <strong class="jxr_keyword">catch</strong> (Exception e) {
-<a class="jxr_linenumber" name="262" href="#262">262</a>       LOG.error(<span class="jxr_string">"exiting due to error"</span>, e);
-<a class="jxr_linenumber" name="263" href="#263">263</a>       status = -1;
-<a class="jxr_linenumber" name="264" href="#264">264</a>     }
-<a class="jxr_linenumber" name="265" href="#265">265</a>     System.exit(status);
-<a class="jxr_linenumber" name="266" href="#266">266</a>   }
-<a class="jxr_linenumber" name="267" href="#267">267</a> }
+<a class="jxr_linenumber" name="26" href="#26">26</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.MetaTableAccessor;
+<a class="jxr_linenumber" name="27" href="#27">27</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.classification.InterfaceAudience;
+<a class="jxr_linenumber" name="28" href="#28">28</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.conf.Configured;
+<a class="jxr_linenumber" name="29" href="#29">29</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.fs.FileSystem;
+<a class="jxr_linenumber" name="30" href="#30">30</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.fs.Path;
+<a class="jxr_linenumber" name="31" href="#31">31</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.HBaseInterfaceAudience;
+<a class="jxr_linenumber" name="32" href="#32">32</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.TableDescriptor;
+<a class="jxr_linenumber" name="33" href="#33">33</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.TableName;
+<a class="jxr_linenumber" name="34" href="#34">34</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.HBaseConfiguration;
+<a class="jxr_linenumber" name="35" href="#35">35</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.HConstants;
+<a class="jxr_linenumber" name="36" href="#36">36</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.HRegionInfo;
+<a class="jxr_linenumber" name="37" href="#37">37</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.HTableDescriptor;
+<a class="jxr_linenumber" name="38" href="#38">38</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.MasterNotRunningException;
+<a class="jxr_linenumber" name="39" href="#39">39</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.ZooKeeperConnectionException;
+<a class="jxr_linenumber" name="40" href="#40">40</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.client.Delete;
+<a class="jxr_linenumber" name="41" href="#41">41</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.client.Get;
+<a class="jxr_linenumber" name="42" href="#42">42</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.client.HBaseAdmin;
+<a class="jxr_linenumber" name="43" href="#43">43</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.client.Result;
+<a class="jxr_linenumber" name="44" href="#44">44</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.regionserver.HRegion;
+<a class="jxr_linenumber" name="45" href="#45">45</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.io.WritableComparator;
+<a class="jxr_linenumber" name="46" href="#46">46</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.util.Tool;
+<a class="jxr_linenumber" name="47" href="#47">47</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.util.ToolRunner;
+<a class="jxr_linenumber" name="48" href="#48">48</a>  
+<a class="jxr_linenumber" name="49" href="#49">49</a>  <strong class="jxr_keyword">import</strong> com.google.common.base.Preconditions;
+<a class="jxr_linenumber" name="50" href="#50">50</a>  
+<a class="jxr_linenumber" name="51" href="#51">51</a>  <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="52" href="#52">52</a>  <em class="jxr_javadoccomment"> * Utility that can merge any two regions in the same table: adjacent,</em>
+<a class="jxr_linenumber" name="53" href="#53">53</a>  <em class="jxr_javadoccomment"> * overlapping or disjoint.</em>
+<a class="jxr_linenumber" name="54" href="#54">54</a>  <em class="jxr_javadoccomment"> */</em>
+<a class="jxr_linenumber" name="55" href="#55">55</a>  @InterfaceAudience.LimitedPrivate(HBaseInterfaceAudience.TOOLS)
+<a class="jxr_linenumber" name="56" href="#56">56</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/hadoop/hbase/util/Merge.html">Merge</a> <strong class="jxr_keyword">extends</strong> Configured <strong class="jxr_keyword">implements</strong> Tool {
+<a class="jxr_linenumber" name="57" href="#57">57</a>    <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> Log LOG = LogFactory.getLog(Merge.<strong class="jxr_keyword">class</strong>);
+<a class="jxr_linenumber" name="58" href="#58">58</a>    <strong class="jxr_keyword">private</strong> Path rootdir;
+<a class="jxr_linenumber" name="59" href="#59">59</a>    <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">volatile</strong> <a href="../../../../../org/apache/hadoop/hbase/util/MetaUtils.html">MetaUtils</a> utils;
+<a class="jxr_linenumber" name="60" href="#60">60</a>    <strong class="jxr_keyword">private</strong> <a href="../../../../../org/apache/hadoop/hbase/TableName.html">TableName</a> tableName;               <em class="jxr_comment">// Name of table</em>
+<a class="jxr_linenumber" name="61" href="#61">61</a>    <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">volatile</strong> byte [] region1;        <em class="jxr_comment">// Name of region 1</em>
+<a class="jxr_linenumber" name="62" href="#62">62</a>    <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">volatile</strong> byte [] region2;        <em class="jxr_comment">// Name of region 2</em>
+<a class="jxr_linenumber" name="63" href="#63">63</a>    <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">volatile</strong> <a href="../../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> mergeInfo = <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="64" href="#64">64</a>  
+<a class="jxr_linenumber" name="65" href="#65">65</a>    @Override
+<a class="jxr_linenumber" name="66" href="#66">66</a>    <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> run(String[] args) <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="67" href="#67">67</a>      <strong class="jxr_keyword">if</strong> (parseArgs(args) != 0) {
+<a class="jxr_linenumber" name="68" href="#68">68</a>        <strong class="jxr_keyword">return</strong> -1;
+<a class="jxr_linenumber" name="69" href="#69">69</a>      }
+<a class="jxr_linenumber" name="70" href="#70">70</a>  
+<a class="jxr_linenumber" name="71" href="#71">71</a>      <em class="jxr_comment">// Verify file system is up.</em>
+<a class="jxr_linenumber" name="72" href="#72">72</a>      FileSystem fs = FileSystem.get(getConf());              <em class="jxr_comment">// get DFS handle</em>
+<a class="jxr_linenumber" name="73" href="#73">73</a>      LOG.info(<span class="jxr_string">"Verifying that file system is available..."</span>);
+<a class="jxr_linenumber" name="74" href="#74">74</a>      <strong class="jxr_keyword">try</strong> {
+<a class="jxr_linenumber" name="75" href="#75">75</a>        FSUtils.checkFileSystemAvailable(fs);
+<a class="jxr_linenumber" name="76" href="#76">76</a>      } <strong class="jxr_keyword">catch</strong> (IOException e) {
+<a class="jxr_linenumber" name="77" href="#77">77</a>        LOG.fatal(<span class="jxr_string">"File system is not available"</span>, e);
+<a class="jxr_linenumber" name="78" href="#78">78</a>        <strong class="jxr_keyword">return</strong> -1;
+<a class="jxr_linenumber" name="79" href="#79">79</a>      }
+<a class="jxr_linenumber" name="80" href="#80">80</a>  
+<a class="jxr_linenumber" name="81" href="#81">81</a>      <em class="jxr_comment">// Verify HBase is down</em>
+<a class="jxr_linenumber" name="82" href="#82">82</a>      LOG.info(<span class="jxr_string">"Verifying that HBase is not running..."</span>);
+<a class="jxr_linenumber" name="83" href="#83">83</a>      <strong class="jxr_keyword">try</strong> {
+<a class="jxr_linenumber" name="84" href="#84">84</a>        HBaseAdmin.checkHBaseAvailable(getConf());
+<a class="jxr_linenumber" name="85" href="#85">85</a>        LOG.fatal(<span class="jxr_string">"HBase cluster must be off-line, and is not. Aborting."</span>);
+<a class="jxr_linenumber" name="86" href="#86">86</a>        <strong class="jxr_keyword">return</strong> -1;
+<a class="jxr_linenumber" name="87" href="#87">87</a>      } <strong class="jxr_keyword">catch</strong> (ZooKeeperConnectionException zkce) {
+<a class="jxr_linenumber" name="88" href="#88">88</a>        <em class="jxr_comment">// If no zk, presume no master.</em>
+<a class="jxr_linenumber" name="89" href="#89">89</a>      } <strong class="jxr_keyword">catch</strong> (MasterNotRunningException e) {
+<a class="jxr_linenumber" name="90" href="#90">90</a>        <em class="jxr_comment">// Expected. Ignore.</em>
+<a class="jxr_linenumber" name="91" href="#91">91</a>      }
+<a class="jxr_linenumber" name="92" href="#92">92</a>  
+<a class="jxr_linenumber" name="93" href="#93">93</a>      <em class="jxr_comment">// Initialize MetaUtils and and get the root of the HBase installation</em>
+<a class="jxr_linenumber" name="94" href="#94">94</a>  
+<a class="jxr_linenumber" name="95" href="#95">95</a>      <strong class="jxr_keyword">this</strong>.utils = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/hadoop/hbase/util/MetaUtils.html">MetaUtils</a>(getConf());
+<a class="jxr_linenumber" name="96" href="#96">96</a>      <strong class="jxr_keyword">this</strong>.rootdir = FSUtils.getRootDir(getConf());
+<a class="jxr_linenumber" name="97" href="#97">97</a>      <strong class="jxr_keyword">try</strong> {
+<a class="jxr_linenumber" name="98" href="#98">98</a>        mergeTwoRegions();
+<a class="jxr_linenumber" name="99" href="#99">99</a>        <strong class="jxr_keyword">return</strong> 0;
+<a class="jxr_linenumber" name="100" href="#100">100</a>     } <strong class="jxr_keyword">catch</strong> (IOException e) {
+<a class="jxr_linenumber" name="101" href="#101">101</a>       LOG.fatal(<span class="jxr_string">"Merge failed"</span>, e);
+<a class="jxr_linenumber" name="102" href="#102">102</a>       <strong class="jxr_keyword">return</strong> -1;
+<a class="jxr_linenumber" name="103" href="#103">103</a> 
+<a class="jxr_linenumber" name="104" href="#104">104</a>     } <strong class="jxr_keyword">finally</strong> {
+<a class="jxr_linenumber" name="105" href="#105">105</a>       <strong class="jxr_keyword">if</strong> (<strong class="jxr_keyword">this</strong>.utils != <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="106" href="#106">106</a>         <strong class="jxr_keyword">this</strong>.utils.shutdown();
+<a class="jxr_linenumber" name="107" href="#107">107</a>       }
+<a class="jxr_linenumber" name="108" href="#108">108</a>     }
+<a class="jxr_linenumber" name="109" href="#109">109</a>   }
+<a class="jxr_linenumber" name="110" href="#110">110</a> 
+<a class="jxr_linenumber" name="111" href="#111">111</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> @return <a href="../../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> for merge result */</em>
+<a class="jxr_linenumber" name="112" href="#112">112</a>   <a href="../../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> getMergedHRegionInfo() {
+<a class="jxr_linenumber" name="113" href="#113">113</a>     <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>.mergeInfo;
+<a class="jxr_linenumber" name="114" href="#114">114</a>   }
+<a class="jxr_linenumber" name="115" href="#115">115</a> 
+<a class="jxr_linenumber" name="116" href="#116">116</a>   <em class="jxr_comment">/*</em>
+<a class="jxr_linenumber" name="117" href="#117">117</a> <em class="jxr_comment">   * Merges two regions from a user table.</em>
+<a class="jxr_linenumber" name="118" href="#118">118</a> <em class="jxr_comment">   */</em>
+<a class="jxr_linenumber" name="119" href="#119">119</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> mergeTwoRegions() <strong class="jxr_keyword">throws</strong> IOException {
+<a class="jxr_linenumber" name="120" href="#120">120</a>     LOG.info(<span class="jxr_string">"Merging regions "</span> + Bytes.toStringBinary(<strong class="jxr_keyword">this</strong>.region1) + <span class="jxr_string">" and "</span> +
+<a class="jxr_linenumber" name="121" href="#121">121</a>         Bytes.toStringBinary(<strong class="jxr_keyword">this</strong>.region2) + <span class="jxr_string">" in table "</span> + <strong class="jxr_keyword">this</strong>.tableName);
+<a class="jxr_linenumber" name="122" href="#122">122</a>     <a href="../../../../../org/apache/hadoop/hbase/regionserver/HRegion.html">HRegion</a> meta = <strong class="jxr_keyword">this</strong>.utils.getMetaRegion();
+<a class="jxr_linenumber" name="123" href="#123">123</a>     <a href="../../../../../org/apache/hadoop/hbase/client/Get.html">Get</a> get = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/hadoop/hbase/client/Get.html">Get</a>(region1);
+<a class="jxr_linenumber" name="124" href="#124">124</a>     get.addColumn(HConstants.CATALOG_FAMILY, HConstants.REGIONINFO_QUALIFIER);
+<a class="jxr_linenumber" name="125" href="#125">125</a>     <a href="../../../../../org/apache/hadoop/hbase/client/Result.html">Result</a> result1 =  meta.get(get);
+<a class="jxr_linenumber" name="126" href="#126">126</a>     Preconditions.checkState(!result1.isEmpty(),
+<a class="jxr_linenumber" name="127" href="#127">127</a>         <span class="jxr_string">"First region cells can not be null"</span>);
+<a class="jxr_linenumber" name="128" href="#128">128</a>     <a href="../../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> info1 = MetaTableAccessor.getHRegionInfo(result1);
+<a class="jxr_linenumber" name="129" href="#129">129</a>     <strong class="jxr_keyword">if</strong> (info1 == <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="130" href="#130">130</a>       <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> NullPointerException(<span class="jxr_string">"info1 is null using key "</span> +
+<a class="jxr_linenumber" name="131" href="#131">131</a>           Bytes.toStringBinary(region1) + <span class="jxr_string">" in "</span> + meta);
+<a class="jxr_linenumber" name="132" href="#132">132</a>     }
+<a class="jxr_linenumber" name="133" href="#133">133</a>     get = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/hadoop/hbase/client/Get.html">Get</a>(region2);
+<a class="jxr_linenumber" name="134" href="#134">134</a>     get.addColumn(HConstants.CATALOG_FAMILY, HConstants.REGIONINFO_QUALIFIER);
+<a class="jxr_linenumber" name="135" href="#135">135</a>     <a href="../../../../../org/apache/hadoop/hbase/client/Result.html">Result</a> result2 =  meta.get(get);
+<a class="jxr_linenumber" name="136" href="#136">136</a>     Preconditions.checkState(!result2.isEmpty(),
+<a class="jxr_linenumber" name="137" href="#137">137</a>         <span class="jxr_string">"Second region cells can not be null"</span>);
+<a class="jxr_linenumber" name="138" href="#138">138</a>     <a href="../../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> info2 = MetaTableAccessor.getHRegionInfo(result2);
+<a class="jxr_linenumber" name="139" href="#139">139</a>     <strong class="jxr_keyword">if</strong> (info2 == <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="140" href="#140">140</a>       <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> NullPointerException(<span class="jxr_string">"info2 is null using key "</span> + meta);
+<a class="jxr_linenumber" name="141" href="#141">141</a>     }
+<a class="jxr_linenumber" name="142" href="#142">142</a>     <a href="../../../../../org/apache/hadoop/hbase/TableDescriptor.html">TableDescriptor</a> htd = FSTableDescriptors.getTableDescriptorFromFs(FileSystem.get(getConf()),
+<a class="jxr_linenumber" name="143" href="#143">143</a>       <strong class="jxr_keyword">this</strong>.rootdir, <strong class="jxr_keyword">this</strong>.tableName);
+<a class="jxr_linenumber" name="144" href="#144">144</a>     <a href="../../../../../org/apache/hadoop/hbase/regionserver/HRegion.html">HRegion</a> merged = merge(htd.getHTableDescriptor(), meta, info1, info2);
+<a class="jxr_linenumber" name="145" href="#145">145</a> 
+<a class="jxr_linenumber" name="146" href="#146">146</a>     LOG.info(<span class="jxr_string">"Adding "</span> + merged.getRegionInfo() + <span class="jxr_string">" to "</span> +
+<a class="jxr_linenumber" name="147" href="#147">147</a>         meta.getRegionInfo());
+<a class="jxr_linenumber" name="148" href="#148">148</a> 
+<a class="jxr_linenumber" name="149" href="#149">149</a>     HRegion.addRegionToMETA(meta, merged);
+<a class="jxr_linenumber" name="150" href="#150">150</a>     merged.close();
+<a class="jxr_linenumber" name="151" href="#151">151</a>   }
+<a class="jxr_linenumber" name="152" href="#152">152</a> 
+<a class="jxr_linenumber" name="153" href="#153">153</a>   <em class="jxr_comment">/*</em>
+<a class="jxr_linenumber" name="154" href="#154">154</a> <em class="jxr_comment">   * Actually merge two regions and update their info in the meta region(s)</em>
+<a class="jxr_linenumber" name="155" href="#155">155</a> <em class="jxr_comment">   * Returns HRegion object for newly merged region</em>
+<a class="jxr_linenumber" name="156" href="#156">156</a> <em class="jxr_comment">   */</em>
+<a class="jxr_linenumber" name="157" href="#157">157</a>   <strong class="jxr_keyword">private</strong> <a href="../../../../../org/apache/hadoop/hbase/regionserver/HRegion.html">HRegion</a> merge(<strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/hadoop/hbase/HTableDescriptor.html">HTableDescriptor</a> htd, <a href="../../../../../org/apache/hadoop/hbase/regionserver/HRegion.html">HRegion</a> meta,
+<a class="jxr_linenumber" name="158" href="#158">158</a>                         <a href="../../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> info1, <a href="../../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> info2)
+<a class="jxr_linenumber" name="159" href="#159">159</a>   <strong class="jxr_keyword">throws</strong> IOException {
+<a class="jxr_linenumber" name="160" href="#160">160</a>     <strong class="jxr_keyword">if</strong> (info1 == <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="161" href="#161">161</a>       <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IOException(<span class="jxr_string">"Could not find "</span> + Bytes.toStringBinary(region1) + <span class="jxr_string">" in "</span> +
+<a class="jxr_linenumber" name="162" href="#162">162</a>           Bytes.toStringBinary(meta.getRegionInfo().getRegionName()));
+<a class="jxr_linenumber" name="163" href="#163">163</a>     }
+<a class="jxr_linenumber" name="164" href="#164">164</a>     <strong class="jxr_keyword">if</strong> (info2 == <strong class="jxr_keyword">null</strong>) {
+<a class="jxr_linenumber" name="165" href="#165">165</a>       <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IOException(<span class="jxr_string">"Could not find "</span> + Bytes.toStringBinary(region2) + <span class="jxr_string">" in "</span> +
+<a class="jxr_linenumber" name="166" href="#166">166</a>           Bytes.toStringBinary(meta.getRegionInfo().getRegionName()));
+<a class="jxr_linenumber" name="167" href="#167">167</a>     }
+<a class="jxr_linenumber" name="168" href="#168">168</a>     <a href="../../../../../org/apache/hadoop/hbase/regionserver/HRegion.html">HRegion</a> merged = <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="169" href="#169">169</a>     <a href="../../../../../org/apache/hadoop/hbase/regionserver/HRegion.html">HRegion</a> r1 = HRegion.openHRegion(info1, htd, utils.getLog(info1), getConf());
+<a class="jxr_linenumber" name="170" href="#170">170</a>     <strong class="jxr_keyword">try</strong> {
+<a class="jxr_linenumber" name="171" href="#171">171</a>       <a href="../../../../../org/apache/hadoop/hbase/regionserver/HRegion.html">HRegion</a> r2 = HRegion.openHRegion(info2, htd, utils.getLog(info2), getConf());
+<a class="jxr_linenumber" name="172" href="#172">172</a>       <strong class="jxr_keyword">try</strong> {
+<a class="jxr_linenumber" name="173" href="#173">173</a>         merged = HRegion.merge(r1, r2);
+<a class="jxr_linenumber" name="174" href="#174">174</a>       } <strong class="jxr_keyword">finally</strong> {
+<a class="jxr_linenumber" name="175" href="#175">175</a>         <strong class="jxr_keyword">if</strong> (!r2.isClosed()) {
+<a class="jxr_linenumber" name="176" href="#176">176</a>           r2.close();
+<a class="jxr_linenumber" name="177" href="#177">177</a>         }
+<a class="jxr_linenumber" name="178" href="#178">178</a>       }
+<a class="jxr_linenumber" name="179" href="#179">179</a>     } <strong class="jxr_keyword">finally</strong> {
+<a class="jxr_linenumber" name="180" href="#180">180</a>       <strong class="jxr_keyword">if</strong> (!r1.isClosed()) {
+<a class="jxr_linenumber" name="181" href="#181">181</a>         r1.close();
+<a class="jxr_linenumber" name="182" href="#182">182</a>       }
+<a class="jxr_linenumber" name="183" href="#183">183</a>     }
+<a class="jxr_linenumber" name="184" href="#184">184</a> 
+<a class="jxr_linenumber" name="185" href="#185">185</a>     <em class="jxr_comment">// Remove the old regions from meta.</em>
+<a class="jxr_linenumber" name="186" href="#186">186</a>     <em class="jxr_comment">// HRegion.merge has already deleted their files</em>
+<a class="jxr_linenumber" name="187" href="#187">187</a> 
+<a class="jxr_linenumber" name="188" href="#188">188</a>     removeRegionFromMeta(meta, info1);
+<a class="jxr_linenumber" name="189" href="#189">189</a>     removeRegionFromMeta(meta, info2);
+<a class="jxr_linenumber" name="190" href="#190">190</a> 
+<a class="jxr_linenumber" name="191" href="#191">191</a>     <strong class="jxr_keyword">this</strong>.mergeInfo = merged.getRegionInfo();
+<a class="jxr_linenumber" name="192" href="#192">192</a>     <strong class="jxr_keyword">return</strong> merged;
+<a class="jxr_linenumber" name="193" href="#193">193</a>   }
+<a class="jxr_linenumber" name="194" href="#194">194</a> 
+<a class="jxr_linenumber" name="195" href="#195">195</a>   <em class="jxr_comment">/*</em>
+<a class="jxr_linenumber" name="196" href="#196">196</a> <em class="jxr_comment">   * Removes a region's meta information from the passed &lt;code&gt;meta&lt;/code&gt;</em>
+<a class="jxr_linenumber" name="197" href="#197">197</a> <em class="jxr_comment">   * region.</em>
+<a class="jxr_linenumber" name="198" href="#198">198</a> <em class="jxr_comment">   *</em>
+<a class="jxr_linenumber" name="199" href="#199">199</a> <em class="jxr_comment">   * @param meta hbase:meta HRegion to be updated</em>
+<a class="jxr_linenumber" name="200" href="#200">200</a> <em class="jxr_comment">   * @param regioninfo HRegionInfo of region to remove from &lt;code&gt;meta&lt;/code&gt;</em>
+<a class="jxr_linenumber" name="201" href="#201">201</a> <em class="jxr_comment">   *</em>
+<a class="jxr_linenumber" name="202" href="#202">202</a> <em class="jxr_comment">   * @throws IOException</em>
+<a class="jxr_linenumber" name="203" href="#203">203</a> <em class="jxr_comment">   */</em>
+<a class="jxr_linenumber" name="204" href="#204">204</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> removeRegionFromMeta(<a href="../../../../../org/apache/hadoop/hbase/regionserver/HRegion.html">HRegion</a> meta, <a href="../../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> regioninfo)
+<a class="jxr_linenumber" name="205" href="#205">205</a>   <strong class="jxr_keyword">throws</strong> IOException {
+<a class="jxr_linenumber" name="206" href="#206">206</a>     <strong class="jxr_keyword">if</strong> (LOG.isDebugEnabled()) {
+<a class="jxr_linenumber" name="207" href="#207">207</a>       LOG.debug(<span class="jxr_string">"Removing region: "</span> + regioninfo + <span class="jxr_string">" from "</span> + meta);
+<a class="jxr_linenumber" name="208" href="#208">208</a>     }
+<a class="jxr_linenumber" name="209" href="#209">209</a> 
+<a class="jxr_linenumber" name="210" href="#210">210</a>     <a href="../../../../../org/apache/hadoop/hbase/client/Delete.html">Delete</a> delete  = <strong class="jxr_keyword">new</strong> Delete(regioninfo.getRegionName(),
+<a class="jxr_linenumber" name="211" href="#211">211</a>         System.currentTimeMillis());
+<a class="jxr_linenumber" name="212" href="#212">212</a>     meta.delete(delete);
+<a class="jxr_linenumber" name="213" href="#213">213</a>   }
+<a class="jxr_linenumber" name="214" href="#214">214</a> 
+<a class="jxr_linenumber" name="215" href="#215">215</a>   <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="216" href="#216">216</a> <em class="jxr_javadoccomment">   * Parse given arguments and assign table name and regions names.</em>
+<a class="jxr_linenumber" name="217" href="#217">217</a> <em class="jxr_javadoccomment">   * (generic args are handled by ToolRunner.)</em>
+<a class="jxr_linenumber" name="218" href="#218">218</a> <em class="jxr_javadoccomment">   *</em>
+<a class="jxr_linenumber" name="219" href="#219">219</a> <em class="jxr_javadoccomment">   * @param args the arguments to parse</em>
+<a class="jxr_linenumber" name="220" href="#220">220</a> <em class="jxr_javadoccomment">   *</em>
+<a class="jxr_linenumber" name="221" href="#221">221</a> <em class="jxr_javadoccomment">   * @throws IOException</em>
+<a class="jxr_linenumber" name="222" href="#222">222</a> <em class="jxr_javadoccomment">   */</em>
+<a class="jxr_linenumber" name="223" href="#223">223</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">int</strong> parseArgs(String[] args) <strong class="jxr_keyword">throws</strong> IOException {
+<a class="jxr_linenumber" name="224" href="#224">224</a>     <strong class="jxr_keyword">if</strong> (args.length != 3) {
+<a class="jxr_linenumber" name="225" href="#225">225</a>       usage();
+<a class="jxr_linenumber" name="226" href="#226">226</a>       <strong class="jxr_keyword">return</strong> -1;
+<a class="jxr_linenumber" name="227" href="#227">227</a>     }
+<a class="jxr_linenumber" name="228" href="#228">228</a>     tableName = TableName.valueOf(args[0]);
+<a class="jxr_linenumber" name="229" href="#229">229</a> 
+<a class="jxr_linenumber" name="230" href="#230">230</a>     region1 = Bytes.toBytesBinary(args[1]);
+<a class="jxr_linenumber" name="231" href="#231">231</a>     region2 = Bytes.toBytesBinary(args[2]);
+<a class="jxr_linenumber" name="232" href="#232">232</a>     <strong class="jxr_keyword">int</strong> status = 0;
+<a class="jxr_linenumber" name="233" href="#233">233</a>     <strong class="jxr_keyword">if</strong> (notInTable(tableName, region1) || notInTable(tableName, region2)) {
+<a class="jxr_linenumber" name="234" href="#234">234</a>       status = -1;
+<a class="jxr_linenumber" name="235" href="#235">235</a>     } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (Bytes.equals(region1, region2)) {
+<a class="jxr_linenumber" name="236" href="#236">236</a>       LOG.error(<span class="jxr_string">"Can't merge a region with itself"</span>);
+<a class="jxr_linenumber" name="237" href="#237">237</a>       status = -1;
+<a class="jxr_linenumber" name="238" href="#238">238</a>     }
+<a class="jxr_linenumber" name="239" href="#239">239</a>     <strong class="jxr_keyword">return</strong> status;
+<a class="jxr_linenumber" name="240" href="#240">240</a>   }
+<a class="jxr_linenumber" name="241" href="#241">241</a> 
+<a class="jxr_linenumber" name="242" href="#242">242</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">boolean</strong> notInTable(<strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/hadoop/hbase/TableName.html">TableName</a> tn, <strong class="jxr_keyword">final</strong> byte [] rn) {
+<a class="jxr_linenumber" name="243" href="#243">243</a>     <strong class="jxr_keyword">if</strong> (WritableComparator.compareBytes(tn.getName(), 0, tn.getName().length,
+<a class="jxr_linenumber" name="244" href="#244">244</a>         rn, 0, tn.getName().length) != 0) {
+<a class="jxr_linenumber" name="245" href="#245">245</a>       LOG.error(<span class="jxr_string">"Region "</span> + Bytes.toStringBinary(rn) + <span class="jxr_string">" does not belong to table "</span> +
+<a class="jxr_linenumber" name="246" href="#246">246</a>         tn);
+<a class="jxr_linenumber" name="247" href="#247">247</a>       <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
+<a class="jxr_linenumber" name="248" href="#248">248</a>     }
+<a class="jxr_linenumber" name="249" href="#249">249</a>     <strong class="jxr_keyword">return</strong> false;
+<a class="jxr_linenumber" name="250" href="#250">250</a>   }
+<a class="jxr_linenumber" name="251" href="#251">251</a> 
+<a class="jxr_linenumber" name="252" href="#252">252</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> usage() {
+<a class="jxr_linenumber" name="253" href="#253">253</a>     System.err
+<a class="jxr_linenumber" name="254" href="#254">254</a>         .println(<span class="jxr_string">"For hadoop 0.21+, Usage: bin/hbase org.apache.hadoop.hbase.util.Merge "</span>
+<a class="jxr_linenumber" name="255" href="#255">255</a>             + <span class="jxr_string">"[-Dfs.defaultFS=hdfs://nn:port] &lt;table-name&gt; &lt;region-1&gt; &lt;region-2&gt;\n"</span>);
+<a class="jxr_linenumber" name="256" href="#256">256</a>   }
+<a class="jxr_linenumber" name="257" href="#257">257</a> 
+<a class="jxr_linenumber" name="258" href="#258">258</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">void</strong> main(String[] args) {
+<a class="jxr_linenumber" name="259" href="#259">259</a>     <strong class="jxr_keyword">int</strong> status;
+<a class="jxr_linenumber" name="260" href="#260">260</a>     <strong class="jxr_keyword">try</strong> {
+<a class="jxr_linenumber" name="261" href="#261">261</a>       status = ToolRunner.run(HBaseConfiguration.create(), <strong class="jxr_keyword">new</strong> Merge(), args);
+<a class="jxr_linenumber" name="262" href="#262">262</a>     } <strong class="jxr_keyword">catch</strong> (Exception e) {
+<a class="jxr_linenumber" name="263" href="#263">263</a>       LOG.error(<span class="jxr_string">"exiting due to error"</span>, e);
+<a class="jxr_linenumber" name="264" href="#264">264</a>       status = -1;
+<a class="jxr_linenumber" name="265" href="#265">265</a>     }
+<a class="jxr_linenumber" name="266" href="#266">266</a>     System.exit(status);
+<a class="jxr_linenumber" name="267" href="#267">267</a>   }
+<a class="jxr_linenumber" name="268" href="#268">268</a> }
 </pre>
 <hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
 </html>



Mime
View raw message