hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mi...@apache.org
Subject svn commit: r1711891 [44/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/client/HBaseAdmin.html
URL: http://svn.apache.org/viewvc/hbase/hbase.apache.org/trunk/xref/org/apache/hadoop/hbase/client/HBaseAdmin.html?rev=1711891&r1=1711890&r2=1711891&view=diff
==============================================================================
--- hbase/hbase.apache.org/trunk/xref/org/apache/hadoop/hbase/client/HBaseAdmin.html (original)
+++ hbase/hbase.apache.org/trunk/xref/org/apache/hadoop/hbase/client/HBaseAdmin.html Mon Nov  2 03:51:02 2015
@@ -2101,2804 +2101,2806 @@
 <a class="jxr_linenumber" name="2091" href="#2091">2091</a>         compact(master, getMobRegionInfo(tableName), major, columnFamily);
 <a class="jxr_linenumber" name="2092" href="#2092">2092</a>         <strong class="jxr_keyword">break</strong>;
 <a class="jxr_linenumber" name="2093" href="#2093">2093</a>       <strong class="jxr_keyword">case</strong> NORMAL:
-<a class="jxr_linenumber" name="2094" href="#2094">2094</a>         <a href="../../../../../org/apache/hadoop/hbase/zookeeper/ZooKeeperWatcher.html">ZooKeeperWatcher</a> zookeeper = <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="2095" href="#2095">2095</a>         <strong class="jxr_keyword">try</strong> {
-<a class="jxr_linenumber" name="2096" href="#2096">2096</a>           checkTableExists(tableName);
-<a class="jxr_linenumber" name="2097" href="#2097">2097</a>           zookeeper = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/hadoop/hbase/zookeeper/ZooKeeperWatcher.html">ZooKeeperWatcher</a>(conf, ZK_IDENTIFIER_PREFIX + connection.toString(),
-<a class="jxr_linenumber" name="2098" href="#2098">2098</a>                   <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/hadoop/hbase/client/HBaseAdmin.html">ThrowableAbortable</a>());
-<a class="jxr_linenumber" name="2099" href="#2099">2099</a>           List&lt;Pair&lt;HRegionInfo, ServerName&gt;&gt; pairs;
-<a class="jxr_linenumber" name="2100" href="#2100">2100</a>           <strong class="jxr_keyword">if</strong> (TableName.META_TABLE_NAME.equals(tableName)) {
-<a class="jxr_linenumber" name="2101" href="#2101">2101</a>             pairs = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/hadoop/hbase/zookeeper/MetaTableLocator.html">MetaTableLocator</a>().getMetaRegionsAndLocations(zookeeper);
-<a class="jxr_linenumber" name="2102" href="#2102">2102</a>           } <strong class="jxr_keyword">else</strong> {
-<a class="jxr_linenumber" name="2103" href="#2103">2103</a>             pairs = MetaTableAccessor.getTableRegionsAndLocations(connection, tableName);
-<a class="jxr_linenumber" name="2104" href="#2104">2104</a>           }
-<a class="jxr_linenumber" name="2105" href="#2105">2105</a>           <strong class="jxr_keyword">for</strong> (Pair&lt;HRegionInfo, ServerName&gt; pair: pairs) {
-<a class="jxr_linenumber" name="2106" href="#2106">2106</a>             <strong class="jxr_keyword">if</strong> (pair.getFirst().isOffline()) <strong class="jxr_keyword">continue</strong>;
-<a class="jxr_linenumber" name="2107" href="#2107">2107</a>             <strong class="jxr_keyword">if</strong> (pair.getSecond() == <strong class="jxr_keyword">null</strong>) <strong class="jxr_keyword">continue</strong>;
-<a class="jxr_linenumber" name="2108" href="#2108">2108</a>             <strong class="jxr_keyword">try</strong> {
-<a class="jxr_linenumber" name="2109" href="#2109">2109</a>               compact(pair.getSecond(), pair.getFirst(), major, columnFamily);
-<a class="jxr_linenumber" name="2110" href="#2110">2110</a>             } <strong class="jxr_keyword">catch</strong> (NotServingRegionException e) {
-<a class="jxr_linenumber" name="2111" href="#2111">2111</a>               <strong class="jxr_keyword">if</strong> (LOG.isDebugEnabled()) {
-<a class="jxr_linenumber" name="2112" href="#2112">2112</a>                 LOG.debug(<span class="jxr_string">"Trying to"</span> + (major ? <span class="jxr_string">" major"</span> : <span class="jxr_string">""</span>) + <span class="jxr_string">" compact "</span> +
-<a class="jxr_linenumber" name="2113" href="#2113">2113</a>                         pair.getFirst() + <span class="jxr_string">": "</span> +
-<a class="jxr_linenumber" name="2114" href="#2114">2114</a>                         StringUtils.stringifyException(e));
-<a class="jxr_linenumber" name="2115" href="#2115">2115</a>               }
-<a class="jxr_linenumber" name="2116" href="#2116">2116</a>             }
-<a class="jxr_linenumber" name="2117" href="#2117">2117</a>           }
-<a class="jxr_linenumber" name="2118" href="#2118">2118</a>         } <strong class="jxr_keyword">finally</strong> {
-<a class="jxr_linenumber" name="2119" href="#2119">2119</a>           <strong class="jxr_keyword">if</strong> (zookeeper != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="2120" href="#2120">2120</a>             zookeeper.close();
-<a class="jxr_linenumber" name="2121" href="#2121">2121</a>           }
-<a class="jxr_linenumber" name="2122" href="#2122">2122</a>         }
-<a class="jxr_linenumber" name="2123" href="#2123">2123</a>         <strong class="jxr_keyword">break</strong>;
-<a class="jxr_linenumber" name="2124" href="#2124">2124</a>     }
-<a class="jxr_linenumber" name="2125" href="#2125">2125</a>   }
-<a class="jxr_linenumber" name="2126" href="#2126">2126</a> 
-<a class="jxr_linenumber" name="2127" href="#2127">2127</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="2128" href="#2128">2128</a> <em class="jxr_javadoccomment">   * Compact an individual region.</em>
-<a class="jxr_linenumber" name="2129" href="#2129">2129</a> <em class="jxr_javadoccomment">   * Asynchronous operation.</em>
-<a class="jxr_linenumber" name="2130" href="#2130">2130</a> <em class="jxr_javadoccomment">   *</em>
-<a class="jxr_linenumber" name="2131" href="#2131">2131</a> <em class="jxr_javadoccomment">   * @param regionName region to compact</em>
-<a class="jxr_linenumber" name="2132" href="#2132">2132</a> <em class="jxr_javadoccomment">   * @param columnFamily column family within a table or region</em>
-<a class="jxr_linenumber" name="2133" href="#2133">2133</a> <em class="jxr_javadoccomment">   * @param major True if we are to do a major compaction.</em>
-<a class="jxr_linenumber" name="2134" href="#2134">2134</a> <em class="jxr_javadoccomment">   * @throws IOException if a remote or network exception occurs</em>
-<a class="jxr_linenumber" name="2135" href="#2135">2135</a> <em class="jxr_javadoccomment">   * @throws InterruptedException</em>
-<a class="jxr_linenumber" name="2136" href="#2136">2136</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="2137" href="#2137">2137</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> compactRegion(<strong class="jxr_keyword">final</strong> byte[] regionName, <strong class="jxr_keyword">final</strong> byte[] columnFamily,<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> major)
-<a class="jxr_linenumber" name="2138" href="#2138">2138</a>   <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="2139" href="#2139">2139</a>     Pair&lt;HRegionInfo, ServerName&gt; regionServerPair = getRegion(regionName);
-<a class="jxr_linenumber" name="2140" href="#2140">2140</a>     <strong class="jxr_keyword">if</strong> (regionServerPair == <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="2141" href="#2141">2141</a>       <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IllegalArgumentException(<span class="jxr_string">"Invalid region: "</span> + Bytes.toStringBinary(regionName));
-<a class="jxr_linenumber" name="2142" href="#2142">2142</a>     }
-<a class="jxr_linenumber" name="2143" href="#2143">2143</a>     <strong class="jxr_keyword">if</strong> (regionServerPair.getSecond() == <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="2144" href="#2144">2144</a>       <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/hadoop/hbase/client/NoServerForRegionException.html">NoServerForRegionException</a>(Bytes.toStringBinary(regionName));
-<a class="jxr_linenumber" name="2145" href="#2145">2145</a>     }
-<a class="jxr_linenumber" name="2146" href="#2146">2146</a>     compact(regionServerPair.getSecond(), regionServerPair.getFirst(), major, columnFamily);
-<a class="jxr_linenumber" name="2147" href="#2147">2147</a>   }
-<a class="jxr_linenumber" name="2148" href="#2148">2148</a> 
-<a class="jxr_linenumber" name="2149" href="#2149">2149</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> compact(<strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/hadoop/hbase/ServerName.html">ServerName</a> sn, <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> hri,
-<a class="jxr_linenumber" name="2150" href="#2150">2150</a>       <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> major, <strong class="jxr_keyword">final</strong> byte [] family)
-<a class="jxr_linenumber" name="2151" href="#2151">2151</a>   <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="2152" href="#2152">2152</a>     AdminService.BlockingInterface admin = <strong class="jxr_keyword">this</strong>.connection.getAdmin(sn);
-<a class="jxr_linenumber" name="2153" href="#2153">2153</a>     <a href="../../../../../org/apache/hadoop/hbase/protobuf/generated/AdminProtos.html">CompactRegionRequest</a> request =
-<a class="jxr_linenumber" name="2154" href="#2154">2154</a>       RequestConverter.buildCompactRegionRequest(hri.getRegionName(), major, family);
-<a class="jxr_linenumber" name="2155" href="#2155">2155</a>     <strong class="jxr_keyword">try</strong> {
-<a class="jxr_linenumber" name="2156" href="#2156">2156</a>       admin.compactRegion(<strong class="jxr_keyword">null</strong>, request);
-<a class="jxr_linenumber" name="2157" href="#2157">2157</a>     } <strong class="jxr_keyword">catch</strong> (ServiceException se) {
-<a class="jxr_linenumber" name="2158" href="#2158">2158</a>       <strong class="jxr_keyword">throw</strong> ProtobufUtil.getRemoteException(se);
-<a class="jxr_linenumber" name="2159" href="#2159">2159</a>     }
-<a class="jxr_linenumber" name="2160" href="#2160">2160</a>   }
-<a class="jxr_linenumber" name="2161" href="#2161">2161</a> 
-<a class="jxr_linenumber" name="2162" href="#2162">2162</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="2163" href="#2163">2163</a> <em class="jxr_javadoccomment">   * Move the region &lt;code&gt;r&lt;/code&gt; to &lt;code&gt;dest&lt;/code&gt;.</em>
-<a class="jxr_linenumber" name="2164" href="#2164">2164</a> <em class="jxr_javadoccomment">   * @param encodedRegionName The encoded region name; i.e. the hash that makes</em>
-<a class="jxr_linenumber" name="2165" href="#2165">2165</a> <em class="jxr_javadoccomment">   * up the region name suffix: e.g. if regionname is</em>
-<a class="jxr_linenumber" name="2166" href="#2166">2166</a> <em class="jxr_javadoccomment">   * &lt;code&gt;TestTable,0094429456,1289497600452.527db22f95c8a9e0116f0cc13c680396.&lt;/code&gt;,</em>
-<a class="jxr_linenumber" name="2167" href="#2167">2167</a> <em class="jxr_javadoccomment">   * then the encoded region name is: &lt;code&gt;527db22f95c8a9e0116f0cc13c680396&lt;/code&gt;.</em>
-<a class="jxr_linenumber" name="2168" href="#2168">2168</a> <em class="jxr_javadoccomment">   * @param destServerName The servername of the destination regionserver.  If</em>
-<a class="jxr_linenumber" name="2169" href="#2169">2169</a> <em class="jxr_javadoccomment">   * passed the empty byte array we'll assign to a random server.  A server name</em>
-<a class="jxr_linenumber" name="2170" href="#2170">2170</a> <em class="jxr_javadoccomment">   * is made of host, port and startcode.  Here is an example:</em>
-<a class="jxr_linenumber" name="2171" href="#2171">2171</a> <em class="jxr_javadoccomment">   * &lt;code&gt; host187.example.com,60020,1289493121758&lt;/code&gt;</em>
-<a class="jxr_linenumber" name="2172" href="#2172">2172</a> <em class="jxr_javadoccomment">   * @throws UnknownRegionException Thrown if we can't find a region named</em>
-<a class="jxr_linenumber" name="2173" href="#2173">2173</a> <em class="jxr_javadoccomment">   * &lt;code&gt;encodedRegionName&lt;/code&gt;</em>
-<a class="jxr_linenumber" name="2174" href="#2174">2174</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="2175" href="#2175">2175</a>   @Override
-<a class="jxr_linenumber" name="2176" href="#2176">2176</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> move(<strong class="jxr_keyword">final</strong> byte [] encodedRegionName, <strong class="jxr_keyword">final</strong> byte [] destServerName)
-<a class="jxr_linenumber" name="2177" href="#2177">2177</a>       <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="2178" href="#2178">2178</a> 
-<a class="jxr_linenumber" name="2179" href="#2179">2179</a>     executeCallable(<strong class="jxr_keyword">new</strong> MasterCallable&lt;Void&gt;(getConnection()) {
-<a class="jxr_linenumber" name="2180" href="#2180">2180</a>       @Override
-<a class="jxr_linenumber" name="2181" href="#2181">2181</a>       <strong class="jxr_keyword">public</strong> Void call(<strong class="jxr_keyword">int</strong> callTimeout) <strong class="jxr_keyword">throws</strong> ServiceException {
-<a class="jxr_linenumber" name="2182" href="#2182">2182</a>         <strong class="jxr_keyword">try</strong> {
-<a class="jxr_linenumber" name="2183" href="#2183">2183</a>           <a href="../../../../../org/apache/hadoop/hbase/protobuf/generated/MasterProtos.html">MoveRegionRequest</a> request =
-<a class="jxr_linenumber" name="2184" href="#2184">2184</a>               RequestConverter.buildMoveRegionRequest(encodedRegionName, destServerName);
-<a class="jxr_linenumber" name="2185" href="#2185">2185</a>             master.moveRegion(<strong class="jxr_keyword">null</strong>, request);
-<a class="jxr_linenumber" name="2186" href="#2186">2186</a>         } <strong class="jxr_keyword">catch</strong> (DeserializationException de) {
-<a class="jxr_linenumber" name="2187" href="#2187">2187</a>           LOG.error(<span class="jxr_string">"Could not parse destination server name: "</span> + de);
-<a class="jxr_linenumber" name="2188" href="#2188">2188</a>           <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> ServiceException(<strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/hadoop/hbase/DoNotRetryIOException.html">DoNotRetryIOException</a>(de));
-<a class="jxr_linenumber" name="2189" href="#2189">2189</a>         }
-<a class="jxr_linenumber" name="2190" href="#2190">2190</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="2191" href="#2191">2191</a>       }
-<a class="jxr_linenumber" name="2192" href="#2192">2192</a>     });
-<a class="jxr_linenumber" name="2193" href="#2193">2193</a>   }
-<a class="jxr_linenumber" name="2194" href="#2194">2194</a> 
-<a class="jxr_linenumber" name="2195" href="#2195">2195</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="2196" href="#2196">2196</a> <em class="jxr_javadoccomment">   * @param regionName</em>
-<a class="jxr_linenumber" name="2197" href="#2197">2197</a> <em class="jxr_javadoccomment">   *          Region name to assign.</em>
-<a class="jxr_linenumber" name="2198" href="#2198">2198</a> <em class="jxr_javadoccomment">   * @throws MasterNotRunningException</em>
-<a class="jxr_linenumber" name="2199" href="#2199">2199</a> <em class="jxr_javadoccomment">   * @throws ZooKeeperConnectionException</em>
-<a class="jxr_linenumber" name="2200" href="#2200">2200</a> <em class="jxr_javadoccomment">   * @throws IOException</em>
-<a class="jxr_linenumber" name="2201" href="#2201">2201</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="2202" href="#2202">2202</a>   @Override
-<a class="jxr_linenumber" name="2203" href="#2203">2203</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> assign(<strong class="jxr_keyword">final</strong> byte[] regionName) <strong class="jxr_keyword">throws</strong> MasterNotRunningException,
-<a class="jxr_linenumber" name="2204" href="#2204">2204</a>       ZooKeeperConnectionException, IOException {
-<a class="jxr_linenumber" name="2205" href="#2205">2205</a>     <strong class="jxr_keyword">final</strong> byte[] toBeAssigned = getRegionName(regionName);
-<a class="jxr_linenumber" name="2206" href="#2206">2206</a>     executeCallable(<strong class="jxr_keyword">new</strong> MasterCallable&lt;Void&gt;(getConnection()) {
-<a class="jxr_linenumber" name="2207" href="#2207">2207</a>       @Override
-<a class="jxr_linenumber" name="2208" href="#2208">2208</a>       <strong class="jxr_keyword">public</strong> Void call(<strong class="jxr_keyword">int</strong> callTimeout) <strong class="jxr_keyword">throws</strong> ServiceException {
-<a class="jxr_linenumber" name="2209" href="#2209">2209</a>         <a href="../../../../../org/apache/hadoop/hbase/protobuf/generated/MasterProtos.html">AssignRegionRequest</a> request =
-<a class="jxr_linenumber" name="2210" href="#2210">2210</a>           RequestConverter.buildAssignRegionRequest(toBeAssigned);
-<a class="jxr_linenumber" name="2211" href="#2211">2211</a>         master.assignRegion(<strong class="jxr_keyword">null</strong>,request);
-<a class="jxr_linenumber" name="2212" href="#2212">2212</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="2213" href="#2213">2213</a>       }
-<a class="jxr_linenumber" name="2214" href="#2214">2214</a>     });
-<a class="jxr_linenumber" name="2215" href="#2215">2215</a>   }
-<a class="jxr_linenumber" name="2216" href="#2216">2216</a> 
-<a class="jxr_linenumber" name="2217" href="#2217">2217</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="2218" href="#2218">2218</a> <em class="jxr_javadoccomment">   * Unassign a region from current hosting regionserver.  Region will then be</em>
-<a class="jxr_linenumber" name="2219" href="#2219">2219</a> <em class="jxr_javadoccomment">   * assigned to a regionserver chosen at random.  Region could be reassigned</em>
-<a class="jxr_linenumber" name="2220" href="#2220">2220</a> <em class="jxr_javadoccomment">   * back to the same server.  Use {@link #move(byte[], byte[])} if you want</em>
-<a class="jxr_linenumber" name="2221" href="#2221">2221</a> <em class="jxr_javadoccomment">   * to control the region movement.</em>
-<a class="jxr_linenumber" name="2222" href="#2222">2222</a> <em class="jxr_javadoccomment">   * @param regionName Region to unassign. Will clear any existing RegionPlan</em>
-<a class="jxr_linenumber" name="2223" href="#2223">2223</a> <em class="jxr_javadoccomment">   * if one found.</em>
-<a class="jxr_linenumber" name="2224" href="#2224">2224</a> <em class="jxr_javadoccomment">   * @param force If true, force unassign (Will remove region from</em>
-<a class="jxr_linenumber" name="2225" href="#2225">2225</a> <em class="jxr_javadoccomment">   * regions-in-transition too if present. If results in double assignment</em>
-<a class="jxr_linenumber" name="2226" href="#2226">2226</a> <em class="jxr_javadoccomment">   * use hbck -fix to resolve. To be used by experts).</em>
-<a class="jxr_linenumber" name="2227" href="#2227">2227</a> <em class="jxr_javadoccomment">   * @throws MasterNotRunningException</em>
-<a class="jxr_linenumber" name="2228" href="#2228">2228</a> <em class="jxr_javadoccomment">   * @throws ZooKeeperConnectionException</em>
-<a class="jxr_linenumber" name="2229" href="#2229">2229</a> <em class="jxr_javadoccomment">   * @throws IOException</em>
-<a class="jxr_linenumber" name="2230" href="#2230">2230</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="2231" href="#2231">2231</a>   @Override
-<a class="jxr_linenumber" name="2232" href="#2232">2232</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> unassign(<strong class="jxr_keyword">final</strong> byte [] regionName, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> force)
-<a class="jxr_linenumber" name="2233" href="#2233">2233</a>   <strong class="jxr_keyword">throws</strong> MasterNotRunningException, ZooKeeperConnectionException, IOException {
-<a class="jxr_linenumber" name="2234" href="#2234">2234</a>     <strong class="jxr_keyword">final</strong> byte[] toBeUnassigned = getRegionName(regionName);
-<a class="jxr_linenumber" name="2235" href="#2235">2235</a>     executeCallable(<strong class="jxr_keyword">new</strong> MasterCallable&lt;Void&gt;(getConnection()) {
-<a class="jxr_linenumber" name="2236" href="#2236">2236</a>       @Override
-<a class="jxr_linenumber" name="2237" href="#2237">2237</a>       <strong class="jxr_keyword">public</strong> Void call(<strong class="jxr_keyword">int</strong> callTimeout) <strong class="jxr_keyword">throws</strong> ServiceException {
-<a class="jxr_linenumber" name="2238" href="#2238">2238</a>         <a href="../../../../../org/apache/hadoop/hbase/protobuf/generated/MasterProtos.html">UnassignRegionRequest</a> request =
-<a class="jxr_linenumber" name="2239" href="#2239">2239</a>           RequestConverter.buildUnassignRegionRequest(toBeUnassigned, force);
-<a class="jxr_linenumber" name="2240" href="#2240">2240</a>         master.unassignRegion(<strong class="jxr_keyword">null</strong>, request);
-<a class="jxr_linenumber" name="2241" href="#2241">2241</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="2242" href="#2242">2242</a>       }
-<a class="jxr_linenumber" name="2243" href="#2243">2243</a>     });
-<a class="jxr_linenumber" name="2244" href="#2244">2244</a>   }
-<a class="jxr_linenumber" name="2245" href="#2245">2245</a> 
-<a class="jxr_linenumber" name="2246" href="#2246">2246</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="2247" href="#2247">2247</a> <em class="jxr_javadoccomment">   * Offline specified region from master's in-memory state. It will not attempt to reassign the</em>
-<a class="jxr_linenumber" name="2248" href="#2248">2248</a> <em class="jxr_javadoccomment">   * region as in unassign. This API can be used when a region not served by any region server and</em>
-<a class="jxr_linenumber" name="2249" href="#2249">2249</a> <em class="jxr_javadoccomment">   * still online as per Master's in memory state. If this API is incorrectly used on active region</em>
-<a class="jxr_linenumber" name="2250" href="#2250">2250</a> <em class="jxr_javadoccomment">   * then master will loose track of that region.</em>
-<a class="jxr_linenumber" name="2251" href="#2251">2251</a> <em class="jxr_javadoccomment">   *</em>
-<a class="jxr_linenumber" name="2252" href="#2252">2252</a> <em class="jxr_javadoccomment">   * This is a special method that should be used by experts or hbck.</em>
-<a class="jxr_linenumber" name="2253" href="#2253">2253</a> <em class="jxr_javadoccomment">   *</em>
-<a class="jxr_linenumber" name="2254" href="#2254">2254</a> <em class="jxr_javadoccomment">   * @param regionName</em>
-<a class="jxr_linenumber" name="2255" href="#2255">2255</a> <em class="jxr_javadoccomment">   *          Region to offline.</em>
-<a class="jxr_linenumber" name="2256" href="#2256">2256</a> <em class="jxr_javadoccomment">   * @throws IOException</em>
-<a class="jxr_linenumber" name="2257" href="#2257">2257</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="2258" href="#2258">2258</a>   @Override
-<a class="jxr_linenumber" name="2259" href="#2259">2259</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> offline(<strong class="jxr_keyword">final</strong> byte [] regionName)
-<a class="jxr_linenumber" name="2260" href="#2260">2260</a>   <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="2261" href="#2261">2261</a>     executeCallable(<strong class="jxr_keyword">new</strong> MasterCallable&lt;Void&gt;(getConnection()) {
-<a class="jxr_linenumber" name="2262" href="#2262">2262</a>       @Override
-<a class="jxr_linenumber" name="2263" href="#2263">2263</a>       <strong class="jxr_keyword">public</strong> Void call(<strong class="jxr_keyword">int</strong> callTimeout) <strong class="jxr_keyword">throws</strong> ServiceException {
-<a class="jxr_linenumber" name="2264" href="#2264">2264</a>         master.offlineRegion(<strong class="jxr_keyword">null</strong>,RequestConverter.buildOfflineRegionRequest(regionName));
-<a class="jxr_linenumber" name="2265" href="#2265">2265</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="2266" href="#2266">2266</a>       }
-<a class="jxr_linenumber" name="2267" href="#2267">2267</a>     });
-<a class="jxr_linenumber" name="2268" href="#2268">2268</a>   }
-<a class="jxr_linenumber" name="2269" href="#2269">2269</a> 
-<a class="jxr_linenumber" name="2270" href="#2270">2270</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="2271" href="#2271">2271</a> <em class="jxr_javadoccomment">   * Turn the load balancer on or off.</em>
-<a class="jxr_linenumber" name="2272" href="#2272">2272</a> <em class="jxr_javadoccomment">   * @param on If true, enable balancer. If false, disable balancer.</em>
-<a class="jxr_linenumber" name="2273" href="#2273">2273</a> <em class="jxr_javadoccomment">   * @param synchronous If true, it waits until current balance() call, if outstanding, to return.</em>
-<a class="jxr_linenumber" name="2274" href="#2274">2274</a> <em class="jxr_javadoccomment">   * @return Previous balancer value</em>
-<a class="jxr_linenumber" name="2275" href="#2275">2275</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="2276" href="#2276">2276</a>   @Override
-<a class="jxr_linenumber" name="2277" href="#2277">2277</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> setBalancerRunning(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> on, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> synchronous)
-<a class="jxr_linenumber" name="2278" href="#2278">2278</a>   <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="2279" href="#2279">2279</a>     <strong class="jxr_keyword">return</strong> executeCallable(<strong class="jxr_keyword">new</strong> MasterCallable&lt;Boolean&gt;(getConnection()) {
-<a class="jxr_linenumber" name="2280" href="#2280">2280</a>       @Override
-<a class="jxr_linenumber" name="2281" href="#2281">2281</a>       <strong class="jxr_keyword">public</strong> Boolean call(<strong class="jxr_keyword">int</strong> callTimeout) <strong class="jxr_keyword">throws</strong> ServiceException {
-<a class="jxr_linenumber" name="2282" href="#2282">2282</a>         <a href="../../../../../org/apache/hadoop/hbase/protobuf/generated/MasterProtos.html">SetBalancerRunningRequest</a> req =
-<a class="jxr_linenumber" name="2283" href="#2283">2283</a>             RequestConverter.buildSetBalancerRunningRequest(on, synchronous);
-<a class="jxr_linenumber" name="2284" href="#2284">2284</a>         <strong class="jxr_keyword">return</strong> master.setBalancerRunning(<strong class="jxr_keyword">null</strong>, req).getPrevBalanceValue();
-<a class="jxr_linenumber" name="2285" href="#2285">2285</a>       }
-<a class="jxr_linenumber" name="2286" href="#2286">2286</a>     });
-<a class="jxr_linenumber" name="2287" href="#2287">2287</a>   }
-<a class="jxr_linenumber" name="2288" href="#2288">2288</a> 
-<a class="jxr_linenumber" name="2289" href="#2289">2289</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="2290" href="#2290">2290</a> <em class="jxr_javadoccomment">   * Invoke the balancer.  Will run the balancer and if regions to move, it will</em>
-<a class="jxr_linenumber" name="2291" href="#2291">2291</a> <em class="jxr_javadoccomment">   * go ahead and do the reassignments.  Can NOT run for various reasons.  Check</em>
-<a class="jxr_linenumber" name="2292" href="#2292">2292</a> <em class="jxr_javadoccomment">   * logs.</em>
-<a class="jxr_linenumber" name="2293" href="#2293">2293</a> <em class="jxr_javadoccomment">   * @return True if balancer ran, false otherwise.</em>
-<a class="jxr_linenumber" name="2294" href="#2294">2294</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="2295" href="#2295">2295</a>   @Override
-<a class="jxr_linenumber" name="2296" href="#2296">2296</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> balancer() <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="2297" href="#2297">2297</a>     <strong class="jxr_keyword">return</strong> executeCallable(<strong class="jxr_keyword">new</strong> MasterCallable&lt;Boolean&gt;(getConnection()) {
-<a class="jxr_linenumber" name="2298" href="#2298">2298</a>       @Override
-<a class="jxr_linenumber" name="2299" href="#2299">2299</a>       <strong class="jxr_keyword">public</strong> Boolean call(<strong class="jxr_keyword">int</strong> callTimeout) <strong class="jxr_keyword">throws</strong> ServiceException {
-<a class="jxr_linenumber" name="2300" href="#2300">2300</a>         <strong class="jxr_keyword">return</strong> master.balance(<strong class="jxr_keyword">null</strong>, RequestConverter.buildBalanceRequest(false)).getBalancerRan();
-<a class="jxr_linenumber" name="2301" href="#2301">2301</a>       }
-<a class="jxr_linenumber" name="2302" href="#2302">2302</a>     });
-<a class="jxr_linenumber" name="2303" href="#2303">2303</a>   }
-<a class="jxr_linenumber" name="2304" href="#2304">2304</a> 
-<a class="jxr_linenumber" name="2305" href="#2305">2305</a>   @Override
-<a class="jxr_linenumber" name="2306" href="#2306">2306</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> balancer(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> force) <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="2307" href="#2307">2307</a>     <strong class="jxr_keyword">return</strong> executeCallable(<strong class="jxr_keyword">new</strong> MasterCallable&lt;Boolean&gt;(getConnection()) {
-<a class="jxr_linenumber" name="2308" href="#2308">2308</a>       @Override
-<a class="jxr_linenumber" name="2309" href="#2309">2309</a>       <strong class="jxr_keyword">public</strong> Boolean call(<strong class="jxr_keyword">int</strong> callTimeout) <strong class="jxr_keyword">throws</strong> ServiceException {
-<a class="jxr_linenumber" name="2310" href="#2310">2310</a>         <strong class="jxr_keyword">return</strong> master.balance(<strong class="jxr_keyword">null</strong>, RequestConverter.buildBalanceRequest(force)).getBalancerRan();
-<a class="jxr_linenumber" name="2311" href="#2311">2311</a>       }
-<a class="jxr_linenumber" name="2312" href="#2312">2312</a>     });
-<a class="jxr_linenumber" name="2313" href="#2313">2313</a>   }
-<a class="jxr_linenumber" name="2314" href="#2314">2314</a> 
-<a class="jxr_linenumber" name="2315" href="#2315">2315</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="2316" href="#2316">2316</a> <em class="jxr_javadoccomment">   * Query the state of the balancer from the Master. It's not a guarantee that the balancer is</em>
-<a class="jxr_linenumber" name="2317" href="#2317">2317</a> <em class="jxr_javadoccomment">   * actually running this very moment, but that it will run.</em>
-<a class="jxr_linenumber" name="2318" href="#2318">2318</a> <em class="jxr_javadoccomment">   *</em>
-<a class="jxr_linenumber" name="2319" href="#2319">2319</a> <em class="jxr_javadoccomment">   * @return True if the balancer is enabled, false otherwise.</em>
-<a class="jxr_linenumber" name="2320" href="#2320">2320</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="2321" href="#2321">2321</a>   @Override
-<a class="jxr_linenumber" name="2322" href="#2322">2322</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> isBalancerEnabled() <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="2323" href="#2323">2323</a>     <strong class="jxr_keyword">return</strong> executeCallable(<strong class="jxr_keyword">new</strong> MasterCallable&lt;Boolean&gt;(getConnection()) {
-<a class="jxr_linenumber" name="2324" href="#2324">2324</a>       @Override
-<a class="jxr_linenumber" name="2325" href="#2325">2325</a>       <strong class="jxr_keyword">public</strong> Boolean call(<strong class="jxr_keyword">int</strong> callTimeout) <strong class="jxr_keyword">throws</strong> ServiceException {
-<a class="jxr_linenumber" name="2326" href="#2326">2326</a>         <strong class="jxr_keyword">return</strong> master.isBalancerEnabled(<strong class="jxr_keyword">null</strong>, RequestConverter.buildIsBalancerEnabledRequest())
-<a class="jxr_linenumber" name="2327" href="#2327">2327</a>             .getEnabled();
-<a class="jxr_linenumber" name="2328" href="#2328">2328</a>       }
-<a class="jxr_linenumber" name="2329" href="#2329">2329</a>     });
-<a class="jxr_linenumber" name="2330" href="#2330">2330</a>   }
-<a class="jxr_linenumber" name="2331" href="#2331">2331</a> 
-<a class="jxr_linenumber" name="2332" href="#2332">2332</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="2333" href="#2333">2333</a> <em class="jxr_javadoccomment">   * Invoke region normalizer. Can NOT run for various reasons.  Check logs.</em>
-<a class="jxr_linenumber" name="2334" href="#2334">2334</a> <em class="jxr_javadoccomment">   *</em>
-<a class="jxr_linenumber" name="2335" href="#2335">2335</a> <em class="jxr_javadoccomment">   * @return True if region normalizer ran, false otherwise.</em>
-<a class="jxr_linenumber" name="2336" href="#2336">2336</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="2337" href="#2337">2337</a>   @Override
-<a class="jxr_linenumber" name="2338" href="#2338">2338</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> normalize() <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="2339" href="#2339">2339</a>     <strong class="jxr_keyword">return</strong> executeCallable(<strong class="jxr_keyword">new</strong> MasterCallable&lt;Boolean&gt;(getConnection()) {
-<a class="jxr_linenumber" name="2340" href="#2340">2340</a>       @Override
-<a class="jxr_linenumber" name="2341" href="#2341">2341</a>       <strong class="jxr_keyword">public</strong> Boolean call(<strong class="jxr_keyword">int</strong> callTimeout) <strong class="jxr_keyword">throws</strong> ServiceException {
-<a class="jxr_linenumber" name="2342" href="#2342">2342</a>         <strong class="jxr_keyword">return</strong> master.normalize(<strong class="jxr_keyword">null</strong>,
-<a class="jxr_linenumber" name="2343" href="#2343">2343</a>           RequestConverter.buildNormalizeRequest()).getNormalizerRan();
-<a class="jxr_linenumber" name="2344" href="#2344">2344</a>       }
-<a class="jxr_linenumber" name="2345" href="#2345">2345</a>     });
-<a class="jxr_linenumber" name="2346" href="#2346">2346</a>   }
-<a class="jxr_linenumber" name="2347" href="#2347">2347</a> 
-<a class="jxr_linenumber" name="2348" href="#2348">2348</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="2349" href="#2349">2349</a> <em class="jxr_javadoccomment">   * Query the current state of the region normalizer</em>
-<a class="jxr_linenumber" name="2350" href="#2350">2350</a> <em class="jxr_javadoccomment">   *</em>
-<a class="jxr_linenumber" name="2351" href="#2351">2351</a> <em class="jxr_javadoccomment">   * @return true if region normalizer is enabled, false otherwise.</em>
-<a class="jxr_linenumber" name="2352" href="#2352">2352</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="2353" href="#2353">2353</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> isNormalizerEnabled() <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="2354" href="#2354">2354</a>     <strong class="jxr_keyword">return</strong> executeCallable(<strong class="jxr_keyword">new</strong> MasterCallable&lt;Boolean&gt;(getConnection()) {
-<a class="jxr_linenumber" name="2355" href="#2355">2355</a>       @Override
-<a class="jxr_linenumber" name="2356" href="#2356">2356</a>       <strong class="jxr_keyword">public</strong> Boolean call(<strong class="jxr_keyword">int</strong> callTimeout) <strong class="jxr_keyword">throws</strong> ServiceException {
-<a class="jxr_linenumber" name="2357" href="#2357">2357</a>         <strong class="jxr_keyword">return</strong> master.isNormalizerEnabled(<strong class="jxr_keyword">null</strong>,
-<a class="jxr_linenumber" name="2358" href="#2358">2358</a>           RequestConverter.buildIsNormalizerEnabledRequest()).getEnabled();
-<a class="jxr_linenumber" name="2359" href="#2359">2359</a>       }
-<a class="jxr_linenumber" name="2360" href="#2360">2360</a>     });
-<a class="jxr_linenumber" name="2361" href="#2361">2361</a>   }
-<a class="jxr_linenumber" name="2362" href="#2362">2362</a> 
-<a class="jxr_linenumber" name="2363" href="#2363">2363</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="2364" href="#2364">2364</a> <em class="jxr_javadoccomment">   * Turn region normalizer on or off.</em>
-<a class="jxr_linenumber" name="2365" href="#2365">2365</a> <em class="jxr_javadoccomment">   *</em>
-<a class="jxr_linenumber" name="2366" href="#2366">2366</a> <em class="jxr_javadoccomment">   * @return Previous normalizer value</em>
-<a class="jxr_linenumber" name="2367" href="#2367">2367</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="2368" href="#2368">2368</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> setNormalizerRunning(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> on) <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="2369" href="#2369">2369</a>     <strong class="jxr_keyword">return</strong> executeCallable(<strong class="jxr_keyword">new</strong> MasterCallable&lt;Boolean&gt;(getConnection()) {
-<a class="jxr_linenumber" name="2370" href="#2370">2370</a>       @Override
-<a class="jxr_linenumber" name="2371" href="#2371">2371</a>       <strong class="jxr_keyword">public</strong> Boolean call(<strong class="jxr_keyword">int</strong> callTimeout) <strong class="jxr_keyword">throws</strong> ServiceException {
-<a class="jxr_linenumber" name="2372" href="#2372">2372</a>         <a href="../../../../../org/apache/hadoop/hbase/protobuf/generated/MasterProtos.html">SetNormalizerRunningRequest</a> req =
-<a class="jxr_linenumber" name="2373" href="#2373">2373</a>           RequestConverter.buildSetNormalizerRunningRequest(on);
-<a class="jxr_linenumber" name="2374" href="#2374">2374</a>         <strong class="jxr_keyword">return</strong> master.setNormalizerRunning(<strong class="jxr_keyword">null</strong>, req).getPrevNormalizerValue();
-<a class="jxr_linenumber" name="2375" href="#2375">2375</a>       }
-<a class="jxr_linenumber" name="2376" href="#2376">2376</a>     });
-<a class="jxr_linenumber" name="2377" href="#2377">2377</a>   }
-<a class="jxr_linenumber" name="2378" href="#2378">2378</a> 
-<a class="jxr_linenumber" name="2379" href="#2379">2379</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="2380" href="#2380">2380</a> <em class="jxr_javadoccomment">   * Enable/Disable the catalog janitor</em>
-<a class="jxr_linenumber" name="2381" href="#2381">2381</a> <em class="jxr_javadoccomment">   * @param enable if true enables the catalog janitor</em>
-<a class="jxr_linenumber" name="2382" href="#2382">2382</a> <em class="jxr_javadoccomment">   * @return the previous state</em>
-<a class="jxr_linenumber" name="2383" href="#2383">2383</a> <em class="jxr_javadoccomment">   * @throws MasterNotRunningException</em>
-<a class="jxr_linenumber" name="2384" href="#2384">2384</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="2385" href="#2385">2385</a>   @Override
-<a class="jxr_linenumber" name="2386" href="#2386">2386</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> enableCatalogJanitor(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> enable)
-<a class="jxr_linenumber" name="2387" href="#2387">2387</a>       <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="2388" href="#2388">2388</a>     <strong class="jxr_keyword">return</strong> executeCallable(<strong class="jxr_keyword">new</strong> MasterCallable&lt;Boolean&gt;(getConnection()) {
-<a class="jxr_linenumber" name="2389" href="#2389">2389</a>       @Override
-<a class="jxr_linenumber" name="2390" href="#2390">2390</a>       <strong class="jxr_keyword">public</strong> Boolean call(<strong class="jxr_keyword">int</strong> callTimeout) <strong class="jxr_keyword">throws</strong> ServiceException {
-<a class="jxr_linenumber" name="2391" href="#2391">2391</a>         <strong class="jxr_keyword">return</strong> master.enableCatalogJanitor(<strong class="jxr_keyword">null</strong>,
-<a class="jxr_linenumber" name="2392" href="#2392">2392</a>           RequestConverter.buildEnableCatalogJanitorRequest(enable)).getPrevValue();
-<a class="jxr_linenumber" name="2393" href="#2393">2393</a>       }
-<a class="jxr_linenumber" name="2394" href="#2394">2394</a>     });
-<a class="jxr_linenumber" name="2395" href="#2395">2395</a>   }
-<a class="jxr_linenumber" name="2396" href="#2396">2396</a> 
-<a class="jxr_linenumber" name="2397" href="#2397">2397</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="2398" href="#2398">2398</a> <em class="jxr_javadoccomment">   * Ask for a scan of the catalog table</em>
-<a class="jxr_linenumber" name="2399" href="#2399">2399</a> <em class="jxr_javadoccomment">   * @return the number of entries cleaned</em>
-<a class="jxr_linenumber" name="2400" href="#2400">2400</a> <em class="jxr_javadoccomment">   * @throws MasterNotRunningException</em>
-<a class="jxr_linenumber" name="2401" href="#2401">2401</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="2402" href="#2402">2402</a>   @Override
-<a class="jxr_linenumber" name="2403" href="#2403">2403</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">int</strong> runCatalogScan() <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="2404" href="#2404">2404</a>     <strong class="jxr_keyword">return</strong> executeCallable(<strong class="jxr_keyword">new</strong> MasterCallable&lt;Integer&gt;(getConnection()) {
-<a class="jxr_linenumber" name="2405" href="#2405">2405</a>       @Override
-<a class="jxr_linenumber" name="2406" href="#2406">2406</a>       <strong class="jxr_keyword">public</strong> Integer call(<strong class="jxr_keyword">int</strong> callTimeout) <strong class="jxr_keyword">throws</strong> ServiceException {
-<a class="jxr_linenumber" name="2407" href="#2407">2407</a>         <strong class="jxr_keyword">return</strong> master.runCatalogScan(<strong class="jxr_keyword">null</strong>,
-<a class="jxr_linenumber" name="2408" href="#2408">2408</a>           RequestConverter.buildCatalogScanRequest()).getScanResult();
-<a class="jxr_linenumber" name="2409" href="#2409">2409</a>       }
-<a class="jxr_linenumber" name="2410" href="#2410">2410</a>     });
-<a class="jxr_linenumber" name="2411" href="#2411">2411</a>   }
-<a class="jxr_linenumber" name="2412" href="#2412">2412</a> 
-<a class="jxr_linenumber" name="2413" href="#2413">2413</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="2414" href="#2414">2414</a> <em class="jxr_javadoccomment">   * Query on the catalog janitor state (Enabled/Disabled?)</em>
-<a class="jxr_linenumber" name="2415" href="#2415">2415</a> <em class="jxr_javadoccomment">   * @throws org.apache.hadoop.hbase.MasterNotRunningException</em>
-<a class="jxr_linenumber" name="2416" href="#2416">2416</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="2417" href="#2417">2417</a>   @Override
-<a class="jxr_linenumber" name="2418" href="#2418">2418</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> isCatalogJanitorEnabled() <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="2419" href="#2419">2419</a>     <strong class="jxr_keyword">return</strong> executeCallable(<strong class="jxr_keyword">new</strong> MasterCallable&lt;Boolean&gt;(getConnection()) {
-<a class="jxr_linenumber" name="2420" href="#2420">2420</a>       @Override
-<a class="jxr_linenumber" name="2421" href="#2421">2421</a>       <strong class="jxr_keyword">public</strong> Boolean call(<strong class="jxr_keyword">int</strong> callTimeout) <strong class="jxr_keyword">throws</strong> ServiceException {
-<a class="jxr_linenumber" name="2422" href="#2422">2422</a>         <strong class="jxr_keyword">return</strong> master.isCatalogJanitorEnabled(<strong class="jxr_keyword">null</strong>,
-<a class="jxr_linenumber" name="2423" href="#2423">2423</a>           RequestConverter.buildIsCatalogJanitorEnabledRequest()).getValue();
-<a class="jxr_linenumber" name="2424" href="#2424">2424</a>       }
-<a class="jxr_linenumber" name="2425" href="#2425">2425</a>     });
-<a class="jxr_linenumber" name="2426" href="#2426">2426</a>   }
-<a class="jxr_linenumber" name="2427" href="#2427">2427</a> 
-<a class="jxr_linenumber" name="2428" href="#2428">2428</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="2429" href="#2429">2429</a> <em class="jxr_javadoccomment">   * Merge two regions. Asynchronous operation.</em>
-<a class="jxr_linenumber" name="2430" href="#2430">2430</a> <em class="jxr_javadoccomment">   * @param encodedNameOfRegionA encoded name of region a</em>
-<a class="jxr_linenumber" name="2431" href="#2431">2431</a> <em class="jxr_javadoccomment">   * @param encodedNameOfRegionB encoded name of region b</em>
-<a class="jxr_linenumber" name="2432" href="#2432">2432</a> <em class="jxr_javadoccomment">   * @param forcible true if do a compulsory merge, otherwise we will only merge</em>
-<a class="jxr_linenumber" name="2433" href="#2433">2433</a> <em class="jxr_javadoccomment">   *          two adjacent regions</em>
-<a class="jxr_linenumber" name="2434" href="#2434">2434</a> <em class="jxr_javadoccomment">   * @throws IOException</em>
-<a class="jxr_linenumber" name="2435" href="#2435">2435</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="2436" href="#2436">2436</a>   @Override
-<a class="jxr_linenumber" name="2437" href="#2437">2437</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> mergeRegions(<strong class="jxr_keyword">final</strong> byte[] encodedNameOfRegionA,
-<a class="jxr_linenumber" name="2438" href="#2438">2438</a>       <strong class="jxr_keyword">final</strong> byte[] encodedNameOfRegionB, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> forcible)
-<a class="jxr_linenumber" name="2439" href="#2439">2439</a>       <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="2440" href="#2440">2440</a>     Pair&lt;HRegionInfo, ServerName&gt; pair = getRegion(encodedNameOfRegionA);
-<a class="jxr_linenumber" name="2441" href="#2441">2441</a>     <strong class="jxr_keyword">if</strong> (pair != <strong class="jxr_keyword">null</strong> &amp;&amp; pair.getFirst().getReplicaId() != HRegionInfo.DEFAULT_REPLICA_ID)
-<a class="jxr_linenumber" name="2442" href="#2442">2442</a>       <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IllegalArgumentException(<span class="jxr_string">"Can't invoke merge on non-default regions directly"</span>);
-<a class="jxr_linenumber" name="2443" href="#2443">2443</a>     pair = getRegion(encodedNameOfRegionB);
-<a class="jxr_linenumber" name="2444" href="#2444">2444</a>     <strong class="jxr_keyword">if</strong> (pair != <strong class="jxr_keyword">null</strong> &amp;&amp; pair.getFirst().getReplicaId() != HRegionInfo.DEFAULT_REPLICA_ID)
-<a class="jxr_linenumber" name="2445" href="#2445">2445</a>       <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IllegalArgumentException(<span class="jxr_string">"Can't invoke merge on non-default regions directly"</span>);
-<a class="jxr_linenumber" name="2446" href="#2446">2446</a>     executeCallable(<strong class="jxr_keyword">new</strong> MasterCallable&lt;Void&gt;(getConnection()) {
-<a class="jxr_linenumber" name="2447" href="#2447">2447</a>       @Override
-<a class="jxr_linenumber" name="2448" href="#2448">2448</a>       <strong class="jxr_keyword">public</strong> Void call(<strong class="jxr_keyword">int</strong> callTimeout) <strong class="jxr_keyword">throws</strong> ServiceException {
-<a class="jxr_linenumber" name="2449" href="#2449">2449</a>         <strong class="jxr_keyword">try</strong> {
-<a class="jxr_linenumber" name="2450" href="#2450">2450</a>           <a href="../../../../../org/apache/hadoop/hbase/protobuf/generated/MasterProtos.html">DispatchMergingRegionsRequest</a> request = <a href="../../../../../org/apache/hadoop/hbase/protobuf/RequestConverter.html">RequestConverter</a>
-<a class="jxr_linenumber" name="2451" href="#2451">2451</a>               .buildDispatchMergingRegionsRequest(encodedNameOfRegionA,
-<a class="jxr_linenumber" name="2452" href="#2452">2452</a>                 encodedNameOfRegionB, forcible);
-<a class="jxr_linenumber" name="2453" href="#2453">2453</a>           master.dispatchMergingRegions(<strong class="jxr_keyword">null</strong>, request);
-<a class="jxr_linenumber" name="2454" href="#2454">2454</a>         } <strong class="jxr_keyword">catch</strong> (DeserializationException de) {
-<a class="jxr_linenumber" name="2455" href="#2455">2455</a>           LOG.error(<span class="jxr_string">"Could not parse destination server name: "</span> + de);
-<a class="jxr_linenumber" name="2456" href="#2456">2456</a>         }
-<a class="jxr_linenumber" name="2457" href="#2457">2457</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="2458" href="#2458">2458</a>       }
-<a class="jxr_linenumber" name="2459" href="#2459">2459</a>     });
-<a class="jxr_linenumber" name="2460" href="#2460">2460</a>   }
-<a class="jxr_linenumber" name="2461" href="#2461">2461</a> 
-<a class="jxr_linenumber" name="2462" href="#2462">2462</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="2463" href="#2463">2463</a> <em class="jxr_javadoccomment">   * {@inheritDoc}</em>
-<a class="jxr_linenumber" name="2464" href="#2464">2464</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="2465" href="#2465">2465</a>   @Override
-<a class="jxr_linenumber" name="2466" href="#2466">2466</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> split(<strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/hadoop/hbase/TableName.html">TableName</a> tableName)
-<a class="jxr_linenumber" name="2467" href="#2467">2467</a>     <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="2468" href="#2468">2468</a>     split(tableName, <strong class="jxr_keyword">null</strong>);
-<a class="jxr_linenumber" name="2469" href="#2469">2469</a>   }
-<a class="jxr_linenumber" name="2470" href="#2470">2470</a> 
-<a class="jxr_linenumber" name="2471" href="#2471">2471</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="2472" href="#2472">2472</a> <em class="jxr_javadoccomment">   * {@inheritDoc}</em>
-<a class="jxr_linenumber" name="2473" href="#2473">2473</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="2474" href="#2474">2474</a>   @Override
-<a class="jxr_linenumber" name="2475" href="#2475">2475</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> splitRegion(<strong class="jxr_keyword">final</strong> byte[] regionName)
-<a class="jxr_linenumber" name="2476" href="#2476">2476</a>     <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="2477" href="#2477">2477</a>     splitRegion(regionName, <strong class="jxr_keyword">null</strong>);
-<a class="jxr_linenumber" name="2478" href="#2478">2478</a>   }
-<a class="jxr_linenumber" name="2479" href="#2479">2479</a> 
-<a class="jxr_linenumber" name="2480" href="#2480">2480</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="2481" href="#2481">2481</a> <em class="jxr_javadoccomment">   * @deprecated Use {@link #split(org.apache.hadoop.hbase.TableName)} or {@link #splitRegion</em>
-<a class="jxr_linenumber" name="2482" href="#2482">2482</a> <em class="jxr_javadoccomment">   * (byte[])} instead.</em>
-<a class="jxr_linenumber" name="2483" href="#2483">2483</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="2484" href="#2484">2484</a>   @Deprecated
-<a class="jxr_linenumber" name="2485" href="#2485">2485</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> split(<strong class="jxr_keyword">final</strong> String tableNameOrRegionName)
-<a class="jxr_linenumber" name="2486" href="#2486">2486</a>   <strong class="jxr_keyword">throws</strong> IOException, InterruptedException {
-<a class="jxr_linenumber" name="2487" href="#2487">2487</a>     split(Bytes.toBytes(tableNameOrRegionName));
-<a class="jxr_linenumber" name="2488" href="#2488">2488</a>   }
-<a class="jxr_linenumber" name="2489" href="#2489">2489</a> 
-<a class="jxr_linenumber" name="2490" href="#2490">2490</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="2491" href="#2491">2491</a> <em class="jxr_javadoccomment">   * @deprecated Use {@link #split(org.apache.hadoop.hbase.TableName)} or {@link #splitRegion</em>
-<a class="jxr_linenumber" name="2492" href="#2492">2492</a> <em class="jxr_javadoccomment">   * (byte[])} instead.</em>
-<a class="jxr_linenumber" name="2493" href="#2493">2493</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="2494" href="#2494">2494</a>   @Deprecated
-<a class="jxr_linenumber" name="2495" href="#2495">2495</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> split(<strong class="jxr_keyword">final</strong> byte[] tableNameOrRegionName)
-<a class="jxr_linenumber" name="2496" href="#2496">2496</a>   <strong class="jxr_keyword">throws</strong> IOException, InterruptedException {
-<a class="jxr_linenumber" name="2497" href="#2497">2497</a>     split(tableNameOrRegionName, <strong class="jxr_keyword">null</strong>);
-<a class="jxr_linenumber" name="2498" href="#2498">2498</a>   }
-<a class="jxr_linenumber" name="2499" href="#2499">2499</a> 
-<a class="jxr_linenumber" name="2500" href="#2500">2500</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="2501" href="#2501">2501</a> <em class="jxr_javadoccomment">   * {@inheritDoc}</em>
-<a class="jxr_linenumber" name="2502" href="#2502">2502</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="2503" href="#2503">2503</a>   @Override
-<a class="jxr_linenumber" name="2504" href="#2504">2504</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> split(<strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/hadoop/hbase/TableName.html">TableName</a> tableName, <strong class="jxr_keyword">final</strong> byte [] splitPoint)
-<a class="jxr_linenumber" name="2505" href="#2505">2505</a>   <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="2506" href="#2506">2506</a>     <a href="../../../../../org/apache/hadoop/hbase/zookeeper/ZooKeeperWatcher.html">ZooKeeperWatcher</a> zookeeper = <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="2507" href="#2507">2507</a>     <strong class="jxr_keyword">try</strong> {
-<a class="jxr_linenumber" name="2508" href="#2508">2508</a>       checkTableExists(tableName);
-<a class="jxr_linenumber" name="2509" href="#2509">2509</a>       zookeeper = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/hadoop/hbase/zookeeper/ZooKeeperWatcher.html">ZooKeeperWatcher</a>(conf, ZK_IDENTIFIER_PREFIX + connection.toString(),
-<a class="jxr_linenumber" name="2510" href="#2510">2510</a>         <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/hadoop/hbase/client/HBaseAdmin.html">ThrowableAbortable</a>());
-<a class="jxr_linenumber" name="2511" href="#2511">2511</a>       List&lt;Pair&lt;HRegionInfo, ServerName&gt;&gt; pairs;
-<a class="jxr_linenumber" name="2512" href="#2512">2512</a>       <strong class="jxr_keyword">if</strong> (TableName.META_TABLE_NAME.equals(tableName)) {
-<a class="jxr_linenumber" name="2513" href="#2513">2513</a>         pairs = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/hadoop/hbase/zookeeper/MetaTableLocator.html">MetaTableLocator</a>().getMetaRegionsAndLocations(zookeeper);
-<a class="jxr_linenumber" name="2514" href="#2514">2514</a>       } <strong class="jxr_keyword">else</strong> {
-<a class="jxr_linenumber" name="2515" href="#2515">2515</a>         pairs = MetaTableAccessor.getTableRegionsAndLocations(connection, tableName);
-<a class="jxr_linenumber" name="2516" href="#2516">2516</a>       }
-<a class="jxr_linenumber" name="2517" href="#2517">2517</a>       <strong class="jxr_keyword">for</strong> (Pair&lt;HRegionInfo, ServerName&gt; pair: pairs) {
-<a class="jxr_linenumber" name="2518" href="#2518">2518</a>         <em class="jxr_comment">// May not be a server for a particular row</em>
-<a class="jxr_linenumber" name="2519" href="#2519">2519</a>         <strong class="jxr_keyword">if</strong> (pair.getSecond() == <strong class="jxr_keyword">null</strong>) <strong class="jxr_keyword">continue</strong>;
-<a class="jxr_linenumber" name="2520" href="#2520">2520</a>         <a href="../../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> r = pair.getFirst();
-<a class="jxr_linenumber" name="2521" href="#2521">2521</a>         <em class="jxr_comment">// check for parents</em>
-<a class="jxr_linenumber" name="2522" href="#2522">2522</a>         <strong class="jxr_keyword">if</strong> (r.isSplitParent()) <strong class="jxr_keyword">continue</strong>;
-<a class="jxr_linenumber" name="2523" href="#2523">2523</a>         <em class="jxr_comment">// if a split point given, only split that particular region</em>
-<a class="jxr_linenumber" name="2524" href="#2524">2524</a>         <strong class="jxr_keyword">if</strong> (r.getReplicaId() != HRegionInfo.DEFAULT_REPLICA_ID ||
-<a class="jxr_linenumber" name="2525" href="#2525">2525</a>            (splitPoint != <strong class="jxr_keyword">null</strong> &amp;&amp; !r.containsRow(splitPoint))) <strong class="jxr_keyword">continue</strong>;
-<a class="jxr_linenumber" name="2526" href="#2526">2526</a>         <em class="jxr_comment">// call out to region server to do split now</em>
-<a class="jxr_linenumber" name="2527" href="#2527">2527</a>         split(pair.getSecond(), pair.getFirst(), splitPoint);
-<a class="jxr_linenumber" name="2528" href="#2528">2528</a>       }
-<a class="jxr_linenumber" name="2529" href="#2529">2529</a>     } <strong class="jxr_keyword">finally</strong> {
-<a class="jxr_linenumber" name="2530" href="#2530">2530</a>       <strong class="jxr_keyword">if</strong> (zookeeper != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="2531" href="#2531">2531</a>         zookeeper.close();
-<a class="jxr_linenumber" name="2532" href="#2532">2532</a>       }
-<a class="jxr_linenumber" name="2533" href="#2533">2533</a>     }
-<a class="jxr_linenumber" name="2534" href="#2534">2534</a>   }
-<a class="jxr_linenumber" name="2535" href="#2535">2535</a> 
-<a class="jxr_linenumber" name="2536" href="#2536">2536</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="2537" href="#2537">2537</a> <em class="jxr_javadoccomment">   * {@inheritDoc}</em>
-<a class="jxr_linenumber" name="2538" href="#2538">2538</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="2539" href="#2539">2539</a>   @Override
-<a class="jxr_linenumber" name="2540" href="#2540">2540</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> splitRegion(<strong class="jxr_keyword">final</strong> byte[] regionName, <strong class="jxr_keyword">final</strong> byte [] splitPoint)
-<a class="jxr_linenumber" name="2541" href="#2541">2541</a>   <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="2542" href="#2542">2542</a>     Pair&lt;HRegionInfo, ServerName&gt; regionServerPair = getRegion(regionName);
-<a class="jxr_linenumber" name="2543" href="#2543">2543</a>     <strong class="jxr_keyword">if</strong> (regionServerPair == <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="2544" href="#2544">2544</a>       <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IllegalArgumentException(<span class="jxr_string">"Invalid region: "</span> + Bytes.toStringBinary(regionName));
-<a class="jxr_linenumber" name="2545" href="#2545">2545</a>     }
-<a class="jxr_linenumber" name="2546" href="#2546">2546</a>     <strong class="jxr_keyword">if</strong> (regionServerPair.getFirst() != <strong class="jxr_keyword">null</strong> &amp;&amp;
-<a class="jxr_linenumber" name="2547" href="#2547">2547</a>         regionServerPair.getFirst().getReplicaId() != HRegionInfo.DEFAULT_REPLICA_ID) {
-<a class="jxr_linenumber" name="2548" href="#2548">2548</a>       <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IllegalArgumentException(<span class="jxr_string">"Can't split replicas directly. "</span>
-<a class="jxr_linenumber" name="2549" href="#2549">2549</a>           + <span class="jxr_string">"Replicas are auto-split when their primary is split."</span>);
-<a class="jxr_linenumber" name="2550" href="#2550">2550</a>     }
-<a class="jxr_linenumber" name="2551" href="#2551">2551</a>     <strong class="jxr_keyword">if</strong> (regionServerPair.getSecond() == <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="2552" href="#2552">2552</a>       <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/hadoop/hbase/client/NoServerForRegionException.html">NoServerForRegionException</a>(Bytes.toStringBinary(regionName));
-<a class="jxr_linenumber" name="2553" href="#2553">2553</a>     }
-<a class="jxr_linenumber" name="2554" href="#2554">2554</a>     split(regionServerPair.getSecond(), regionServerPair.getFirst(), splitPoint);
-<a class="jxr_linenumber" name="2555" href="#2555">2555</a>   }
-<a class="jxr_linenumber" name="2556" href="#2556">2556</a> 
-<a class="jxr_linenumber" name="2557" href="#2557">2557</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="2558" href="#2558">2558</a> <em class="jxr_javadoccomment">   * @deprecated Use {@link #split(org.apache.hadoop.hbase.TableName,</em>
-<a class="jxr_linenumber" name="2559" href="#2559">2559</a> <em class="jxr_javadoccomment">   * byte[])} or {@link #splitRegion(byte[], byte[])} instead.</em>
-<a class="jxr_linenumber" name="2560" href="#2560">2560</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="2561" href="#2561">2561</a>   @Deprecated
-<a class="jxr_linenumber" name="2562" href="#2562">2562</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> split(<strong class="jxr_keyword">final</strong> String tableNameOrRegionName,
-<a class="jxr_linenumber" name="2563" href="#2563">2563</a>     <strong class="jxr_keyword">final</strong> String splitPoint) <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="2564" href="#2564">2564</a>     split(Bytes.toBytes(tableNameOrRegionName), Bytes.toBytes(splitPoint));
-<a class="jxr_linenumber" name="2565" href="#2565">2565</a>   }
-<a class="jxr_linenumber" name="2566" href="#2566">2566</a> 
-<a class="jxr_linenumber" name="2567" href="#2567">2567</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="2568" href="#2568">2568</a> <em class="jxr_javadoccomment">   * @deprecated Use {@link #split(org.apache.hadoop.hbase.TableName,</em>
-<a class="jxr_linenumber" name="2569" href="#2569">2569</a> <em class="jxr_javadoccomment">   * byte[])} or {@link #splitRegion(byte[], byte[])} instead.</em>
-<a class="jxr_linenumber" name="2570" href="#2570">2570</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="2571" href="#2571">2571</a>   @Deprecated
-<a class="jxr_linenumber" name="2572" href="#2572">2572</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> split(<strong class="jxr_keyword">final</strong> byte[] tableNameOrRegionName,
-<a class="jxr_linenumber" name="2573" href="#2573">2573</a>       <strong class="jxr_keyword">final</strong> byte [] splitPoint) <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="2574" href="#2574">2574</a>     <strong class="jxr_keyword">try</strong> {
-<a class="jxr_linenumber" name="2575" href="#2575">2575</a>       splitRegion(tableNameOrRegionName, splitPoint);
-<a class="jxr_linenumber" name="2576" href="#2576">2576</a>     } <strong class="jxr_keyword">catch</strong> (IllegalArgumentException e) {
-<a class="jxr_linenumber" name="2577" href="#2577">2577</a>       <em class="jxr_comment">// Bad region, try table</em>
-<a class="jxr_linenumber" name="2578" href="#2578">2578</a>       split(TableName.valueOf(tableNameOrRegionName), splitPoint);
-<a class="jxr_linenumber" name="2579" href="#2579">2579</a>     }
-<a class="jxr_linenumber" name="2580" href="#2580">2580</a>   }
-<a class="jxr_linenumber" name="2581" href="#2581">2581</a> 
-<a class="jxr_linenumber" name="2582" href="#2582">2582</a>   @VisibleForTesting
-<a class="jxr_linenumber" name="2583" href="#2583">2583</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> split(<strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/hadoop/hbase/ServerName.html">ServerName</a> sn, <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> hri,
-<a class="jxr_linenumber" name="2584" href="#2584">2584</a>       byte[] splitPoint) <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="2585" href="#2585">2585</a>     <strong class="jxr_keyword">if</strong> (hri.getStartKey() != <strong class="jxr_keyword">null</strong> &amp;&amp; splitPoint != <strong class="jxr_keyword">null</strong> &amp;&amp;
-<a class="jxr_linenumber" name="2586" href="#2586">2586</a>          Bytes.compareTo(hri.getStartKey(), splitPoint) == 0) {
-<a class="jxr_linenumber" name="2587" href="#2587">2587</a>        <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IOException(<span class="jxr_string">"should not give a splitkey which equals to startkey!"</span>);
-<a class="jxr_linenumber" name="2588" href="#2588">2588</a>     }
-<a class="jxr_linenumber" name="2589" href="#2589">2589</a>     <em class="jxr_comment">// TODO: This is not executed via retries</em>
-<a class="jxr_linenumber" name="2590" href="#2590">2590</a>     AdminService.BlockingInterface admin = <strong class="jxr_keyword">this</strong>.connection.getAdmin(sn);
-<a class="jxr_linenumber" name="2591" href="#2591">2591</a>     ProtobufUtil.split(admin, hri, splitPoint);
-<a class="jxr_linenumber" name="2592" href="#2592">2592</a>   }
-<a class="jxr_linenumber" name="2593" href="#2593">2593</a> 
-<a class="jxr_linenumber" name="2594" href="#2594">2594</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="2595" href="#2595">2595</a> <em class="jxr_javadoccomment">   * Modify an existing table, more IRB friendly version. Asynchronous operation.</em>
-<a class="jxr_linenumber" name="2596" href="#2596">2596</a> <em class="jxr_javadoccomment">   * This means that it may be a while before your schema change is updated across all of the</em>
-<a class="jxr_linenumber" name="2597" href="#2597">2597</a> <em class="jxr_javadoccomment">   * table. You can use Future.get(long, TimeUnit) to wait on the operation to complete.</em>
-<a class="jxr_linenumber" name="2598" href="#2598">2598</a> <em class="jxr_javadoccomment">   * It may throw ExecutionException if there was an error while executing the operation</em>
-<a class="jxr_linenumber" name="2599" href="#2599">2599</a> <em class="jxr_javadoccomment">   * or TimeoutException in case the wait timeout was not long enough to allow the</em>
-<a class="jxr_linenumber" name="2600" href="#2600">2600</a> <em class="jxr_javadoccomment">   * operation to complete.</em>
-<a class="jxr_linenumber" name="2601" href="#2601">2601</a> <em class="jxr_javadoccomment">   *</em>
-<a class="jxr_linenumber" name="2602" href="#2602">2602</a> <em class="jxr_javadoccomment">   * @param tableName name of table.</em>
-<a class="jxr_linenumber" name="2603" href="#2603">2603</a> <em class="jxr_javadoccomment">   * @param htd modified description of the table</em>
-<a class="jxr_linenumber" name="2604" href="#2604">2604</a> <em class="jxr_javadoccomment">   * @throws IOException if a remote or network exception occurs</em>
-<a class="jxr_linenumber" name="2605" href="#2605">2605</a> <em class="jxr_javadoccomment">   * @return the result of the async modify. You can use Future.get(long, TimeUnit) to wait on the</em>
-<a class="jxr_linenumber" name="2606" href="#2606">2606</a> <em class="jxr_javadoccomment">   *     operation to complete.</em>
-<a class="jxr_linenumber" name="2607" href="#2607">2607</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="2608" href="#2608">2608</a>   @Override
-<a class="jxr_linenumber" name="2609" href="#2609">2609</a>   <strong class="jxr_keyword">public</strong> Future&lt;Void&gt; modifyTable(<strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/hadoop/hbase/TableName.html">TableName</a> tableName, <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/hadoop/hbase/HTableDescriptor.html">HTableDescriptor</a> htd)
-<a class="jxr_linenumber" name="2610" href="#2610">2610</a>   <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="2611" href="#2611">2611</a>     <strong class="jxr_keyword">if</strong> (!tableName.equals(htd.getTableName())) {
-<a class="jxr_linenumber" name="2612" href="#2612">2612</a>       <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IllegalArgumentException(<span class="jxr_string">"the specified table name '"</span> + tableName +
-<a class="jxr_linenumber" name="2613" href="#2613">2613</a>         <span class="jxr_string">"' doesn't match with the HTD one: "</span> + htd.getTableName());
-<a class="jxr_linenumber" name="2614" href="#2614">2614</a>     }
-<a class="jxr_linenumber" name="2615" href="#2615">2615</a> 
-<a class="jxr_linenumber" name="2616" href="#2616">2616</a>     <a href="../../../../../org/apache/hadoop/hbase/protobuf/generated/MasterProtos.html">ModifyTableResponse</a> response = executeCallable(
-<a class="jxr_linenumber" name="2617" href="#2617">2617</a>         <strong class="jxr_keyword">new</strong> MasterCallable&lt;ModifyTableResponse&gt;(getConnection()) {
-<a class="jxr_linenumber" name="2618" href="#2618">2618</a>       @Override
-<a class="jxr_linenumber" name="2619" href="#2619">2619</a>       <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/hadoop/hbase/protobuf/generated/MasterProtos.html">ModifyTableResponse</a> call(<strong class="jxr_keyword">int</strong> callTimeout) <strong class="jxr_keyword">throws</strong> ServiceException {
-<a class="jxr_linenumber" name="2620" href="#2620">2620</a>         <a href="../../../../../org/apache/hadoop/hbase/protobuf/generated/MasterProtos.html">ModifyTableRequest</a> request = RequestConverter.buildModifyTableRequest(
-<a class="jxr_linenumber" name="2621" href="#2621">2621</a>           tableName, htd, ng.getNonceGroup(), ng.newNonce());
-<a class="jxr_linenumber" name="2622" href="#2622">2622</a>         <strong class="jxr_keyword">return</strong> master.modifyTable(<strong class="jxr_keyword">null</strong>, request);
-<a class="jxr_linenumber" name="2623" href="#2623">2623</a>       }
-<a class="jxr_linenumber" name="2624" href="#2624">2624</a>     });
-<a class="jxr_linenumber" name="2625" href="#2625">2625</a> 
-<a class="jxr_linenumber" name="2626" href="#2626">2626</a>     <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/hadoop/hbase/client/HBaseAdmin.html">ModifyTableFuture</a>(<strong class="jxr_keyword">this</strong>, tableName, response);
-<a class="jxr_linenumber" name="2627" href="#2627">2627</a>   }
-<a class="jxr_linenumber" name="2628" href="#2628">2628</a> 
-<a class="jxr_linenumber" name="2629" href="#2629">2629</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/hadoop/hbase/client/HBaseAdmin.html">ModifyTableFuture</a> <strong class="jxr_keyword">extends</strong> TableFuture&lt;Void&gt; {
-<a class="jxr_linenumber" name="2630" href="#2630">2630</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/hadoop/hbase/client/HBaseAdmin.html">ModifyTableFuture</a>(<strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/hadoop/hbase/client/HBaseAdmin.html">HBaseAdmin</a> admin, <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/hadoop/hbase/TableName.html">TableName</a> tableName,
-<a class="jxr_linenumber" name="2631" href="#2631">2631</a>         <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/hadoop/hbase/protobuf/generated/MasterProtos.html">ModifyTableResponse</a> response) {
-<a class="jxr_linenumber" name="2632" href="#2632">2632</a>       <strong class="jxr_keyword">super</strong>(admin, tableName,
-<a class="jxr_linenumber" name="2633" href="#2633">2633</a>           (response != <strong class="jxr_keyword">null</strong> &amp;&amp; response.hasProcId()) ? response.getProcId() : <strong class="jxr_keyword">null</strong>);
-<a class="jxr_linenumber" name="2634" href="#2634">2634</a>     }
-<a class="jxr_linenumber" name="2635" href="#2635">2635</a> 
-<a class="jxr_linenumber" name="2636" href="#2636">2636</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/hadoop/hbase/client/HBaseAdmin.html">ModifyTableFuture</a>(<strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/hadoop/hbase/client/HBaseAdmin.html">HBaseAdmin</a> admin, <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/hadoop/hbase/TableName.html">TableName</a> tableName, <strong class="jxr_keyword">final</strong> Long procId) {
-<a class="jxr_linenumber" name="2637" href="#2637">2637</a>       <strong class="jxr_keyword">super</strong>(admin, tableName, procId);
-<a class="jxr_linenumber" name="2638" href="#2638">2638</a>     }
-<a class="jxr_linenumber" name="2639" href="#2639">2639</a> 
-<a class="jxr_linenumber" name="2640" href="#2640">2640</a>     @Override
-<a class="jxr_linenumber" name="2641" href="#2641">2641</a>     <strong class="jxr_keyword">public</strong> String getOperationType() {
-<a class="jxr_linenumber" name="2642" href="#2642">2642</a>       <strong class="jxr_keyword">return</strong> <span class="jxr_string">"MODIFY"</span>;
-<a class="jxr_linenumber" name="2643" href="#2643">2643</a>     }
-<a class="jxr_linenumber" name="2644" href="#2644">2644</a> 
-<a class="jxr_linenumber" name="2645" href="#2645">2645</a>     @Override
-<a class="jxr_linenumber" name="2646" href="#2646">2646</a>     <strong class="jxr_keyword">protected</strong> Void postOperationResult(<strong class="jxr_keyword">final</strong> Void result, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">long</strong> deadlineTs)
-<a class="jxr_linenumber" name="2647" href="#2647">2647</a>         <strong class="jxr_keyword">throws</strong> IOException, TimeoutException {
-<a class="jxr_linenumber" name="2648" href="#2648">2648</a>       <em class="jxr_comment">// The modify operation on the table is asynchronous on the server side irrespective</em>
-<a class="jxr_linenumber" name="2649" href="#2649">2649</a>       <em class="jxr_comment">// of whether Procedure V2 is supported or not. So, we wait in the client till</em>
-<a class="jxr_linenumber" name="2650" href="#2650">2650</a>       <em class="jxr_comment">// all regions get updated.</em>
-<a class="jxr_linenumber" name="2651" href="#2651">2651</a>       waitForSchemaUpdate(deadlineTs);
-<a class="jxr_linenumber" name="2652" href="#2652">2652</a>       <strong class="jxr_keyword">return</strong> result;
-<a class="jxr_linenumber" name="2653" href="#2653">2653</a>     }
-<a class="jxr_linenumber" name="2654" href="#2654">2654</a>   }
-<a class="jxr_linenumber" name="2655" href="#2655">2655</a> 
-<a class="jxr_linenumber" name="2656" href="#2656">2656</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> modifyTable(<strong class="jxr_keyword">final</strong> byte[] tableName, <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/hadoop/hbase/HTableDescriptor.html">HTableDescriptor</a> htd)
-<a class="jxr_linenumber" name="2657" href="#2657">2657</a>   <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="2658" href="#2658">2658</a>     modifyTable(TableName.valueOf(tableName), htd);
-<a class="jxr_linenumber" name="2659" href="#2659">2659</a>   }
-<a class="jxr_linenumber" name="2660" href="#2660">2660</a> 
-<a class="jxr_linenumber" name="2661" href="#2661">2661</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> modifyTable(<strong class="jxr_keyword">final</strong> String tableName, <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/hadoop/hbase/HTableDescriptor.html">HTableDescriptor</a> htd)
-<a class="jxr_linenumber" name="2662" href="#2662">2662</a>   <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="2663" href="#2663">2663</a>     modifyTable(TableName.valueOf(tableName), htd);
-<a class="jxr_linenumber" name="2664" href="#2664">2664</a>   }
-<a class="jxr_linenumber" name="2665" href="#2665">2665</a> 
-<a class="jxr_linenumber" name="2666" href="#2666">2666</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="2667" href="#2667">2667</a> <em class="jxr_javadoccomment">   * @param regionName Name of a region.</em>
-<a class="jxr_linenumber" name="2668" href="#2668">2668</a> <em class="jxr_javadoccomment">   * @return a pair of HRegionInfo and ServerName if &lt;code&gt;regionName&lt;/code&gt; is</em>
-<a class="jxr_linenumber" name="2669" href="#2669">2669</a> <em class="jxr_javadoccomment">   *  a verified region name (we call {@link</em>
-<a class="jxr_linenumber" name="2670" href="#2670">2670</a> <em class="jxr_javadoccomment">   *  MetaTableAccessor#getRegion(HConnection, byte[])}</em>
-<a class="jxr_linenumber" name="2671" href="#2671">2671</a> <em class="jxr_javadoccomment">   *  else null.</em>
-<a class="jxr_linenumber" name="2672" href="#2672">2672</a> <em class="jxr_javadoccomment">   * Throw IllegalArgumentException if &lt;code&gt;regionName&lt;/code&gt; is null.</em>
-<a class="jxr_linenumber" name="2673" href="#2673">2673</a> <em class="jxr_javadoccomment">   * @throws IOException</em>
-<a class="jxr_linenumber" name="2674" href="#2674">2674</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="2675" href="#2675">2675</a>   Pair&lt;HRegionInfo, ServerName&gt; getRegion(<strong class="jxr_keyword">final</strong> byte[] regionName) <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="2676" href="#2676">2676</a>     <strong class="jxr_keyword">if</strong> (regionName == <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="2677" href="#2677">2677</a>       <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IllegalArgumentException(<span class="jxr_string">"Pass a table name or region name"</span>);
-<a class="jxr_linenumber" name="2678" href="#2678">2678</a>     }
-<a class="jxr_linenumber" name="2679" href="#2679">2679</a>     Pair&lt;HRegionInfo, ServerName&gt; pair =
-<a class="jxr_linenumber" name="2680" href="#2680">2680</a>       MetaTableAccessor.getRegion(connection, regionName);
-<a class="jxr_linenumber" name="2681" href="#2681">2681</a>     <strong class="jxr_keyword">if</strong> (pair == <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="2682" href="#2682">2682</a>       <strong class="jxr_keyword">final</strong> AtomicReference&lt;Pair&lt;HRegionInfo, ServerName&gt;&gt; result =
-<a class="jxr_linenumber" name="2683" href="#2683">2683</a>         <strong class="jxr_keyword">new</strong> AtomicReference&lt;Pair&lt;HRegionInfo, ServerName&gt;&gt;(<strong class="jxr_keyword">null</strong>);
-<a class="jxr_linenumber" name="2684" href="#2684">2684</a>       <strong class="jxr_keyword">final</strong> String encodedName = Bytes.toString(regionName);
-<a class="jxr_linenumber" name="2685" href="#2685">2685</a>       MetaTableAccessor.Visitor visitor = <strong class="jxr_keyword">new</strong> MetaTableAccessor.Visitor() {
-<a class="jxr_linenumber" name="2686" href="#2686">2686</a>         @Override
-<a class="jxr_linenumber" name="2687" href="#2687">2687</a>         <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> visit(<a href="../../../../../org/apache/hadoop/hbase/protobuf/generated/ClientProtos.html">Result</a> data) <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="2688" href="#2688">2688</a>           <a href="../../../../../org/apache/hadoop/hbase/HRegionInfo.html">HRegionInfo</a> info = HRegionInfo.getHRegionInfo(data);
-<a class="jxr_linenumber" name="2689" href="#2689">2689</a>           <strong class="jxr_keyword">if</strong> (info == <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="2690" href="#2690">2690</a>             LOG.warn(<span class="jxr_string">"No serialized HRegionInfo in "</span> + data);
-<a class="jxr_linenumber" name="2691" href="#2691">2691</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
-<a class="jxr_linenumber" name="2692" href="#2692">2692</a>           }
-<a class="jxr_linenumber" name="2693" href="#2693">2693</a>           <a href="../../../../../org/apache/hadoop/hbase/RegionLocations.html">RegionLocations</a> rl = MetaTableAccessor.getRegionLocations(data);
-<a class="jxr_linenumber" name="2694" href="#2694">2694</a>           <strong class="jxr_keyword">boolean</strong> matched = false;
-<a class="jxr_linenumber" name="2695" href="#2695">2695</a>           <a href="../../../../../org/apache/hadoop/hbase/ServerName.html">ServerName</a> sn = <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="2696" href="#2696">2696</a>           <strong class="jxr_keyword">if</strong> (rl != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="2697" href="#2697">2697</a>             <strong class="jxr_keyword">for</strong> (HRegionLocation h : rl.getRegionLocations()) {
-<a class="jxr_linenumber" name="2698" href="#2698">2698</a>               <strong class="jxr_keyword">if</strong> (h != <strong class="jxr_keyword">null</strong> &amp;&amp; encodedName.equals(h.getRegionInfo().getEncodedName())) {
-<a class="jxr_linenumber" name="2699" href="#2699">2699</a>                 sn = h.getServerName();
-<a class="jxr_linenumber" name="2700" href="#2700">2700</a>                 info = h.getRegionInfo();
-<a class="jxr_linenumber" name="2701" href="#2701">2701</a>                 matched = <strong class="jxr_keyword">true</strong>;
-<a class="jxr_linenumber" name="2702" href="#2702">2702</a>               }
-<a class="jxr_linenumber" name="2703" href="#2703">2703</a>             }
-<a class="jxr_linenumber" name="2704" href="#2704">2704</a>           }
-<a class="jxr_linenumber" name="2705" href="#2705">2705</a>           <strong class="jxr_keyword">if</strong> (!matched) <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
-<a class="jxr_linenumber" name="2706" href="#2706">2706</a>           result.set(<strong class="jxr_keyword">new</strong> Pair&lt;HRegionInfo, ServerName&gt;(info, sn));
-<a class="jxr_linenumber" name="2707" href="#2707">2707</a>           <strong class="jxr_keyword">return</strong> false; <em class="jxr_comment">// found the region, stop</em>
-<a class="jxr_linenumber" name="2708" href="#2708">2708</a>         }
-<a class="jxr_linenumber" name="2709" href="#2709">2709</a>       };
-<a class="jxr_linenumber" name="2710" href="#2710">2710</a> 
-<a class="jxr_linenumber" name="2711" href="#2711">2711</a>       MetaTableAccessor.fullScanRegions(connection, visitor);
-<a class="jxr_linenumber" name="2712" href="#2712">2712</a>       pair = result.get();
-<a class="jxr_linenumber" name="2713" href="#2713">2713</a>     }
-<a class="jxr_linenumber" name="2714" href="#2714">2714</a>     <strong class="jxr_keyword">return</strong> pair;
-<a class="jxr_linenumber" name="2715" href="#2715">2715</a>   }
-<a class="jxr_linenumber" name="2716" href="#2716">2716</a> 
-<a class="jxr_linenumber" name="2717" href="#2717">2717</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="2718" href="#2718">2718</a> <em class="jxr_javadoccomment">   * If the input is a region name, it is returned as is. If it's an</em>
-<a class="jxr_linenumber" name="2719" href="#2719">2719</a> <em class="jxr_javadoccomment">   * encoded region name, the corresponding region is found from meta</em>
-<a class="jxr_linenumber" name="2720" href="#2720">2720</a> <em class="jxr_javadoccomment">   * and its region name is returned. If we can't find any region in</em>
-<a class="jxr_linenumber" name="2721" href="#2721">2721</a> <em class="jxr_javadoccomment">   * meta matching the input as either region name or encoded region</em>
-<a class="jxr_linenumber" name="2722" href="#2722">2722</a> <em class="jxr_javadoccomment">   * name, the input is returned as is. We don't throw unknown</em>
-<a class="jxr_linenumber" name="2723" href="#2723">2723</a> <em class="jxr_javadoccomment">   * region exception.</em>
-<a class="jxr_linenumber" name="2724" href="#2724">2724</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="2725" href="#2725">2725</a>   <strong class="jxr_keyword">private</strong> byte[] getRegionName(
-<a class="jxr_linenumber" name="2726" href="#2726">2726</a>       <strong class="jxr_keyword">final</strong> byte[] regionNameOrEncodedRegionName) <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="2727" href="#2727">2727</a>     <strong class="jxr_keyword">if</strong> (Bytes.equals(regionNameOrEncodedRegionName,
-<a class="jxr_linenumber" name="2728" href="#2728">2728</a>         HRegionInfo.FIRST_META_REGIONINFO.getRegionName())
-<a class="jxr_linenumber" name="2729" href="#2729">2729</a>           || Bytes.equals(regionNameOrEncodedRegionName,
-<a class="jxr_linenumber" name="2730" href="#2730">2730</a>             HRegionInfo.FIRST_META_REGIONINFO.getEncodedNameAsBytes())) {

[... 4961 lines stripped ...]



Mime
View raw message