You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by gi...@apache.org on 2019/04/01 14:55:35 UTC

[hbase-site] branch asf-site updated: Published site at a3faad76e1780abc1d1bd53222f23b0024ca559b.

This is an automated email from the ASF dual-hosted git repository.

git-site-role pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/hbase-site.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 6ad5030  Published site at a3faad76e1780abc1d1bd53222f23b0024ca559b.
6ad5030 is described below

commit 6ad5030aed87f5fce7785ed0fe7a5d3892980a52
Author: jenkins <bu...@apache.org>
AuthorDate: Mon Apr 1 14:55:12 2019 +0000

    Published site at a3faad76e1780abc1d1bd53222f23b0024ca559b.
---
 acid-semantics.html                                |    2 +-
 apache_hbase_reference_guide.pdf                   |    4 +-
 book.html                                          |    2 +-
 bulk-loads.html                                    |    2 +-
 checkstyle-aggregate.html                          |   22 +-
 checkstyle.rss                                     |   16 +-
 coc.html                                           |    2 +-
 dependencies.html                                  |    2 +-
 dependency-convergence.html                        |    2 +-
 dependency-info.html                               |    2 +-
 dependency-management.html                         |    2 +-
 devapidocs/constant-values.html                    |    4 +-
 devapidocs/index-all.html                          |   12 +-
 .../hadoop/hbase/client/AsyncConnectionImpl.html   |  151 ++-
 ...yncMasterRequestRpcRetryingCaller.Callable.html |    4 +-
 .../AsyncMasterRequestRpcRetryingCaller.html       |   25 +-
 .../hbase/client/AsyncMetaRegionLocator.html       |   39 +-
 .../ConnectionUtils.MasterlessConnection.html      |    6 +-
 ...tionUtils.ShortCircuitingClusterConnection.html |   16 +-
 .../hadoop/hbase/client/ConnectionUtils.html       |  159 +--
 .../hbase/ipc/class-use/HBaseRpcController.html    |    4 -
 .../src-html/org/apache/hadoop/hbase/Version.html  |    4 +-
 .../hadoop/hbase/client/AsyncConnectionImpl.html   |  563 ++++-----
 ...yncMasterRequestRpcRetryingCaller.Callable.html |  102 +-
 .../AsyncMasterRequestRpcRetryingCaller.html       |  102 +-
 .../hbase/client/AsyncMetaRegionLocator.html       |  222 ++--
 .../ConnectionUtils.MasterlessConnection.html      | 1199 ++++++++++----------
 ...tionUtils.ShortCircuitingClusterConnection.html | 1199 ++++++++++----------
 .../hadoop/hbase/client/ConnectionUtils.html       | 1199 ++++++++++----------
 downloads.html                                     |    2 +-
 export_control.html                                |    2 +-
 index.html                                         |    2 +-
 issue-management.html                              |    2 +-
 licenses.html                                      |    2 +-
 mailing-lists.html                                 |    2 +-
 metrics.html                                       |    2 +-
 old_news.html                                      |    2 +-
 plugin-management.html                             |    2 +-
 plugins.html                                       |    2 +-
 poweredbyhbase.html                                |    2 +-
 project-info.html                                  |    2 +-
 project-reports.html                               |    2 +-
 pseudo-distributed.html                            |    2 +-
 replication.html                                   |    2 +-
 resources.html                                     |    2 +-
 scm.html                                           |    2 +-
 sponsors.html                                      |    2 +-
 summary.html                                       |    2 +-
 supportingprojects.html                            |    2 +-
 team.html                                          |    2 +-
 testdevapidocs/allclasses-frame.html               |    1 +
 testdevapidocs/allclasses-noframe.html             |    1 +
 testdevapidocs/index-all.html                      |   10 +
 .../hadoop/hbase/class-use/HBaseClassTestRule.html |  214 ++--
 .../hadoop/hbase/client/TestAsyncAdminBase.html    |   14 +-
 ...syncAdminBuilder.TestRpcTimeoutCoprocessor.html |    4 +-
 ...iority.html => TestAsyncAdminMasterSwitch.html} |  235 +---
 .../hbase/client/TestAsyncAdminRpcPriority.html    |    4 +-
 .../hbase/client/TestAsyncRegionAdminApi.html      |   26 +-
 .../hbase/client/class-use/TestAsyncAdminBase.html |   36 +-
 .../class-use/TestAsyncAdminMasterSwitch.html      |  125 ++
 .../apache/hadoop/hbase/client/package-frame.html  |    1 +
 .../hadoop/hbase/client/package-summary.html       |  562 ++++-----
 .../apache/hadoop/hbase/client/package-tree.html   |    1 +
 .../apache/hadoop/hbase/io/hfile/package-tree.html |    2 +-
 .../org/apache/hadoop/hbase/package-tree.html      |   12 +-
 .../hadoop/hbase/procedure/package-tree.html       |    8 +-
 .../hadoop/hbase/procedure2/package-tree.html      |    2 +-
 .../hadoop/hbase/regionserver/package-tree.html    |    4 +-
 .../org/apache/hadoop/hbase/test/package-tree.html |    2 +-
 testdevapidocs/overview-tree.html                  |    1 +
 .../hadoop/hbase/client/TestAsyncAdminBase.html    |   83 +-
 .../hbase/client/TestAsyncAdminMasterSwitch.html   |  132 +++
 .../client/TestAsyncDecommissionAdminApi.html      |  109 +-
 .../hbase/client/TestAsyncRegionAdminApi.html      |  593 +++++-----
 75 files changed, 3766 insertions(+), 3526 deletions(-)

diff --git a/acid-semantics.html b/acid-semantics.html
index 817defe..2e36e7d 100644
--- a/acid-semantics.html
+++ b/acid-semantics.html
@@ -457,7 +457,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2019
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-03-30</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-04-01</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/apache_hbase_reference_guide.pdf b/apache_hbase_reference_guide.pdf
index f0902ff..76c88a6 100644
--- a/apache_hbase_reference_guide.pdf
+++ b/apache_hbase_reference_guide.pdf
@@ -5,8 +5,8 @@
 /Author (Apache HBase Team)
 /Creator (Asciidoctor PDF 1.5.0.alpha.15, based on Prawn 2.2.2)
 /Producer (Apache HBase Team)
-/ModDate (D:20190330142942+00'00')
-/CreationDate (D:20190330145052+00'00')
+/ModDate (D:20190401142940+00'00')
+/CreationDate (D:20190401145120+00'00')
 >>
 endobj
 2 0 obj
diff --git a/book.html b/book.html
index 3a2a8a5..19421bb 100644
--- a/book.html
+++ b/book.html
@@ -41636,7 +41636,7 @@ org/apache/hadoop/hbase/security/access/AccessControlClient.revoke:(Lorg/apache/
 <div id="footer">
 <div id="footer-text">
 Version 3.0.0-SNAPSHOT<br>
-Last updated 2019-03-30 14:29:42 UTC
+Last updated 2019-04-01 14:29:40 UTC
 </div>
 </div>
 </body>
diff --git a/bulk-loads.html b/bulk-loads.html
index 3a6402d..ac64a21 100644
--- a/bulk-loads.html
+++ b/bulk-loads.html
@@ -162,7 +162,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2019
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-03-30</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-04-01</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/checkstyle-aggregate.html b/checkstyle-aggregate.html
index c4354ac..4d60d3e 100644
--- a/checkstyle-aggregate.html
+++ b/checkstyle-aggregate.html
@@ -156,7 +156,7 @@
 <th><img src="images/icon_warning_sml.gif" alt="" />&#160;Warnings</th>
 <th><img src="images/icon_error_sml.gif" alt="" />&#160;Errors</th></tr>
 <tr class="b">
-<td>3899</td>
+<td>3900</td>
 <td>0</td>
 <td>0</td>
 <td>13905</td></tr></table></div>
@@ -9363,12 +9363,12 @@
 <td><a class="externalLink" href="http://checkstyle.sourceforge.net/config_javadoc.html#JavadocTagContinuationIndentation">JavadocTagContinuationIndentation</a>
 <ul>
 <li>offset: <tt>&quot;2&quot;</tt></li></ul></td>
-<td>699</td>
+<td>698</td>
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td></tr>
 <tr class="a">
 <td></td>
 <td><a class="externalLink" href="http://checkstyle.sourceforge.net/config_javadoc.html#NonEmptyAtclauseDescription">NonEmptyAtclauseDescription</a></td>
-<td>3329</td>
+<td>3330</td>
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td></tr>
 <tr class="b">
 <td>misc</td>
@@ -18266,7 +18266,7 @@
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
-<td>JavadocTagContinuationIndentation</td>
+<td>NonEmptyAtclauseDescription</td>
 <td>Javadoc comment at column 0 has parse error. Details: no viable alternative at input '   *' while parsing JAVADOC_TAG</td>
 <td>117</td></tr>
 <tr class="b">
@@ -21691,7 +21691,7 @@
 <td>design</td>
 <td>FinalClass</td>
 <td>Class ShortCircuitingClusterConnection should be declared as final.</td>
-<td>134</td></tr></table></div>
+<td>137</td></tr></table></div>
 <div class="section">
 <h3 id="org.apache.hadoop.hbase.client.DelayingRunner.java">org/apache/hadoop/hbase/client/DelayingRunner.java</h3>
 <table border="0" class="table table-striped">
@@ -26215,31 +26215,31 @@
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'for' construct must use '{}'s.</td>
-<td>295</td></tr>
+<td>290</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'for' construct must use '{}'s.</td>
-<td>302</td></tr>
+<td>297</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'array initialization lcurly' has incorrect indentation level 8, expected level should be one of the following: 4, 6.</td>
-<td>358</td></tr>
+<td>353</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
-<td>417</td></tr>
+<td>412</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'else' construct must use '{}'s.</td>
-<td>418</td></tr></table></div>
+<td>413</td></tr></table></div>
 <div class="section">
 <h3 id="org.apache.hadoop.hbase.client.TestAsyncRegionAdminApi2.java">org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi2.java</h3>
 <table border="0" class="table table-striped">
@@ -109192,7 +109192,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2019
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-03-30</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-04-01</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/checkstyle.rss b/checkstyle.rss
index a4f63b9..17b2705 100644
--- a/checkstyle.rss
+++ b/checkstyle.rss
@@ -25,7 +25,7 @@ under the License.
     <language>en-us</language>
     <copyright>&#169;2007 - 2019 The Apache Software Foundation</copyright>
     <item>
-      <title>File: 3899,
+      <title>File: 3900,
              Errors: 13905,
              Warnings: 0,
              Infos: 0
@@ -6122,6 +6122,20 @@ under the License.
               </tr>
                           <tr>
                 <td>
+                  <a href="http://hbase.apache.org/checkstyle.html#org.apache.hadoop.hbase.client.TestAsyncAdminMasterSwitch.java">org/apache/hadoop/hbase/client/TestAsyncAdminMasterSwitch.java</a>
+                </td>
+                <td>
+                  0
+                </td>
+                <td>
+                  0
+                </td>
+                <td>
+                  0
+                </td>
+              </tr>
+                          <tr>
+                <td>
                   <a href="http://hbase.apache.org/checkstyle.html#org.apache.hadoop.hbase.filter.TestFuzzyRowFilter.java">org/apache/hadoop/hbase/filter/TestFuzzyRowFilter.java</a>
                 </td>
                 <td>
diff --git a/coc.html b/coc.html
index 7a4540f..41e0d40 100644
--- a/coc.html
+++ b/coc.html
@@ -231,7 +231,7 @@ email to <a class="externalLink" href="mailto:private@hbase.apache.org">the priv
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2019
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-03-30</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-04-01</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/dependencies.html b/dependencies.html
index bfb44a0..427ff87 100644
--- a/dependencies.html
+++ b/dependencies.html
@@ -311,7 +311,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2019
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-03-30</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-04-01</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/dependency-convergence.html b/dependency-convergence.html
index 0db7538..0bba26c 100644
--- a/dependency-convergence.html
+++ b/dependency-convergence.html
@@ -507,7 +507,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2019
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-03-30</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-04-01</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/dependency-info.html b/dependency-info.html
index 1f550d2..2aca562 100644
--- a/dependency-info.html
+++ b/dependency-info.html
@@ -184,7 +184,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2019
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-03-30</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-04-01</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/dependency-management.html b/dependency-management.html
index 24a4a74..6f09587 100644
--- a/dependency-management.html
+++ b/dependency-management.html
@@ -876,7 +876,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2019
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-03-30</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-04-01</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/devapidocs/constant-values.html b/devapidocs/constant-values.html
index 7b6e47d..1d536df 100644
--- a/devapidocs/constant-values.html
+++ b/devapidocs/constant-values.html
@@ -3913,7 +3913,7 @@
 <!--   -->
 </a><code>public&nbsp;static&nbsp;final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
 <td><code><a href="org/apache/hadoop/hbase/Version.html#date">date</a></code></td>
-<td class="colLast"><code>"Sat Mar 30 14:35:15 UTC 2019"</code></td>
+<td class="colLast"><code>"Mon Apr  1 14:35:31 UTC 2019"</code></td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><a name="org.apache.hadoop.hbase.Version.revision">
@@ -3927,7 +3927,7 @@
 <!--   -->
 </a><code>public&nbsp;static&nbsp;final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
 <td><code><a href="org/apache/hadoop/hbase/Version.html#srcChecksum">srcChecksum</a></code></td>
-<td class="colLast"><code>"67350738fb7e273b10530602955854d4"</code></td>
+<td class="colLast"><code>"44959282d72a3df35bb192fdd832efd4"</code></td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><a name="org.apache.hadoop.hbase.Version.url">
diff --git a/devapidocs/index-all.html b/devapidocs/index-all.html
index 5987716..9e44e28 100644
--- a/devapidocs/index-all.html
+++ b/devapidocs/index-all.html
@@ -12492,6 +12492,10 @@
 </dd>
 <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/regionserver/CompactSplit.html#clearLongCompactionsQueue--">clearLongCompactionsQueue()</a></span> - Method in class org.apache.hadoop.hbase.regionserver.<a href="org/apache/hadoop/hbase/regionserver/CompactSplit.html" title="class in org.apache.hadoop.hbase.regionserver">CompactSplit</a></dt>
 <dd>&nbsp;</dd>
+<dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#clearMasterStubCache-org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService.Interface-">clearMasterStubCache(MasterProtos.MasterService.Interface)</a></span> - Method in class org.apache.hadoop.hbase.client.<a href="org/apache/hadoop/hbase/client/AsyncConnectionImpl.html" title="class in org.apache.hadoop.hbase.client">AsyncConnectionImpl</a></dt>
+<dd>&nbsp;</dd>
+<dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetryingCaller.html#clearMasterStubCacheOnError-org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService.Interface-java.lang.Throwable-">clearMasterStubCacheOnError(MasterProtos.MasterService.Interface, Throwable)</a></span> - Method in class org.apache.hadoop.hbase.client.<a href="org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetryingCaller.html" title="class in org.ap [...]
+<dd>&nbsp;</dd>
 <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/zookeeper/MetricsZooKeeperSourceImpl.html#clearMetricIfNotNull-org.apache.hadoop.metrics2.lib.MutableGaugeLong-">clearMetricIfNotNull(MutableGaugeLong)</a></span> - Static method in class org.apache.hadoop.hbase.zookeeper.<a href="org/apache/hadoop/hbase/zookeeper/MetricsZooKeeperSourceImpl.html" title="class in org.apache.hadoop.hbase.zookeeper">MetricsZooKeeperSourceImpl</a></dt>
 <dd>&nbsp;</dd>
 <dt><span class="memberNameLink"><a href="org/apache/hadoop/metrics2/lib/DynamicMetricsRegistry.html#clearMetrics--">clearMetrics()</a></span> - Method in class org.apache.hadoop.metrics2.lib.<a href="org/apache/hadoop/metrics2/lib/DynamicMetricsRegistry.html" title="class in org.apache.hadoop.metrics2.lib">DynamicMetricsRegistry</a></dt>
@@ -46038,6 +46042,8 @@
 <div class="block">Extracts the value for the given key from the configuration of returns a string of
  zero length.</div>
 </dd>
+<dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/client/ConnectionUtils.html#getOrFetch-java.util.concurrent.atomic.AtomicReference-java.util.concurrent.atomic.AtomicReference-boolean-java.util.function.Supplier-java.util.function.Predicate-java.lang.String-">getOrFetch(AtomicReference&lt;T&gt;, AtomicReference&lt;CompletableFuture&lt;T&gt;&gt;, boolean, Supplier&lt;CompletableFuture&lt;T&gt;&gt;, Predicate&lt;T&gt;, String)</a></span> - Static method in class org.apache [...]
+<dd>&nbsp;</dd>
 <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/client/Action.html#getOriginalIndex--">getOriginalIndex()</a></span> - Method in class org.apache.hadoop.hbase.client.<a href="org/apache/hadoop/hbase/client/Action.html" title="class in org.apache.hadoop.hbase.client">Action</a></dt>
 <dd>&nbsp;</dd>
 <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/wal/WALKey.html#getOriginatingClusterId--">getOriginatingClusterId()</a></span> - Method in interface org.apache.hadoop.hbase.wal.<a href="org/apache/hadoop/hbase/wal/WALKey.html" title="interface in org.apache.hadoop.hbase.wal">WALKey</a></dt>
@@ -49769,8 +49775,6 @@
 </dd>
 <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/ipc/RpcClientFactory.html#getRpcClientClass-org.apache.hadoop.conf.Configuration-">getRpcClientClass(Configuration)</a></span> - Static method in class org.apache.hadoop.hbase.ipc.<a href="org/apache/hadoop/hbase/ipc/RpcClientFactory.html" title="class in org.apache.hadoop.hbase.ipc">RpcClientFactory</a></dt>
 <dd>&nbsp;</dd>
-<dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#getRpcController--">getRpcController()</a></span> - Method in class org.apache.hadoop.hbase.client.<a href="org/apache/hadoop/hbase/client/AsyncConnectionImpl.html" title="class in org.apache.hadoop.hbase.client">AsyncConnectionImpl</a></dt>
-<dd>&nbsp;</dd>
 <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/client/MasterCallable.html#getRpcController--">getRpcController()</a></span> - Method in class org.apache.hadoop.hbase.client.<a href="org/apache/hadoop/hbase/client/MasterCallable.html" title="class in org.apache.hadoop.hbase.client">MasterCallable</a></dt>
 <dd>&nbsp;</dd>
 <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/client/RegionServerCallable.html#getRpcController--">getRpcController()</a></span> - Method in class org.apache.hadoop.hbase.client.<a href="org/apache/hadoop/hbase/client/RegionServerCallable.html" title="class in org.apache.hadoop.hbase.client">RegionServerCallable</a></dt>
@@ -70048,8 +70052,6 @@
 <dd>&nbsp;</dd>
 <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#LOG">LOG</a></span> - Static variable in class org.apache.hadoop.hbase.client.<a href="org/apache/hadoop/hbase/client/AsyncConnectionImpl.html" title="class in org.apache.hadoop.hbase.client">AsyncConnectionImpl</a></dt>
 <dd>&nbsp;</dd>
-<dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/client/AsyncMetaRegionLocator.html#LOG">LOG</a></span> - Static variable in class org.apache.hadoop.hbase.client.<a href="org/apache/hadoop/hbase/client/AsyncMetaRegionLocator.html" title="class in org.apache.hadoop.hbase.client">AsyncMetaRegionLocator</a></dt>
-<dd>&nbsp;</dd>
 <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/client/AsyncNonMetaRegionLocator.html#LOG">LOG</a></span> - Static variable in class org.apache.hadoop.hbase.client.<a href="org/apache/hadoop/hbase/client/AsyncNonMetaRegionLocator.html" title="class in org.apache.hadoop.hbase.client">AsyncNonMetaRegionLocator</a></dt>
 <dd>&nbsp;</dd>
 <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/client/AsyncProcess.html#LOG">LOG</a></span> - Static variable in class org.apache.hadoop.hbase.client.<a href="org/apache/hadoop/hbase/client/AsyncProcess.html" title="class in org.apache.hadoop.hbase.client">AsyncProcess</a></dt>
@@ -72661,8 +72663,6 @@
 <dd>&nbsp;</dd>
 <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/tmpl/regionserver/ServerMetricsTmpl.html#makeImplData--">makeImplData()</a></span> - Method in class org.apache.hadoop.hbase.tmpl.regionserver.<a href="org/apache/hadoop/hbase/tmpl/regionserver/ServerMetricsTmpl.html" title="class in org.apache.hadoop.hbase.tmpl.regionserver">ServerMetricsTmpl</a></dt>
 <dd>&nbsp;</dd>
-<dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#makeMasterStub-java.util.concurrent.CompletableFuture-">makeMasterStub(CompletableFuture&lt;MasterProtos.MasterService.Interface&gt;)</a></span> - Method in class org.apache.hadoop.hbase.client.<a href="org/apache/hadoop/hbase/client/AsyncConnectionImpl.html" title="class in org.apache.hadoop.hbase.client">AsyncConnectionImpl</a></dt>
-<dd>&nbsp;</dd>
 <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/MetaTableAccessor.html#makePutForReplicationBarrier-org.apache.hadoop.hbase.client.RegionInfo-long-long-">makePutForReplicationBarrier(RegionInfo, long, long)</a></span> - Static method in class org.apache.hadoop.hbase.<a href="org/apache/hadoop/hbase/MetaTableAccessor.html" title="class in org.apache.hadoop.hbase">MetaTableAccessor</a></dt>
 <dd>&nbsp;</dd>
 <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/favored/FavoredNodeAssignmentHelper.html#makePutFromRegionInfo-org.apache.hadoop.hbase.client.RegionInfo-java.util.List-">makePutFromRegionInfo(RegionInfo, List&lt;ServerName&gt;)</a></span> - Static method in class org.apache.hadoop.hbase.favored.<a href="org/apache/hadoop/hbase/favored/FavoredNodeAssignmentHelper.html" title="class in org.apache.hadoop.hbase.favored">FavoredNodeAssignmentHelper</a></dt>
diff --git a/devapidocs/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html b/devapidocs/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html
index cffe8d1..664f62e 100644
--- a/devapidocs/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html
+++ b/devapidocs/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html
@@ -18,7 +18,7 @@
     catch(err) {
     }
 //-->
-var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10};
+var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10};
 var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
 var altColor = "altColor";
 var rowColor = "rowColor";
@@ -114,7 +114,7 @@ var activeTableTab = "activeTableTab";
 <hr>
 <br>
 <pre>@InterfaceAudience.Private
-class <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.66">AsyncConnectionImpl</a>
+class <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.62">AsyncConnectionImpl</a>
 extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>
 implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnection.html" title="interface in org.apache.hadoop.hbase.client">AsyncConnection</a></pre>
 <div class="block">The implementation of AsyncConnection.</div>
@@ -252,100 +252,100 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <th class="colLast" scope="col">Method and Description</th>
 </tr>
 <tr id="i0" class="altColor">
+<td class="colFirst"><code>(package private) void</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#clearMasterStubCache-org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService.Interface-">clearMasterStubCache</a></span>(org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService.Interface&nbsp;stub)</code>&nbsp;</td>
+</tr>
+<tr id="i1" class="rowColor">
 <td class="colFirst"><code>void</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#clearRegionLocationCache--">clearRegionLocationCache</a></span>()</code>
 <div class="block">Clear all the entries in the region location cache, for all the tables.</div>
 </td>
 </tr>
-<tr id="i1" class="rowColor">
+<tr id="i2" class="altColor">
 <td class="colFirst"><code>void</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#close--">close</a></span>()</code>&nbsp;</td>
 </tr>
-<tr id="i2" class="altColor">
+<tr id="i3" class="rowColor">
 <td class="colFirst"><code>private org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.AdminService.Interface</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#createAdminServerStub-org.apache.hadoop.hbase.ServerName-">createAdminServerStub</a></span>(<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&nbsp;serverName)</code>&nbsp;</td>
 </tr>
-<tr id="i3" class="rowColor">
+<tr id="i4" class="altColor">
 <td class="colFirst"><code>private org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService.Interface</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#createMasterStub-org.apache.hadoop.hbase.ServerName-">createMasterStub</a></span>(<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&nbsp;serverName)</code>&nbsp;</td>
 </tr>
-<tr id="i4" class="altColor">
+<tr id="i5" class="rowColor">
 <td class="colFirst"><code>private org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.Interface</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#createRegionServerStub-org.apache.hadoop.hbase.ServerName-">createRegionServerStub</a></span>(<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&nbsp;serverName)</code>&nbsp;</td>
 </tr>
-<tr id="i5" class="rowColor">
+<tr id="i6" class="altColor">
 <td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdminBuilder.html" title="interface in org.apache.hadoop.hbase.client">AsyncAdminBuilder</a></code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#getAdminBuilder--">getAdminBuilder</a></span>()</code>
 <div class="block">Returns an <a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdminBuilder.html" title="interface in org.apache.hadoop.hbase.client"><code>AsyncAdminBuilder</code></a> for creating <a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdmin.html" title="interface in org.apache.hadoop.hbase.client"><code>AsyncAdmin</code></a>.</div>
 </td>
 </tr>
-<tr id="i6" class="altColor">
+<tr id="i7" class="rowColor">
 <td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdminBuilder.html" title="interface in org.apache.hadoop.hbase.client">AsyncAdminBuilder</a></code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#getAdminBuilder-java.util.concurrent.ExecutorService-">getAdminBuilder</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ExecutorService.html?is-external=true" title="class or interface in java.util.concurrent">ExecutorService</a>&nbsp;pool)</code>
 <div class="block">Returns an <a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdminBuilder.html" title="interface in org.apache.hadoop.hbase.client"><code>AsyncAdminBuilder</code></a> for creating <a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdmin.html" title="interface in org.apache.hadoop.hbase.client"><code>AsyncAdmin</code></a>.</div>
 </td>
 </tr>
-<tr id="i7" class="rowColor">
+<tr id="i8" class="altColor">
 <td class="colFirst"><code>(package private) org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.AdminService.Interface</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#getAdminStub-org.apache.hadoop.hbase.ServerName-">getAdminStub</a></span>(<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&nbsp;serverName)</code>&nbsp;</td>
 </tr>
-<tr id="i8" class="altColor">
+<tr id="i9" class="rowColor">
 <td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/client/AsyncBufferedMutatorBuilder.html" title="interface in org.apache.hadoop.hbase.client">AsyncBufferedMutatorBuilder</a></code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#getBufferedMutatorBuilder-org.apache.hadoop.hbase.TableName-">getBufferedMutatorBuilder</a></span>(<a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tableName)</code>
 <div class="block">Returns an <a href="../../../../../org/apache/hadoop/hbase/client/AsyncBufferedMutatorBuilder.html" title="interface in org.apache.hadoop.hbase.client"><code>AsyncBufferedMutatorBuilder</code></a> for creating <a href="../../../../../org/apache/hadoop/hbase/client/AsyncBufferedMutator.html" title="interface in org.apache.hadoop.hbase.client"><code>AsyncBufferedMutator</code></a>.</div>
 </td>
 </tr>
-<tr id="i9" class="rowColor">
+<tr id="i10" class="altColor">
 <td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/client/AsyncBufferedMutatorBuilder.html" title="interface in org.apache.hadoop.hbase.client">AsyncBufferedMutatorBuilder</a></code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#getBufferedMutatorBuilder-org.apache.hadoop.hbase.TableName-java.util.concurrent.ExecutorService-">getBufferedMutatorBuilder</a></span>(<a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tableName,
                          <a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ExecutorService.html?is-external=true" title="class or interface in java.util.concurrent">ExecutorService</a>&nbsp;pool)</code>
 <div class="block">Returns an <a href="../../../../../org/apache/hadoop/hbase/client/AsyncBufferedMutatorBuilder.html" title="interface in org.apache.hadoop.hbase.client"><code>AsyncBufferedMutatorBuilder</code></a> for creating <a href="../../../../../org/apache/hadoop/hbase/client/AsyncBufferedMutator.html" title="interface in org.apache.hadoop.hbase.client"><code>AsyncBufferedMutator</code></a>.</div>
 </td>
 </tr>
-<tr id="i10" class="altColor">
+<tr id="i11" class="rowColor">
 <td class="colFirst"><code>org.apache.hadoop.conf.Configuration</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#getConfiguration--">getConfiguration</a></span>()</code>
 <div class="block">Returns the <code>Configuration</code> object used by this instance.</div>
 </td>
 </tr>
-<tr id="i11" class="rowColor">
+<tr id="i12" class="altColor">
 <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/Hbck.html" title="interface in org.apache.hadoop.hbase.client">Hbck</a>&gt;</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#getHbck--">getHbck</a></span>()</code>
 <div class="block">Retrieve an Hbck implementation to fix an HBase cluster.</div>
 </td>
 </tr>
-<tr id="i12" class="altColor">
+<tr id="i13" class="rowColor">
 <td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/client/Hbck.html" title="interface in org.apache.hadoop.hbase.client">Hbck</a></code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#getHbck-org.apache.hadoop.hbase.ServerName-">getHbck</a></span>(<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&nbsp;masterServer)</code>
 <div class="block">Retrieve an Hbck implementation to fix an HBase cluster.</div>
 </td>
 </tr>
-<tr id="i13" class="rowColor">
+<tr id="i14" class="altColor">
 <td class="colFirst"><code>(package private) <a href="../../../../../org/apache/hadoop/hbase/client/AsyncRegionLocator.html" title="class in org.apache.hadoop.hbase.client">AsyncRegionLocator</a></code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#getLocator--">getLocator</a></span>()</code>&nbsp;</td>
 </tr>
-<tr id="i14" class="altColor">
+<tr id="i15" class="rowColor">
 <td class="colFirst"><code>(package private) <a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a>&lt;org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService.Interface&gt;</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#getMasterStub--">getMasterStub</a></span>()</code>&nbsp;</td>
 </tr>
-<tr id="i15" class="rowColor">
+<tr id="i16" class="altColor">
 <td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/client/NonceGenerator.html" title="interface in org.apache.hadoop.hbase.client">NonceGenerator</a></code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#getNonceGenerator--">getNonceGenerator</a></span>()</code>&nbsp;</td>
 </tr>
-<tr id="i16" class="altColor">
+<tr id="i17" class="rowColor">
 <td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/client/AsyncTableRegionLocator.html" title="interface in org.apache.hadoop.hbase.client">AsyncTableRegionLocator</a></code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#getRegionLocator-org.apache.hadoop.hbase.TableName-">getRegionLocator</a></span>(<a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tableName)</code>
 <div class="block">Retrieve a AsyncRegionLocator implementation to inspect region information on a table.</div>
 </td>
 </tr>
-<tr id="i17" class="rowColor">
+<tr id="i18" class="altColor">
 <td class="colFirst"><code>(package private) org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.Interface</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#getRegionServerStub-org.apache.hadoop.hbase.ServerName-">getRegionServerStub</a></span>(<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&nbsp;serverName)</code>&nbsp;</td>
 </tr>
-<tr id="i18" class="altColor">
-<td class="colFirst"><code>private <a href="../../../../../org/apache/hadoop/hbase/ipc/HBaseRpcController.html" title="interface in org.apache.hadoop.hbase.ipc">HBaseRpcController</a></code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#getRpcController--">getRpcController</a></span>()</code>&nbsp;</td>
-</tr>
 <tr id="i19" class="rowColor">
 <td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/client/AsyncTableBuilder.html" title="interface in org.apache.hadoop.hbase.client">AsyncTableBuilder</a>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/AdvancedScanResultConsumer.html" title="interface in org.apache.hadoop.hbase.client">AdvancedScanResultConsumer</a>&gt;</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#getTableBuilder-org.apache.hadoop.hbase.TableName-">getTableBuilder</a></span>(<a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tableName)</code>
@@ -367,10 +367,6 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 </tr>
 <tr id="i22" class="altColor">
 <td class="colFirst"><code>private void</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#makeMasterStub-java.util.concurrent.CompletableFuture-">makeMasterStub</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a>&lt;org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService.Interface [...]
-</tr>
-<tr id="i23" class="rowColor">
-<td class="colFirst"><code>private void</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#spawnRenewalChore-org.apache.hadoop.security.UserGroupInformation-">spawnRenewalChore</a></span>(org.apache.hadoop.security.UserGroupInformation&nbsp;user)</code>&nbsp;</td>
 </tr>
 </table>
@@ -408,7 +404,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockList">
 <li class="blockList">
 <h4>LOG</h4>
-<pre>private static final&nbsp;org.slf4j.Logger <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.68">LOG</a></pre>
+<pre>private static final&nbsp;org.slf4j.Logger <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.64">LOG</a></pre>
 </li>
 </ul>
 <a name="RETRY_TIMER">
@@ -417,7 +413,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockList">
 <li class="blockList">
 <h4>RETRY_TIMER</h4>
-<pre>static final&nbsp;org.apache.hbase.thirdparty.io.netty.util.HashedWheelTimer <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.71">RETRY_TIMER</a></pre>
+<pre>static final&nbsp;org.apache.hbase.thirdparty.io.netty.util.HashedWheelTimer <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.67">RETRY_TIMER</a></pre>
 </li>
 </ul>
 <a name="RESOLVE_HOSTNAME_ON_FAIL_KEY">
@@ -426,7 +422,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockList">
 <li class="blockList">
 <h4>RESOLVE_HOSTNAME_ON_FAIL_KEY</h4>
-<pre>private static final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.74">RESOLVE_HOSTNAME_ON_FAIL_KEY</a></pre>
+<pre>private static final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.70">RESOLVE_HOSTNAME_ON_FAIL_KEY</a></pre>
 <dl>
 <dt><span class="seeLabel">See Also:</span></dt>
 <dd><a href="../../../../../constant-values.html#org.apache.hadoop.hbase.client.AsyncConnectionImpl.RESOLVE_HOSTNAME_ON_FAIL_KEY">Constant Field Values</a></dd>
@@ -439,7 +435,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockList">
 <li class="blockList">
 <h4>conf</h4>
-<pre>private final&nbsp;org.apache.hadoop.conf.Configuration <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.76">conf</a></pre>
+<pre>private final&nbsp;org.apache.hadoop.conf.Configuration <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.72">conf</a></pre>
 </li>
 </ul>
 <a name="connConf">
@@ -448,7 +444,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockList">
 <li class="blockList">
 <h4>connConf</h4>
-<pre>final&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectionConfiguration.html" title="class in org.apache.hadoop.hbase.client">AsyncConnectionConfiguration</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.78">connConf</a></pre>
+<pre>final&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectionConfiguration.html" title="class in org.apache.hadoop.hbase.client">AsyncConnectionConfiguration</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.74">connConf</a></pre>
 </li>
 </ul>
 <a name="user">
@@ -457,7 +453,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockList">
 <li class="blockList">
 <h4>user</h4>
-<pre>private final&nbsp;<a href="../../../../../org/apache/hadoop/hbase/security/User.html" title="class in org.apache.hadoop.hbase.security">User</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.80">user</a></pre>
+<pre>private final&nbsp;<a href="../../../../../org/apache/hadoop/hbase/security/User.html" title="class in org.apache.hadoop.hbase.security">User</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.76">user</a></pre>
 </li>
 </ul>
 <a name="registry">
@@ -466,7 +462,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockList">
 <li class="blockList">
 <h4>registry</h4>
-<pre>final&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/AsyncRegistry.html" title="interface in org.apache.hadoop.hbase.client">AsyncRegistry</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.82">registry</a></pre>
+<pre>final&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/AsyncRegistry.html" title="interface in org.apache.hadoop.hbase.client">AsyncRegistry</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.78">registry</a></pre>
 </li>
 </ul>
 <a name="rpcTimeout">
@@ -475,7 +471,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockList">
 <li class="blockList">
 <h4>rpcTimeout</h4>
-<pre>private final&nbsp;int <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.84">rpcTimeout</a></pre>
+<pre>private final&nbsp;int <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.80">rpcTimeout</a></pre>
 </li>
 </ul>
 <a name="rpcClient">
@@ -484,7 +480,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockList">
 <li class="blockList">
 <h4>rpcClient</h4>
-<pre>private final&nbsp;<a href="../../../../../org/apache/hadoop/hbase/ipc/RpcClient.html" title="interface in org.apache.hadoop.hbase.ipc">RpcClient</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.86">rpcClient</a></pre>
+<pre>private final&nbsp;<a href="../../../../../org/apache/hadoop/hbase/ipc/RpcClient.html" title="interface in org.apache.hadoop.hbase.ipc">RpcClient</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.82">rpcClient</a></pre>
 </li>
 </ul>
 <a name="rpcControllerFactory">
@@ -493,7 +489,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockList">
 <li class="blockList">
 <h4>rpcControllerFactory</h4>
-<pre>final&nbsp;<a href="../../../../../org/apache/hadoop/hbase/ipc/RpcControllerFactory.html" title="class in org.apache.hadoop.hbase.ipc">RpcControllerFactory</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.88">rpcControllerFactory</a></pre>
+<pre>final&nbsp;<a href="../../../../../org/apache/hadoop/hbase/ipc/RpcControllerFactory.html" title="class in org.apache.hadoop.hbase.ipc">RpcControllerFactory</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.84">rpcControllerFactory</a></pre>
 </li>
 </ul>
 <a name="hostnameCanChange">
@@ -502,7 +498,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockList">
 <li class="blockList">
 <h4>hostnameCanChange</h4>
-<pre>private final&nbsp;boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.90">hostnameCanChange</a></pre>
+<pre>private final&nbsp;boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.86">hostnameCanChange</a></pre>
 </li>
 </ul>
 <a name="locator">
@@ -511,7 +507,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockList">
 <li class="blockList">
 <h4>locator</h4>
-<pre>private final&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/AsyncRegionLocator.html" title="class in org.apache.hadoop.hbase.client">AsyncRegionLocator</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.92">locator</a></pre>
+<pre>private final&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/AsyncRegionLocator.html" title="class in org.apache.hadoop.hbase.client">AsyncRegionLocator</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.88">locator</a></pre>
 </li>
 </ul>
 <a name="callerFactory">
@@ -520,7 +516,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockList">
 <li class="blockList">
 <h4>callerFactory</h4>
-<pre>final&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/AsyncRpcRetryingCallerFactory.html" title="class in org.apache.hadoop.hbase.client">AsyncRpcRetryingCallerFactory</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.94">callerFactory</a></pre>
+<pre>final&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/AsyncRpcRetryingCallerFactory.html" title="class in org.apache.hadoop.hbase.client">AsyncRpcRetryingCallerFactory</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.90">callerFactory</a></pre>
 </li>
 </ul>
 <a name="nonceGenerator">
@@ -529,7 +525,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockList">
 <li class="blockList">
 <h4>nonceGenerator</h4>
-<pre>private final&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/NonceGenerator.html" title="interface in org.apache.hadoop.hbase.client">NonceGenerator</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.96">nonceGenerator</a></pre>
+<pre>private final&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/NonceGenerator.html" title="interface in org.apache.hadoop.hbase.client">NonceGenerator</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.92">nonceGenerator</a></pre>
 </li>
 </ul>
 <a name="rsStubs">
@@ -538,7 +534,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockList">
 <li class="blockList">
 <h4>rsStubs</h4>
-<pre>private final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ConcurrentMap.html?is-external=true" title="class or interface in java.util.concurrent">ConcurrentMap</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.Interface&gt; <a href="../../../../../src-html/org/apache/hadoop/hba [...]
+<pre>private final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ConcurrentMap.html?is-external=true" title="class or interface in java.util.concurrent">ConcurrentMap</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.Interface&gt; <a href="../../../../../src-html/org/apache/hadoop/hba [...]
 </li>
 </ul>
 <a name="adminSubs">
@@ -547,7 +543,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockList">
 <li class="blockList">
 <h4>adminSubs</h4>
-<pre>private final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ConcurrentMap.html?is-external=true" title="class or interface in java.util.concurrent">ConcurrentMap</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.AdminService.Interface&gt; <a href="../../../../../src-html/org/apache/hadoop/hbase [...]
+<pre>private final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ConcurrentMap.html?is-external=true" title="class or interface in java.util.concurrent">ConcurrentMap</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.AdminService.Interface&gt; <a href="../../../../../src-html/org/apache/hadoop/hbase [...]
 </li>
 </ul>
 <a name="masterStub">
@@ -556,7 +552,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockList">
 <li class="blockList">
 <h4>masterStub</h4>
-<pre>private final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/atomic/AtomicReference.html?is-external=true" title="class or interface in java.util.concurrent.atomic">AtomicReference</a>&lt;org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService.Interface&gt; <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.101">masterStub</a></pre>
+<pre>private final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/atomic/AtomicReference.html?is-external=true" title="class or interface in java.util.concurrent.atomic">AtomicReference</a>&lt;org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService.Interface&gt; <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.97">masterStub</a></pre>
 </li>
 </ul>
 <a name="masterStubMakeFuture">
@@ -565,7 +561,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockList">
 <li class="blockList">
 <h4>masterStubMakeFuture</h4>
-<pre>private final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/atomic/AtomicReference.html?is-external=true" title="class or interface in java.util.concurrent.atomic">AtomicReference</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a>&lt;org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService.Int [...]
+<pre>private final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/atomic/AtomicReference.html?is-external=true" title="class or interface in java.util.concurrent.atomic">AtomicReference</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a>&lt;org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService.Int [...]
 </li>
 </ul>
 <a name="authService">
@@ -574,7 +570,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockList">
 <li class="blockList">
 <h4>authService</h4>
-<pre>private&nbsp;<a href="../../../../../org/apache/hadoop/hbase/ChoreService.html" title="class in org.apache.hadoop.hbase">ChoreService</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.106">authService</a></pre>
+<pre>private&nbsp;<a href="../../../../../org/apache/hadoop/hbase/ChoreService.html" title="class in org.apache.hadoop.hbase">ChoreService</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.102">authService</a></pre>
 </li>
 </ul>
 <a name="closed">
@@ -583,7 +579,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockListLast">
 <li class="blockList">
 <h4>closed</h4>
-<pre>private volatile&nbsp;boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.108">closed</a></pre>
+<pre>private volatile&nbsp;boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.104">closed</a></pre>
 </li>
 </ul>
 </li>
@@ -600,7 +596,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockListLast">
 <li class="blockList">
 <h4>AsyncConnectionImpl</h4>
-<pre>public&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.110">AsyncConnectionImpl</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
+<pre>public&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.106">AsyncConnectionImpl</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
                            <a href="../../../../../org/apache/hadoop/hbase/client/AsyncRegistry.html" title="interface in org.apache.hadoop.hbase.client">AsyncRegistry</a>&nbsp;registry,
                            <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;clusterId,
                            <a href="../../../../../org/apache/hadoop/hbase/security/User.html" title="class in org.apache.hadoop.hbase.security">User</a>&nbsp;user)</pre>
@@ -620,7 +616,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockList">
 <li class="blockList">
 <h4>spawnRenewalChore</h4>
-<pre>private&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.133">spawnRenewalChore</a>(org.apache.hadoop.security.UserGroupInformation&nbsp;user)</pre>
+<pre>private&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.129">spawnRenewalChore</a>(org.apache.hadoop.security.UserGroupInformation&nbsp;user)</pre>
 </li>
 </ul>
 <a name="getConfiguration--">
@@ -629,7 +625,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockList">
 <li class="blockList">
 <h4>getConfiguration</h4>
-<pre>public&nbsp;org.apache.hadoop.conf.Configuration&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.139">getConfiguration</a>()</pre>
+<pre>public&nbsp;org.apache.hadoop.conf.Configuration&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.135">getConfiguration</a>()</pre>
 <div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnection.html#getConfiguration--">AsyncConnection</a></code></span></div>
 <div class="block">Returns the <code>Configuration</code> object used by this instance.
  <p>
@@ -646,7 +642,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockList">
 <li class="blockList">
 <h4>close</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.144">close</a>()</pre>
+<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.140">close</a>()</pre>
 <dl>
 <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
 <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/Closeable.html?is-external=true#close--" title="class or interface in java.io">close</a></code>&nbsp;in interface&nbsp;<code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</a></code></dd>
@@ -661,7 +657,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockList">
 <li class="blockList">
 <h4>isClosed</h4>
-<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.159">isClosed</a>()</pre>
+<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.155">isClosed</a>()</pre>
 <div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnection.html#isClosed--">AsyncConnection</a></code></span></div>
 <div class="block">Returns whether the connection is closed or not.</div>
 <dl>
@@ -678,7 +674,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockList">
 <li class="blockList">
 <h4>getRegionLocator</h4>
-<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/AsyncTableRegionLocator.html" title="interface in org.apache.hadoop.hbase.client">AsyncTableRegionLocator</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.164">getRegionLocator</a>(<a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tableName)</pre>
+<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/AsyncTableRegionLocator.html" title="interface in org.apache.hadoop.hbase.client">AsyncTableRegionLocator</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.160">getRegionLocator</a>(<a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tableName)</pre>
 <div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnection.html#getRegionLocator-org.apache.hadoop.hbase.TableName-">AsyncConnection</a></code></span></div>
 <div class="block">Retrieve a AsyncRegionLocator implementation to inspect region information on a table. The
  returned AsyncRegionLocator is not thread-safe, so a new instance should be created for each
@@ -700,7 +696,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockList">
 <li class="blockList">
 <h4>getLocator</h4>
-<pre><a href="../../../../../org/apache/hadoop/hbase/client/AsyncRegionLocator.html" title="class in org.apache.hadoop.hbase.client">AsyncRegionLocator</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.169">getLocator</a>()</pre>
+<pre><a href="../../../../../org/apache/hadoop/hbase/client/AsyncRegionLocator.html" title="class in org.apache.hadoop.hbase.client">AsyncRegionLocator</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.165">getLocator</a>()</pre>
 </li>
 </ul>
 <a name="getNonceGenerator--">
@@ -709,7 +705,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockList">
 <li class="blockList">
 <h4>getNonceGenerator</h4>
-<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/NonceGenerator.html" title="interface in org.apache.hadoop.hbase.client">NonceGenerator</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.175">getNonceGenerator</a>()</pre>
+<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/NonceGenerator.html" title="interface in org.apache.hadoop.hbase.client">NonceGenerator</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.171">getNonceGenerator</a>()</pre>
 </li>
 </ul>
 <a name="createRegionServerStub-org.apache.hadoop.hbase.ServerName-">
@@ -718,7 +714,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockList">
 <li class="blockList">
 <h4>createRegionServerStub</h4>
-<pre>private&nbsp;org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.Interface&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.179">createRegionServerStub</a>(<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&nbsp;serverName)
+<pre>private&nbsp;org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.Interface&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.175">createRegionServerStub</a>(<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&nbsp;serverName)
                                                                                                                throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
 <dl>
 <dt><span class="throwsLabel">Throws:</span></dt>
@@ -732,7 +728,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockList">
 <li class="blockList">
 <h4>getRegionServerStub</h4>
-<pre>org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.Interface&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.183">getRegionServerStub</a>(<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&nbsp;serverName)
+<pre>org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.Interface&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.179">getRegionServerStub</a>(<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&nbsp;serverName)
                                                                                                     throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
 <dl>
 <dt><span class="throwsLabel">Throws:</span></dt>
@@ -746,7 +742,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockList">
 <li class="blockList">
 <h4>createMasterStub</h4>
-<pre>private&nbsp;org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService.Interface&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.189">createMasterStub</a>(<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&nbsp;serverName)
+<pre>private&nbsp;org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService.Interface&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.185">createMasterStub</a>(<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&nbsp;serverName)
                                                                                                          throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
 <dl>
 <dt><span class="throwsLabel">Throws:</span></dt>
@@ -760,7 +756,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockList">
 <li class="blockList">
 <h4>createAdminServerStub</h4>
-<pre>private&nbsp;org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.AdminService.Interface&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.193">createAdminServerStub</a>(<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&nbsp;serverName)
+<pre>private&nbsp;org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.AdminService.Interface&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.189">createAdminServerStub</a>(<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&nbsp;serverName)
                                                                                                             throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
 <dl>
 <dt><span class="throwsLabel">Throws:</span></dt>
@@ -774,7 +770,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockList">
 <li class="blockList">
 <h4>getAdminStub</h4>
-<pre>org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.AdminService.Interface&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.197">getAdminStub</a>(<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&nbsp;serverName)
+<pre>org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.AdminService.Interface&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.193">getAdminStub</a>(<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&nbsp;serverName)
                                                                                            throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
 <dl>
 <dt><span class="throwsLabel">Throws:</span></dt>
@@ -782,31 +778,22 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 </dl>
 </li>
 </ul>
-<a name="makeMasterStub-java.util.concurrent.CompletableFuture-">
-<!--   -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>makeMasterStub</h4>
-<pre>private&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.203">makeMasterStub</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a>&lt;org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService.Interface&gt;&nbsp;future)</pre>
-</li>
-</ul>
 <a name="getMasterStub--">
 <!--   -->
 </a>
 <ul class="blockList">
 <li class="blockList">
 <h4>getMasterStub</h4>
-<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a>&lt;org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService.Interface&gt;&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.237">getMasterStub</a>()</pre>
+<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a>&lt;org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService.Interface&gt;&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.199">getMasterStub</a>()</pre>
 </li>
 </ul>
-<a name="getRpcController--">
+<a name="clearMasterStubCache-org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService.Interface-">
 <!--   -->
 </a>
 <ul class="blockList">
 <li class="blockList">
-<h4>getRpcController</h4>
-<pre>private&nbsp;<a href="../../../../../org/apache/hadoop/hbase/ipc/HBaseRpcController.html" title="interface in org.apache.hadoop.hbase.ipc">HBaseRpcController</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.279">getRpcController</a>()</pre>
+<h4>clearMasterStubCache</h4>
+<pre>void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.222">clearMasterStubCache</a>(org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService.Interface&nbsp;stub)</pre>
 </li>
 </ul>
 <a name="getTableBuilder-org.apache.hadoop.hbase.TableName-">
@@ -815,7 +802,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockList">
 <li class="blockList">
 <h4>getTableBuilder</h4>
-<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/AsyncTableBuilder.html" title="interface in org.apache.hadoop.hbase.client">AsyncTableBuilder</a>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/AdvancedScanResultConsumer.html" title="interface in org.apache.hadoop.hbase.client">AdvancedScanResultConsumer</a>&gt;&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.286">getTableBuilder</a>(<a href="../../../.. [...]
+<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/AsyncTableBuilder.html" title="interface in org.apache.hadoop.hbase.client">AsyncTableBuilder</a>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/AdvancedScanResultConsumer.html" title="interface in org.apache.hadoop.hbase.client">AdvancedScanResultConsumer</a>&gt;&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.227">getTableBuilder</a>(<a href="../../../.. [...]
 <div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnection.html#getTableBuilder-org.apache.hadoop.hbase.TableName-">AsyncConnection</a></code></span></div>
 <div class="block">Returns an <a href="../../../../../org/apache/hadoop/hbase/client/AsyncTableBuilder.html" title="interface in org.apache.hadoop.hbase.client"><code>AsyncTableBuilder</code></a> for creating <a href="../../../../../org/apache/hadoop/hbase/client/AsyncTable.html" title="interface in org.apache.hadoop.hbase.client"><code>AsyncTable</code></a>.
  <p>
@@ -835,7 +822,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockList">
 <li class="blockList">
 <h4>getTableBuilder</h4>
-<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/AsyncTableBuilder.html" title="interface in org.apache.hadoop.hbase.client">AsyncTableBuilder</a>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/ScanResultConsumer.html" title="interface in org.apache.hadoop.hbase.client">ScanResultConsumer</a>&gt;&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.297">getTableBuilder</a>(<a href="../../../../../org/apache/h [...]
+<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/AsyncTableBuilder.html" title="interface in org.apache.hadoop.hbase.client">AsyncTableBuilder</a>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/ScanResultConsumer.html" title="interface in org.apache.hadoop.hbase.client">ScanResultConsumer</a>&gt;&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.238">getTableBuilder</a>(<a href="../../../../../org/apache/h [...]
                                                              <a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ExecutorService.html?is-external=true" title="class or interface in java.util.concurrent">ExecutorService</a>&nbsp;pool)</pre>
 <div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnection.html#getTableBuilder-org.apache.hadoop.hbase.TableName-java.util.concurrent.ExecutorService-">AsyncConnection</a></code></span></div>
 <div class="block">Returns an <a href="../../../../../org/apache/hadoop/hbase/client/AsyncTableBuilder.html" title="interface in org.apache.hadoop.hbase.client"><code>AsyncTableBuilder</code></a> for creating <a href="../../../../../org/apache/hadoop/hbase/client/AsyncTable.html" title="interface in org.apache.hadoop.hbase.client"><code>AsyncTable</code></a>.
@@ -857,7 +844,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockList">
 <li class="blockList">
 <h4>getAdminBuilder</h4>
-<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdminBuilder.html" title="interface in org.apache.hadoop.hbase.client">AsyncAdminBuilder</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.311">getAdminBuilder</a>()</pre>
+<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdminBuilder.html" title="interface in org.apache.hadoop.hbase.client">AsyncAdminBuilder</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.252">getAdminBuilder</a>()</pre>
 <div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnection.html#getAdminBuilder--">AsyncConnection</a></code></span></div>
 <div class="block">Returns an <a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdminBuilder.html" title="interface in org.apache.hadoop.hbase.client"><code>AsyncAdminBuilder</code></a> for creating <a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdmin.html" title="interface in org.apache.hadoop.hbase.client"><code>AsyncAdmin</code></a>.
  <p>
@@ -876,7 +863,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockList">
 <li class="blockList">
 <h4>getAdminBuilder</h4>
-<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdminBuilder.html" title="interface in org.apache.hadoop.hbase.client">AsyncAdminBuilder</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.321">getAdminBuilder</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ExecutorService.html?is-external=true" title="class or interface in java.util.concurrent">ExecutorService</a>&nbsp;pool)</pre>
+<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdminBuilder.html" title="interface in org.apache.hadoop.hbase.client">AsyncAdminBuilder</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.262">getAdminBuilder</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ExecutorService.html?is-external=true" title="class or interface in java.util.concurrent">ExecutorService</a>&nbsp;pool)</pre>
 <div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnection.html#getAdminBuilder-java.util.concurrent.ExecutorService-">AsyncConnection</a></code></span></div>
 <div class="block">Returns an <a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdminBuilder.html" title="interface in org.apache.hadoop.hbase.client"><code>AsyncAdminBuilder</code></a> for creating <a href="../../../../../org/apache/hadoop/hbase/client/AsyncAdmin.html" title="interface in org.apache.hadoop.hbase.client"><code>AsyncAdmin</code></a>.</div>
 <dl>
@@ -893,7 +880,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockList">
 <li class="blockList">
 <h4>getBufferedMutatorBuilder</h4>
-<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/AsyncBufferedMutatorBuilder.html" title="interface in org.apache.hadoop.hbase.client">AsyncBufferedMutatorBuilder</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.333">getBufferedMutatorBuilder</a>(<a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tableName)</pre>
+<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/AsyncBufferedMutatorBuilder.html" title="interface in org.apache.hadoop.hbase.client">AsyncBufferedMutatorBuilder</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.274">getBufferedMutatorBuilder</a>(<a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tableName)</pre>
 <div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnection.html#getBufferedMutatorBuilder-org.apache.hadoop.hbase.TableName-">AsyncConnection</a></code></span></div>
 <div class="block">Returns an <a href="../../../../../org/apache/hadoop/hbase/client/AsyncBufferedMutatorBuilder.html" title="interface in org.apache.hadoop.hbase.client"><code>AsyncBufferedMutatorBuilder</code></a> for creating <a href="../../../../../org/apache/hadoop/hbase/client/AsyncBufferedMutator.html" title="interface in org.apache.hadoop.hbase.client"><code>AsyncBufferedMutator</code></a>.</div>
 <dl>
@@ -910,7 +897,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockList">
 <li class="blockList">
 <h4>getBufferedMutatorBuilder</h4>
-<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/AsyncBufferedMutatorBuilder.html" title="interface in org.apache.hadoop.hbase.client">AsyncBufferedMutatorBuilder</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.338">getBufferedMutatorBuilder</a>(<a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tableName,
+<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/AsyncBufferedMutatorBuilder.html" title="interface in org.apache.hadoop.hbase.client">AsyncBufferedMutatorBuilder</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.279">getBufferedMutatorBuilder</a>(<a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tableName,
                                                              <a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ExecutorService.html?is-external=true" title="class or interface in java.util.concurrent">ExecutorService</a>&nbsp;pool)</pre>
 <div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnection.html#getBufferedMutatorBuilder-org.apache.hadoop.hbase.TableName-java.util.concurrent.ExecutorService-">AsyncConnection</a></code></span></div>
 <div class="block">Returns an <a href="../../../../../org/apache/hadoop/hbase/client/AsyncBufferedMutatorBuilder.html" title="interface in org.apache.hadoop.hbase.client"><code>AsyncBufferedMutatorBuilder</code></a> for creating <a href="../../../../../org/apache/hadoop/hbase/client/AsyncBufferedMutator.html" title="interface in org.apache.hadoop.hbase.client"><code>AsyncBufferedMutator</code></a>.</div>
@@ -929,7 +916,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockList">
 <li class="blockList">
 <h4>getHbck</h4>
-<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/Hbck.html" title="interface in org.apache.hadoop.hbase.client">Hbck</a>&gt;&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.345">getHbck</a>()</pre>
+<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/Hbck.html" title="interface in org.apache.hadoop.hbase.client">Hbck</a>&gt;&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.286">getHbck</a>()</pre>
 <div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnection.html#getHbck--">AsyncConnection</a></code></span></div>
 <div class="block">Retrieve an Hbck implementation to fix an HBase cluster. The returned Hbck is not guaranteed to
  be thread-safe. A new instance should be created by each thread. This is a lightweight
@@ -952,7 +939,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockList">
 <li class="blockList">
 <h4>getHbck</h4>
-<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/Hbck.html" title="interface in org.apache.hadoop.hbase.client">Hbck</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.362">getHbck</a>(<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&nbsp;masterServer)
+<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/Hbck.html" title="interface in org.apache.hadoop.hbase.client">Hbck</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.303">getHbck</a>(<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&nbsp;masterServer)
              throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
 <div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnection.html#getHbck-org.apache.hadoop.hbase.ServerName-">AsyncConnection</a></code></span></div>
 <div class="block">Retrieve an Hbck implementation to fix an HBase cluster. The returned Hbck is not guaranteed to
@@ -982,7 +969,7 @@ implements <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectio
 <ul class="blockListLast">
 <li class="blockList">
 <h4>clearRegionLocationCache</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.371">clearRegionLocationCache</a>()</pre>
+<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#line.312">clearRegionLocationCache</a>()</pre>
 <div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnection.html#clearRegionLocationCache--">AsyncConnection</a></code></span></div>
 <div class="block">Clear all the entries in the region location cache, for all the tables.
  <p/>
diff --git a/devapidocs/org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetryingCaller.Callable.html b/devapidocs/org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetryingCaller.Callable.html
index a150a0f..6597dc1 100644
--- a/devapidocs/org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetryingCaller.Callable.html
+++ b/devapidocs/org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetryingCaller.Callable.html
@@ -110,7 +110,7 @@ var activeTableTab = "activeTableTab";
 <hr>
 <br>
 <pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/FunctionalInterface.html?is-external=true" title="class or interface in java.lang">@FunctionalInterface</a>
-public static interface <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetryingCaller.html#line.38">AsyncMasterRequestRpcRetryingCaller.Callable</a>&lt;T&gt;</pre>
+public static interface <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetryingCaller.html#line.40">AsyncMasterRequestRpcRetryingCaller.Callable</a>&lt;T&gt;</pre>
 </li>
 </ul>
 </div>
@@ -155,7 +155,7 @@ public static interface <a href="../../../../../src-html/org/apache/hadoop/hbase
 <ul class="blockListLast">
 <li class="blockList">
 <h4>call</h4>
-<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetryingCaller.Callable.html" title="type parameter in AsyncMasterRequestRpcRetryingCaller.Callable">T</a>&gt;&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetryingCaller.Callab [...]
+<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetryingCaller.Callable.html" title="type parameter in AsyncMasterRequestRpcRetryingCaller.Callable">T</a>&gt;&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetryingCaller.Callab [...]
                           org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService.Interface&nbsp;stub)</pre>
 </li>
 </ul>
diff --git a/devapidocs/org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetryingCaller.html b/devapidocs/org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetryingCaller.html
index 070458c..0798448 100644
--- a/devapidocs/org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetryingCaller.html
+++ b/devapidocs/org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetryingCaller.html
@@ -18,7 +18,7 @@
     catch(err) {
     }
 //-->
-var methods = {"i0":10};
+var methods = {"i0":10,"i1":10};
 var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
 var altColor = "altColor";
 var rowColor = "rowColor";
@@ -115,7 +115,7 @@ var activeTableTab = "activeTableTab";
 <hr>
 <br>
 <pre>@InterfaceAudience.Private
-public class <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetryingCaller.html#line.35">AsyncMasterRequestRpcRetryingCaller</a>&lt;T&gt;
+public class <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetryingCaller.html#line.37">AsyncMasterRequestRpcRetryingCaller</a>&lt;T&gt;
 extends <a href="../../../../../org/apache/hadoop/hbase/client/AsyncRpcRetryingCaller.html" title="class in org.apache.hadoop.hbase.client">AsyncRpcRetryingCaller</a>&lt;T&gt;</pre>
 <div class="block">Retry caller for a request call to master.</div>
 <dl>
@@ -211,6 +211,11 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/AsyncRpcRetryingC
 <th class="colLast" scope="col">Method and Description</th>
 </tr>
 <tr id="i0" class="altColor">
+<td class="colFirst"><code>private void</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetryingCaller.html#clearMasterStubCacheOnError-org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService.Interface-java.lang.Throwable-">clearMasterStubCacheOnError</a></span>(org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService.Interface&nbsp;stub,
+                           <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>&nbsp;error)</code>&nbsp;</td>
+</tr>
+<tr id="i1" class="rowColor">
 <td class="colFirst"><code>protected void</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetryingCaller.html#doCall--">doCall</a></span>()</code>&nbsp;</td>
 </tr>
@@ -249,7 +254,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/AsyncRpcRetryingC
 <ul class="blockListLast">
 <li class="blockList">
 <h4>callable</h4>
-<pre>private final&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetryingCaller.Callable.html" title="interface in org.apache.hadoop.hbase.client">AsyncMasterRequestRpcRetryingCaller.Callable</a>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetryingCaller.html" title="type parameter in AsyncMasterRequestRpcRetryingCaller">T</a>&gt; <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetr [...]
+<pre>private final&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetryingCaller.Callable.html" title="interface in org.apache.hadoop.hbase.client">AsyncMasterRequestRpcRetryingCaller.Callable</a>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetryingCaller.html" title="type parameter in AsyncMasterRequestRpcRetryingCaller">T</a>&gt; <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetr [...]
 </li>
 </ul>
 </li>
@@ -266,7 +271,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/AsyncRpcRetryingC
 <ul class="blockListLast">
 <li class="blockList">
 <h4>AsyncMasterRequestRpcRetryingCaller</h4>
-<pre>public&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetryingCaller.html#line.44">AsyncMasterRequestRpcRetryingCaller</a>(org.apache.hbase.thirdparty.io.netty.util.Timer&nbsp;retryTimer,
+<pre>public&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetryingCaller.html#line.46">AsyncMasterRequestRpcRetryingCaller</a>(org.apache.hbase.thirdparty.io.netty.util.Timer&nbsp;retryTimer,
                                            <a href="../../../../../org/apache/hadoop/hbase/client/AsyncConnectionImpl.html" title="class in org.apache.hadoop.hbase.client">AsyncConnectionImpl</a>&nbsp;conn,
                                            <a href="../../../../../org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetryingCaller.Callable.html" title="interface in org.apache.hadoop.hbase.client">AsyncMasterRequestRpcRetryingCaller.Callable</a>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetryingCaller.html" title="type parameter in AsyncMasterRequestRpcRetryingCaller">T</a>&gt;&nbsp;callable,
                                            int&nbsp;priority,
@@ -285,13 +290,23 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/AsyncRpcRetryingC
 <!--   -->
 </a>
 <h3>Method Detail</h3>
+<a name="clearMasterStubCacheOnError-org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService.Interface-java.lang.Throwable-">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>clearMasterStubCacheOnError</h4>
+<pre>private&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetryingCaller.html#line.54">clearMasterStubCacheOnError</a>(org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService.Interface&nbsp;stub,
+                                         <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>&nbsp;error)</pre>
+</li>
+</ul>
 <a name="doCall--">
 <!--   -->
 </a>
 <ul class="blockListLast">
 <li class="blockList">
 <h4>doCall</h4>
-<pre>protected&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetryingCaller.html#line.53">doCall</a>()</pre>
+<pre>protected&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetryingCaller.html#line.63">doCall</a>()</pre>
 <dl>
 <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
 <dd><code><a href="../../../../../org/apache/hadoop/hbase/client/AsyncRpcRetryingCaller.html#doCall--">doCall</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/client/AsyncRpcRetryingCaller.html" title="class in org.apache.hadoop.hbase.client">AsyncRpcRetryingCaller</a>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetryingCaller.html" title="type parameter in AsyncMasterRequestRpcRetryingCaller">T</a>&gt;</code></dd>
diff --git a/devapidocs/org/apache/hadoop/hbase/client/AsyncMetaRegionLocator.html b/devapidocs/org/apache/hadoop/hbase/client/AsyncMetaRegionLocator.html
index 9350ce0..5242079 100644
--- a/devapidocs/org/apache/hadoop/hbase/client/AsyncMetaRegionLocator.html
+++ b/devapidocs/org/apache/hadoop/hbase/client/AsyncMetaRegionLocator.html
@@ -110,7 +110,7 @@ var activeTableTab = "activeTableTab";
 <hr>
 <br>
 <pre>@InterfaceAudience.Private
-class <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncMetaRegionLocator.html#line.39">AsyncMetaRegionLocator</a>
+class <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncMetaRegionLocator.html#line.36">AsyncMetaRegionLocator</a>
 extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
 <div class="block">The asynchronous locator for meta region.</div>
 </li>
@@ -132,18 +132,14 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <th class="colLast" scope="col">Field and Description</th>
 </tr>
 <tr class="altColor">
-<td class="colFirst"><code>private static org.slf4j.Logger</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/AsyncMetaRegionLocator.html#LOG">LOG</a></span></code>&nbsp;</td>
-</tr>
-<tr class="rowColor">
 <td class="colFirst"><code>private <a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/atomic/AtomicReference.html?is-external=true" title="class or interface in java.util.concurrent.atomic">AtomicReference</a>&lt;<a href="../../../../../org/apache/hadoop/hbase/RegionLocations.html" title="class in org.apache.hadoop.hbase">RegionLocations</a>&gt;</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/AsyncMetaRegionLocator.html#metaRegionLocations">metaRegionLocations</a></span></code>&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><code>private <a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/atomic/AtomicReference.html?is-external=true" title="class or interface in java.util.concurrent.atomic">AtomicReference</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a>&lt;<a href="../../../../../org/apache/hadoop/hbase/RegionLocations.html" [...]
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/AsyncMetaRegionLocator.html#metaRelocateFuture">metaRelocateFuture</a></span></code>&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><code>private <a href="../../../../../org/apache/hadoop/hbase/client/AsyncRegistry.html" title="interface in org.apache.hadoop.hbase.client">AsyncRegistry</a></code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/AsyncMetaRegionLocator.html#registry">registry</a></span></code>&nbsp;</td>
 </tr>
@@ -229,22 +225,13 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <!--   -->
 </a>
 <h3>Field Detail</h3>
-<a name="LOG">
-<!--   -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>LOG</h4>
-<pre>private static final&nbsp;org.slf4j.Logger <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncMetaRegionLocator.html#line.41">LOG</a></pre>
-</li>
-</ul>
 <a name="registry">
 <!--   -->
 </a>
 <ul class="blockList">
 <li class="blockList">
 <h4>registry</h4>
-<pre>private final&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/AsyncRegistry.html" title="interface in org.apache.hadoop.hbase.client">AsyncRegistry</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncMetaRegionLocator.html#line.43">registry</a></pre>
+<pre>private final&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/AsyncRegistry.html" title="interface in org.apache.hadoop.hbase.client">AsyncRegistry</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncMetaRegionLocator.html#line.38">registry</a></pre>
 </li>
 </ul>
 <a name="metaRegionLocations">
@@ -253,7 +240,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>metaRegionLocations</h4>
-<pre>private final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/atomic/AtomicReference.html?is-external=true" title="class or interface in java.util.concurrent.atomic">AtomicReference</a>&lt;<a href="../../../../../org/apache/hadoop/hbase/RegionLocations.html" title="class in org.apache.hadoop.hbase">RegionLocations</a>&gt; <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncMetaRegionLocator.html#line.45">metaRegionLocations</a></pre>
+<pre>private final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/atomic/AtomicReference.html?is-external=true" title="class or interface in java.util.concurrent.atomic">AtomicReference</a>&lt;<a href="../../../../../org/apache/hadoop/hbase/RegionLocations.html" title="class in org.apache.hadoop.hbase">RegionLocations</a>&gt; <a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncMetaRegionLocator.html#line.40">metaRegionLocations</a></pre>
 </li>
 </ul>
 <a name="metaRelocateFuture">
@@ -262,7 +249,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockListLast">
 <li class="blockList">
 <h4>metaRelocateFuture</h4>
-<pre>private final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/atomic/AtomicReference.html?is-external=true" title="class or interface in java.util.concurrent.atomic">AtomicReference</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a>&lt;<a href="../../../../../org/apache/hadoop/hbase/RegionLocations.html" title="cla [...]
+<pre>private final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/atomic/AtomicReference.html?is-external=true" title="class or interface in java.util.concurrent.atomic">AtomicReference</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a>&lt;<a href="../../../../../org/apache/hadoop/hbase/RegionLocations.html" title="cla [...]
 </li>
 </ul>
 </li>
@@ -279,7 +266,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockListLast">
 <li class="blockList">
 <h4>AsyncMetaRegionLocator</h4>
-<pre><a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncMetaRegionLocator.html#line.50">AsyncMetaRegionLocator</a>(<a href="../../../../../org/apache/hadoop/hbase/client/AsyncRegistry.html" title="interface in org.apache.hadoop.hbase.client">AsyncRegistry</a>&nbsp;registry)</pre>
+<pre><a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncMetaRegionLocator.html#line.45">AsyncMetaRegionLocator</a>(<a href="../../../../../org/apache/hadoop/hbase/client/AsyncRegistry.html" title="interface in org.apache.hadoop.hbase.client">AsyncRegistry</a>&nbsp;registry)</pre>
 </li>
 </ul>
 </li>
@@ -296,7 +283,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>getRegionLocations</h4>
-<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a>&lt;<a href="../../../../../org/apache/hadoop/hbase/RegionLocations.html" title="class in org.apache.hadoop.hbase">RegionLocations</a>&gt;&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncMetaRegionLocator.html#line.63">getRegionLocations</a>(int&nbsp;replicaId,
+<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a>&lt;<a href="../../../../../org/apache/hadoop/hbase/RegionLocations.html" title="class in org.apache.hadoop.hbase">RegionLocations</a>&gt;&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncMetaRegionLocator.html#line.58">getRegionLocations</a>(int&nbsp;replicaId,
                                                       boolean&nbsp;reload)</pre>
 <div class="block">Get the region locations for meta region. If the location for the given replica is not
  available in the cached locations, then fetch from the HBase cluster.
@@ -313,7 +300,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>getCacheLocation</h4>
-<pre>private&nbsp;<a href="../../../../../org/apache/hadoop/hbase/HRegionLocation.html" title="class in org.apache.hadoop.hbase">HRegionLocation</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncMetaRegionLocator.html#line.105">getCacheLocation</a>(<a href="../../../../../org/apache/hadoop/hbase/HRegionLocation.html" title="class in org.apache.hadoop.hbase">HRegionLocation</a>&nbsp;loc)</pre>
+<pre>private&nbsp;<a href="../../../../../org/apache/hadoop/hbase/HRegionLocation.html" title="class in org.apache.hadoop.hbase">HRegionLocation</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncMetaRegionLocator.html#line.63">getCacheLocation</a>(<a href="../../../../../org/apache/hadoop/hbase/HRegionLocation.html" title="class in org.apache.hadoop.hbase">HRegionLocation</a>&nbsp;loc)</pre>
 </li>
 </ul>
 <a name="addLocationToCache-org.apache.hadoop.hbase.HRegionLocation-">
@@ -322,7 +309,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>addLocationToCache</h4>
-<pre>private&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncMetaRegionLocator.html#line.110">addLocationToCache</a>(<a href="../../../../../org/apache/hadoop/hbase/HRegionLocation.html" title="class in org.apache.hadoop.hbase">HRegionLocation</a>&nbsp;loc)</pre>
+<pre>private&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncMetaRegionLocator.html#line.68">addLocationToCache</a>(<a href="../../../../../org/apache/hadoop/hbase/HRegionLocation.html" title="class in org.apache.hadoop.hbase">HRegionLocation</a>&nbsp;loc)</pre>
 </li>
 </ul>
 <a name="removeLocationFromCache-org.apache.hadoop.hbase.HRegionLocation-">
@@ -331,7 +318,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>removeLocationFromCache</h4>
-<pre>private&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncMetaRegionLocator.html#line.132">removeLocationFromCache</a>(<a href="../../../../../org/apache/hadoop/hbase/HRegionLocation.html" title="class in org.apache.hadoop.hbase">HRegionLocation</a>&nbsp;loc)</pre>
+<pre>private&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncMetaRegionLocator.html#line.90">removeLocationFromCache</a>(<a href="../../../../../org/apache/hadoop/hbase/HRegionLocation.html" title="class in org.apache.hadoop.hbase">HRegionLocation</a>&nbsp;loc)</pre>
 </li>
 </ul>
 <a name="updateCachedLocationOnError-org.apache.hadoop.hbase.HRegionLocation-java.lang.Throwable-">
@@ -340,7 +327,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>updateCachedLocationOnError</h4>
-<pre>void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncMetaRegionLocator.html#line.149">updateCachedLocationOnError</a>(<a href="../../../../../org/apache/hadoop/hbase/HRegionLocation.html" title="class in org.apache.hadoop.hbase">HRegionLocation</a>&nbsp;loc,
+<pre>void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncMetaRegionLocator.html#line.107">updateCachedLocationOnError</a>(<a href="../../../../../org/apache/hadoop/hbase/HRegionLocation.html" title="class in org.apache.hadoop.hbase">HRegionLocation</a>&nbsp;loc,
                                  <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>&nbsp;exception)</pre>
 </li>
 </ul>
@@ -350,7 +337,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockListLast">
 <li class="blockList">
 <h4>clearCache</h4>
-<pre>void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncMetaRegionLocator.html#line.154">clearCache</a>()</pre>
+<pre>void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/AsyncMetaRegionLocator.html#line.112">clearCache</a>()</pre>
 </li>
 </ul>
 </li>
diff --git a/devapidocs/org/apache/hadoop/hbase/client/ConnectionUtils.MasterlessConnection.html b/devapidocs/org/apache/hadoop/hbase/client/ConnectionUtils.MasterlessConnection.html
index 4b2b329..8af6be8 100644
--- a/devapidocs/org/apache/hadoop/hbase/client/ConnectionUtils.MasterlessConnection.html
+++ b/devapidocs/org/apache/hadoop/hbase/client/ConnectionUtils.MasterlessConnection.html
@@ -122,7 +122,7 @@ var activeTableTab = "activeTableTab";
 </dl>
 <hr>
 <br>
-<pre>static class <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.204">ConnectionUtils.MasterlessConnection</a>
+<pre>static class <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.207">ConnectionUtils.MasterlessConnection</a>
 extends <a href="../../../../../org/apache/hadoop/hbase/client/ConnectionImplementation.html" title="class in org.apache.hadoop.hbase.client">ConnectionImplementation</a></pre>
 <div class="block">Some tests shut down the master. But table availability is a master RPC which is performed on
  region re-lookups.</div>
@@ -253,7 +253,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/ConnectionImpleme
 <ul class="blockListLast">
 <li class="blockList">
 <h4>MasterlessConnection</h4>
-<pre><a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.MasterlessConnection.html#line.205">MasterlessConnection</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
+<pre><a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.MasterlessConnection.html#line.208">MasterlessConnection</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
                      <a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ExecutorService.html?is-external=true" title="class or interface in java.util.concurrent">ExecutorService</a>&nbsp;pool,
                      <a href="../../../../../org/apache/hadoop/hbase/security/User.html" title="class in org.apache.hadoop.hbase.security">User</a>&nbsp;user)
               throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
@@ -277,7 +277,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/ConnectionImpleme
 <ul class="blockListLast">
 <li class="blockList">
 <h4>isTableDisabled</h4>
-<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.MasterlessConnection.html#line.210">isTableDisabled</a>(<a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tableName)
+<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.MasterlessConnection.html#line.213">isTableDisabled</a>(<a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tableName)
                         throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
 <dl>
 <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
diff --git a/devapidocs/org/apache/hadoop/hbase/client/ConnectionUtils.ShortCircuitingClusterConnection.html b/devapidocs/org/apache/hadoop/hbase/client/ConnectionUtils.ShortCircuitingClusterConnection.html
index f04070f..7bcd9b5 100644
--- a/devapidocs/org/apache/hadoop/hbase/client/ConnectionUtils.ShortCircuitingClusterConnection.html
+++ b/devapidocs/org/apache/hadoop/hbase/client/ConnectionUtils.ShortCircuitingClusterConnection.html
@@ -122,7 +122,7 @@ var activeTableTab = "activeTableTab";
 </dl>
 <hr>
 <br>
-<pre>public static class <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.135">ConnectionUtils.ShortCircuitingClusterConnection</a>
+<pre>public static class <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.138">ConnectionUtils.ShortCircuitingClusterConnection</a>
 extends <a href="../../../../../org/apache/hadoop/hbase/client/ConnectionImplementation.html" title="class in org.apache.hadoop.hbase.client">ConnectionImplementation</a></pre>
 <div class="block">A ClusterConnection that will short-circuit RPC making direct invocations against the localhost
  if the invocation target is 'this' server; save on network and protobuf invocations.</div>
@@ -292,7 +292,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/ConnectionImpleme
 <ul class="blockList">
 <li class="blockList">
 <h4>serverName</h4>
-<pre>private final&nbsp;<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.ShortCircuitingClusterConnection.html#line.136">serverName</a></pre>
+<pre>private final&nbsp;<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.ShortCircuitingClusterConnection.html#line.139">serverName</a></pre>
 </li>
 </ul>
 <a name="localHostAdmin">
@@ -301,7 +301,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/ConnectionImpleme
 <ul class="blockList">
 <li class="blockList">
 <h4>localHostAdmin</h4>
-<pre>private final&nbsp;org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.AdminService.BlockingInterface <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.ShortCircuitingClusterConnection.html#line.137">localHostAdmin</a></pre>
+<pre>private final&nbsp;org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.AdminService.BlockingInterface <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.ShortCircuitingClusterConnection.html#line.140">localHostAdmin</a></pre>
 </li>
 </ul>
 <a name="localHostClient">
@@ -310,7 +310,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/ConnectionImpleme
 <ul class="blockListLast">
 <li class="blockList">
 <h4>localHostClient</h4>
-<pre>private final&nbsp;org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.BlockingInterface <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.ShortCircuitingClusterConnection.html#line.138">localHostClient</a></pre>
+<pre>private final&nbsp;org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.BlockingInterface <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.ShortCircuitingClusterConnection.html#line.141">localHostClient</a></pre>
 </li>
 </ul>
 </li>
@@ -327,7 +327,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/ConnectionImpleme
 <ul class="blockListLast">
 <li class="blockList">
 <h4>ShortCircuitingClusterConnection</h4>
-<pre>private&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.ShortCircuitingClusterConnection.html#line.140">ShortCircuitingClusterConnection</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
+<pre>private&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.ShortCircuitingClusterConnection.html#line.143">ShortCircuitingClusterConnection</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
                                          <a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ExecutorService.html?is-external=true" title="class or interface in java.util.concurrent">ExecutorService</a>&nbsp;pool,
                                          <a href="../../../../../org/apache/hadoop/hbase/security/User.html" title="class in org.apache.hadoop.hbase.security">User</a>&nbsp;user,
                                          <a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&nbsp;serverName,
@@ -354,7 +354,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/ConnectionImpleme
 <ul class="blockList">
 <li class="blockList">
 <h4>getAdmin</h4>
-<pre>public&nbsp;org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.AdminService.BlockingInterface&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.ShortCircuitingClusterConnection.html#line.150">getAdmin</a>(<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&nbsp;sn)
+<pre>public&nbsp;org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.AdminService.BlockingInterface&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.ShortCircuitingClusterConnection.html#line.153">getAdmin</a>(<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&nbsp;sn)
                                                                                                       throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
 <div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/client/ClusterConnection.html#getAdmin-org.apache.hadoop.hbase.ServerName-">ClusterConnection</a></code></span></div>
 <div class="block">Establishes a connection to the region server at the specified address.</div>
@@ -378,7 +378,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/ConnectionImpleme
 <ul class="blockList">
 <li class="blockList">
 <h4>getClient</h4>
-<pre>public&nbsp;org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.BlockingInterface&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.ShortCircuitingClusterConnection.html#line.155">getClient</a>(<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&nbsp;sn)
+<pre>public&nbsp;org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.BlockingInterface&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.ShortCircuitingClusterConnection.html#line.158">getClient</a>(<a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&nbsp;sn)
                                                                                                          throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
 <div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/client/ClusterConnection.html#getClient-org.apache.hadoop.hbase.ServerName-">ClusterConnection</a></code></span></div>
 <div class="block">Establishes a connection to the region server at the specified address, and returns
@@ -403,7 +403,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/ConnectionImpleme
 <ul class="blockListLast">
 <li class="blockList">
 <h4>getMaster</h4>
-<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/MasterKeepAliveConnection.html" title="interface in org.apache.hadoop.hbase.client">MasterKeepAliveConnection</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.ShortCircuitingClusterConnection.html#line.160">getMaster</a>()
+<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/MasterKeepAliveConnection.html" title="interface in org.apache.hadoop.hbase.client">MasterKeepAliveConnection</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.ShortCircuitingClusterConnection.html#line.163">getMaster</a>()
                                     throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
 <div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/client/ClusterConnection.html#getMaster--">ClusterConnection</a></code></span></div>
 <div class="block">Returns a <a href="../../../../../org/apache/hadoop/hbase/client/MasterKeepAliveConnection.html" title="interface in org.apache.hadoop.hbase.client"><code>MasterKeepAliveConnection</code></a> to the active master</div>
diff --git a/devapidocs/org/apache/hadoop/hbase/client/ConnectionUtils.html b/devapidocs/org/apache/hadoop/hbase/client/ConnectionUtils.html
index a027fa4..78dfdba 100644
--- a/devapidocs/org/apache/hadoop/hbase/client/ConnectionUtils.html
+++ b/devapidocs/org/apache/hadoop/hbase/client/ConnectionUtils.html
@@ -18,7 +18,7 @@
     catch(err) {
     }
 //-->
-var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":9,"i22":9,"i23":9,"i24":9,"i25":9,"i26":9,"i27":9,"i28":9,"i29":9,"i30":9,"i31":9,"i32":9,"i33":9,"i34":9,"i35":9};
+var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":9,"i22":9,"i23":9,"i24":9,"i25":9,"i26":9,"i27":9,"i28":9,"i29":9,"i30":9,"i31":9,"i32":9,"i33":9,"i34":9,"i35":9,"i36":9};
 var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]};
 var altColor = "altColor";
 var rowColor = "rowColor";
@@ -110,7 +110,7 @@ var activeTableTab = "activeTableTab";
 <hr>
 <br>
 <pre>@InterfaceAudience.Private
-public final class <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.71">ConnectionUtils</a>
+public final class <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.74">ConnectionUtils</a>
 extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
 <div class="block">Utility used by client connections.</div>
 </li>
@@ -283,17 +283,26 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/ConnectionUtils.html#getMyAddress--">getMyAddress</a></span>()</code>&nbsp;</td>
 </tr>
 <tr id="i12" class="altColor">
+<td class="colFirst"><code>(package private) static &lt;T&gt;&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a>&lt;T&gt;</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/ConnectionUtils.html#getOrFetch-java.util.concurrent.atomic.AtomicReference-java.util.concurrent.atomic.AtomicReference-boolean-java.util.function.Supplier-java.util.function.Predicate-java.lang.String-">getOrFetch</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/atomic/AtomicReference.html?is-external=true" title="class or interface in java.util [...]
+          <a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/atomic/AtomicReference.html?is-external=true" title="class or interface in java.util.concurrent.atomic">AtomicReference</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a>&lt;T&gt;&gt;&nbsp;futureRef,
+          boolean&nbsp;reload,
+          <a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Supplier.html?is-external=true" title="class or interface in java.util.function">Supplier</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a>&lt;T&gt;&gt;&nbsp;fetch,
+          <a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Predicate.html?is-external=true" title="class or interface in java.util.function">Predicate</a>&lt;T&gt;&nbsp;validator,
+          <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;type)</code>&nbsp;</td>
+</tr>
+<tr id="i13" class="rowColor">
 <td class="colFirst"><code>static long</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/ConnectionUtils.html#getPauseTime-long-int-">getPauseTime</a></span>(long&nbsp;pause,
             int&nbsp;tries)</code>
 <div class="block">Calculate pause time.</div>
 </td>
 </tr>
-<tr id="i13" class="rowColor">
+<tr id="i14" class="altColor">
 <td class="colFirst"><code>(package private) static int</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/ConnectionUtils.html#getPriority-org.apache.hadoop.hbase.TableName-">getPriority</a></span>(<a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tableName)</code>&nbsp;</td>
 </tr>
-<tr id="i14" class="altColor">
+<tr id="i15" class="rowColor">
 <td class="colFirst"><code>(package private) static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/ConnectionUtils.html#getStubKey-java.lang.String-org.apache.hadoop.hbase.ServerName-boolean-">getStubKey</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;serviceName,
           <a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&nbsp;serverName,
@@ -301,66 +310,66 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <div class="block">Get a unique key for the rpc stub to the given server.</div>
 </td>
 </tr>
-<tr id="i15" class="rowColor">
+<tr id="i16" class="altColor">
 <td class="colFirst"><code>(package private) static void</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/ConnectionUtils.html#incRegionCountMetrics-org.apache.hadoop.hbase.client.metrics.ScanMetrics-">incRegionCountMetrics</a></span>(<a href="../../../../../org/apache/hadoop/hbase/client/metrics/ScanMetrics.html" title="class in org.apache.hadoop.hbase.client.metrics">ScanMetrics</a>&nbsp;scanMetrics)</code>&nbsp;</td>
 </tr>
-<tr id="i16" class="altColor">
+<tr id="i17" class="rowColor">
 <td class="colFirst"><code>(package private) static void</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/ConnectionUtils.html#incRPCCallsMetrics-org.apache.hadoop.hbase.client.metrics.ScanMetrics-boolean-">incRPCCallsMetrics</a></span>(<a href="../../../../../org/apache/hadoop/hbase/client/metrics/ScanMetrics.html" title="class in org.apache.hadoop.hbase.client.metrics">ScanMetrics</a>&nbsp;scanMetrics,
                   boolean&nbsp;isRegionServerRemote)</code>&nbsp;</td>
 </tr>
-<tr id="i17" class="rowColor">
+<tr id="i18" class="altColor">
 <td class="colFirst"><code>(package private) static void</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/ConnectionUtils.html#incRPCRetriesMetrics-org.apache.hadoop.hbase.client.metrics.ScanMetrics-boolean-">incRPCRetriesMetrics</a></span>(<a href="../../../../../org/apache/hadoop/hbase/client/metrics/ScanMetrics.html" title="class in org.apache.hadoop.hbase.client.metrics">ScanMetrics</a>&nbsp;scanMetrics,
                     boolean&nbsp;isRegionServerRemote)</code>&nbsp;</td>
 </tr>
-<tr id="i18" class="altColor">
+<tr id="i19" class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/client/NonceGenerator.html" title="interface in org.apache.hadoop.hbase.client">NonceGenerator</a></code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/ConnectionUtils.html#injectNonceGeneratorForTesting-org.apache.hadoop.hbase.client.ClusterConnection-org.apache.hadoop.hbase.client.NonceGenerator-">injectNonceGeneratorForTesting</a></span>(<a href="../../../../../org/apache/hadoop/hbase/client/ClusterConnection.html" title="interface in org.apache.hadoop.hbase.client">ClusterConnection</a>&nbsp;conn,
                               <a href="../../../../../org/apache/hadoop/hbase/client/NonceGenerator.html" title="interface in org.apache.hadoop.hbase.client">NonceGenerator</a>&nbsp;cnm)</code>&nbsp;</td>
 </tr>
-<tr id="i19" class="rowColor">
+<tr id="i20" class="altColor">
 <td class="colFirst"><code>(package private) static boolean</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/ConnectionUtils.html#isEmptyStartRow-byte:A-">isEmptyStartRow</a></span>(byte[]&nbsp;row)</code>&nbsp;</td>
 </tr>
-<tr id="i20" class="altColor">
+<tr id="i21" class="rowColor">
 <td class="colFirst"><code>(package private) static boolean</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/ConnectionUtils.html#isEmptyStopRow-byte:A-">isEmptyStopRow</a></span>(byte[]&nbsp;row)</code>&nbsp;</td>
 </tr>
-<tr id="i21" class="rowColor">
+<tr id="i22" class="altColor">
 <td class="colFirst"><code>(package private) static boolean</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/ConnectionUtils.html#isRemote-java.lang.String-">isRemote</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;host)</code>&nbsp;</td>
 </tr>
-<tr id="i22" class="altColor">
+<tr id="i23" class="rowColor">
 <td class="colFirst"><code>(package private) static boolean</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/ConnectionUtils.html#noMoreResultsForReverseScan-org.apache.hadoop.hbase.client.Scan-org.apache.hadoop.hbase.client.RegionInfo-">noMoreResultsForReverseScan</a></span>(<a href="../../../../../org/apache/hadoop/hbase/client/Scan.html" title="class in org.apache.hadoop.hbase.client">Scan</a>&nbsp;scan,
                            <a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&nbsp;info)</code>&nbsp;</td>
 </tr>
-<tr id="i23" class="rowColor">
+<tr id="i24" class="altColor">
 <td class="colFirst"><code>(package private) static boolean</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/ConnectionUtils.html#noMoreResultsForScan-org.apache.hadoop.hbase.client.Scan-org.apache.hadoop.hbase.client.RegionInfo-">noMoreResultsForScan</a></span>(<a href="../../../../../org/apache/hadoop/hbase/client/Scan.html" title="class in org.apache.hadoop.hbase.client">Scan</a>&nbsp;scan,
                     <a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&nbsp;info)</code>&nbsp;</td>
 </tr>
-<tr id="i24" class="altColor">
+<tr id="i25" class="rowColor">
 <td class="colFirst"><code>(package private) static void</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/ConnectionUtils.html#resetController-org.apache.hadoop.hbase.ipc.HBaseRpcController-long-int-">resetController</a></span>(<a href="../../../../../org/apache/hadoop/hbase/ipc/HBaseRpcController.html" title="interface in org.apache.hadoop.hbase.ipc">HBaseRpcController</a>&nbsp;controller,
                long&nbsp;timeoutNs,
                int&nbsp;priority)</code>&nbsp;</td>
 </tr>
-<tr id="i25" class="rowColor">
+<tr id="i26" class="altColor">
 <td class="colFirst"><code>(package private) static int</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/ConnectionUtils.html#retries2Attempts-int-">retries2Attempts</a></span>(int&nbsp;retries)</code>
 <div class="block">Return retires + 1.</div>
 </td>
 </tr>
-<tr id="i26" class="altColor">
+<tr id="i27" class="rowColor">
 <td class="colFirst"><code>private static &lt;T&gt;&nbsp;void</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/ConnectionUtils.html#sendRequestsToSecondaryReplicas-java.util.function.Function-org.apache.hadoop.hbase.RegionLocations-java.util.concurrent.CompletableFuture-">sendRequestsToSecondaryReplicas</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Function.html?is-external=true" title="class or interface in java.util.function">Function</a>&lt;<a href="h [...]
                                <a href="../../../../../org/apache/hadoop/hbase/RegionLocations.html" title="class in org.apache.hadoop.hbase">RegionLocations</a>&nbsp;locs,
                                <a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a>&lt;T&gt;&nbsp;future)</code>&nbsp;</td>
 </tr>
-<tr id="i27" class="rowColor">
+<tr id="i28" class="altColor">
 <td class="colFirst"><code>static void</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/ConnectionUtils.html#setServerSideHConnectionRetriesConfig-org.apache.hadoop.conf.Configuration-java.lang.String-org.slf4j.Logger-">setServerSideHConnectionRetriesConfig</a></span>(org.apache.hadoop.conf.Configuration&nbsp;c,
                                      <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;sn,
@@ -369,13 +378,13 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
  e.g.</div>
 </td>
 </tr>
-<tr id="i28" class="altColor">
+<tr id="i29" class="rowColor">
 <td class="colFirst"><code>static void</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/ConnectionUtils.html#setupMasterlessConnection-org.apache.hadoop.conf.Configuration-">setupMasterlessConnection</a></span>(org.apache.hadoop.conf.Configuration&nbsp;conf)</code>
 <div class="block">Setup the connection class, so that it will not depend on master being online.</div>
 </td>
 </tr>
-<tr id="i29" class="rowColor">
+<tr id="i30" class="altColor">
 <td class="colFirst"><code>(package private) static &lt;T&gt;&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a>&lt;T&gt;</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/ConnectionUtils.html#timelineConsistentRead-org.apache.hadoop.hbase.client.AsyncRegionLocator-org.apache.hadoop.hbase.TableName-org.apache.hadoop.hbase.client.Query-byte:A-org.apache.hadoop.hbase.client.RegionLocateType-java.util.function.Function-long-long-org.apache.hbase.thirdparty.io.netty.util.Timer-">timelineConsistentRead</a></span>(<a href="../../../../../org/apache/hadoo [...]
                       <a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tableName,
@@ -387,25 +396,25 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
                       long&nbsp;primaryCallTimeoutNs,
                       org.apache.hbase.thirdparty.io.netty.util.Timer&nbsp;retryTimer)</code>&nbsp;</td>
 </tr>
-<tr id="i30" class="altColor">
+<tr id="i31" class="rowColor">
 <td class="colFirst"><code>(package private) static <a href="../../../../../org/apache/hadoop/hbase/client/Get.html" title="class in org.apache.hadoop.hbase.client">Get</a></code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/ConnectionUtils.html#toCheckExistenceOnly-org.apache.hadoop.hbase.client.Get-">toCheckExistenceOnly</a></span>(<a href="../../../../../org/apache/hadoop/hbase/client/Get.html" title="class in org.apache.hadoop.hbase.client">Get</a>&nbsp;get)</code>&nbsp;</td>
 </tr>
-<tr id="i31" class="rowColor">
+<tr id="i32" class="altColor">
 <td class="colFirst"><code>(package private) static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/Get.html" title="class in org.apache.hadoop.hbase.client">Get</a>&gt;</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/ConnectionUtils.html#toCheckExistenceOnly-java.util.List-">toCheckExistenceOnly</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/Get.html" title="class in org.apache.hadoop.hbase.client">Get</a>&gt;&nbsp;gets)</code>&nbsp;</td>
 </tr>
-<tr id="i32" class="altColor">
+<tr id="i33" class="rowColor">
 <td class="colFirst"><code>(package private) static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a></code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/ConnectionUtils.html#translateException-java.lang.Throwable-">translateException</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>&nbsp;t)</code>&nbsp;</td>
 </tr>
-<tr id="i33" class="rowColor">
+<tr id="i34" class="altColor">
 <td class="colFirst"><code>(package private) static void</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/ConnectionUtils.html#updateResultsMetrics-org.apache.hadoop.hbase.client.metrics.ScanMetrics-org.apache.hadoop.hbase.client.Result:A-boolean-">updateResultsMetrics</a></span>(<a href="../../../../../org/apache/hadoop/hbase/client/metrics/ScanMetrics.html" title="class in org.apache.hadoop.hbase.client.metrics">ScanMetrics</a>&nbsp;scanMetrics,
                     <a href="../../../../../org/apache/hadoop/hbase/client/Result.html" title="class in org.apache.hadoop.hbase.client">Result</a>[]&nbsp;rrs,
                     boolean&nbsp;isRegionServerRemote)</code>&nbsp;</td>
 </tr>
-<tr id="i34" class="altColor">
+<tr id="i35" class="rowColor">
 <td class="colFirst"><code>(package private) static void</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/ConnectionUtils.html#updateServerSideMetrics-org.apache.hadoop.hbase.client.metrics.ScanMetrics-org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ScanResponse-">updateServerSideMetrics</a></span>(<a href="../../../../../org/apache/hadoop/hbase/client/metrics/ScanMetrics.html" title="class in org.apache.hadoop.hbase.client.metrics">ScanMetrics</a>&nbsp;scanMetrics,
                        org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ScanResponse&nbsp;response)</code>
@@ -413,7 +422,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
  client side metrics.</div>
 </td>
 </tr>
-<tr id="i35" class="rowColor">
+<tr id="i36" class="altColor">
 <td class="colFirst"><code>(package private) static void</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/ConnectionUtils.html#validatePut-org.apache.hadoop.hbase.client.Put-int-">validatePut</a></span>(<a href="../../../../../org/apache/hadoop/hbase/client/Put.html" title="class in org.apache.hadoop.hbase.client">Put</a>&nbsp;put,
            int&nbsp;maxKeyValueSize)</code>&nbsp;</td>
@@ -446,7 +455,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>LOG</h4>
-<pre>private static final&nbsp;org.slf4j.Logger <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.73">LOG</a></pre>
+<pre>private static final&nbsp;org.slf4j.Logger <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.76">LOG</a></pre>
 </li>
 </ul>
 <a name="NO_NONCE_GENERATOR">
@@ -455,7 +464,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>NO_NONCE_GENERATOR</h4>
-<pre>static final&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/NonceGenerator.html" title="interface in org.apache.hadoop.hbase.client">NonceGenerator</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.251">NO_NONCE_GENERATOR</a></pre>
+<pre>static final&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/NonceGenerator.html" title="interface in org.apache.hadoop.hbase.client">NonceGenerator</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.254">NO_NONCE_GENERATOR</a></pre>
 <div class="block">Dummy nonce generator for disabled nonces.</div>
 </li>
 </ul>
@@ -465,7 +474,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>MAX_BYTE_ARRAY</h4>
-<pre>static final&nbsp;byte[] <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.266">MAX_BYTE_ARRAY</a></pre>
+<pre>static final&nbsp;byte[] <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.269">MAX_BYTE_ARRAY</a></pre>
 </li>
 </ul>
 <a name="SLEEP_DELTA_NS">
@@ -474,7 +483,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>SLEEP_DELTA_NS</h4>
-<pre>static final&nbsp;long <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.360">SLEEP_DELTA_NS</a></pre>
+<pre>static final&nbsp;long <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.363">SLEEP_DELTA_NS</a></pre>
 </li>
 </ul>
 <a name="MY_ADDRESS">
@@ -483,7 +492,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockListLast">
 <li class="blockList">
 <h4>MY_ADDRESS</h4>
-<pre>private static final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.426">MY_ADDRESS</a></pre>
+<pre>private static final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.429">MY_ADDRESS</a></pre>
 </li>
 </ul>
 </li>
@@ -500,7 +509,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockListLast">
 <li class="blockList">
 <h4>ConnectionUtils</h4>
-<pre>private&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.75">ConnectionUtils</a>()</pre>
+<pre>private&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.78">ConnectionUtils</a>()</pre>
 </li>
 </ul>
 </li>
@@ -517,7 +526,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>getPauseTime</h4>
-<pre>public static&nbsp;long&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.84">getPauseTime</a>(long&nbsp;pause,
+<pre>public static&nbsp;long&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.87">getPauseTime</a>(long&nbsp;pause,
                                 int&nbsp;tries)</pre>
 <div class="block">Calculate pause time. Built on <a href="../../../../../org/apache/hadoop/hbase/HConstants.html#RETRY_BACKOFF"><code>HConstants.RETRY_BACKOFF</code></a>.</div>
 <dl>
@@ -535,7 +544,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>injectNonceGeneratorForTesting</h4>
-<pre>public static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/NonceGenerator.html" title="interface in org.apache.hadoop.hbase.client">NonceGenerator</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.104">injectNonceGeneratorForTesting</a>(<a href="../../../../../org/apache/hadoop/hbase/client/ClusterConnection.html" title="interface in org.apache.hadoop.hbase.client">ClusterConnection</a>&nbsp;conn,
+<pre>public static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/NonceGenerator.html" title="interface in org.apache.hadoop.hbase.client">NonceGenerator</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.107">injectNonceGeneratorForTesting</a>(<a href="../../../../../org/apache/hadoop/hbase/client/ClusterConnection.html" title="interface in org.apache.hadoop.hbase.client">ClusterConnection</a>&nbsp;conn,
                                                             <a href="../../../../../org/apache/hadoop/hbase/client/NonceGenerator.html" title="interface in org.apache.hadoop.hbase.client">NonceGenerator</a>&nbsp;cnm)</pre>
 <dl>
 <dt><span class="paramLabel">Parameters:</span></dt>
@@ -552,7 +561,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>setServerSideHConnectionRetriesConfig</h4>
-<pre>public static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.115">setServerSideHConnectionRetriesConfig</a>(org.apache.hadoop.conf.Configuration&nbsp;c,
+<pre>public static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.118">setServerSideHConnectionRetriesConfig</a>(org.apache.hadoop.conf.Configuration&nbsp;c,
                                                          <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;sn,
                                                          org.slf4j.Logger&nbsp;log)</pre>
 <div class="block">Changes the configuration to set the number of retries needed when using Connection internally,
@@ -570,7 +579,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>createShortCircuitConnection</h4>
-<pre>public static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/ClusterConnection.html" title="interface in org.apache.hadoop.hbase.client">ClusterConnection</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.181">createShortCircuitConnection</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
+<pre>public static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/ClusterConnection.html" title="interface in org.apache.hadoop.hbase.client">ClusterConnection</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.184">createShortCircuitConnection</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
                                                              <a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ExecutorService.html?is-external=true" title="class or interface in java.util.concurrent">ExecutorService</a>&nbsp;pool,
                                                              <a href="../../../../../org/apache/hadoop/hbase/security/User.html" title="class in org.apache.hadoop.hbase.security">User</a>&nbsp;user,
                                                              <a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&nbsp;serverName,
@@ -600,7 +609,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>setupMasterlessConnection</h4>
-<pre>public static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.196">setupMasterlessConnection</a>(org.apache.hadoop.conf.Configuration&nbsp;conf)</pre>
+<pre>public static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.199">setupMasterlessConnection</a>(org.apache.hadoop.conf.Configuration&nbsp;conf)</pre>
 <div class="block">Setup the connection class, so that it will not depend on master being online. Used for testing</div>
 <dl>
 <dt><span class="paramLabel">Parameters:</span></dt>
@@ -614,7 +623,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>retries2Attempts</h4>
-<pre>static&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.219">retries2Attempts</a>(int&nbsp;retries)</pre>
+<pre>static&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.222">retries2Attempts</a>(int&nbsp;retries)</pre>
 <div class="block">Return retires + 1. The returned value will be in range [1, Integer.MAX_VALUE].</div>
 </li>
 </ul>
@@ -624,7 +633,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>getStubKey</h4>
-<pre>static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.226">getStubKey</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;serviceName,
+<pre>static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.229">getStubKey</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;serviceName,
                          <a href="../../../../../org/apache/hadoop/hbase/ServerName.html" title="class in org.apache.hadoop.hbase">ServerName</a>&nbsp;serverName,
                          boolean&nbsp;hostnameCanChange)</pre>
 <div class="block">Get a unique key for the rpc stub to the given server.</div>
@@ -636,7 +645,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>checkHasFamilies</h4>
-<pre>static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.245">checkHasFamilies</a>(<a href="../../../../../org/apache/hadoop/hbase/client/Mutation.html" title="class in org.apache.hadoop.hbase.client">Mutation</a>&nbsp;mutation)</pre>
+<pre>static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.248">checkHasFamilies</a>(<a href="../../../../../org/apache/hadoop/hbase/client/Mutation.html" title="class in org.apache.hadoop.hbase.client">Mutation</a>&nbsp;mutation)</pre>
 </li>
 </ul>
 <a name="createClosestRowAfter-byte:A-">
@@ -645,7 +654,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>createClosestRowAfter</h4>
-<pre>static&nbsp;byte[]&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.271">createClosestRowAfter</a>(byte[]&nbsp;row)</pre>
+<pre>static&nbsp;byte[]&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.274">createClosestRowAfter</a>(byte[]&nbsp;row)</pre>
 <div class="block">Create the closest row after the specified row</div>
 </li>
 </ul>
@@ -655,7 +664,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>createCloseRowBefore</h4>
-<pre>static&nbsp;byte[]&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.278">createCloseRowBefore</a>(byte[]&nbsp;row)</pre>
+<pre>static&nbsp;byte[]&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.281">createCloseRowBefore</a>(byte[]&nbsp;row)</pre>
 <div class="block">Create a row before the specified row and very close to the specified row.</div>
 </li>
 </ul>
@@ -665,7 +674,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>isEmptyStartRow</h4>
-<pre>static&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.293">isEmptyStartRow</a>(byte[]&nbsp;row)</pre>
+<pre>static&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.296">isEmptyStartRow</a>(byte[]&nbsp;row)</pre>
 </li>
 </ul>
 <a name="isEmptyStopRow-byte:A-">
@@ -674,7 +683,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>isEmptyStopRow</h4>
-<pre>static&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.297">isEmptyStopRow</a>(byte[]&nbsp;row)</pre>
+<pre>static&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.300">isEmptyStopRow</a>(byte[]&nbsp;row)</pre>
 </li>
 </ul>
 <a name="resetController-org.apache.hadoop.hbase.ipc.HBaseRpcController-long-int-">
@@ -683,7 +692,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>resetController</h4>
-<pre>static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.301">resetController</a>(<a href="../../../../../org/apache/hadoop/hbase/ipc/HBaseRpcController.html" title="interface in org.apache.hadoop.hbase.ipc">HBaseRpcController</a>&nbsp;controller,
+<pre>static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.304">resetController</a>(<a href="../../../../../org/apache/hadoop/hbase/ipc/HBaseRpcController.html" title="interface in org.apache.hadoop.hbase.ipc">HBaseRpcController</a>&nbsp;controller,
                             long&nbsp;timeoutNs,
                             int&nbsp;priority)</pre>
 </li>
@@ -694,7 +703,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>translateException</h4>
-<pre>static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.310">translateException</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>&nbsp;t)</pre>
+<pre>static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.313">translateException</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>&nbsp;t)</pre>
 </li>
 </ul>
 <a name="calcEstimatedSize-org.apache.hadoop.hbase.client.Result-">
@@ -703,7 +712,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>calcEstimatedSize</h4>
-<pre>static&nbsp;long&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.323">calcEstimatedSize</a>(<a href="../../../../../org/apache/hadoop/hbase/client/Result.html" title="class in org.apache.hadoop.hbase.client">Result</a>&nbsp;rs)</pre>
+<pre>static&nbsp;long&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.326">calcEstimatedSize</a>(<a href="../../../../../org/apache/hadoop/hbase/client/Result.html" title="class in org.apache.hadoop.hbase.client">Result</a>&nbsp;rs)</pre>
 </li>
 </ul>
 <a name="filterCells-org.apache.hadoop.hbase.client.Result-org.apache.hadoop.hbase.Cell-">
@@ -712,7 +721,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>filterCells</h4>
-<pre>static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/Result.html" title="class in org.apache.hadoop.hbase.client">Result</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.332">filterCells</a>(<a href="../../../../../org/apache/hadoop/hbase/client/Result.html" title="class in org.apache.hadoop.hbase.client">Result</a>&nbsp;result,
+<pre>static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/Result.html" title="class in org.apache.hadoop.hbase.client">Result</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.335">filterCells</a>(<a href="../../../../../org/apache/hadoop/hbase/client/Result.html" title="class in org.apache.hadoop.hbase.client">Result</a>&nbsp;result,
                           <a href="../../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a>&nbsp;keepCellsAfter)</pre>
 </li>
 </ul>
@@ -722,7 +731,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>toCheckExistenceOnly</h4>
-<pre>static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/Get.html" title="class in org.apache.hadoop.hbase.client">Get</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.362">toCheckExistenceOnly</a>(<a href="../../../../../org/apache/hadoop/hbase/client/Get.html" title="class in org.apache.hadoop.hbase.client">Get</a>&nbsp;get)</pre>
+<pre>static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/Get.html" title="class in org.apache.hadoop.hbase.client">Get</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.365">toCheckExistenceOnly</a>(<a href="../../../../../org/apache/hadoop/hbase/client/Get.html" title="class in org.apache.hadoop.hbase.client">Get</a>&nbsp;get)</pre>
 </li>
 </ul>
 <a name="toCheckExistenceOnly-java.util.List-">
@@ -731,7 +740,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>toCheckExistenceOnly</h4>
-<pre>static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/Get.html" title="class in org.apache.hadoop.hbase.client">Get</a>&gt;&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.369">toCheckExistenceOnly</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=t [...]
+<pre>static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../org/apache/hadoop/hbase/client/Get.html" title="class in org.apache.hadoop.hbase.client">Get</a>&gt;&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.372">toCheckExistenceOnly</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=t [...]
 </li>
 </ul>
 <a name="getLocateType-org.apache.hadoop.hbase.client.Scan-">
@@ -740,7 +749,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>getLocateType</h4>
-<pre>static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/RegionLocateType.html" title="enum in org.apache.hadoop.hbase.client">RegionLocateType</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.373">getLocateType</a>(<a href="../../../../../org/apache/hadoop/hbase/client/Scan.html" title="class in org.apache.hadoop.hbase.client">Scan</a>&nbsp;scan)</pre>
+<pre>static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/RegionLocateType.html" title="enum in org.apache.hadoop.hbase.client">RegionLocateType</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.376">getLocateType</a>(<a href="../../../../../org/apache/hadoop/hbase/client/Scan.html" title="class in org.apache.hadoop.hbase.client">Scan</a>&nbsp;scan)</pre>
 </li>
 </ul>
 <a name="noMoreResultsForScan-org.apache.hadoop.hbase.client.Scan-org.apache.hadoop.hbase.client.RegionInfo-">
@@ -749,7 +758,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>noMoreResultsForScan</h4>
-<pre>static&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.385">noMoreResultsForScan</a>(<a href="../../../../../org/apache/hadoop/hbase/client/Scan.html" title="class in org.apache.hadoop.hbase.client">Scan</a>&nbsp;scan,
+<pre>static&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.388">noMoreResultsForScan</a>(<a href="../../../../../org/apache/hadoop/hbase/client/Scan.html" title="class in org.apache.hadoop.hbase.client">Scan</a>&nbsp;scan,
                                     <a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&nbsp;info)</pre>
 </li>
 </ul>
@@ -759,7 +768,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>noMoreResultsForReverseScan</h4>
-<pre>static&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.399">noMoreResultsForReverseScan</a>(<a href="../../../../../org/apache/hadoop/hbase/client/Scan.html" title="class in org.apache.hadoop.hbase.client">Scan</a>&nbsp;scan,
+<pre>static&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.402">noMoreResultsForReverseScan</a>(<a href="../../../../../org/apache/hadoop/hbase/client/Scan.html" title="class in org.apache.hadoop.hbase.client">Scan</a>&nbsp;scan,
                                            <a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&nbsp;info)</pre>
 </li>
 </ul>
@@ -769,7 +778,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>allOf</h4>
-<pre>static&nbsp;&lt;T&gt;&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;T&gt;&gt;&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.411">allOf</a>(<a href="h [...]
+<pre>static&nbsp;&lt;T&gt;&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;T&gt;&gt;&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.414">allOf</a>(<a href="h [...]
 </li>
 </ul>
 <a name="createScanResultCache-org.apache.hadoop.hbase.client.Scan-">
@@ -778,7 +787,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>createScanResultCache</h4>
-<pre>public static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/ScanResultCache.html" title="interface in org.apache.hadoop.hbase.client">ScanResultCache</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.416">createScanResultCache</a>(<a href="../../../../../org/apache/hadoop/hbase/client/Scan.html" title="class in org.apache.hadoop.hbase.client">Scan</a>&nbsp;scan)</pre>
+<pre>public static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/ScanResultCache.html" title="interface in org.apache.hadoop.hbase.client">ScanResultCache</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.419">createScanResultCache</a>(<a href="../../../../../org/apache/hadoop/hbase/client/Scan.html" title="class in org.apache.hadoop.hbase.client">Scan</a>&nbsp;scan)</pre>
 </li>
 </ul>
 <a name="getMyAddress--">
@@ -787,7 +796,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>getMyAddress</h4>
-<pre>private static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.428">getMyAddress</a>()</pre>
+<pre>private static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.431">getMyAddress</a>()</pre>
 </li>
 </ul>
 <a name="isRemote-java.lang.String-">
@@ -796,7 +805,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>isRemote</h4>
-<pre>static&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.437">isRemote</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;host)</pre>
+<pre>static&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.440">isRemote</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;host)</pre>
 </li>
 </ul>
 <a name="incRPCCallsMetrics-org.apache.hadoop.hbase.client.metrics.ScanMetrics-boolean-">
@@ -805,7 +814,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>incRPCCallsMetrics</h4>
-<pre>static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.441">incRPCCallsMetrics</a>(<a href="../../../../../org/apache/hadoop/hbase/client/metrics/ScanMetrics.html" title="class in org.apache.hadoop.hbase.client.metrics">ScanMetrics</a>&nbsp;scanMetrics,
+<pre>static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.444">incRPCCallsMetrics</a>(<a href="../../../../../org/apache/hadoop/hbase/client/metrics/ScanMetrics.html" title="class in org.apache.hadoop.hbase.client.metrics">ScanMetrics</a>&nbsp;scanMetrics,
                                boolean&nbsp;isRegionServerRemote)</pre>
 </li>
 </ul>
@@ -815,7 +824,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>incRPCRetriesMetrics</h4>
-<pre>static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.451">incRPCRetriesMetrics</a>(<a href="../../../../../org/apache/hadoop/hbase/client/metrics/ScanMetrics.html" title="class in org.apache.hadoop.hbase.client.metrics">ScanMetrics</a>&nbsp;scanMetrics,
+<pre>static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.454">incRPCRetriesMetrics</a>(<a href="../../../../../org/apache/hadoop/hbase/client/metrics/ScanMetrics.html" title="class in org.apache.hadoop.hbase.client.metrics">ScanMetrics</a>&nbsp;scanMetrics,
                                  boolean&nbsp;isRegionServerRemote)</pre>
 </li>
 </ul>
@@ -825,7 +834,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>updateResultsMetrics</h4>
-<pre>static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.461">updateResultsMetrics</a>(<a href="../../../../../org/apache/hadoop/hbase/client/metrics/ScanMetrics.html" title="class in org.apache.hadoop.hbase.client.metrics">ScanMetrics</a>&nbsp;scanMetrics,
+<pre>static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.464">updateResultsMetrics</a>(<a href="../../../../../org/apache/hadoop/hbase/client/metrics/ScanMetrics.html" title="class in org.apache.hadoop.hbase.client.metrics">ScanMetrics</a>&nbsp;scanMetrics,
                                  <a href="../../../../../org/apache/hadoop/hbase/client/Result.html" title="class in org.apache.hadoop.hbase.client">Result</a>[]&nbsp;rrs,
                                  boolean&nbsp;isRegionServerRemote)</pre>
 </li>
@@ -836,7 +845,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>updateServerSideMetrics</h4>
-<pre>static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.483">updateServerSideMetrics</a>(<a href="../../../../../org/apache/hadoop/hbase/client/metrics/ScanMetrics.html" title="class in org.apache.hadoop.hbase.client.metrics">ScanMetrics</a>&nbsp;scanMetrics,
+<pre>static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.486">updateServerSideMetrics</a>(<a href="../../../../../org/apache/hadoop/hbase/client/metrics/ScanMetrics.html" title="class in org.apache.hadoop.hbase.client.metrics">ScanMetrics</a>&nbsp;scanMetrics,
                                     org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ScanResponse&nbsp;response)</pre>
 <div class="block">Use the scan metrics returned by the server to add to the identically named counters in the
  client side metrics. If a counter does not exist with the same name as the server side metric,
@@ -849,7 +858,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>incRegionCountMetrics</h4>
-<pre>static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.490">incRegionCountMetrics</a>(<a href="../../../../../org/apache/hadoop/hbase/client/metrics/ScanMetrics.html" title="class in org.apache.hadoop.hbase.client.metrics">ScanMetrics</a>&nbsp;scanMetrics)</pre>
+<pre>static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.493">incRegionCountMetrics</a>(<a href="../../../../../org/apache/hadoop/hbase/client/metrics/ScanMetrics.html" title="class in org.apache.hadoop.hbase.client.metrics">ScanMetrics</a>&nbsp;scanMetrics)</pre>
 </li>
 </ul>
 <a name="connect-java.util.concurrent.CompletableFuture-java.util.concurrent.CompletableFuture-">
@@ -858,7 +867,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>connect</h4>
-<pre>private static&nbsp;&lt;T&gt;&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.501">connect</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a>&lt;T&gt;&nbsp;srcFuture,
+<pre>private static&nbsp;&lt;T&gt;&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.504">connect</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a>&lt;T&gt;&nbsp;srcFuture,
                                 <a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a>&lt;T&gt;&nbsp;dstFuture)</pre>
 <div class="block">Connect the two futures, if the src future is done, then mark the dst future as done. And if
  the dst future is done, then cancel the src future. This is used for timeline consistent read.</div>
@@ -870,7 +879,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>sendRequestsToSecondaryReplicas</h4>
-<pre>private static&nbsp;&lt;T&gt;&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.517">sendRequestsToSecondaryReplicas</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Function.html?is-external=true" title="class or interface in java.util.function">Function</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>, [...]
+<pre>private static&nbsp;&lt;T&gt;&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.520">sendRequestsToSecondaryReplicas</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Function.html?is-external=true" title="class or interface in java.util.function">Function</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>, [...]
                                                         <a href="../../../../../org/apache/hadoop/hbase/RegionLocations.html" title="class in org.apache.hadoop.hbase">RegionLocations</a>&nbsp;locs,
                                                         <a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a>&lt;T&gt;&nbsp;future)</pre>
 </li>
@@ -881,7 +890,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>timelineConsistentRead</h4>
-<pre>static&nbsp;&lt;T&gt;&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a>&lt;T&gt;&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.531">timelineConsistentRead</a>(<a href="../../../../../org/apache/hadoop/hbase/client/AsyncRegionLocator.html" title="class in org.apache.hadoop.hbase.client">AsyncRegio [...]
+<pre>static&nbsp;&lt;T&gt;&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a>&lt;T&gt;&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.534">timelineConsistentRead</a>(<a href="../../../../../org/apache/hadoop/hbase/client/AsyncRegionLocator.html" title="class in org.apache.hadoop.hbase.client">AsyncRegio [...]
                                                        <a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tableName,
                                                        <a href="../../../../../org/apache/hadoop/hbase/client/Query.html" title="class in org.apache.hadoop.hbase.client">Query</a>&nbsp;query,
                                                        byte[]&nbsp;row,
@@ -898,7 +907,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>validatePut</h4>
-<pre>static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.578">validatePut</a>(<a href="../../../../../org/apache/hadoop/hbase/client/Put.html" title="class in org.apache.hadoop.hbase.client">Put</a>&nbsp;put,
+<pre>static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.581">validatePut</a>(<a href="../../../../../org/apache/hadoop/hbase/client/Put.html" title="class in org.apache.hadoop.hbase.client">Put</a>&nbsp;put,
                         int&nbsp;maxKeyValueSize)
                  throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></pre>
 <dl>
@@ -913,7 +922,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>calcPriority</h4>
-<pre>static&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.605">calcPriority</a>(int&nbsp;priority,
+<pre>static&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.608">calcPriority</a>(int&nbsp;priority,
                         <a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tableName)</pre>
 <div class="block">Select the priority for the rpc call.
  <p/>
@@ -933,10 +942,24 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <a name="getPriority-org.apache.hadoop.hbase.TableName-">
 <!--   -->
 </a>
-<ul class="blockListLast">
+<ul class="blockList">
 <li class="blockList">
 <h4>getPriority</h4>
-<pre>static&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.613">getPriority</a>(<a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tableName)</pre>
+<pre>static&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.616">getPriority</a>(<a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tableName)</pre>
+</li>
+</ul>
+<a name="getOrFetch-java.util.concurrent.atomic.AtomicReference-java.util.concurrent.atomic.AtomicReference-boolean-java.util.function.Supplier-java.util.function.Predicate-java.lang.String-">
+<!--   -->
+</a>
+<ul class="blockListLast">
+<li class="blockList">
+<h4>getOrFetch</h4>
+<pre>static&nbsp;&lt;T&gt;&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a>&lt;T&gt;&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html#line.624">getOrFetch</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/atomic/AtomicReference.html?is-external=true" title="class or interface in jav [...]
+                                           <a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/atomic/AtomicReference.html?is-external=true" title="class or interface in java.util.concurrent.atomic">AtomicReference</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a>&lt;T&gt;&gt;&nbsp;futureRef,
+                                           boolean&nbsp;reload,
+                                           <a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Supplier.html?is-external=true" title="class or interface in java.util.function">Supplier</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html?is-external=true" title="class or interface in java.util.concurrent">CompletableFuture</a>&lt;T&gt;&gt;&nbsp;fetch,
+                                           <a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Predicate.html?is-external=true" title="class or interface in java.util.function">Predicate</a>&lt;T&gt;&nbsp;validator,
+                                           <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;type)</pre>
 </li>
 </ul>
 </li>
diff --git a/devapidocs/org/apache/hadoop/hbase/ipc/class-use/HBaseRpcController.html b/devapidocs/org/apache/hadoop/hbase/ipc/class-use/HBaseRpcController.html
index 2904cbe..d83fa57 100644
--- a/devapidocs/org/apache/hadoop/hbase/ipc/class-use/HBaseRpcController.html
+++ b/devapidocs/org/apache/hadoop/hbase/ipc/class-use/HBaseRpcController.html
@@ -159,10 +159,6 @@
 <td class="colFirst"><code>(package private) <a href="../../../../../../org/apache/hadoop/hbase/ipc/HBaseRpcController.html" title="interface in org.apache.hadoop.hbase.ipc">HBaseRpcController</a></code></td>
 <td class="colLast"><span class="typeNameLabel">MasterCallable.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/client/MasterCallable.html#getRpcController--">getRpcController</a></span>()</code>&nbsp;</td>
 </tr>
-<tr class="altColor">
-<td class="colFirst"><code>private <a href="../../../../../../org/apache/hadoop/hbase/ipc/HBaseRpcController.html" title="interface in org.apache.hadoop.hbase.ipc">HBaseRpcController</a></code></td>
-<td class="colLast"><span class="typeNameLabel">AsyncConnectionImpl.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/client/AsyncConnectionImpl.html#getRpcController--">getRpcController</a></span>()</code>&nbsp;</td>
-</tr>
 </tbody>
 </table>
 <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/Version.html b/devapidocs/src-html/org/apache/hadoop/hbase/Version.html
index cabe306..8e37676 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/Version.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/Version.html
@@ -18,9 +18,9 @@
 <span class="sourceLineNo">010</span>  public static final String version = "3.0.0-SNAPSHOT";<a name="line.10"></a>
 <span class="sourceLineNo">011</span>  public static final String revision = "Unknown";<a name="line.11"></a>
 <span class="sourceLineNo">012</span>  public static final String user = "jenkins";<a name="line.12"></a>
-<span class="sourceLineNo">013</span>  public static final String date = "Sat Mar 30 14:35:15 UTC 2019";<a name="line.13"></a>
+<span class="sourceLineNo">013</span>  public static final String date = "Mon Apr  1 14:35:31 UTC 2019";<a name="line.13"></a>
 <span class="sourceLineNo">014</span>  public static final String url = "file:///home/jenkins/jenkins-slave/workspace/hbase_generate_website/hbase";<a name="line.14"></a>
-<span class="sourceLineNo">015</span>  public static final String srcChecksum = "67350738fb7e273b10530602955854d4";<a name="line.15"></a>
+<span class="sourceLineNo">015</span>  public static final String srcChecksum = "44959282d72a3df35bb192fdd832efd4";<a name="line.15"></a>
 <span class="sourceLineNo">016</span>}<a name="line.16"></a>
 
 
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html b/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html
index 8fdade1..61f6799 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncConnectionImpl.html
@@ -44,342 +44,283 @@
 <span class="sourceLineNo">036</span>import org.apache.hadoop.hbase.MasterNotRunningException;<a name="line.36"></a>
 <span class="sourceLineNo">037</span>import org.apache.hadoop.hbase.ServerName;<a name="line.37"></a>
 <span class="sourceLineNo">038</span>import org.apache.hadoop.hbase.TableName;<a name="line.38"></a>
-<span class="sourceLineNo">039</span>import org.apache.hadoop.hbase.ipc.HBaseRpcController;<a name="line.39"></a>
-<span class="sourceLineNo">040</span>import org.apache.hadoop.hbase.ipc.RpcClient;<a name="line.40"></a>
-<span class="sourceLineNo">041</span>import org.apache.hadoop.hbase.ipc.RpcClientFactory;<a name="line.41"></a>
-<span class="sourceLineNo">042</span>import org.apache.hadoop.hbase.ipc.RpcControllerFactory;<a name="line.42"></a>
-<span class="sourceLineNo">043</span>import org.apache.hadoop.hbase.security.User;<a name="line.43"></a>
-<span class="sourceLineNo">044</span>import org.apache.hadoop.hbase.util.ConcurrentMapUtils;<a name="line.44"></a>
-<span class="sourceLineNo">045</span>import org.apache.hadoop.hbase.util.Threads;<a name="line.45"></a>
-<span class="sourceLineNo">046</span>import org.apache.hadoop.security.UserGroupInformation;<a name="line.46"></a>
-<span class="sourceLineNo">047</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.47"></a>
-<span class="sourceLineNo">048</span>import org.slf4j.Logger;<a name="line.48"></a>
-<span class="sourceLineNo">049</span>import org.slf4j.LoggerFactory;<a name="line.49"></a>
-<span class="sourceLineNo">050</span><a name="line.50"></a>
-<span class="sourceLineNo">051</span>import org.apache.hbase.thirdparty.com.google.common.annotations.VisibleForTesting;<a name="line.51"></a>
-<span class="sourceLineNo">052</span>import org.apache.hbase.thirdparty.com.google.protobuf.RpcCallback;<a name="line.52"></a>
-<span class="sourceLineNo">053</span>import org.apache.hbase.thirdparty.io.netty.util.HashedWheelTimer;<a name="line.53"></a>
-<span class="sourceLineNo">054</span><a name="line.54"></a>
-<span class="sourceLineNo">055</span>import org.apache.hadoop.hbase.shaded.protobuf.RequestConverter;<a name="line.55"></a>
-<span class="sourceLineNo">056</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.AdminService;<a name="line.56"></a>
-<span class="sourceLineNo">057</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService;<a name="line.57"></a>
-<span class="sourceLineNo">058</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos;<a name="line.58"></a>
-<span class="sourceLineNo">059</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.IsMasterRunningResponse;<a name="line.59"></a>
-<span class="sourceLineNo">060</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService;<a name="line.60"></a>
-<span class="sourceLineNo">061</span><a name="line.61"></a>
-<span class="sourceLineNo">062</span>/**<a name="line.62"></a>
-<span class="sourceLineNo">063</span> * The implementation of AsyncConnection.<a name="line.63"></a>
-<span class="sourceLineNo">064</span> */<a name="line.64"></a>
-<span class="sourceLineNo">065</span>@InterfaceAudience.Private<a name="line.65"></a>
-<span class="sourceLineNo">066</span>class AsyncConnectionImpl implements AsyncConnection {<a name="line.66"></a>
-<span class="sourceLineNo">067</span><a name="line.67"></a>
-<span class="sourceLineNo">068</span>  private static final Logger LOG = LoggerFactory.getLogger(AsyncConnectionImpl.class);<a name="line.68"></a>
+<span class="sourceLineNo">039</span>import org.apache.hadoop.hbase.ipc.RpcClient;<a name="line.39"></a>
+<span class="sourceLineNo">040</span>import org.apache.hadoop.hbase.ipc.RpcClientFactory;<a name="line.40"></a>
+<span class="sourceLineNo">041</span>import org.apache.hadoop.hbase.ipc.RpcControllerFactory;<a name="line.41"></a>
+<span class="sourceLineNo">042</span>import org.apache.hadoop.hbase.security.User;<a name="line.42"></a>
+<span class="sourceLineNo">043</span>import org.apache.hadoop.hbase.util.ConcurrentMapUtils;<a name="line.43"></a>
+<span class="sourceLineNo">044</span>import org.apache.hadoop.hbase.util.Threads;<a name="line.44"></a>
+<span class="sourceLineNo">045</span>import org.apache.hadoop.security.UserGroupInformation;<a name="line.45"></a>
+<span class="sourceLineNo">046</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.46"></a>
+<span class="sourceLineNo">047</span>import org.slf4j.Logger;<a name="line.47"></a>
+<span class="sourceLineNo">048</span>import org.slf4j.LoggerFactory;<a name="line.48"></a>
+<span class="sourceLineNo">049</span><a name="line.49"></a>
+<span class="sourceLineNo">050</span>import org.apache.hbase.thirdparty.com.google.common.annotations.VisibleForTesting;<a name="line.50"></a>
+<span class="sourceLineNo">051</span>import org.apache.hbase.thirdparty.io.netty.util.HashedWheelTimer;<a name="line.51"></a>
+<span class="sourceLineNo">052</span><a name="line.52"></a>
+<span class="sourceLineNo">053</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.AdminService;<a name="line.53"></a>
+<span class="sourceLineNo">054</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService;<a name="line.54"></a>
+<span class="sourceLineNo">055</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos;<a name="line.55"></a>
+<span class="sourceLineNo">056</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService;<a name="line.56"></a>
+<span class="sourceLineNo">057</span><a name="line.57"></a>
+<span class="sourceLineNo">058</span>/**<a name="line.58"></a>
+<span class="sourceLineNo">059</span> * The implementation of AsyncConnection.<a name="line.59"></a>
+<span class="sourceLineNo">060</span> */<a name="line.60"></a>
+<span class="sourceLineNo">061</span>@InterfaceAudience.Private<a name="line.61"></a>
+<span class="sourceLineNo">062</span>class AsyncConnectionImpl implements AsyncConnection {<a name="line.62"></a>
+<span class="sourceLineNo">063</span><a name="line.63"></a>
+<span class="sourceLineNo">064</span>  private static final Logger LOG = LoggerFactory.getLogger(AsyncConnectionImpl.class);<a name="line.64"></a>
+<span class="sourceLineNo">065</span><a name="line.65"></a>
+<span class="sourceLineNo">066</span>  @VisibleForTesting<a name="line.66"></a>
+<span class="sourceLineNo">067</span>  static final HashedWheelTimer RETRY_TIMER = new HashedWheelTimer(<a name="line.67"></a>
+<span class="sourceLineNo">068</span>    Threads.newDaemonThreadFactory("Async-Client-Retry-Timer"), 10, TimeUnit.MILLISECONDS);<a name="line.68"></a>
 <span class="sourceLineNo">069</span><a name="line.69"></a>
-<span class="sourceLineNo">070</span>  @VisibleForTesting<a name="line.70"></a>
-<span class="sourceLineNo">071</span>  static final HashedWheelTimer RETRY_TIMER = new HashedWheelTimer(<a name="line.71"></a>
-<span class="sourceLineNo">072</span>    Threads.newDaemonThreadFactory("Async-Client-Retry-Timer"), 10, TimeUnit.MILLISECONDS);<a name="line.72"></a>
+<span class="sourceLineNo">070</span>  private static final String RESOLVE_HOSTNAME_ON_FAIL_KEY = "hbase.resolve.hostnames.on.failure";<a name="line.70"></a>
+<span class="sourceLineNo">071</span><a name="line.71"></a>
+<span class="sourceLineNo">072</span>  private final Configuration conf;<a name="line.72"></a>
 <span class="sourceLineNo">073</span><a name="line.73"></a>
-<span class="sourceLineNo">074</span>  private static final String RESOLVE_HOSTNAME_ON_FAIL_KEY = "hbase.resolve.hostnames.on.failure";<a name="line.74"></a>
+<span class="sourceLineNo">074</span>  final AsyncConnectionConfiguration connConf;<a name="line.74"></a>
 <span class="sourceLineNo">075</span><a name="line.75"></a>
-<span class="sourceLineNo">076</span>  private final Configuration conf;<a name="line.76"></a>
+<span class="sourceLineNo">076</span>  private final User user;<a name="line.76"></a>
 <span class="sourceLineNo">077</span><a name="line.77"></a>
-<span class="sourceLineNo">078</span>  final AsyncConnectionConfiguration connConf;<a name="line.78"></a>
+<span class="sourceLineNo">078</span>  final AsyncRegistry registry;<a name="line.78"></a>
 <span class="sourceLineNo">079</span><a name="line.79"></a>
-<span class="sourceLineNo">080</span>  private final User user;<a name="line.80"></a>
+<span class="sourceLineNo">080</span>  private final int rpcTimeout;<a name="line.80"></a>
 <span class="sourceLineNo">081</span><a name="line.81"></a>
-<span class="sourceLineNo">082</span>  final AsyncRegistry registry;<a name="line.82"></a>
+<span class="sourceLineNo">082</span>  private final RpcClient rpcClient;<a name="line.82"></a>
 <span class="sourceLineNo">083</span><a name="line.83"></a>
-<span class="sourceLineNo">084</span>  private final int rpcTimeout;<a name="line.84"></a>
+<span class="sourceLineNo">084</span>  final RpcControllerFactory rpcControllerFactory;<a name="line.84"></a>
 <span class="sourceLineNo">085</span><a name="line.85"></a>
-<span class="sourceLineNo">086</span>  private final RpcClient rpcClient;<a name="line.86"></a>
+<span class="sourceLineNo">086</span>  private final boolean hostnameCanChange;<a name="line.86"></a>
 <span class="sourceLineNo">087</span><a name="line.87"></a>
-<span class="sourceLineNo">088</span>  final RpcControllerFactory rpcControllerFactory;<a name="line.88"></a>
+<span class="sourceLineNo">088</span>  private final AsyncRegionLocator locator;<a name="line.88"></a>
 <span class="sourceLineNo">089</span><a name="line.89"></a>
-<span class="sourceLineNo">090</span>  private final boolean hostnameCanChange;<a name="line.90"></a>
+<span class="sourceLineNo">090</span>  final AsyncRpcRetryingCallerFactory callerFactory;<a name="line.90"></a>
 <span class="sourceLineNo">091</span><a name="line.91"></a>
-<span class="sourceLineNo">092</span>  private final AsyncRegionLocator locator;<a name="line.92"></a>
+<span class="sourceLineNo">092</span>  private final NonceGenerator nonceGenerator;<a name="line.92"></a>
 <span class="sourceLineNo">093</span><a name="line.93"></a>
-<span class="sourceLineNo">094</span>  final AsyncRpcRetryingCallerFactory callerFactory;<a name="line.94"></a>
-<span class="sourceLineNo">095</span><a name="line.95"></a>
-<span class="sourceLineNo">096</span>  private final NonceGenerator nonceGenerator;<a name="line.96"></a>
-<span class="sourceLineNo">097</span><a name="line.97"></a>
-<span class="sourceLineNo">098</span>  private final ConcurrentMap&lt;String, ClientService.Interface&gt; rsStubs = new ConcurrentHashMap&lt;&gt;();<a name="line.98"></a>
-<span class="sourceLineNo">099</span>  private final ConcurrentMap&lt;String, AdminService.Interface&gt; adminSubs = new ConcurrentHashMap&lt;&gt;();<a name="line.99"></a>
-<span class="sourceLineNo">100</span><a name="line.100"></a>
-<span class="sourceLineNo">101</span>  private final AtomicReference&lt;MasterService.Interface&gt; masterStub = new AtomicReference&lt;&gt;();<a name="line.101"></a>
-<span class="sourceLineNo">102</span><a name="line.102"></a>
-<span class="sourceLineNo">103</span>  private final AtomicReference&lt;CompletableFuture&lt;MasterService.Interface&gt;&gt; masterStubMakeFuture =<a name="line.103"></a>
-<span class="sourceLineNo">104</span>    new AtomicReference&lt;&gt;();<a name="line.104"></a>
+<span class="sourceLineNo">094</span>  private final ConcurrentMap&lt;String, ClientService.Interface&gt; rsStubs = new ConcurrentHashMap&lt;&gt;();<a name="line.94"></a>
+<span class="sourceLineNo">095</span>  private final ConcurrentMap&lt;String, AdminService.Interface&gt; adminSubs = new ConcurrentHashMap&lt;&gt;();<a name="line.95"></a>
+<span class="sourceLineNo">096</span><a name="line.96"></a>
+<span class="sourceLineNo">097</span>  private final AtomicReference&lt;MasterService.Interface&gt; masterStub = new AtomicReference&lt;&gt;();<a name="line.97"></a>
+<span class="sourceLineNo">098</span><a name="line.98"></a>
+<span class="sourceLineNo">099</span>  private final AtomicReference&lt;CompletableFuture&lt;MasterService.Interface&gt;&gt; masterStubMakeFuture =<a name="line.99"></a>
+<span class="sourceLineNo">100</span>    new AtomicReference&lt;&gt;();<a name="line.100"></a>
+<span class="sourceLineNo">101</span><a name="line.101"></a>
+<span class="sourceLineNo">102</span>  private ChoreService authService;<a name="line.102"></a>
+<span class="sourceLineNo">103</span><a name="line.103"></a>
+<span class="sourceLineNo">104</span>  private volatile boolean closed = false;<a name="line.104"></a>
 <span class="sourceLineNo">105</span><a name="line.105"></a>
-<span class="sourceLineNo">106</span>  private ChoreService authService;<a name="line.106"></a>
-<span class="sourceLineNo">107</span><a name="line.107"></a>
-<span class="sourceLineNo">108</span>  private volatile boolean closed = false;<a name="line.108"></a>
-<span class="sourceLineNo">109</span><a name="line.109"></a>
-<span class="sourceLineNo">110</span>  public AsyncConnectionImpl(Configuration conf, AsyncRegistry registry, String clusterId,<a name="line.110"></a>
-<span class="sourceLineNo">111</span>      User user) {<a name="line.111"></a>
-<span class="sourceLineNo">112</span>    this.conf = conf;<a name="line.112"></a>
-<span class="sourceLineNo">113</span>    this.user = user;<a name="line.113"></a>
-<span class="sourceLineNo">114</span>    if (user.isLoginFromKeytab()) {<a name="line.114"></a>
-<span class="sourceLineNo">115</span>      spawnRenewalChore(user.getUGI());<a name="line.115"></a>
-<span class="sourceLineNo">116</span>    }<a name="line.116"></a>
-<span class="sourceLineNo">117</span>    this.connConf = new AsyncConnectionConfiguration(conf);<a name="line.117"></a>
-<span class="sourceLineNo">118</span>    this.registry = registry;<a name="line.118"></a>
-<span class="sourceLineNo">119</span>    this.rpcClient = RpcClientFactory.createClient(conf, clusterId);<a name="line.119"></a>
-<span class="sourceLineNo">120</span>    this.rpcControllerFactory = RpcControllerFactory.instantiate(conf);<a name="line.120"></a>
-<span class="sourceLineNo">121</span>    this.hostnameCanChange = conf.getBoolean(RESOLVE_HOSTNAME_ON_FAIL_KEY, true);<a name="line.121"></a>
-<span class="sourceLineNo">122</span>    this.rpcTimeout =<a name="line.122"></a>
-<span class="sourceLineNo">123</span>      (int) Math.min(Integer.MAX_VALUE, TimeUnit.NANOSECONDS.toMillis(connConf.getRpcTimeoutNs()));<a name="line.123"></a>
-<span class="sourceLineNo">124</span>    this.locator = new AsyncRegionLocator(this, RETRY_TIMER);<a name="line.124"></a>
-<span class="sourceLineNo">125</span>    this.callerFactory = new AsyncRpcRetryingCallerFactory(this, RETRY_TIMER);<a name="line.125"></a>
-<span class="sourceLineNo">126</span>    if (conf.getBoolean(CLIENT_NONCES_ENABLED_KEY, true)) {<a name="line.126"></a>
-<span class="sourceLineNo">127</span>      nonceGenerator = PerClientRandomNonceGenerator.get();<a name="line.127"></a>
-<span class="sourceLineNo">128</span>    } else {<a name="line.128"></a>
-<span class="sourceLineNo">129</span>      nonceGenerator = NO_NONCE_GENERATOR;<a name="line.129"></a>
-<span class="sourceLineNo">130</span>    }<a name="line.130"></a>
-<span class="sourceLineNo">131</span>  }<a name="line.131"></a>
-<span class="sourceLineNo">132</span><a name="line.132"></a>
-<span class="sourceLineNo">133</span>  private void spawnRenewalChore(final UserGroupInformation user) {<a name="line.133"></a>
-<span class="sourceLineNo">134</span>    authService = new ChoreService("Relogin service");<a name="line.134"></a>
-<span class="sourceLineNo">135</span>    authService.scheduleChore(AuthUtil.getAuthRenewalChore(user));<a name="line.135"></a>
-<span class="sourceLineNo">136</span>  }<a name="line.136"></a>
-<span class="sourceLineNo">137</span><a name="line.137"></a>
-<span class="sourceLineNo">138</span>  @Override<a name="line.138"></a>
-<span class="sourceLineNo">139</span>  public Configuration getConfiguration() {<a name="line.139"></a>
-<span class="sourceLineNo">140</span>    return conf;<a name="line.140"></a>
-<span class="sourceLineNo">141</span>  }<a name="line.141"></a>
-<span class="sourceLineNo">142</span><a name="line.142"></a>
-<span class="sourceLineNo">143</span>  @Override<a name="line.143"></a>
-<span class="sourceLineNo">144</span>  public void close() {<a name="line.144"></a>
-<span class="sourceLineNo">145</span>    // As the code below is safe to be executed in parallel, here we do not use CAS or lock, just a<a name="line.145"></a>
-<span class="sourceLineNo">146</span>    // simple volatile flag.<a name="line.146"></a>
-<span class="sourceLineNo">147</span>    if (closed) {<a name="line.147"></a>
-<span class="sourceLineNo">148</span>      return;<a name="line.148"></a>
-<span class="sourceLineNo">149</span>    }<a name="line.149"></a>
-<span class="sourceLineNo">150</span>    IOUtils.closeQuietly(rpcClient);<a name="line.150"></a>
-<span class="sourceLineNo">151</span>    IOUtils.closeQuietly(registry);<a name="line.151"></a>
-<span class="sourceLineNo">152</span>    if (authService != null) {<a name="line.152"></a>
-<span class="sourceLineNo">153</span>      authService.shutdown();<a name="line.153"></a>
-<span class="sourceLineNo">154</span>    }<a name="line.154"></a>
-<span class="sourceLineNo">155</span>    closed = true;<a name="line.155"></a>
-<span class="sourceLineNo">156</span>  }<a name="line.156"></a>
-<span class="sourceLineNo">157</span><a name="line.157"></a>
-<span class="sourceLineNo">158</span>  @Override<a name="line.158"></a>
-<span class="sourceLineNo">159</span>  public boolean isClosed() {<a name="line.159"></a>
-<span class="sourceLineNo">160</span>    return closed;<a name="line.160"></a>
-<span class="sourceLineNo">161</span>  }<a name="line.161"></a>
-<span class="sourceLineNo">162</span><a name="line.162"></a>
-<span class="sourceLineNo">163</span>  @Override<a name="line.163"></a>
-<span class="sourceLineNo">164</span>  public AsyncTableRegionLocator getRegionLocator(TableName tableName) {<a name="line.164"></a>
-<span class="sourceLineNo">165</span>    return new AsyncTableRegionLocatorImpl(tableName, this);<a name="line.165"></a>
-<span class="sourceLineNo">166</span>  }<a name="line.166"></a>
-<span class="sourceLineNo">167</span><a name="line.167"></a>
-<span class="sourceLineNo">168</span>  // we will override this method for testing retry caller, so do not remove this method.<a name="line.168"></a>
-<span class="sourceLineNo">169</span>  AsyncRegionLocator getLocator() {<a name="line.169"></a>
-<span class="sourceLineNo">170</span>    return locator;<a name="line.170"></a>
-<span class="sourceLineNo">171</span>  }<a name="line.171"></a>
-<span class="sourceLineNo">172</span><a name="line.172"></a>
-<span class="sourceLineNo">173</span>  // ditto<a name="line.173"></a>
-<span class="sourceLineNo">174</span>  @VisibleForTesting<a name="line.174"></a>
-<span class="sourceLineNo">175</span>  public NonceGenerator getNonceGenerator() {<a name="line.175"></a>
-<span class="sourceLineNo">176</span>    return nonceGenerator;<a name="line.176"></a>
+<span class="sourceLineNo">106</span>  public AsyncConnectionImpl(Configuration conf, AsyncRegistry registry, String clusterId,<a name="line.106"></a>
+<span class="sourceLineNo">107</span>      User user) {<a name="line.107"></a>
+<span class="sourceLineNo">108</span>    this.conf = conf;<a name="line.108"></a>
+<span class="sourceLineNo">109</span>    this.user = user;<a name="line.109"></a>
+<span class="sourceLineNo">110</span>    if (user.isLoginFromKeytab()) {<a name="line.110"></a>
+<span class="sourceLineNo">111</span>      spawnRenewalChore(user.getUGI());<a name="line.111"></a>
+<span class="sourceLineNo">112</span>    }<a name="line.112"></a>
+<span class="sourceLineNo">113</span>    this.connConf = new AsyncConnectionConfiguration(conf);<a name="line.113"></a>
+<span class="sourceLineNo">114</span>    this.registry = registry;<a name="line.114"></a>
+<span class="sourceLineNo">115</span>    this.rpcClient = RpcClientFactory.createClient(conf, clusterId);<a name="line.115"></a>
+<span class="sourceLineNo">116</span>    this.rpcControllerFactory = RpcControllerFactory.instantiate(conf);<a name="line.116"></a>
+<span class="sourceLineNo">117</span>    this.hostnameCanChange = conf.getBoolean(RESOLVE_HOSTNAME_ON_FAIL_KEY, true);<a name="line.117"></a>
+<span class="sourceLineNo">118</span>    this.rpcTimeout =<a name="line.118"></a>
+<span class="sourceLineNo">119</span>      (int) Math.min(Integer.MAX_VALUE, TimeUnit.NANOSECONDS.toMillis(connConf.getRpcTimeoutNs()));<a name="line.119"></a>
+<span class="sourceLineNo">120</span>    this.locator = new AsyncRegionLocator(this, RETRY_TIMER);<a name="line.120"></a>
+<span class="sourceLineNo">121</span>    this.callerFactory = new AsyncRpcRetryingCallerFactory(this, RETRY_TIMER);<a name="line.121"></a>
+<span class="sourceLineNo">122</span>    if (conf.getBoolean(CLIENT_NONCES_ENABLED_KEY, true)) {<a name="line.122"></a>
+<span class="sourceLineNo">123</span>      nonceGenerator = PerClientRandomNonceGenerator.get();<a name="line.123"></a>
+<span class="sourceLineNo">124</span>    } else {<a name="line.124"></a>
+<span class="sourceLineNo">125</span>      nonceGenerator = NO_NONCE_GENERATOR;<a name="line.125"></a>
+<span class="sourceLineNo">126</span>    }<a name="line.126"></a>
+<span class="sourceLineNo">127</span>  }<a name="line.127"></a>
+<span class="sourceLineNo">128</span><a name="line.128"></a>
+<span class="sourceLineNo">129</span>  private void spawnRenewalChore(final UserGroupInformation user) {<a name="line.129"></a>
+<span class="sourceLineNo">130</span>    authService = new ChoreService("Relogin service");<a name="line.130"></a>
+<span class="sourceLineNo">131</span>    authService.scheduleChore(AuthUtil.getAuthRenewalChore(user));<a name="line.131"></a>
+<span class="sourceLineNo">132</span>  }<a name="line.132"></a>
+<span class="sourceLineNo">133</span><a name="line.133"></a>
+<span class="sourceLineNo">134</span>  @Override<a name="line.134"></a>
+<span class="sourceLineNo">135</span>  public Configuration getConfiguration() {<a name="line.135"></a>
+<span class="sourceLineNo">136</span>    return conf;<a name="line.136"></a>
+<span class="sourceLineNo">137</span>  }<a name="line.137"></a>
+<span class="sourceLineNo">138</span><a name="line.138"></a>
+<span class="sourceLineNo">139</span>  @Override<a name="line.139"></a>
+<span class="sourceLineNo">140</span>  public void close() {<a name="line.140"></a>
+<span class="sourceLineNo">141</span>    // As the code below is safe to be executed in parallel, here we do not use CAS or lock, just a<a name="line.141"></a>
+<span class="sourceLineNo">142</span>    // simple volatile flag.<a name="line.142"></a>
+<span class="sourceLineNo">143</span>    if (closed) {<a name="line.143"></a>
+<span class="sourceLineNo">144</span>      return;<a name="line.144"></a>
+<span class="sourceLineNo">145</span>    }<a name="line.145"></a>
+<span class="sourceLineNo">146</span>    IOUtils.closeQuietly(rpcClient);<a name="line.146"></a>
+<span class="sourceLineNo">147</span>    IOUtils.closeQuietly(registry);<a name="line.147"></a>
+<span class="sourceLineNo">148</span>    if (authService != null) {<a name="line.148"></a>
+<span class="sourceLineNo">149</span>      authService.shutdown();<a name="line.149"></a>
+<span class="sourceLineNo">150</span>    }<a name="line.150"></a>
+<span class="sourceLineNo">151</span>    closed = true;<a name="line.151"></a>
+<span class="sourceLineNo">152</span>  }<a name="line.152"></a>
+<span class="sourceLineNo">153</span><a name="line.153"></a>
+<span class="sourceLineNo">154</span>  @Override<a name="line.154"></a>
+<span class="sourceLineNo">155</span>  public boolean isClosed() {<a name="line.155"></a>
+<span class="sourceLineNo">156</span>    return closed;<a name="line.156"></a>
+<span class="sourceLineNo">157</span>  }<a name="line.157"></a>
+<span class="sourceLineNo">158</span><a name="line.158"></a>
+<span class="sourceLineNo">159</span>  @Override<a name="line.159"></a>
+<span class="sourceLineNo">160</span>  public AsyncTableRegionLocator getRegionLocator(TableName tableName) {<a name="line.160"></a>
+<span class="sourceLineNo">161</span>    return new AsyncTableRegionLocatorImpl(tableName, this);<a name="line.161"></a>
+<span class="sourceLineNo">162</span>  }<a name="line.162"></a>
+<span class="sourceLineNo">163</span><a name="line.163"></a>
+<span class="sourceLineNo">164</span>  // we will override this method for testing retry caller, so do not remove this method.<a name="line.164"></a>
+<span class="sourceLineNo">165</span>  AsyncRegionLocator getLocator() {<a name="line.165"></a>
+<span class="sourceLineNo">166</span>    return locator;<a name="line.166"></a>
+<span class="sourceLineNo">167</span>  }<a name="line.167"></a>
+<span class="sourceLineNo">168</span><a name="line.168"></a>
+<span class="sourceLineNo">169</span>  // ditto<a name="line.169"></a>
+<span class="sourceLineNo">170</span>  @VisibleForTesting<a name="line.170"></a>
+<span class="sourceLineNo">171</span>  public NonceGenerator getNonceGenerator() {<a name="line.171"></a>
+<span class="sourceLineNo">172</span>    return nonceGenerator;<a name="line.172"></a>
+<span class="sourceLineNo">173</span>  }<a name="line.173"></a>
+<span class="sourceLineNo">174</span><a name="line.174"></a>
+<span class="sourceLineNo">175</span>  private ClientService.Interface createRegionServerStub(ServerName serverName) throws IOException {<a name="line.175"></a>
+<span class="sourceLineNo">176</span>    return ClientService.newStub(rpcClient.createRpcChannel(serverName, user, rpcTimeout));<a name="line.176"></a>
 <span class="sourceLineNo">177</span>  }<a name="line.177"></a>
 <span class="sourceLineNo">178</span><a name="line.178"></a>
-<span class="sourceLineNo">179</span>  private ClientService.Interface createRegionServerStub(ServerName serverName) throws IOException {<a name="line.179"></a>
-<span class="sourceLineNo">180</span>    return ClientService.newStub(rpcClient.createRpcChannel(serverName, user, rpcTimeout));<a name="line.180"></a>
-<span class="sourceLineNo">181</span>  }<a name="line.181"></a>
-<span class="sourceLineNo">182</span><a name="line.182"></a>
-<span class="sourceLineNo">183</span>  ClientService.Interface getRegionServerStub(ServerName serverName) throws IOException {<a name="line.183"></a>
-<span class="sourceLineNo">184</span>    return ConcurrentMapUtils.computeIfAbsentEx(rsStubs,<a name="line.184"></a>
-<span class="sourceLineNo">185</span>      getStubKey(ClientService.Interface.class.getSimpleName(), serverName, hostnameCanChange),<a name="line.185"></a>
-<span class="sourceLineNo">186</span>      () -&gt; createRegionServerStub(serverName));<a name="line.186"></a>
+<span class="sourceLineNo">179</span>  ClientService.Interface getRegionServerStub(ServerName serverName) throws IOException {<a name="line.179"></a>
+<span class="sourceLineNo">180</span>    return ConcurrentMapUtils.computeIfAbsentEx(rsStubs,<a name="line.180"></a>
+<span class="sourceLineNo">181</span>      getStubKey(ClientService.Interface.class.getSimpleName(), serverName, hostnameCanChange),<a name="line.181"></a>
+<span class="sourceLineNo">182</span>      () -&gt; createRegionServerStub(serverName));<a name="line.182"></a>
+<span class="sourceLineNo">183</span>  }<a name="line.183"></a>
+<span class="sourceLineNo">184</span><a name="line.184"></a>
+<span class="sourceLineNo">185</span>  private MasterService.Interface createMasterStub(ServerName serverName) throws IOException {<a name="line.185"></a>
+<span class="sourceLineNo">186</span>    return MasterService.newStub(rpcClient.createRpcChannel(serverName, user, rpcTimeout));<a name="line.186"></a>
 <span class="sourceLineNo">187</span>  }<a name="line.187"></a>
 <span class="sourceLineNo">188</span><a name="line.188"></a>
-<span class="sourceLineNo">189</span>  private MasterService.Interface createMasterStub(ServerName serverName) throws IOException {<a name="line.189"></a>
-<span class="sourceLineNo">190</span>    return MasterService.newStub(rpcClient.createRpcChannel(serverName, user, rpcTimeout));<a name="line.190"></a>
+<span class="sourceLineNo">189</span>  private AdminService.Interface createAdminServerStub(ServerName serverName) throws IOException {<a name="line.189"></a>
+<span class="sourceLineNo">190</span>    return AdminService.newStub(rpcClient.createRpcChannel(serverName, user, rpcTimeout));<a name="line.190"></a>
 <span class="sourceLineNo">191</span>  }<a name="line.191"></a>
 <span class="sourceLineNo">192</span><a name="line.192"></a>
-<span class="sourceLineNo">193</span>  private AdminService.Interface createAdminServerStub(ServerName serverName) throws IOException {<a name="line.193"></a>
-<span class="sourceLineNo">194</span>    return AdminService.newStub(rpcClient.createRpcChannel(serverName, user, rpcTimeout));<a name="line.194"></a>
-<span class="sourceLineNo">195</span>  }<a name="line.195"></a>
-<span class="sourceLineNo">196</span><a name="line.196"></a>
-<span class="sourceLineNo">197</span>  AdminService.Interface getAdminStub(ServerName serverName) throws IOException {<a name="line.197"></a>
-<span class="sourceLineNo">198</span>    return ConcurrentMapUtils.computeIfAbsentEx(adminSubs,<a name="line.198"></a>
-<span class="sourceLineNo">199</span>      getStubKey(AdminService.Interface.class.getSimpleName(), serverName, hostnameCanChange),<a name="line.199"></a>
-<span class="sourceLineNo">200</span>      () -&gt; createAdminServerStub(serverName));<a name="line.200"></a>
-<span class="sourceLineNo">201</span>  }<a name="line.201"></a>
-<span class="sourceLineNo">202</span><a name="line.202"></a>
-<span class="sourceLineNo">203</span>  private void makeMasterStub(CompletableFuture&lt;MasterService.Interface&gt; future) {<a name="line.203"></a>
-<span class="sourceLineNo">204</span>    addListener(registry.getMasterAddress(), (sn, error) -&gt; {<a name="line.204"></a>
-<span class="sourceLineNo">205</span>      if (sn == null) {<a name="line.205"></a>
-<span class="sourceLineNo">206</span>        String msg = "ZooKeeper available but no active master location found";<a name="line.206"></a>
-<span class="sourceLineNo">207</span>        LOG.info(msg);<a name="line.207"></a>
-<span class="sourceLineNo">208</span>        this.masterStubMakeFuture.getAndSet(null)<a name="line.208"></a>
-<span class="sourceLineNo">209</span>          .completeExceptionally(new MasterNotRunningException(msg));<a name="line.209"></a>
-<span class="sourceLineNo">210</span>        return;<a name="line.210"></a>
-<span class="sourceLineNo">211</span>      }<a name="line.211"></a>
-<span class="sourceLineNo">212</span>      try {<a name="line.212"></a>
-<span class="sourceLineNo">213</span>        MasterService.Interface stub = createMasterStub(sn);<a name="line.213"></a>
-<span class="sourceLineNo">214</span>        HBaseRpcController controller = getRpcController();<a name="line.214"></a>
-<span class="sourceLineNo">215</span>        stub.isMasterRunning(controller, RequestConverter.buildIsMasterRunningRequest(),<a name="line.215"></a>
-<span class="sourceLineNo">216</span>          new RpcCallback&lt;IsMasterRunningResponse&gt;() {<a name="line.216"></a>
-<span class="sourceLineNo">217</span>            @Override<a name="line.217"></a>
-<span class="sourceLineNo">218</span>            public void run(IsMasterRunningResponse resp) {<a name="line.218"></a>
-<span class="sourceLineNo">219</span>              if (controller.failed() || resp == null ||<a name="line.219"></a>
-<span class="sourceLineNo">220</span>                (resp != null &amp;&amp; !resp.getIsMasterRunning())) {<a name="line.220"></a>
-<span class="sourceLineNo">221</span>                masterStubMakeFuture.getAndSet(null).completeExceptionally(<a name="line.221"></a>
-<span class="sourceLineNo">222</span>                  new MasterNotRunningException("Master connection is not running anymore"));<a name="line.222"></a>
-<span class="sourceLineNo">223</span>              } else {<a name="line.223"></a>
-<span class="sourceLineNo">224</span>                masterStub.set(stub);<a name="line.224"></a>
-<span class="sourceLineNo">225</span>                masterStubMakeFuture.set(null);<a name="line.225"></a>
-<span class="sourceLineNo">226</span>                future.complete(stub);<a name="line.226"></a>
-<span class="sourceLineNo">227</span>              }<a name="line.227"></a>
-<span class="sourceLineNo">228</span>            }<a name="line.228"></a>
-<span class="sourceLineNo">229</span>          });<a name="line.229"></a>
-<span class="sourceLineNo">230</span>      } catch (IOException e) {<a name="line.230"></a>
-<span class="sourceLineNo">231</span>        this.masterStubMakeFuture.getAndSet(null)<a name="line.231"></a>
-<span class="sourceLineNo">232</span>          .completeExceptionally(new IOException("Failed to create async master stub", e));<a name="line.232"></a>
+<span class="sourceLineNo">193</span>  AdminService.Interface getAdminStub(ServerName serverName) throws IOException {<a name="line.193"></a>
+<span class="sourceLineNo">194</span>    return ConcurrentMapUtils.computeIfAbsentEx(adminSubs,<a name="line.194"></a>
+<span class="sourceLineNo">195</span>      getStubKey(AdminService.Interface.class.getSimpleName(), serverName, hostnameCanChange),<a name="line.195"></a>
+<span class="sourceLineNo">196</span>      () -&gt; createAdminServerStub(serverName));<a name="line.196"></a>
+<span class="sourceLineNo">197</span>  }<a name="line.197"></a>
+<span class="sourceLineNo">198</span><a name="line.198"></a>
+<span class="sourceLineNo">199</span>  CompletableFuture&lt;MasterService.Interface&gt; getMasterStub() {<a name="line.199"></a>
+<span class="sourceLineNo">200</span>    return ConnectionUtils.getOrFetch(masterStub, masterStubMakeFuture, false, () -&gt; {<a name="line.200"></a>
+<span class="sourceLineNo">201</span>      CompletableFuture&lt;MasterService.Interface&gt; future = new CompletableFuture&lt;&gt;();<a name="line.201"></a>
+<span class="sourceLineNo">202</span>      addListener(registry.getMasterAddress(), (addr, error) -&gt; {<a name="line.202"></a>
+<span class="sourceLineNo">203</span>        if (error != null) {<a name="line.203"></a>
+<span class="sourceLineNo">204</span>          future.completeExceptionally(error);<a name="line.204"></a>
+<span class="sourceLineNo">205</span>        } else if (addr == null) {<a name="line.205"></a>
+<span class="sourceLineNo">206</span>          future.completeExceptionally(new MasterNotRunningException(<a name="line.206"></a>
+<span class="sourceLineNo">207</span>            "ZooKeeper available but no active master location found"));<a name="line.207"></a>
+<span class="sourceLineNo">208</span>        } else {<a name="line.208"></a>
+<span class="sourceLineNo">209</span>          LOG.debug("The fetched master address is {}", addr);<a name="line.209"></a>
+<span class="sourceLineNo">210</span>          try {<a name="line.210"></a>
+<span class="sourceLineNo">211</span>            future.complete(createMasterStub(addr));<a name="line.211"></a>
+<span class="sourceLineNo">212</span>          } catch (IOException e) {<a name="line.212"></a>
+<span class="sourceLineNo">213</span>            future.completeExceptionally(e);<a name="line.213"></a>
+<span class="sourceLineNo">214</span>          }<a name="line.214"></a>
+<span class="sourceLineNo">215</span>        }<a name="line.215"></a>
+<span class="sourceLineNo">216</span><a name="line.216"></a>
+<span class="sourceLineNo">217</span>      });<a name="line.217"></a>
+<span class="sourceLineNo">218</span>      return future;<a name="line.218"></a>
+<span class="sourceLineNo">219</span>    }, stub -&gt; true, "master stub");<a name="line.219"></a>
+<span class="sourceLineNo">220</span>  }<a name="line.220"></a>
+<span class="sourceLineNo">221</span><a name="line.221"></a>
+<span class="sourceLineNo">222</span>  void clearMasterStubCache(MasterService.Interface stub) {<a name="line.222"></a>
+<span class="sourceLineNo">223</span>    masterStub.compareAndSet(stub, null);<a name="line.223"></a>
+<span class="sourceLineNo">224</span>  }<a name="line.224"></a>
+<span class="sourceLineNo">225</span><a name="line.225"></a>
+<span class="sourceLineNo">226</span>  @Override<a name="line.226"></a>
+<span class="sourceLineNo">227</span>  public AsyncTableBuilder&lt;AdvancedScanResultConsumer&gt; getTableBuilder(TableName tableName) {<a name="line.227"></a>
+<span class="sourceLineNo">228</span>    return new AsyncTableBuilderBase&lt;AdvancedScanResultConsumer&gt;(tableName, connConf) {<a name="line.228"></a>
+<span class="sourceLineNo">229</span><a name="line.229"></a>
+<span class="sourceLineNo">230</span>      @Override<a name="line.230"></a>
+<span class="sourceLineNo">231</span>      public AsyncTable&lt;AdvancedScanResultConsumer&gt; build() {<a name="line.231"></a>
+<span class="sourceLineNo">232</span>        return new RawAsyncTableImpl(AsyncConnectionImpl.this, RETRY_TIMER, this);<a name="line.232"></a>
 <span class="sourceLineNo">233</span>      }<a name="line.233"></a>
-<span class="sourceLineNo">234</span>    });<a name="line.234"></a>
+<span class="sourceLineNo">234</span>    };<a name="line.234"></a>
 <span class="sourceLineNo">235</span>  }<a name="line.235"></a>
 <span class="sourceLineNo">236</span><a name="line.236"></a>
-<span class="sourceLineNo">237</span>  CompletableFuture&lt;MasterService.Interface&gt; getMasterStub() {<a name="line.237"></a>
-<span class="sourceLineNo">238</span>    MasterService.Interface masterStub = this.masterStub.get();<a name="line.238"></a>
-<span class="sourceLineNo">239</span><a name="line.239"></a>
-<span class="sourceLineNo">240</span>    if (masterStub == null) {<a name="line.240"></a>
-<span class="sourceLineNo">241</span>      for (;;) {<a name="line.241"></a>
-<span class="sourceLineNo">242</span>        if (this.masterStubMakeFuture.compareAndSet(null, new CompletableFuture&lt;&gt;())) {<a name="line.242"></a>
-<span class="sourceLineNo">243</span>          CompletableFuture&lt;MasterService.Interface&gt; future = this.masterStubMakeFuture.get();<a name="line.243"></a>
-<span class="sourceLineNo">244</span>          makeMasterStub(future);<a name="line.244"></a>
-<span class="sourceLineNo">245</span>        } else {<a name="line.245"></a>
-<span class="sourceLineNo">246</span>          CompletableFuture&lt;MasterService.Interface&gt; future = this.masterStubMakeFuture.get();<a name="line.246"></a>
-<span class="sourceLineNo">247</span>          if (future != null) {<a name="line.247"></a>
-<span class="sourceLineNo">248</span>            return future;<a name="line.248"></a>
-<span class="sourceLineNo">249</span>          }<a name="line.249"></a>
-<span class="sourceLineNo">250</span>        }<a name="line.250"></a>
-<span class="sourceLineNo">251</span>      }<a name="line.251"></a>
-<span class="sourceLineNo">252</span>    }<a name="line.252"></a>
-<span class="sourceLineNo">253</span><a name="line.253"></a>
-<span class="sourceLineNo">254</span>    for (;;) {<a name="line.254"></a>
-<span class="sourceLineNo">255</span>      if (masterStubMakeFuture.compareAndSet(null, new CompletableFuture&lt;&gt;())) {<a name="line.255"></a>
-<span class="sourceLineNo">256</span>        CompletableFuture&lt;MasterService.Interface&gt; future = masterStubMakeFuture.get();<a name="line.256"></a>
-<span class="sourceLineNo">257</span>        HBaseRpcController controller = getRpcController();<a name="line.257"></a>
-<span class="sourceLineNo">258</span>        masterStub.isMasterRunning(controller, RequestConverter.buildIsMasterRunningRequest(),<a name="line.258"></a>
-<span class="sourceLineNo">259</span>          new RpcCallback&lt;IsMasterRunningResponse&gt;() {<a name="line.259"></a>
-<span class="sourceLineNo">260</span>            @Override<a name="line.260"></a>
-<span class="sourceLineNo">261</span>            public void run(IsMasterRunningResponse resp) {<a name="line.261"></a>
-<span class="sourceLineNo">262</span>              if (controller.failed() || resp == null ||<a name="line.262"></a>
-<span class="sourceLineNo">263</span>                (resp != null &amp;&amp; !resp.getIsMasterRunning())) {<a name="line.263"></a>
-<span class="sourceLineNo">264</span>                makeMasterStub(future);<a name="line.264"></a>
-<span class="sourceLineNo">265</span>              } else {<a name="line.265"></a>
-<span class="sourceLineNo">266</span>                future.complete(masterStub);<a name="line.266"></a>
-<span class="sourceLineNo">267</span>              }<a name="line.267"></a>
-<span class="sourceLineNo">268</span>            }<a name="line.268"></a>
-<span class="sourceLineNo">269</span>          });<a name="line.269"></a>
-<span class="sourceLineNo">270</span>      } else {<a name="line.270"></a>
-<span class="sourceLineNo">271</span>        CompletableFuture&lt;MasterService.Interface&gt; future = masterStubMakeFuture.get();<a name="line.271"></a>
-<span class="sourceLineNo">272</span>        if (future != null) {<a name="line.272"></a>
-<span class="sourceLineNo">273</span>          return future;<a name="line.273"></a>
-<span class="sourceLineNo">274</span>        }<a name="line.274"></a>
-<span class="sourceLineNo">275</span>      }<a name="line.275"></a>
-<span class="sourceLineNo">276</span>    }<a name="line.276"></a>
-<span class="sourceLineNo">277</span>  }<a name="line.277"></a>
-<span class="sourceLineNo">278</span><a name="line.278"></a>
-<span class="sourceLineNo">279</span>  private HBaseRpcController getRpcController() {<a name="line.279"></a>
-<span class="sourceLineNo">280</span>    HBaseRpcController controller = this.rpcControllerFactory.newController();<a name="line.280"></a>
-<span class="sourceLineNo">281</span>    controller.setCallTimeout((int) TimeUnit.NANOSECONDS.toMillis(connConf.getRpcTimeoutNs()));<a name="line.281"></a>
-<span class="sourceLineNo">282</span>    return controller;<a name="line.282"></a>
+<span class="sourceLineNo">237</span>  @Override<a name="line.237"></a>
+<span class="sourceLineNo">238</span>  public AsyncTableBuilder&lt;ScanResultConsumer&gt; getTableBuilder(TableName tableName,<a name="line.238"></a>
+<span class="sourceLineNo">239</span>      ExecutorService pool) {<a name="line.239"></a>
+<span class="sourceLineNo">240</span>    return new AsyncTableBuilderBase&lt;ScanResultConsumer&gt;(tableName, connConf) {<a name="line.240"></a>
+<span class="sourceLineNo">241</span><a name="line.241"></a>
+<span class="sourceLineNo">242</span>      @Override<a name="line.242"></a>
+<span class="sourceLineNo">243</span>      public AsyncTable&lt;ScanResultConsumer&gt; build() {<a name="line.243"></a>
+<span class="sourceLineNo">244</span>        RawAsyncTableImpl rawTable =<a name="line.244"></a>
+<span class="sourceLineNo">245</span>          new RawAsyncTableImpl(AsyncConnectionImpl.this, RETRY_TIMER, this);<a name="line.245"></a>
+<span class="sourceLineNo">246</span>        return new AsyncTableImpl(AsyncConnectionImpl.this, rawTable, pool);<a name="line.246"></a>
+<span class="sourceLineNo">247</span>      }<a name="line.247"></a>
+<span class="sourceLineNo">248</span>    };<a name="line.248"></a>
+<span class="sourceLineNo">249</span>  }<a name="line.249"></a>
+<span class="sourceLineNo">250</span><a name="line.250"></a>
+<span class="sourceLineNo">251</span>  @Override<a name="line.251"></a>
+<span class="sourceLineNo">252</span>  public AsyncAdminBuilder getAdminBuilder() {<a name="line.252"></a>
+<span class="sourceLineNo">253</span>    return new AsyncAdminBuilderBase(connConf) {<a name="line.253"></a>
+<span class="sourceLineNo">254</span>      @Override<a name="line.254"></a>
+<span class="sourceLineNo">255</span>      public AsyncAdmin build() {<a name="line.255"></a>
+<span class="sourceLineNo">256</span>        return new RawAsyncHBaseAdmin(AsyncConnectionImpl.this, RETRY_TIMER, this);<a name="line.256"></a>
+<span class="sourceLineNo">257</span>      }<a name="line.257"></a>
+<span class="sourceLineNo">258</span>    };<a name="line.258"></a>
+<span class="sourceLineNo">259</span>  }<a name="line.259"></a>
+<span class="sourceLineNo">260</span><a name="line.260"></a>
+<span class="sourceLineNo">261</span>  @Override<a name="line.261"></a>
+<span class="sourceLineNo">262</span>  public AsyncAdminBuilder getAdminBuilder(ExecutorService pool) {<a name="line.262"></a>
+<span class="sourceLineNo">263</span>    return new AsyncAdminBuilderBase(connConf) {<a name="line.263"></a>
+<span class="sourceLineNo">264</span>      @Override<a name="line.264"></a>
+<span class="sourceLineNo">265</span>      public AsyncAdmin build() {<a name="line.265"></a>
+<span class="sourceLineNo">266</span>        RawAsyncHBaseAdmin rawAdmin =<a name="line.266"></a>
+<span class="sourceLineNo">267</span>          new RawAsyncHBaseAdmin(AsyncConnectionImpl.this, RETRY_TIMER, this);<a name="line.267"></a>
+<span class="sourceLineNo">268</span>        return new AsyncHBaseAdmin(rawAdmin, pool);<a name="line.268"></a>
+<span class="sourceLineNo">269</span>      }<a name="line.269"></a>
+<span class="sourceLineNo">270</span>    };<a name="line.270"></a>
+<span class="sourceLineNo">271</span>  }<a name="line.271"></a>
+<span class="sourceLineNo">272</span><a name="line.272"></a>
+<span class="sourceLineNo">273</span>  @Override<a name="line.273"></a>
+<span class="sourceLineNo">274</span>  public AsyncBufferedMutatorBuilder getBufferedMutatorBuilder(TableName tableName) {<a name="line.274"></a>
+<span class="sourceLineNo">275</span>    return new AsyncBufferedMutatorBuilderImpl(connConf, getTableBuilder(tableName), RETRY_TIMER);<a name="line.275"></a>
+<span class="sourceLineNo">276</span>  }<a name="line.276"></a>
+<span class="sourceLineNo">277</span><a name="line.277"></a>
+<span class="sourceLineNo">278</span>  @Override<a name="line.278"></a>
+<span class="sourceLineNo">279</span>  public AsyncBufferedMutatorBuilder getBufferedMutatorBuilder(TableName tableName,<a name="line.279"></a>
+<span class="sourceLineNo">280</span>      ExecutorService pool) {<a name="line.280"></a>
+<span class="sourceLineNo">281</span>    return new AsyncBufferedMutatorBuilderImpl(connConf, getTableBuilder(tableName, pool),<a name="line.281"></a>
+<span class="sourceLineNo">282</span>      RETRY_TIMER);<a name="line.282"></a>
 <span class="sourceLineNo">283</span>  }<a name="line.283"></a>
 <span class="sourceLineNo">284</span><a name="line.284"></a>
 <span class="sourceLineNo">285</span>  @Override<a name="line.285"></a>
-<span class="sourceLineNo">286</span>  public AsyncTableBuilder&lt;AdvancedScanResultConsumer&gt; getTableBuilder(TableName tableName) {<a name="line.286"></a>
-<span class="sourceLineNo">287</span>    return new AsyncTableBuilderBase&lt;AdvancedScanResultConsumer&gt;(tableName, connConf) {<a name="line.287"></a>
-<span class="sourceLineNo">288</span><a name="line.288"></a>
-<span class="sourceLineNo">289</span>      @Override<a name="line.289"></a>
-<span class="sourceLineNo">290</span>      public AsyncTable&lt;AdvancedScanResultConsumer&gt; build() {<a name="line.290"></a>
-<span class="sourceLineNo">291</span>        return new RawAsyncTableImpl(AsyncConnectionImpl.this, RETRY_TIMER, this);<a name="line.291"></a>
-<span class="sourceLineNo">292</span>      }<a name="line.292"></a>
-<span class="sourceLineNo">293</span>    };<a name="line.293"></a>
-<span class="sourceLineNo">294</span>  }<a name="line.294"></a>
-<span class="sourceLineNo">295</span><a name="line.295"></a>
-<span class="sourceLineNo">296</span>  @Override<a name="line.296"></a>
-<span class="sourceLineNo">297</span>  public AsyncTableBuilder&lt;ScanResultConsumer&gt; getTableBuilder(TableName tableName,<a name="line.297"></a>
-<span class="sourceLineNo">298</span>      ExecutorService pool) {<a name="line.298"></a>
-<span class="sourceLineNo">299</span>    return new AsyncTableBuilderBase&lt;ScanResultConsumer&gt;(tableName, connConf) {<a name="line.299"></a>
-<span class="sourceLineNo">300</span><a name="line.300"></a>
-<span class="sourceLineNo">301</span>      @Override<a name="line.301"></a>
-<span class="sourceLineNo">302</span>      public AsyncTable&lt;ScanResultConsumer&gt; build() {<a name="line.302"></a>
-<span class="sourceLineNo">303</span>        RawAsyncTableImpl rawTable =<a name="line.303"></a>
-<span class="sourceLineNo">304</span>          new RawAsyncTableImpl(AsyncConnectionImpl.this, RETRY_TIMER, this);<a name="line.304"></a>
-<span class="sourceLineNo">305</span>        return new AsyncTableImpl(AsyncConnectionImpl.this, rawTable, pool);<a name="line.305"></a>
-<span class="sourceLineNo">306</span>      }<a name="line.306"></a>
-<span class="sourceLineNo">307</span>    };<a name="line.307"></a>
-<span class="sourceLineNo">308</span>  }<a name="line.308"></a>
-<span class="sourceLineNo">309</span><a name="line.309"></a>
-<span class="sourceLineNo">310</span>  @Override<a name="line.310"></a>
-<span class="sourceLineNo">311</span>  public AsyncAdminBuilder getAdminBuilder() {<a name="line.311"></a>
-<span class="sourceLineNo">312</span>    return new AsyncAdminBuilderBase(connConf) {<a name="line.312"></a>
-<span class="sourceLineNo">313</span>      @Override<a name="line.313"></a>
-<span class="sourceLineNo">314</span>      public AsyncAdmin build() {<a name="line.314"></a>
-<span class="sourceLineNo">315</span>        return new RawAsyncHBaseAdmin(AsyncConnectionImpl.this, RETRY_TIMER, this);<a name="line.315"></a>
-<span class="sourceLineNo">316</span>      }<a name="line.316"></a>
-<span class="sourceLineNo">317</span>    };<a name="line.317"></a>
-<span class="sourceLineNo">318</span>  }<a name="line.318"></a>
-<span class="sourceLineNo">319</span><a name="line.319"></a>
-<span class="sourceLineNo">320</span>  @Override<a name="line.320"></a>
-<span class="sourceLineNo">321</span>  public AsyncAdminBuilder getAdminBuilder(ExecutorService pool) {<a name="line.321"></a>
-<span class="sourceLineNo">322</span>    return new AsyncAdminBuilderBase(connConf) {<a name="line.322"></a>
-<span class="sourceLineNo">323</span>      @Override<a name="line.323"></a>
-<span class="sourceLineNo">324</span>      public AsyncAdmin build() {<a name="line.324"></a>
-<span class="sourceLineNo">325</span>        RawAsyncHBaseAdmin rawAdmin =<a name="line.325"></a>
-<span class="sourceLineNo">326</span>          new RawAsyncHBaseAdmin(AsyncConnectionImpl.this, RETRY_TIMER, this);<a name="line.326"></a>
-<span class="sourceLineNo">327</span>        return new AsyncHBaseAdmin(rawAdmin, pool);<a name="line.327"></a>
-<span class="sourceLineNo">328</span>      }<a name="line.328"></a>
-<span class="sourceLineNo">329</span>    };<a name="line.329"></a>
-<span class="sourceLineNo">330</span>  }<a name="line.330"></a>
-<span class="sourceLineNo">331</span><a name="line.331"></a>
-<span class="sourceLineNo">332</span>  @Override<a name="line.332"></a>
-<span class="sourceLineNo">333</span>  public AsyncBufferedMutatorBuilder getBufferedMutatorBuilder(TableName tableName) {<a name="line.333"></a>
-<span class="sourceLineNo">334</span>    return new AsyncBufferedMutatorBuilderImpl(connConf, getTableBuilder(tableName), RETRY_TIMER);<a name="line.334"></a>
-<span class="sourceLineNo">335</span>  }<a name="line.335"></a>
-<span class="sourceLineNo">336</span><a name="line.336"></a>
-<span class="sourceLineNo">337</span>  @Override<a name="line.337"></a>
-<span class="sourceLineNo">338</span>  public AsyncBufferedMutatorBuilder getBufferedMutatorBuilder(TableName tableName,<a name="line.338"></a>
-<span class="sourceLineNo">339</span>      ExecutorService pool) {<a name="line.339"></a>
-<span class="sourceLineNo">340</span>    return new AsyncBufferedMutatorBuilderImpl(connConf, getTableBuilder(tableName, pool),<a name="line.340"></a>
-<span class="sourceLineNo">341</span>      RETRY_TIMER);<a name="line.341"></a>
-<span class="sourceLineNo">342</span>  }<a name="line.342"></a>
-<span class="sourceLineNo">343</span><a name="line.343"></a>
-<span class="sourceLineNo">344</span>  @Override<a name="line.344"></a>
-<span class="sourceLineNo">345</span>  public CompletableFuture&lt;Hbck&gt; getHbck() {<a name="line.345"></a>
-<span class="sourceLineNo">346</span>    CompletableFuture&lt;Hbck&gt; future = new CompletableFuture&lt;&gt;();<a name="line.346"></a>
-<span class="sourceLineNo">347</span>    addListener(registry.getMasterAddress(), (sn, error) -&gt; {<a name="line.347"></a>
-<span class="sourceLineNo">348</span>      if (error != null) {<a name="line.348"></a>
-<span class="sourceLineNo">349</span>        future.completeExceptionally(error);<a name="line.349"></a>
-<span class="sourceLineNo">350</span>      } else {<a name="line.350"></a>
-<span class="sourceLineNo">351</span>        try {<a name="line.351"></a>
-<span class="sourceLineNo">352</span>          future.complete(getHbck(sn));<a name="line.352"></a>
-<span class="sourceLineNo">353</span>        } catch (IOException e) {<a name="line.353"></a>
-<span class="sourceLineNo">354</span>          future.completeExceptionally(e);<a name="line.354"></a>
-<span class="sourceLineNo">355</span>        }<a name="line.355"></a>
-<span class="sourceLineNo">356</span>      }<a name="line.356"></a>
-<span class="sourceLineNo">357</span>    });<a name="line.357"></a>
-<span class="sourceLineNo">358</span>    return future;<a name="line.358"></a>
-<span class="sourceLineNo">359</span>  }<a name="line.359"></a>
-<span class="sourceLineNo">360</span><a name="line.360"></a>
-<span class="sourceLineNo">361</span>  @Override<a name="line.361"></a>
-<span class="sourceLineNo">362</span>  public Hbck getHbck(ServerName masterServer) throws IOException {<a name="line.362"></a>
-<span class="sourceLineNo">363</span>    // we will not create a new connection when creating a new protobuf stub, and for hbck there<a name="line.363"></a>
-<span class="sourceLineNo">364</span>    // will be no performance consideration, so for simplification we will create a new stub every<a name="line.364"></a>
-<span class="sourceLineNo">365</span>    // time instead of caching the stub here.<a name="line.365"></a>
-<span class="sourceLineNo">366</span>    return new HBaseHbck(MasterProtos.HbckService.newBlockingStub(<a name="line.366"></a>
-<span class="sourceLineNo">367</span>      rpcClient.createBlockingRpcChannel(masterServer, user, rpcTimeout)), rpcControllerFactory);<a name="line.367"></a>
-<span class="sourceLineNo">368</span>  }<a name="line.368"></a>
-<span class="sourceLineNo">369</span><a name="line.369"></a>
-<span class="sourceLineNo">370</span>  @Override<a name="line.370"></a>
-<span class="sourceLineNo">371</span>  public void clearRegionLocationCache() {<a name="line.371"></a>
-<span class="sourceLineNo">372</span>    locator.clearCache();<a name="line.372"></a>
-<span class="sourceLineNo">373</span>  }<a name="line.373"></a>
-<span class="sourceLineNo">374</span>}<a name="line.374"></a>
+<span class="sourceLineNo">286</span>  public CompletableFuture&lt;Hbck&gt; getHbck() {<a name="line.286"></a>
+<span class="sourceLineNo">287</span>    CompletableFuture&lt;Hbck&gt; future = new CompletableFuture&lt;&gt;();<a name="line.287"></a>
+<span class="sourceLineNo">288</span>    addListener(registry.getMasterAddress(), (sn, error) -&gt; {<a name="line.288"></a>
+<span class="sourceLineNo">289</span>      if (error != null) {<a name="line.289"></a>
+<span class="sourceLineNo">290</span>        future.completeExceptionally(error);<a name="line.290"></a>
+<span class="sourceLineNo">291</span>      } else {<a name="line.291"></a>
+<span class="sourceLineNo">292</span>        try {<a name="line.292"></a>
+<span class="sourceLineNo">293</span>          future.complete(getHbck(sn));<a name="line.293"></a>
+<span class="sourceLineNo">294</span>        } catch (IOException e) {<a name="line.294"></a>
+<span class="sourceLineNo">295</span>          future.completeExceptionally(e);<a name="line.295"></a>
+<span class="sourceLineNo">296</span>        }<a name="line.296"></a>
+<span class="sourceLineNo">297</span>      }<a name="line.297"></a>
+<span class="sourceLineNo">298</span>    });<a name="line.298"></a>
+<span class="sourceLineNo">299</span>    return future;<a name="line.299"></a>
+<span class="sourceLineNo">300</span>  }<a name="line.300"></a>
+<span class="sourceLineNo">301</span><a name="line.301"></a>
+<span class="sourceLineNo">302</span>  @Override<a name="line.302"></a>
+<span class="sourceLineNo">303</span>  public Hbck getHbck(ServerName masterServer) throws IOException {<a name="line.303"></a>
+<span class="sourceLineNo">304</span>    // we will not create a new connection when creating a new protobuf stub, and for hbck there<a name="line.304"></a>
+<span class="sourceLineNo">305</span>    // will be no performance consideration, so for simplification we will create a new stub every<a name="line.305"></a>
+<span class="sourceLineNo">306</span>    // time instead of caching the stub here.<a name="line.306"></a>
+<span class="sourceLineNo">307</span>    return new HBaseHbck(MasterProtos.HbckService.newBlockingStub(<a name="line.307"></a>
+<span class="sourceLineNo">308</span>      rpcClient.createBlockingRpcChannel(masterServer, user, rpcTimeout)), rpcControllerFactory);<a name="line.308"></a>
+<span class="sourceLineNo">309</span>  }<a name="line.309"></a>
+<span class="sourceLineNo">310</span><a name="line.310"></a>
+<span class="sourceLineNo">311</span>  @Override<a name="line.311"></a>
+<span class="sourceLineNo">312</span>  public void clearRegionLocationCache() {<a name="line.312"></a>
+<span class="sourceLineNo">313</span>    locator.clearCache();<a name="line.313"></a>
+<span class="sourceLineNo">314</span>  }<a name="line.314"></a>
+<span class="sourceLineNo">315</span>}<a name="line.315"></a>
 
 
 
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetryingCaller.Callable.html b/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetryingCaller.Callable.html
index d0920e0..422c2fc 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetryingCaller.Callable.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetryingCaller.Callable.html
@@ -28,55 +28,65 @@
 <span class="sourceLineNo">020</span>import static org.apache.hadoop.hbase.util.FutureUtils.addListener;<a name="line.20"></a>
 <span class="sourceLineNo">021</span><a name="line.21"></a>
 <span class="sourceLineNo">022</span>import java.util.concurrent.CompletableFuture;<a name="line.22"></a>
-<span class="sourceLineNo">023</span>import org.apache.hadoop.hbase.ipc.HBaseRpcController;<a name="line.23"></a>
-<span class="sourceLineNo">024</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.24"></a>
-<span class="sourceLineNo">025</span><a name="line.25"></a>
-<span class="sourceLineNo">026</span>import org.apache.hbase.thirdparty.io.netty.util.Timer;<a name="line.26"></a>
+<span class="sourceLineNo">023</span>import org.apache.hadoop.hbase.exceptions.ClientExceptionsUtil;<a name="line.23"></a>
+<span class="sourceLineNo">024</span>import org.apache.hadoop.hbase.ipc.HBaseRpcController;<a name="line.24"></a>
+<span class="sourceLineNo">025</span>import org.apache.hadoop.hbase.ipc.ServerNotRunningYetException;<a name="line.25"></a>
+<span class="sourceLineNo">026</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.26"></a>
 <span class="sourceLineNo">027</span><a name="line.27"></a>
-<span class="sourceLineNo">028</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService;<a name="line.28"></a>
+<span class="sourceLineNo">028</span>import org.apache.hbase.thirdparty.io.netty.util.Timer;<a name="line.28"></a>
 <span class="sourceLineNo">029</span><a name="line.29"></a>
-<span class="sourceLineNo">030</span>/**<a name="line.30"></a>
-<span class="sourceLineNo">031</span> * Retry caller for a request call to master.<a name="line.31"></a>
-<span class="sourceLineNo">032</span> * @since 2.0.0<a name="line.32"></a>
-<span class="sourceLineNo">033</span> */<a name="line.33"></a>
-<span class="sourceLineNo">034</span>@InterfaceAudience.Private<a name="line.34"></a>
-<span class="sourceLineNo">035</span>public class AsyncMasterRequestRpcRetryingCaller&lt;T&gt; extends AsyncRpcRetryingCaller&lt;T&gt; {<a name="line.35"></a>
-<span class="sourceLineNo">036</span><a name="line.36"></a>
-<span class="sourceLineNo">037</span>  @FunctionalInterface<a name="line.37"></a>
-<span class="sourceLineNo">038</span>  public interface Callable&lt;T&gt; {<a name="line.38"></a>
-<span class="sourceLineNo">039</span>    CompletableFuture&lt;T&gt; call(HBaseRpcController controller, MasterService.Interface stub);<a name="line.39"></a>
-<span class="sourceLineNo">040</span>  }<a name="line.40"></a>
-<span class="sourceLineNo">041</span><a name="line.41"></a>
-<span class="sourceLineNo">042</span>  private final Callable&lt;T&gt; callable;<a name="line.42"></a>
+<span class="sourceLineNo">030</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService;<a name="line.30"></a>
+<span class="sourceLineNo">031</span><a name="line.31"></a>
+<span class="sourceLineNo">032</span>/**<a name="line.32"></a>
+<span class="sourceLineNo">033</span> * Retry caller for a request call to master.<a name="line.33"></a>
+<span class="sourceLineNo">034</span> * @since 2.0.0<a name="line.34"></a>
+<span class="sourceLineNo">035</span> */<a name="line.35"></a>
+<span class="sourceLineNo">036</span>@InterfaceAudience.Private<a name="line.36"></a>
+<span class="sourceLineNo">037</span>public class AsyncMasterRequestRpcRetryingCaller&lt;T&gt; extends AsyncRpcRetryingCaller&lt;T&gt; {<a name="line.37"></a>
+<span class="sourceLineNo">038</span><a name="line.38"></a>
+<span class="sourceLineNo">039</span>  @FunctionalInterface<a name="line.39"></a>
+<span class="sourceLineNo">040</span>  public interface Callable&lt;T&gt; {<a name="line.40"></a>
+<span class="sourceLineNo">041</span>    CompletableFuture&lt;T&gt; call(HBaseRpcController controller, MasterService.Interface stub);<a name="line.41"></a>
+<span class="sourceLineNo">042</span>  }<a name="line.42"></a>
 <span class="sourceLineNo">043</span><a name="line.43"></a>
-<span class="sourceLineNo">044</span>  public AsyncMasterRequestRpcRetryingCaller(Timer retryTimer, AsyncConnectionImpl conn,<a name="line.44"></a>
-<span class="sourceLineNo">045</span>      Callable&lt;T&gt; callable, int priority, long pauseNs, int maxRetries, long operationTimeoutNs,<a name="line.45"></a>
-<span class="sourceLineNo">046</span>      long rpcTimeoutNs, int startLogErrorsCnt) {<a name="line.46"></a>
-<span class="sourceLineNo">047</span>    super(retryTimer, conn, priority, pauseNs, maxRetries, operationTimeoutNs, rpcTimeoutNs,<a name="line.47"></a>
-<span class="sourceLineNo">048</span>      startLogErrorsCnt);<a name="line.48"></a>
-<span class="sourceLineNo">049</span>    this.callable = callable;<a name="line.49"></a>
-<span class="sourceLineNo">050</span>  }<a name="line.50"></a>
-<span class="sourceLineNo">051</span><a name="line.51"></a>
-<span class="sourceLineNo">052</span>  @Override<a name="line.52"></a>
-<span class="sourceLineNo">053</span>  protected void doCall() {<a name="line.53"></a>
-<span class="sourceLineNo">054</span>    addListener(conn.getMasterStub(), (stub, error) -&gt; {<a name="line.54"></a>
-<span class="sourceLineNo">055</span>      if (error != null) {<a name="line.55"></a>
-<span class="sourceLineNo">056</span>        onError(error, () -&gt; "Get async master stub failed", err -&gt; {<a name="line.56"></a>
-<span class="sourceLineNo">057</span>        });<a name="line.57"></a>
-<span class="sourceLineNo">058</span>        return;<a name="line.58"></a>
-<span class="sourceLineNo">059</span>      }<a name="line.59"></a>
-<span class="sourceLineNo">060</span>      resetCallTimeout();<a name="line.60"></a>
-<span class="sourceLineNo">061</span>      addListener(callable.call(controller, stub), (result, error2) -&gt; {<a name="line.61"></a>
-<span class="sourceLineNo">062</span>        if (error2 != null) {<a name="line.62"></a>
-<span class="sourceLineNo">063</span>          onError(error2, () -&gt; "Call to master failed", err -&gt; {<a name="line.63"></a>
-<span class="sourceLineNo">064</span>          });<a name="line.64"></a>
-<span class="sourceLineNo">065</span>          return;<a name="line.65"></a>
-<span class="sourceLineNo">066</span>        }<a name="line.66"></a>
-<span class="sourceLineNo">067</span>        future.complete(result);<a name="line.67"></a>
-<span class="sourceLineNo">068</span>      });<a name="line.68"></a>
-<span class="sourceLineNo">069</span>    });<a name="line.69"></a>
-<span class="sourceLineNo">070</span>  }<a name="line.70"></a>
-<span class="sourceLineNo">071</span>}<a name="line.71"></a>
+<span class="sourceLineNo">044</span>  private final Callable&lt;T&gt; callable;<a name="line.44"></a>
+<span class="sourceLineNo">045</span><a name="line.45"></a>
+<span class="sourceLineNo">046</span>  public AsyncMasterRequestRpcRetryingCaller(Timer retryTimer, AsyncConnectionImpl conn,<a name="line.46"></a>
+<span class="sourceLineNo">047</span>      Callable&lt;T&gt; callable, int priority, long pauseNs, int maxRetries, long operationTimeoutNs,<a name="line.47"></a>
+<span class="sourceLineNo">048</span>      long rpcTimeoutNs, int startLogErrorsCnt) {<a name="line.48"></a>
+<span class="sourceLineNo">049</span>    super(retryTimer, conn, priority, pauseNs, maxRetries, operationTimeoutNs, rpcTimeoutNs,<a name="line.49"></a>
+<span class="sourceLineNo">050</span>      startLogErrorsCnt);<a name="line.50"></a>
+<span class="sourceLineNo">051</span>    this.callable = callable;<a name="line.51"></a>
+<span class="sourceLineNo">052</span>  }<a name="line.52"></a>
+<span class="sourceLineNo">053</span><a name="line.53"></a>
+<span class="sourceLineNo">054</span>  private void clearMasterStubCacheOnError(MasterService.Interface stub, Throwable error) {<a name="line.54"></a>
+<span class="sourceLineNo">055</span>    // ServerNotRunningYetException may because it is the backup master.<a name="line.55"></a>
+<span class="sourceLineNo">056</span>    if (ClientExceptionsUtil.isConnectionException(error) ||<a name="line.56"></a>
+<span class="sourceLineNo">057</span>      error instanceof ServerNotRunningYetException) {<a name="line.57"></a>
+<span class="sourceLineNo">058</span>      conn.clearMasterStubCache(stub);<a name="line.58"></a>
+<span class="sourceLineNo">059</span>    }<a name="line.59"></a>
+<span class="sourceLineNo">060</span>  }<a name="line.60"></a>
+<span class="sourceLineNo">061</span><a name="line.61"></a>
+<span class="sourceLineNo">062</span>  @Override<a name="line.62"></a>
+<span class="sourceLineNo">063</span>  protected void doCall() {<a name="line.63"></a>
+<span class="sourceLineNo">064</span>    addListener(conn.getMasterStub(), (stub, error) -&gt; {<a name="line.64"></a>
+<span class="sourceLineNo">065</span>      if (error != null) {<a name="line.65"></a>
+<span class="sourceLineNo">066</span>        onError(error, () -&gt; "Get async master stub failed", err -&gt; {<a name="line.66"></a>
+<span class="sourceLineNo">067</span>        });<a name="line.67"></a>
+<span class="sourceLineNo">068</span>        return;<a name="line.68"></a>
+<span class="sourceLineNo">069</span>      }<a name="line.69"></a>
+<span class="sourceLineNo">070</span>      resetCallTimeout();<a name="line.70"></a>
+<span class="sourceLineNo">071</span>      addListener(callable.call(controller, stub), (result, error2) -&gt; {<a name="line.71"></a>
+<span class="sourceLineNo">072</span>        if (error2 != null) {<a name="line.72"></a>
+<span class="sourceLineNo">073</span>          onError(error2, () -&gt; "Call to master failed",<a name="line.73"></a>
+<span class="sourceLineNo">074</span>            err -&gt; clearMasterStubCacheOnError(stub, error2));<a name="line.74"></a>
+<span class="sourceLineNo">075</span>          return;<a name="line.75"></a>
+<span class="sourceLineNo">076</span>        }<a name="line.76"></a>
+<span class="sourceLineNo">077</span>        future.complete(result);<a name="line.77"></a>
+<span class="sourceLineNo">078</span>      });<a name="line.78"></a>
+<span class="sourceLineNo">079</span>    });<a name="line.79"></a>
+<span class="sourceLineNo">080</span>  }<a name="line.80"></a>
+<span class="sourceLineNo">081</span>}<a name="line.81"></a>
 
 
 
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetryingCaller.html b/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetryingCaller.html
index d0920e0..422c2fc 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetryingCaller.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncMasterRequestRpcRetryingCaller.html
@@ -28,55 +28,65 @@
 <span class="sourceLineNo">020</span>import static org.apache.hadoop.hbase.util.FutureUtils.addListener;<a name="line.20"></a>
 <span class="sourceLineNo">021</span><a name="line.21"></a>
 <span class="sourceLineNo">022</span>import java.util.concurrent.CompletableFuture;<a name="line.22"></a>
-<span class="sourceLineNo">023</span>import org.apache.hadoop.hbase.ipc.HBaseRpcController;<a name="line.23"></a>
-<span class="sourceLineNo">024</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.24"></a>
-<span class="sourceLineNo">025</span><a name="line.25"></a>
-<span class="sourceLineNo">026</span>import org.apache.hbase.thirdparty.io.netty.util.Timer;<a name="line.26"></a>
+<span class="sourceLineNo">023</span>import org.apache.hadoop.hbase.exceptions.ClientExceptionsUtil;<a name="line.23"></a>
+<span class="sourceLineNo">024</span>import org.apache.hadoop.hbase.ipc.HBaseRpcController;<a name="line.24"></a>
+<span class="sourceLineNo">025</span>import org.apache.hadoop.hbase.ipc.ServerNotRunningYetException;<a name="line.25"></a>
+<span class="sourceLineNo">026</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.26"></a>
 <span class="sourceLineNo">027</span><a name="line.27"></a>
-<span class="sourceLineNo">028</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService;<a name="line.28"></a>
+<span class="sourceLineNo">028</span>import org.apache.hbase.thirdparty.io.netty.util.Timer;<a name="line.28"></a>
 <span class="sourceLineNo">029</span><a name="line.29"></a>
-<span class="sourceLineNo">030</span>/**<a name="line.30"></a>
-<span class="sourceLineNo">031</span> * Retry caller for a request call to master.<a name="line.31"></a>
-<span class="sourceLineNo">032</span> * @since 2.0.0<a name="line.32"></a>
-<span class="sourceLineNo">033</span> */<a name="line.33"></a>
-<span class="sourceLineNo">034</span>@InterfaceAudience.Private<a name="line.34"></a>
-<span class="sourceLineNo">035</span>public class AsyncMasterRequestRpcRetryingCaller&lt;T&gt; extends AsyncRpcRetryingCaller&lt;T&gt; {<a name="line.35"></a>
-<span class="sourceLineNo">036</span><a name="line.36"></a>
-<span class="sourceLineNo">037</span>  @FunctionalInterface<a name="line.37"></a>
-<span class="sourceLineNo">038</span>  public interface Callable&lt;T&gt; {<a name="line.38"></a>
-<span class="sourceLineNo">039</span>    CompletableFuture&lt;T&gt; call(HBaseRpcController controller, MasterService.Interface stub);<a name="line.39"></a>
-<span class="sourceLineNo">040</span>  }<a name="line.40"></a>
-<span class="sourceLineNo">041</span><a name="line.41"></a>
-<span class="sourceLineNo">042</span>  private final Callable&lt;T&gt; callable;<a name="line.42"></a>
+<span class="sourceLineNo">030</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService;<a name="line.30"></a>
+<span class="sourceLineNo">031</span><a name="line.31"></a>
+<span class="sourceLineNo">032</span>/**<a name="line.32"></a>
+<span class="sourceLineNo">033</span> * Retry caller for a request call to master.<a name="line.33"></a>
+<span class="sourceLineNo">034</span> * @since 2.0.0<a name="line.34"></a>
+<span class="sourceLineNo">035</span> */<a name="line.35"></a>
+<span class="sourceLineNo">036</span>@InterfaceAudience.Private<a name="line.36"></a>
+<span class="sourceLineNo">037</span>public class AsyncMasterRequestRpcRetryingCaller&lt;T&gt; extends AsyncRpcRetryingCaller&lt;T&gt; {<a name="line.37"></a>
+<span class="sourceLineNo">038</span><a name="line.38"></a>
+<span class="sourceLineNo">039</span>  @FunctionalInterface<a name="line.39"></a>
+<span class="sourceLineNo">040</span>  public interface Callable&lt;T&gt; {<a name="line.40"></a>
+<span class="sourceLineNo">041</span>    CompletableFuture&lt;T&gt; call(HBaseRpcController controller, MasterService.Interface stub);<a name="line.41"></a>
+<span class="sourceLineNo">042</span>  }<a name="line.42"></a>
 <span class="sourceLineNo">043</span><a name="line.43"></a>
-<span class="sourceLineNo">044</span>  public AsyncMasterRequestRpcRetryingCaller(Timer retryTimer, AsyncConnectionImpl conn,<a name="line.44"></a>
-<span class="sourceLineNo">045</span>      Callable&lt;T&gt; callable, int priority, long pauseNs, int maxRetries, long operationTimeoutNs,<a name="line.45"></a>
-<span class="sourceLineNo">046</span>      long rpcTimeoutNs, int startLogErrorsCnt) {<a name="line.46"></a>
-<span class="sourceLineNo">047</span>    super(retryTimer, conn, priority, pauseNs, maxRetries, operationTimeoutNs, rpcTimeoutNs,<a name="line.47"></a>
-<span class="sourceLineNo">048</span>      startLogErrorsCnt);<a name="line.48"></a>
-<span class="sourceLineNo">049</span>    this.callable = callable;<a name="line.49"></a>
-<span class="sourceLineNo">050</span>  }<a name="line.50"></a>
-<span class="sourceLineNo">051</span><a name="line.51"></a>
-<span class="sourceLineNo">052</span>  @Override<a name="line.52"></a>
-<span class="sourceLineNo">053</span>  protected void doCall() {<a name="line.53"></a>
-<span class="sourceLineNo">054</span>    addListener(conn.getMasterStub(), (stub, error) -&gt; {<a name="line.54"></a>
-<span class="sourceLineNo">055</span>      if (error != null) {<a name="line.55"></a>
-<span class="sourceLineNo">056</span>        onError(error, () -&gt; "Get async master stub failed", err -&gt; {<a name="line.56"></a>
-<span class="sourceLineNo">057</span>        });<a name="line.57"></a>
-<span class="sourceLineNo">058</span>        return;<a name="line.58"></a>
-<span class="sourceLineNo">059</span>      }<a name="line.59"></a>
-<span class="sourceLineNo">060</span>      resetCallTimeout();<a name="line.60"></a>
-<span class="sourceLineNo">061</span>      addListener(callable.call(controller, stub), (result, error2) -&gt; {<a name="line.61"></a>
-<span class="sourceLineNo">062</span>        if (error2 != null) {<a name="line.62"></a>
-<span class="sourceLineNo">063</span>          onError(error2, () -&gt; "Call to master failed", err -&gt; {<a name="line.63"></a>
-<span class="sourceLineNo">064</span>          });<a name="line.64"></a>
-<span class="sourceLineNo">065</span>          return;<a name="line.65"></a>
-<span class="sourceLineNo">066</span>        }<a name="line.66"></a>
-<span class="sourceLineNo">067</span>        future.complete(result);<a name="line.67"></a>
-<span class="sourceLineNo">068</span>      });<a name="line.68"></a>
-<span class="sourceLineNo">069</span>    });<a name="line.69"></a>
-<span class="sourceLineNo">070</span>  }<a name="line.70"></a>
-<span class="sourceLineNo">071</span>}<a name="line.71"></a>
+<span class="sourceLineNo">044</span>  private final Callable&lt;T&gt; callable;<a name="line.44"></a>
+<span class="sourceLineNo">045</span><a name="line.45"></a>
+<span class="sourceLineNo">046</span>  public AsyncMasterRequestRpcRetryingCaller(Timer retryTimer, AsyncConnectionImpl conn,<a name="line.46"></a>
+<span class="sourceLineNo">047</span>      Callable&lt;T&gt; callable, int priority, long pauseNs, int maxRetries, long operationTimeoutNs,<a name="line.47"></a>
+<span class="sourceLineNo">048</span>      long rpcTimeoutNs, int startLogErrorsCnt) {<a name="line.48"></a>
+<span class="sourceLineNo">049</span>    super(retryTimer, conn, priority, pauseNs, maxRetries, operationTimeoutNs, rpcTimeoutNs,<a name="line.49"></a>
+<span class="sourceLineNo">050</span>      startLogErrorsCnt);<a name="line.50"></a>
+<span class="sourceLineNo">051</span>    this.callable = callable;<a name="line.51"></a>
+<span class="sourceLineNo">052</span>  }<a name="line.52"></a>
+<span class="sourceLineNo">053</span><a name="line.53"></a>
+<span class="sourceLineNo">054</span>  private void clearMasterStubCacheOnError(MasterService.Interface stub, Throwable error) {<a name="line.54"></a>
+<span class="sourceLineNo">055</span>    // ServerNotRunningYetException may because it is the backup master.<a name="line.55"></a>
+<span class="sourceLineNo">056</span>    if (ClientExceptionsUtil.isConnectionException(error) ||<a name="line.56"></a>
+<span class="sourceLineNo">057</span>      error instanceof ServerNotRunningYetException) {<a name="line.57"></a>
+<span class="sourceLineNo">058</span>      conn.clearMasterStubCache(stub);<a name="line.58"></a>
+<span class="sourceLineNo">059</span>    }<a name="line.59"></a>
+<span class="sourceLineNo">060</span>  }<a name="line.60"></a>
+<span class="sourceLineNo">061</span><a name="line.61"></a>
+<span class="sourceLineNo">062</span>  @Override<a name="line.62"></a>
+<span class="sourceLineNo">063</span>  protected void doCall() {<a name="line.63"></a>
+<span class="sourceLineNo">064</span>    addListener(conn.getMasterStub(), (stub, error) -&gt; {<a name="line.64"></a>
+<span class="sourceLineNo">065</span>      if (error != null) {<a name="line.65"></a>
+<span class="sourceLineNo">066</span>        onError(error, () -&gt; "Get async master stub failed", err -&gt; {<a name="line.66"></a>
+<span class="sourceLineNo">067</span>        });<a name="line.67"></a>
+<span class="sourceLineNo">068</span>        return;<a name="line.68"></a>
+<span class="sourceLineNo">069</span>      }<a name="line.69"></a>
+<span class="sourceLineNo">070</span>      resetCallTimeout();<a name="line.70"></a>
+<span class="sourceLineNo">071</span>      addListener(callable.call(controller, stub), (result, error2) -&gt; {<a name="line.71"></a>
+<span class="sourceLineNo">072</span>        if (error2 != null) {<a name="line.72"></a>
+<span class="sourceLineNo">073</span>          onError(error2, () -&gt; "Call to master failed",<a name="line.73"></a>
+<span class="sourceLineNo">074</span>            err -&gt; clearMasterStubCacheOnError(stub, error2));<a name="line.74"></a>
+<span class="sourceLineNo">075</span>          return;<a name="line.75"></a>
+<span class="sourceLineNo">076</span>        }<a name="line.76"></a>
+<span class="sourceLineNo">077</span>        future.complete(result);<a name="line.77"></a>
+<span class="sourceLineNo">078</span>      });<a name="line.78"></a>
+<span class="sourceLineNo">079</span>    });<a name="line.79"></a>
+<span class="sourceLineNo">080</span>  }<a name="line.80"></a>
+<span class="sourceLineNo">081</span>}<a name="line.81"></a>
 
 
 
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncMetaRegionLocator.html b/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncMetaRegionLocator.html
index c6f9d8a..5007bc2 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncMetaRegionLocator.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/client/AsyncMetaRegionLocator.html
@@ -30,139 +30,97 @@
 <span class="sourceLineNo">022</span>import static org.apache.hadoop.hbase.client.AsyncRegionLocatorHelper.isGood;<a name="line.22"></a>
 <span class="sourceLineNo">023</span>import static org.apache.hadoop.hbase.client.AsyncRegionLocatorHelper.removeRegionLocation;<a name="line.23"></a>
 <span class="sourceLineNo">024</span>import static org.apache.hadoop.hbase.client.AsyncRegionLocatorHelper.replaceRegionLocation;<a name="line.24"></a>
-<span class="sourceLineNo">025</span>import static org.apache.hadoop.hbase.util.FutureUtils.addListener;<a name="line.25"></a>
-<span class="sourceLineNo">026</span><a name="line.26"></a>
-<span class="sourceLineNo">027</span>import java.util.concurrent.CompletableFuture;<a name="line.27"></a>
-<span class="sourceLineNo">028</span>import java.util.concurrent.atomic.AtomicReference;<a name="line.28"></a>
-<span class="sourceLineNo">029</span>import org.apache.hadoop.hbase.HRegionLocation;<a name="line.29"></a>
-<span class="sourceLineNo">030</span>import org.apache.hadoop.hbase.RegionLocations;<a name="line.30"></a>
-<span class="sourceLineNo">031</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.31"></a>
-<span class="sourceLineNo">032</span>import org.slf4j.Logger;<a name="line.32"></a>
-<span class="sourceLineNo">033</span>import org.slf4j.LoggerFactory;<a name="line.33"></a>
-<span class="sourceLineNo">034</span><a name="line.34"></a>
-<span class="sourceLineNo">035</span>/**<a name="line.35"></a>
-<span class="sourceLineNo">036</span> * The asynchronous locator for meta region.<a name="line.36"></a>
-<span class="sourceLineNo">037</span> */<a name="line.37"></a>
-<span class="sourceLineNo">038</span>@InterfaceAudience.Private<a name="line.38"></a>
-<span class="sourceLineNo">039</span>class AsyncMetaRegionLocator {<a name="line.39"></a>
-<span class="sourceLineNo">040</span><a name="line.40"></a>
-<span class="sourceLineNo">041</span>  private static final Logger LOG = LoggerFactory.getLogger(AsyncMetaRegionLocator.class);<a name="line.41"></a>
-<span class="sourceLineNo">042</span><a name="line.42"></a>
-<span class="sourceLineNo">043</span>  private final AsyncRegistry registry;<a name="line.43"></a>
+<span class="sourceLineNo">025</span><a name="line.25"></a>
+<span class="sourceLineNo">026</span>import java.util.concurrent.CompletableFuture;<a name="line.26"></a>
+<span class="sourceLineNo">027</span>import java.util.concurrent.atomic.AtomicReference;<a name="line.27"></a>
+<span class="sourceLineNo">028</span>import org.apache.hadoop.hbase.HRegionLocation;<a name="line.28"></a>
+<span class="sourceLineNo">029</span>import org.apache.hadoop.hbase.RegionLocations;<a name="line.29"></a>
+<span class="sourceLineNo">030</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.30"></a>
+<span class="sourceLineNo">031</span><a name="line.31"></a>
+<span class="sourceLineNo">032</span>/**<a name="line.32"></a>
+<span class="sourceLineNo">033</span> * The asynchronous locator for meta region.<a name="line.33"></a>
+<span class="sourceLineNo">034</span> */<a name="line.34"></a>
+<span class="sourceLineNo">035</span>@InterfaceAudience.Private<a name="line.35"></a>
+<span class="sourceLineNo">036</span>class AsyncMetaRegionLocator {<a name="line.36"></a>
+<span class="sourceLineNo">037</span><a name="line.37"></a>
+<span class="sourceLineNo">038</span>  private final AsyncRegistry registry;<a name="line.38"></a>
+<span class="sourceLineNo">039</span><a name="line.39"></a>
+<span class="sourceLineNo">040</span>  private final AtomicReference&lt;RegionLocations&gt; metaRegionLocations = new AtomicReference&lt;&gt;();<a name="line.40"></a>
+<span class="sourceLineNo">041</span><a name="line.41"></a>
+<span class="sourceLineNo">042</span>  private final AtomicReference&lt;CompletableFuture&lt;RegionLocations&gt;&gt; metaRelocateFuture =<a name="line.42"></a>
+<span class="sourceLineNo">043</span>    new AtomicReference&lt;&gt;();<a name="line.43"></a>
 <span class="sourceLineNo">044</span><a name="line.44"></a>
-<span class="sourceLineNo">045</span>  private final AtomicReference&lt;RegionLocations&gt; metaRegionLocations = new AtomicReference&lt;&gt;();<a name="line.45"></a>
-<span class="sourceLineNo">046</span><a name="line.46"></a>
-<span class="sourceLineNo">047</span>  private final AtomicReference&lt;CompletableFuture&lt;RegionLocations&gt;&gt; metaRelocateFuture =<a name="line.47"></a>
-<span class="sourceLineNo">048</span>    new AtomicReference&lt;&gt;();<a name="line.48"></a>
-<span class="sourceLineNo">049</span><a name="line.49"></a>
-<span class="sourceLineNo">050</span>  AsyncMetaRegionLocator(AsyncRegistry registry) {<a name="line.50"></a>
-<span class="sourceLineNo">051</span>    this.registry = registry;<a name="line.51"></a>
-<span class="sourceLineNo">052</span>  }<a name="line.52"></a>
-<span class="sourceLineNo">053</span><a name="line.53"></a>
-<span class="sourceLineNo">054</span>  /**<a name="line.54"></a>
-<span class="sourceLineNo">055</span>   * Get the region locations for meta region. If the location for the given replica is not<a name="line.55"></a>
-<span class="sourceLineNo">056</span>   * available in the cached locations, then fetch from the HBase cluster.<a name="line.56"></a>
-<span class="sourceLineNo">057</span>   * &lt;p/&gt;<a name="line.57"></a>
-<span class="sourceLineNo">058</span>   * The &lt;code&gt;replicaId&lt;/code&gt; parameter is important. If the region replication config for meta<a name="line.58"></a>
-<span class="sourceLineNo">059</span>   * region is changed, then the cached region locations may not have the locations for new<a name="line.59"></a>
-<span class="sourceLineNo">060</span>   * replicas. If we do not check the location for the given replica, we will always return the<a name="line.60"></a>
-<span class="sourceLineNo">061</span>   * cached region locations and cause an infinite loop.<a name="line.61"></a>
-<span class="sourceLineNo">062</span>   */<a name="line.62"></a>
-<span class="sourceLineNo">063</span>  CompletableFuture&lt;RegionLocations&gt; getRegionLocations(int replicaId, boolean reload) {<a name="line.63"></a>
-<span class="sourceLineNo">064</span>    for (;;) {<a name="line.64"></a>
-<span class="sourceLineNo">065</span>      if (!reload) {<a name="line.65"></a>
-<span class="sourceLineNo">066</span>        RegionLocations locs = this.metaRegionLocations.get();<a name="line.66"></a>
-<span class="sourceLineNo">067</span>        if (isGood(locs, replicaId)) {<a name="line.67"></a>
-<span class="sourceLineNo">068</span>          return CompletableFuture.completedFuture(locs);<a name="line.68"></a>
-<span class="sourceLineNo">069</span>        }<a name="line.69"></a>
-<span class="sourceLineNo">070</span>      }<a name="line.70"></a>
-<span class="sourceLineNo">071</span>      LOG.trace("Meta region location cache is null, try fetching from registry.");<a name="line.71"></a>
-<span class="sourceLineNo">072</span>      if (metaRelocateFuture.compareAndSet(null, new CompletableFuture&lt;&gt;())) {<a name="line.72"></a>
-<span class="sourceLineNo">073</span>        LOG.debug("Start fetching meta region location from registry.");<a name="line.73"></a>
-<span class="sourceLineNo">074</span>        CompletableFuture&lt;RegionLocations&gt; future = metaRelocateFuture.get();<a name="line.74"></a>
-<span class="sourceLineNo">075</span>        addListener(registry.getMetaRegionLocation(), (locs, error) -&gt; {<a name="line.75"></a>
-<span class="sourceLineNo">076</span>          if (error != null) {<a name="line.76"></a>
-<span class="sourceLineNo">077</span>            LOG.debug("Failed to fetch meta region location from registry", error);<a name="line.77"></a>
-<span class="sourceLineNo">078</span>            metaRelocateFuture.getAndSet(null).completeExceptionally(error);<a name="line.78"></a>
-<span class="sourceLineNo">079</span>            return;<a name="line.79"></a>
-<span class="sourceLineNo">080</span>          }<a name="line.80"></a>
-<span class="sourceLineNo">081</span>          LOG.debug("The fetched meta region location is {}", locs);<a name="line.81"></a>
-<span class="sourceLineNo">082</span>          // Here we update cache before reset future, so it is possible that someone can get a<a name="line.82"></a>
-<span class="sourceLineNo">083</span>          // stale value. Consider this:<a name="line.83"></a>
-<span class="sourceLineNo">084</span>          // 1. update cache<a name="line.84"></a>
-<span class="sourceLineNo">085</span>          // 2. someone clear the cache and relocate again<a name="line.85"></a>
-<span class="sourceLineNo">086</span>          // 3. the metaRelocateFuture is not null so the old future is used.<a name="line.86"></a>
-<span class="sourceLineNo">087</span>          // 4. we clear metaRelocateFuture and complete the future in it with the value being<a name="line.87"></a>
-<span class="sourceLineNo">088</span>          // cleared in step 2.<a name="line.88"></a>
-<span class="sourceLineNo">089</span>          // But we do not think it is a big deal as it rarely happens, and even if it happens, the<a name="line.89"></a>
-<span class="sourceLineNo">090</span>          // caller will retry again later, no correctness problems.<a name="line.90"></a>
-<span class="sourceLineNo">091</span>          this.metaRegionLocations.set(locs);<a name="line.91"></a>
-<span class="sourceLineNo">092</span>          metaRelocateFuture.set(null);<a name="line.92"></a>
-<span class="sourceLineNo">093</span>          future.complete(locs);<a name="line.93"></a>
-<span class="sourceLineNo">094</span>        });<a name="line.94"></a>
-<span class="sourceLineNo">095</span>        return future;<a name="line.95"></a>
-<span class="sourceLineNo">096</span>      } else {<a name="line.96"></a>
-<span class="sourceLineNo">097</span>        CompletableFuture&lt;RegionLocations&gt; future = metaRelocateFuture.get();<a name="line.97"></a>
-<span class="sourceLineNo">098</span>        if (future != null) {<a name="line.98"></a>
-<span class="sourceLineNo">099</span>          return future;<a name="line.99"></a>
-<span class="sourceLineNo">100</span>        }<a name="line.100"></a>
-<span class="sourceLineNo">101</span>      }<a name="line.101"></a>
-<span class="sourceLineNo">102</span>    }<a name="line.102"></a>
-<span class="sourceLineNo">103</span>  }<a name="line.103"></a>
-<span class="sourceLineNo">104</span><a name="line.104"></a>
-<span class="sourceLineNo">105</span>  private HRegionLocation getCacheLocation(HRegionLocation loc) {<a name="line.105"></a>
-<span class="sourceLineNo">106</span>    RegionLocations locs = metaRegionLocations.get();<a name="line.106"></a>
-<span class="sourceLineNo">107</span>    return locs != null ? locs.getRegionLocation(loc.getRegion().getReplicaId()) : null;<a name="line.107"></a>
-<span class="sourceLineNo">108</span>  }<a name="line.108"></a>
-<span class="sourceLineNo">109</span><a name="line.109"></a>
-<span class="sourceLineNo">110</span>  private void addLocationToCache(HRegionLocation loc) {<a name="line.110"></a>
-<span class="sourceLineNo">111</span>    for (;;) {<a name="line.111"></a>
-<span class="sourceLineNo">112</span>      int replicaId = loc.getRegion().getReplicaId();<a name="line.112"></a>
-<span class="sourceLineNo">113</span>      RegionLocations oldLocs = metaRegionLocations.get();<a name="line.113"></a>
-<span class="sourceLineNo">114</span>      if (oldLocs == null) {<a name="line.114"></a>
-<span class="sourceLineNo">115</span>        RegionLocations newLocs = createRegionLocations(loc);<a name="line.115"></a>
-<span class="sourceLineNo">116</span>        if (metaRegionLocations.compareAndSet(null, newLocs)) {<a name="line.116"></a>
-<span class="sourceLineNo">117</span>          return;<a name="line.117"></a>
-<span class="sourceLineNo">118</span>        }<a name="line.118"></a>
-<span class="sourceLineNo">119</span>      }<a name="line.119"></a>
-<span class="sourceLineNo">120</span>      HRegionLocation oldLoc = oldLocs.getRegionLocation(replicaId);<a name="line.120"></a>
-<span class="sourceLineNo">121</span>      if (oldLoc != null &amp;&amp; (oldLoc.getSeqNum() &gt; loc.getSeqNum() ||<a name="line.121"></a>
-<span class="sourceLineNo">122</span>        oldLoc.getServerName().equals(loc.getServerName()))) {<a name="line.122"></a>
-<span class="sourceLineNo">123</span>        return;<a name="line.123"></a>
-<span class="sourceLineNo">124</span>      }<a name="line.124"></a>
-<span class="sourceLineNo">125</span>      RegionLocations newLocs = replaceRegionLocation(oldLocs, loc);<a name="line.125"></a>
-<span class="sourceLineNo">126</span>      if (metaRegionLocations.compareAndSet(oldLocs, newLocs)) {<a name="line.126"></a>
-<span class="sourceLineNo">127</span>        return;<a name="line.127"></a>
-<span class="sourceLineNo">128</span>      }<a name="line.128"></a>
-<span class="sourceLineNo">129</span>    }<a name="line.129"></a>
-<span class="sourceLineNo">130</span>  }<a name="line.130"></a>
-<span class="sourceLineNo">131</span><a name="line.131"></a>
-<span class="sourceLineNo">132</span>  private void removeLocationFromCache(HRegionLocation loc) {<a name="line.132"></a>
-<span class="sourceLineNo">133</span>    for (;;) {<a name="line.133"></a>
-<span class="sourceLineNo">134</span>      RegionLocations oldLocs = metaRegionLocations.get();<a name="line.134"></a>
-<span class="sourceLineNo">135</span>      if (oldLocs == null) {<a name="line.135"></a>
-<span class="sourceLineNo">136</span>        return;<a name="line.136"></a>
-<span class="sourceLineNo">137</span>      }<a name="line.137"></a>
-<span class="sourceLineNo">138</span>      HRegionLocation oldLoc = oldLocs.getRegionLocation(loc.getRegion().getReplicaId());<a name="line.138"></a>
-<span class="sourceLineNo">139</span>      if (!canUpdateOnError(loc, oldLoc)) {<a name="line.139"></a>
-<span class="sourceLineNo">140</span>        return;<a name="line.140"></a>
-<span class="sourceLineNo">141</span>      }<a name="line.141"></a>
-<span class="sourceLineNo">142</span>      RegionLocations newLocs = removeRegionLocation(oldLocs, loc.getRegion().getReplicaId());<a name="line.142"></a>
-<span class="sourceLineNo">143</span>      if (metaRegionLocations.compareAndSet(oldLocs, newLocs)) {<a name="line.143"></a>
-<span class="sourceLineNo">144</span>        return;<a name="line.144"></a>
-<span class="sourceLineNo">145</span>      }<a name="line.145"></a>
-<span class="sourceLineNo">146</span>    }<a name="line.146"></a>
-<span class="sourceLineNo">147</span>  }<a name="line.147"></a>
-<span class="sourceLineNo">148</span><a name="line.148"></a>
-<span class="sourceLineNo">149</span>  void updateCachedLocationOnError(HRegionLocation loc, Throwable exception) {<a name="line.149"></a>
-<span class="sourceLineNo">150</span>    AsyncRegionLocatorHelper.updateCachedLocationOnError(loc, exception, this::getCacheLocation,<a name="line.150"></a>
-<span class="sourceLineNo">151</span>      this::addLocationToCache, this::removeLocationFromCache);<a name="line.151"></a>
-<span class="sourceLineNo">152</span>  }<a name="line.152"></a>
-<span class="sourceLineNo">153</span><a name="line.153"></a>
-<span class="sourceLineNo">154</span>  void clearCache() {<a name="line.154"></a>
-<span class="sourceLineNo">155</span>    metaRegionLocations.set(null);<a name="line.155"></a>
-<span class="sourceLineNo">156</span>  }<a name="line.156"></a>
-<span class="sourceLineNo">157</span>}<a name="line.157"></a>
+<span class="sourceLineNo">045</span>  AsyncMetaRegionLocator(AsyncRegistry registry) {<a name="line.45"></a>
+<span class="sourceLineNo">046</span>    this.registry = registry;<a name="line.46"></a>
+<span class="sourceLineNo">047</span>  }<a name="line.47"></a>
+<span class="sourceLineNo">048</span><a name="line.48"></a>
+<span class="sourceLineNo">049</span>  /**<a name="line.49"></a>
+<span class="sourceLineNo">050</span>   * Get the region locations for meta region. If the location for the given replica is not<a name="line.50"></a>
+<span class="sourceLineNo">051</span>   * available in the cached locations, then fetch from the HBase cluster.<a name="line.51"></a>
+<span class="sourceLineNo">052</span>   * &lt;p/&gt;<a name="line.52"></a>
+<span class="sourceLineNo">053</span>   * The &lt;code&gt;replicaId&lt;/code&gt; parameter is important. If the region replication config for meta<a name="line.53"></a>
+<span class="sourceLineNo">054</span>   * region is changed, then the cached region locations may not have the locations for new<a name="line.54"></a>
+<span class="sourceLineNo">055</span>   * replicas. If we do not check the location for the given replica, we will always return the<a name="line.55"></a>
+<span class="sourceLineNo">056</span>   * cached region locations and cause an infinite loop.<a name="line.56"></a>
+<span class="sourceLineNo">057</span>   */<a name="line.57"></a>
+<span class="sourceLineNo">058</span>  CompletableFuture&lt;RegionLocations&gt; getRegionLocations(int replicaId, boolean reload) {<a name="line.58"></a>
+<span class="sourceLineNo">059</span>    return ConnectionUtils.getOrFetch(metaRegionLocations, metaRelocateFuture, reload,<a name="line.59"></a>
+<span class="sourceLineNo">060</span>      registry::getMetaRegionLocation, locs -&gt; isGood(locs, replicaId), "meta region location");<a name="line.60"></a>
+<span class="sourceLineNo">061</span>  }<a name="line.61"></a>
+<span class="sourceLineNo">062</span><a name="line.62"></a>
+<span class="sourceLineNo">063</span>  private HRegionLocation getCacheLocation(HRegionLocation loc) {<a name="line.63"></a>
+<span class="sourceLineNo">064</span>    RegionLocations locs = metaRegionLocations.get();<a name="line.64"></a>
+<span class="sourceLineNo">065</span>    return locs != null ? locs.getRegionLocation(loc.getRegion().getReplicaId()) : null;<a name="line.65"></a>
+<span class="sourceLineNo">066</span>  }<a name="line.66"></a>
+<span class="sourceLineNo">067</span><a name="line.67"></a>
+<span class="sourceLineNo">068</span>  private void addLocationToCache(HRegionLocation loc) {<a name="line.68"></a>
+<span class="sourceLineNo">069</span>    for (;;) {<a name="line.69"></a>
+<span class="sourceLineNo">070</span>      int replicaId = loc.getRegion().getReplicaId();<a name="line.70"></a>
+<span class="sourceLineNo">071</span>      RegionLocations oldLocs = metaRegionLocations.get();<a name="line.71"></a>
+<span class="sourceLineNo">072</span>      if (oldLocs == null) {<a name="line.72"></a>
+<span class="sourceLineNo">073</span>        RegionLocations newLocs = createRegionLocations(loc);<a name="line.73"></a>
+<span class="sourceLineNo">074</span>        if (metaRegionLocations.compareAndSet(null, newLocs)) {<a name="line.74"></a>
+<span class="sourceLineNo">075</span>          return;<a name="line.75"></a>
+<span class="sourceLineNo">076</span>        }<a name="line.76"></a>
+<span class="sourceLineNo">077</span>      }<a name="line.77"></a>
+<span class="sourceLineNo">078</span>      HRegionLocation oldLoc = oldLocs.getRegionLocation(replicaId);<a name="line.78"></a>
+<span class="sourceLineNo">079</span>      if (oldLoc != null &amp;&amp; (oldLoc.getSeqNum() &gt; loc.getSeqNum() ||<a name="line.79"></a>
+<span class="sourceLineNo">080</span>        oldLoc.getServerName().equals(loc.getServerName()))) {<a name="line.80"></a>
+<span class="sourceLineNo">081</span>        return;<a name="line.81"></a>
+<span class="sourceLineNo">082</span>      }<a name="line.82"></a>
+<span class="sourceLineNo">083</span>      RegionLocations newLocs = replaceRegionLocation(oldLocs, loc);<a name="line.83"></a>
+<span class="sourceLineNo">084</span>      if (metaRegionLocations.compareAndSet(oldLocs, newLocs)) {<a name="line.84"></a>
+<span class="sourceLineNo">085</span>        return;<a name="line.85"></a>
+<span class="sourceLineNo">086</span>      }<a name="line.86"></a>
+<span class="sourceLineNo">087</span>    }<a name="line.87"></a>
+<span class="sourceLineNo">088</span>  }<a name="line.88"></a>
+<span class="sourceLineNo">089</span><a name="line.89"></a>
+<span class="sourceLineNo">090</span>  private void removeLocationFromCache(HRegionLocation loc) {<a name="line.90"></a>
+<span class="sourceLineNo">091</span>    for (;;) {<a name="line.91"></a>
+<span class="sourceLineNo">092</span>      RegionLocations oldLocs = metaRegionLocations.get();<a name="line.92"></a>
+<span class="sourceLineNo">093</span>      if (oldLocs == null) {<a name="line.93"></a>
+<span class="sourceLineNo">094</span>        return;<a name="line.94"></a>
+<span class="sourceLineNo">095</span>      }<a name="line.95"></a>
+<span class="sourceLineNo">096</span>      HRegionLocation oldLoc = oldLocs.getRegionLocation(loc.getRegion().getReplicaId());<a name="line.96"></a>
+<span class="sourceLineNo">097</span>      if (!canUpdateOnError(loc, oldLoc)) {<a name="line.97"></a>
+<span class="sourceLineNo">098</span>        return;<a name="line.98"></a>
+<span class="sourceLineNo">099</span>      }<a name="line.99"></a>
+<span class="sourceLineNo">100</span>      RegionLocations newLocs = removeRegionLocation(oldLocs, loc.getRegion().getReplicaId());<a name="line.100"></a>
+<span class="sourceLineNo">101</span>      if (metaRegionLocations.compareAndSet(oldLocs, newLocs)) {<a name="line.101"></a>
+<span class="sourceLineNo">102</span>        return;<a name="line.102"></a>
+<span class="sourceLineNo">103</span>      }<a name="line.103"></a>
+<span class="sourceLineNo">104</span>    }<a name="line.104"></a>
+<span class="sourceLineNo">105</span>  }<a name="line.105"></a>
+<span class="sourceLineNo">106</span><a name="line.106"></a>
+<span class="sourceLineNo">107</span>  void updateCachedLocationOnError(HRegionLocation loc, Throwable exception) {<a name="line.107"></a>
+<span class="sourceLineNo">108</span>    AsyncRegionLocatorHelper.updateCachedLocationOnError(loc, exception, this::getCacheLocation,<a name="line.108"></a>
+<span class="sourceLineNo">109</span>      this::addLocationToCache, this::removeLocationFromCache);<a name="line.109"></a>
+<span class="sourceLineNo">110</span>  }<a name="line.110"></a>
+<span class="sourceLineNo">111</span><a name="line.111"></a>
+<span class="sourceLineNo">112</span>  void clearCache() {<a name="line.112"></a>
+<span class="sourceLineNo">113</span>    metaRegionLocations.set(null);<a name="line.113"></a>
+<span class="sourceLineNo">114</span>  }<a name="line.114"></a>
+<span class="sourceLineNo">115</span>}<a name="line.115"></a>
 
 
 
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/client/ConnectionUtils.MasterlessConnection.html b/devapidocs/src-html/org/apache/hadoop/hbase/client/ConnectionUtils.MasterlessConnection.html
index 49ca6d8..ff9e4cd 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/client/ConnectionUtils.MasterlessConnection.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/client/ConnectionUtils.MasterlessConnection.html
@@ -40,592 +40,639 @@
 <span class="sourceLineNo">032</span>import java.util.concurrent.ExecutorService;<a name="line.32"></a>
 <span class="sourceLineNo">033</span>import java.util.concurrent.ThreadLocalRandom;<a name="line.33"></a>
 <span class="sourceLineNo">034</span>import java.util.concurrent.TimeUnit;<a name="line.34"></a>
-<span class="sourceLineNo">035</span>import java.util.function.Function;<a name="line.35"></a>
-<span class="sourceLineNo">036</span>import org.apache.hadoop.conf.Configuration;<a name="line.36"></a>
-<span class="sourceLineNo">037</span>import org.apache.hadoop.hbase.Cell;<a name="line.37"></a>
-<span class="sourceLineNo">038</span>import org.apache.hadoop.hbase.CellComparator;<a name="line.38"></a>
-<span class="sourceLineNo">039</span>import org.apache.hadoop.hbase.HConstants;<a name="line.39"></a>
-<span class="sourceLineNo">040</span>import org.apache.hadoop.hbase.PrivateCellUtil;<a name="line.40"></a>
-<span class="sourceLineNo">041</span>import org.apache.hadoop.hbase.RegionLocations;<a name="line.41"></a>
-<span class="sourceLineNo">042</span>import org.apache.hadoop.hbase.ServerName;<a name="line.42"></a>
-<span class="sourceLineNo">043</span>import org.apache.hadoop.hbase.TableName;<a name="line.43"></a>
-<span class="sourceLineNo">044</span>import org.apache.hadoop.hbase.client.metrics.ScanMetrics;<a name="line.44"></a>
-<span class="sourceLineNo">045</span>import org.apache.hadoop.hbase.ipc.HBaseRpcController;<a name="line.45"></a>
-<span class="sourceLineNo">046</span>import org.apache.hadoop.hbase.security.User;<a name="line.46"></a>
-<span class="sourceLineNo">047</span>import org.apache.hadoop.hbase.security.UserProvider;<a name="line.47"></a>
-<span class="sourceLineNo">048</span>import org.apache.hadoop.hbase.util.Bytes;<a name="line.48"></a>
-<span class="sourceLineNo">049</span>import org.apache.hadoop.hbase.util.ReflectionUtils;<a name="line.49"></a>
-<span class="sourceLineNo">050</span>import org.apache.hadoop.ipc.RemoteException;<a name="line.50"></a>
-<span class="sourceLineNo">051</span>import org.apache.hadoop.net.DNS;<a name="line.51"></a>
-<span class="sourceLineNo">052</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.52"></a>
-<span class="sourceLineNo">053</span>import org.slf4j.Logger;<a name="line.53"></a>
-<span class="sourceLineNo">054</span>import org.slf4j.LoggerFactory;<a name="line.54"></a>
-<span class="sourceLineNo">055</span><a name="line.55"></a>
-<span class="sourceLineNo">056</span>import org.apache.hbase.thirdparty.com.google.common.annotations.VisibleForTesting;<a name="line.56"></a>
-<span class="sourceLineNo">057</span>import org.apache.hbase.thirdparty.com.google.common.base.Preconditions;<a name="line.57"></a>
-<span class="sourceLineNo">058</span>import org.apache.hbase.thirdparty.com.google.protobuf.ServiceException;<a name="line.58"></a>
-<span class="sourceLineNo">059</span>import org.apache.hbase.thirdparty.io.netty.util.Timer;<a name="line.59"></a>
-<span class="sourceLineNo">060</span><a name="line.60"></a>
-<span class="sourceLineNo">061</span>import org.apache.hadoop.hbase.shaded.protobuf.ResponseConverter;<a name="line.61"></a>
-<span class="sourceLineNo">062</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.AdminService;<a name="line.62"></a>
-<span class="sourceLineNo">063</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService;<a name="line.63"></a>
-<span class="sourceLineNo">064</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ScanResponse;<a name="line.64"></a>
-<span class="sourceLineNo">065</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService;<a name="line.65"></a>
-<span class="sourceLineNo">066</span><a name="line.66"></a>
-<span class="sourceLineNo">067</span>/**<a name="line.67"></a>
-<span class="sourceLineNo">068</span> * Utility used by client connections.<a name="line.68"></a>
-<span class="sourceLineNo">069</span> */<a name="line.69"></a>
-<span class="sourceLineNo">070</span>@InterfaceAudience.Private<a name="line.70"></a>
-<span class="sourceLineNo">071</span>public final class ConnectionUtils {<a name="line.71"></a>
-<span class="sourceLineNo">072</span><a name="line.72"></a>
-<span class="sourceLineNo">073</span>  private static final Logger LOG = LoggerFactory.getLogger(ConnectionUtils.class);<a name="line.73"></a>
-<span class="sourceLineNo">074</span><a name="line.74"></a>
-<span class="sourceLineNo">075</span>  private ConnectionUtils() {<a name="line.75"></a>
-<span class="sourceLineNo">076</span>  }<a name="line.76"></a>
+<span class="sourceLineNo">035</span>import java.util.concurrent.atomic.AtomicReference;<a name="line.35"></a>
+<span class="sourceLineNo">036</span>import java.util.function.Function;<a name="line.36"></a>
+<span class="sourceLineNo">037</span>import java.util.function.Predicate;<a name="line.37"></a>
+<span class="sourceLineNo">038</span>import java.util.function.Supplier;<a name="line.38"></a>
+<span class="sourceLineNo">039</span>import org.apache.hadoop.conf.Configuration;<a name="line.39"></a>
+<span class="sourceLineNo">040</span>import org.apache.hadoop.hbase.Cell;<a name="line.40"></a>
+<span class="sourceLineNo">041</span>import org.apache.hadoop.hbase.CellComparator;<a name="line.41"></a>
+<span class="sourceLineNo">042</span>import org.apache.hadoop.hbase.HConstants;<a name="line.42"></a>
+<span class="sourceLineNo">043</span>import org.apache.hadoop.hbase.PrivateCellUtil;<a name="line.43"></a>
+<span class="sourceLineNo">044</span>import org.apache.hadoop.hbase.RegionLocations;<a name="line.44"></a>
+<span class="sourceLineNo">045</span>import org.apache.hadoop.hbase.ServerName;<a name="line.45"></a>
+<span class="sourceLineNo">046</span>import org.apache.hadoop.hbase.TableName;<a name="line.46"></a>
+<span class="sourceLineNo">047</span>import org.apache.hadoop.hbase.client.metrics.ScanMetrics;<a name="line.47"></a>
+<span class="sourceLineNo">048</span>import org.apache.hadoop.hbase.ipc.HBaseRpcController;<a name="line.48"></a>
+<span class="sourceLineNo">049</span>import org.apache.hadoop.hbase.security.User;<a name="line.49"></a>
+<span class="sourceLineNo">050</span>import org.apache.hadoop.hbase.security.UserProvider;<a name="line.50"></a>
+<span class="sourceLineNo">051</span>import org.apache.hadoop.hbase.util.Bytes;<a name="line.51"></a>
+<span class="sourceLineNo">052</span>import org.apache.hadoop.hbase.util.ReflectionUtils;<a name="line.52"></a>
+<span class="sourceLineNo">053</span>import org.apache.hadoop.ipc.RemoteException;<a name="line.53"></a>
+<span class="sourceLineNo">054</span>import org.apache.hadoop.net.DNS;<a name="line.54"></a>
+<span class="sourceLineNo">055</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.55"></a>
+<span class="sourceLineNo">056</span>import org.slf4j.Logger;<a name="line.56"></a>
+<span class="sourceLineNo">057</span>import org.slf4j.LoggerFactory;<a name="line.57"></a>
+<span class="sourceLineNo">058</span><a name="line.58"></a>
+<span class="sourceLineNo">059</span>import org.apache.hbase.thirdparty.com.google.common.annotations.VisibleForTesting;<a name="line.59"></a>
+<span class="sourceLineNo">060</span>import org.apache.hbase.thirdparty.com.google.common.base.Preconditions;<a name="line.60"></a>
+<span class="sourceLineNo">061</span>import org.apache.hbase.thirdparty.com.google.protobuf.ServiceException;<a name="line.61"></a>
+<span class="sourceLineNo">062</span>import org.apache.hbase.thirdparty.io.netty.util.Timer;<a name="line.62"></a>
+<span class="sourceLineNo">063</span><a name="line.63"></a>
+<span class="sourceLineNo">064</span>import org.apache.hadoop.hbase.shaded.protobuf.ResponseConverter;<a name="line.64"></a>
+<span class="sourceLineNo">065</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.AdminService;<a name="line.65"></a>
+<span class="sourceLineNo">066</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService;<a name="line.66"></a>
+<span class="sourceLineNo">067</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ScanResponse;<a name="line.67"></a>
+<span class="sourceLineNo">068</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService;<a name="line.68"></a>
+<span class="sourceLineNo">069</span><a name="line.69"></a>
+<span class="sourceLineNo">070</span>/**<a name="line.70"></a>
+<span class="sourceLineNo">071</span> * Utility used by client connections.<a name="line.71"></a>
+<span class="sourceLineNo">072</span> */<a name="line.72"></a>
+<span class="sourceLineNo">073</span>@InterfaceAudience.Private<a name="line.73"></a>
+<span class="sourceLineNo">074</span>public final class ConnectionUtils {<a name="line.74"></a>
+<span class="sourceLineNo">075</span><a name="line.75"></a>
+<span class="sourceLineNo">076</span>  private static final Logger LOG = LoggerFactory.getLogger(ConnectionUtils.class);<a name="line.76"></a>
 <span class="sourceLineNo">077</span><a name="line.77"></a>
-<span class="sourceLineNo">078</span>  /**<a name="line.78"></a>
-<span class="sourceLineNo">079</span>   * Calculate pause time. Built on {@link HConstants#RETRY_BACKOFF}.<a name="line.79"></a>
-<span class="sourceLineNo">080</span>   * @param pause time to pause<a name="line.80"></a>
-<span class="sourceLineNo">081</span>   * @param tries amount of tries<a name="line.81"></a>
-<span class="sourceLineNo">082</span>   * @return How long to wait after &lt;code&gt;tries&lt;/code&gt; retries<a name="line.82"></a>
-<span class="sourceLineNo">083</span>   */<a name="line.83"></a>
-<span class="sourceLineNo">084</span>  public static long getPauseTime(final long pause, final int tries) {<a name="line.84"></a>
-<span class="sourceLineNo">085</span>    int ntries = tries;<a name="line.85"></a>
-<span class="sourceLineNo">086</span>    if (ntries &gt;= HConstants.RETRY_BACKOFF.length) {<a name="line.86"></a>
-<span class="sourceLineNo">087</span>      ntries = HConstants.RETRY_BACKOFF.length - 1;<a name="line.87"></a>
-<span class="sourceLineNo">088</span>    }<a name="line.88"></a>
-<span class="sourceLineNo">089</span>    if (ntries &lt; 0) {<a name="line.89"></a>
-<span class="sourceLineNo">090</span>      ntries = 0;<a name="line.90"></a>
+<span class="sourceLineNo">078</span>  private ConnectionUtils() {<a name="line.78"></a>
+<span class="sourceLineNo">079</span>  }<a name="line.79"></a>
+<span class="sourceLineNo">080</span><a name="line.80"></a>
+<span class="sourceLineNo">081</span>  /**<a name="line.81"></a>
+<span class="sourceLineNo">082</span>   * Calculate pause time. Built on {@link HConstants#RETRY_BACKOFF}.<a name="line.82"></a>
+<span class="sourceLineNo">083</span>   * @param pause time to pause<a name="line.83"></a>
+<span class="sourceLineNo">084</span>   * @param tries amount of tries<a name="line.84"></a>
+<span class="sourceLineNo">085</span>   * @return How long to wait after &lt;code&gt;tries&lt;/code&gt; retries<a name="line.85"></a>
+<span class="sourceLineNo">086</span>   */<a name="line.86"></a>
+<span class="sourceLineNo">087</span>  public static long getPauseTime(final long pause, final int tries) {<a name="line.87"></a>
+<span class="sourceLineNo">088</span>    int ntries = tries;<a name="line.88"></a>
+<span class="sourceLineNo">089</span>    if (ntries &gt;= HConstants.RETRY_BACKOFF.length) {<a name="line.89"></a>
+<span class="sourceLineNo">090</span>      ntries = HConstants.RETRY_BACKOFF.length - 1;<a name="line.90"></a>
 <span class="sourceLineNo">091</span>    }<a name="line.91"></a>
-<span class="sourceLineNo">092</span><a name="line.92"></a>
-<span class="sourceLineNo">093</span>    long normalPause = pause * HConstants.RETRY_BACKOFF[ntries];<a name="line.93"></a>
-<span class="sourceLineNo">094</span>    // 1% possible jitter<a name="line.94"></a>
-<span class="sourceLineNo">095</span>    long jitter = (long) (normalPause * ThreadLocalRandom.current().nextFloat() * 0.01f);<a name="line.95"></a>
-<span class="sourceLineNo">096</span>    return normalPause + jitter;<a name="line.96"></a>
-<span class="sourceLineNo">097</span>  }<a name="line.97"></a>
-<span class="sourceLineNo">098</span><a name="line.98"></a>
-<span class="sourceLineNo">099</span>  /**<a name="line.99"></a>
-<span class="sourceLineNo">100</span>   * @param conn The connection for which to replace the generator.<a name="line.100"></a>
-<span class="sourceLineNo">101</span>   * @param cnm Replaces the nonce generator used, for testing.<a name="line.101"></a>
-<span class="sourceLineNo">102</span>   * @return old nonce generator.<a name="line.102"></a>
-<span class="sourceLineNo">103</span>   */<a name="line.103"></a>
-<span class="sourceLineNo">104</span>  public static NonceGenerator injectNonceGeneratorForTesting(ClusterConnection conn,<a name="line.104"></a>
-<span class="sourceLineNo">105</span>      NonceGenerator cnm) {<a name="line.105"></a>
-<span class="sourceLineNo">106</span>    return ConnectionImplementation.injectNonceGeneratorForTesting(conn, cnm);<a name="line.106"></a>
-<span class="sourceLineNo">107</span>  }<a name="line.107"></a>
-<span class="sourceLineNo">108</span><a name="line.108"></a>
-<span class="sourceLineNo">109</span>  /**<a name="line.109"></a>
-<span class="sourceLineNo">110</span>   * Changes the configuration to set the number of retries needed when using Connection internally,<a name="line.110"></a>
-<span class="sourceLineNo">111</span>   * e.g. for updating catalog tables, etc. Call this method before we create any Connections.<a name="line.111"></a>
-<span class="sourceLineNo">112</span>   * @param c The Configuration instance to set the retries into.<a name="line.112"></a>
-<span class="sourceLineNo">113</span>   * @param log Used to log what we set in here.<a name="line.113"></a>
-<span class="sourceLineNo">114</span>   */<a name="line.114"></a>
-<span class="sourceLineNo">115</span>  public static void setServerSideHConnectionRetriesConfig(final Configuration c, final String sn,<a name="line.115"></a>
-<span class="sourceLineNo">116</span>      final Logger log) {<a name="line.116"></a>
-<span class="sourceLineNo">117</span>    // TODO: Fix this. Not all connections from server side should have 10 times the retries.<a name="line.117"></a>
-<span class="sourceLineNo">118</span>    int hcRetries = c.getInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER,<a name="line.118"></a>
-<span class="sourceLineNo">119</span>      HConstants.DEFAULT_HBASE_CLIENT_RETRIES_NUMBER);<a name="line.119"></a>
-<span class="sourceLineNo">120</span>    // Go big. Multiply by 10. If we can't get to meta after this many retries<a name="line.120"></a>
-<span class="sourceLineNo">121</span>    // then something seriously wrong.<a name="line.121"></a>
-<span class="sourceLineNo">122</span>    int serversideMultiplier = c.getInt(HConstants.HBASE_CLIENT_SERVERSIDE_RETRIES_MULTIPLIER,<a name="line.122"></a>
-<span class="sourceLineNo">123</span>      HConstants.DEFAULT_HBASE_CLIENT_SERVERSIDE_RETRIES_MULTIPLIER);<a name="line.123"></a>
-<span class="sourceLineNo">124</span>    int retries = hcRetries * serversideMultiplier;<a name="line.124"></a>
-<span class="sourceLineNo">125</span>    c.setInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER, retries);<a name="line.125"></a>
-<span class="sourceLineNo">126</span>    log.info(sn + " server-side Connection retries=" + retries);<a name="line.126"></a>
-<span class="sourceLineNo">127</span>  }<a name="line.127"></a>
-<span class="sourceLineNo">128</span><a name="line.128"></a>
-<span class="sourceLineNo">129</span>  /**<a name="line.129"></a>
-<span class="sourceLineNo">130</span>   * A ClusterConnection that will short-circuit RPC making direct invocations against the localhost<a name="line.130"></a>
-<span class="sourceLineNo">131</span>   * if the invocation target is 'this' server; save on network and protobuf invocations.<a name="line.131"></a>
-<span class="sourceLineNo">132</span>   */<a name="line.132"></a>
-<span class="sourceLineNo">133</span>  // TODO This has to still do PB marshalling/unmarshalling stuff. Check how/whether we can avoid.<a name="line.133"></a>
-<span class="sourceLineNo">134</span>  @VisibleForTesting // Class is visible so can assert we are short-circuiting when expected.<a name="line.134"></a>
-<span class="sourceLineNo">135</span>  public static class ShortCircuitingClusterConnection extends ConnectionImplementation {<a name="line.135"></a>
-<span class="sourceLineNo">136</span>    private final ServerName serverName;<a name="line.136"></a>
-<span class="sourceLineNo">137</span>    private final AdminService.BlockingInterface localHostAdmin;<a name="line.137"></a>
-<span class="sourceLineNo">138</span>    private final ClientService.BlockingInterface localHostClient;<a name="line.138"></a>
-<span class="sourceLineNo">139</span><a name="line.139"></a>
-<span class="sourceLineNo">140</span>    private ShortCircuitingClusterConnection(Configuration conf, ExecutorService pool, User user,<a name="line.140"></a>
-<span class="sourceLineNo">141</span>        ServerName serverName, AdminService.BlockingInterface admin,<a name="line.141"></a>
-<span class="sourceLineNo">142</span>        ClientService.BlockingInterface client) throws IOException {<a name="line.142"></a>
-<span class="sourceLineNo">143</span>      super(conf, pool, user);<a name="line.143"></a>
-<span class="sourceLineNo">144</span>      this.serverName = serverName;<a name="line.144"></a>
-<span class="sourceLineNo">145</span>      this.localHostAdmin = admin;<a name="line.145"></a>
-<span class="sourceLineNo">146</span>      this.localHostClient = client;<a name="line.146"></a>
-<span class="sourceLineNo">147</span>    }<a name="line.147"></a>
-<span class="sourceLineNo">148</span><a name="line.148"></a>
-<span class="sourceLineNo">149</span>    @Override<a name="line.149"></a>
-<span class="sourceLineNo">150</span>    public AdminService.BlockingInterface getAdmin(ServerName sn) throws IOException {<a name="line.150"></a>
-<span class="sourceLineNo">151</span>      return serverName.equals(sn) ? this.localHostAdmin : super.getAdmin(sn);<a name="line.151"></a>
-<span class="sourceLineNo">152</span>    }<a name="line.152"></a>
-<span class="sourceLineNo">153</span><a name="line.153"></a>
-<span class="sourceLineNo">154</span>    @Override<a name="line.154"></a>
-<span class="sourceLineNo">155</span>    public ClientService.BlockingInterface getClient(ServerName sn) throws IOException {<a name="line.155"></a>
-<span class="sourceLineNo">156</span>      return serverName.equals(sn) ? this.localHostClient : super.getClient(sn);<a name="line.156"></a>
-<span class="sourceLineNo">157</span>    }<a name="line.157"></a>
-<span class="sourceLineNo">158</span><a name="line.158"></a>
-<span class="sourceLineNo">159</span>    @Override<a name="line.159"></a>
-<span class="sourceLineNo">160</span>    public MasterKeepAliveConnection getMaster() throws IOException {<a name="line.160"></a>
-<span class="sourceLineNo">161</span>      if (this.localHostClient instanceof MasterService.BlockingInterface) {<a name="line.161"></a>
-<span class="sourceLineNo">162</span>        return new ShortCircuitMasterConnection(<a name="line.162"></a>
-<span class="sourceLineNo">163</span>          (MasterService.BlockingInterface) this.localHostClient);<a name="line.163"></a>
-<span class="sourceLineNo">164</span>      }<a name="line.164"></a>
-<span class="sourceLineNo">165</span>      return super.getMaster();<a name="line.165"></a>
-<span class="sourceLineNo">166</span>    }<a name="line.166"></a>
-<span class="sourceLineNo">167</span>  }<a name="line.167"></a>
-<span class="sourceLineNo">168</span><a name="line.168"></a>
-<span class="sourceLineNo">169</span>  /**<a name="line.169"></a>
-<span class="sourceLineNo">170</span>   * Creates a short-circuit connection that can bypass the RPC layer (serialization,<a name="line.170"></a>
-<span class="sourceLineNo">171</span>   * deserialization, networking, etc..) when talking to a local server.<a name="line.171"></a>
-<span class="sourceLineNo">172</span>   * @param conf the current configuration<a name="line.172"></a>
-<span class="sourceLineNo">173</span>   * @param pool the thread pool to use for batch operations<a name="line.173"></a>
-<span class="sourceLineNo">174</span>   * @param user the user the connection is for<a name="line.174"></a>
-<span class="sourceLineNo">175</span>   * @param serverName the local server name<a name="line.175"></a>
-<span class="sourceLineNo">176</span>   * @param admin the admin interface of the local server<a name="line.176"></a>
-<span class="sourceLineNo">177</span>   * @param client the client interface of the local server<a name="line.177"></a>
-<span class="sourceLineNo">178</span>   * @return an short-circuit connection.<a name="line.178"></a>
-<span class="sourceLineNo">179</span>   * @throws IOException if IO failure occurred<a name="line.179"></a>
-<span class="sourceLineNo">180</span>   */<a name="line.180"></a>
-<span class="sourceLineNo">181</span>  public static ClusterConnection createShortCircuitConnection(final Configuration conf,<a name="line.181"></a>
-<span class="sourceLineNo">182</span>      ExecutorService pool, User user, final ServerName serverName,<a name="line.182"></a>
-<span class="sourceLineNo">183</span>      final AdminService.BlockingInterface admin, final ClientService.BlockingInterface client)<a name="line.183"></a>
-<span class="sourceLineNo">184</span>      throws IOException {<a name="line.184"></a>
-<span class="sourceLineNo">185</span>    if (user == null) {<a name="line.185"></a>
-<span class="sourceLineNo">186</span>      user = UserProvider.instantiate(conf).getCurrent();<a name="line.186"></a>
-<span class="sourceLineNo">187</span>    }<a name="line.187"></a>
-<span class="sourceLineNo">188</span>    return new ShortCircuitingClusterConnection(conf, pool, user, serverName, admin, client);<a name="line.188"></a>
-<span class="sourceLineNo">189</span>  }<a name="line.189"></a>
-<span class="sourceLineNo">190</span><a name="line.190"></a>
-<span class="sourceLineNo">191</span>  /**<a name="line.191"></a>
-<span class="sourceLineNo">192</span>   * Setup the connection class, so that it will not depend on master being online. Used for testing<a name="line.192"></a>
-<span class="sourceLineNo">193</span>   * @param conf configuration to set<a name="line.193"></a>
-<span class="sourceLineNo">194</span>   */<a name="line.194"></a>
-<span class="sourceLineNo">195</span>  @VisibleForTesting<a name="line.195"></a>
-<span class="sourceLineNo">196</span>  public static void setupMasterlessConnection(Configuration conf) {<a name="line.196"></a>
-<span class="sourceLineNo">197</span>    conf.set(ClusterConnection.HBASE_CLIENT_CONNECTION_IMPL, MasterlessConnection.class.getName());<a name="line.197"></a>
-<span class="sourceLineNo">198</span>  }<a name="line.198"></a>
-<span class="sourceLineNo">199</span><a name="line.199"></a>
-<span class="sourceLineNo">200</span>  /**<a name="line.200"></a>
-<span class="sourceLineNo">201</span>   * Some tests shut down the master. But table availability is a master RPC which is performed on<a name="line.201"></a>
-<span class="sourceLineNo">202</span>   * region re-lookups.<a name="line.202"></a>
-<span class="sourceLineNo">203</span>   */<a name="line.203"></a>
-<span class="sourceLineNo">204</span>  static class MasterlessConnection extends ConnectionImplementation {<a name="line.204"></a>
-<span class="sourceLineNo">205</span>    MasterlessConnection(Configuration conf, ExecutorService pool, User user) throws IOException {<a name="line.205"></a>
-<span class="sourceLineNo">206</span>      super(conf, pool, user);<a name="line.206"></a>
-<span class="sourceLineNo">207</span>    }<a name="line.207"></a>
-<span class="sourceLineNo">208</span><a name="line.208"></a>
-<span class="sourceLineNo">209</span>    @Override<a name="line.209"></a>
-<span class="sourceLineNo">210</span>    public boolean isTableDisabled(TableName tableName) throws IOException {<a name="line.210"></a>
-<span class="sourceLineNo">211</span>      // treat all tables as enabled<a name="line.211"></a>
-<span class="sourceLineNo">212</span>      return false;<a name="line.212"></a>
-<span class="sourceLineNo">213</span>    }<a name="line.213"></a>
-<span class="sourceLineNo">214</span>  }<a name="line.214"></a>
-<span class="sourceLineNo">215</span><a name="line.215"></a>
-<span class="sourceLineNo">216</span>  /**<a name="line.216"></a>
-<span class="sourceLineNo">217</span>   * Return retires + 1. The returned value will be in range [1, Integer.MAX_VALUE].<a name="line.217"></a>
-<span class="sourceLineNo">218</span>   */<a name="line.218"></a>
-<span class="sourceLineNo">219</span>  static int retries2Attempts(int retries) {<a name="line.219"></a>
-<span class="sourceLineNo">220</span>    return Math.max(1, retries == Integer.MAX_VALUE ? Integer.MAX_VALUE : retries + 1);<a name="line.220"></a>
-<span class="sourceLineNo">221</span>  }<a name="line.221"></a>
-<span class="sourceLineNo">222</span><a name="line.222"></a>
-<span class="sourceLineNo">223</span>  /**<a name="line.223"></a>
-<span class="sourceLineNo">224</span>   * Get a unique key for the rpc stub to the given server.<a name="line.224"></a>
-<span class="sourceLineNo">225</span>   */<a name="line.225"></a>
-<span class="sourceLineNo">226</span>  static String getStubKey(String serviceName, ServerName serverName, boolean hostnameCanChange) {<a name="line.226"></a>
-<span class="sourceLineNo">227</span>    // Sometimes, servers go down and they come back up with the same hostname but a different<a name="line.227"></a>
-<span class="sourceLineNo">228</span>    // IP address. Force a resolution of the rsHostname by trying to instantiate an<a name="line.228"></a>
-<span class="sourceLineNo">229</span>    // InetSocketAddress, and this way we will rightfully get a new stubKey.<a name="line.229"></a>
-<span class="sourceLineNo">230</span>    // Also, include the hostname in the key so as to take care of those cases where the<a name="line.230"></a>
-<span class="sourceLineNo">231</span>    // DNS name is different but IP address remains the same.<a name="line.231"></a>
-<span class="sourceLineNo">232</span>    String hostname = serverName.getHostname();<a name="line.232"></a>
-<span class="sourceLineNo">233</span>    int port = serverName.getPort();<a name="line.233"></a>
-<span class="sourceLineNo">234</span>    if (hostnameCanChange) {<a name="line.234"></a>
-<span class="sourceLineNo">235</span>      try {<a name="line.235"></a>
-<span class="sourceLineNo">236</span>        InetAddress ip = InetAddress.getByName(hostname);<a name="line.236"></a>
-<span class="sourceLineNo">237</span>        return serviceName + "@" + hostname + "-" + ip.getHostAddress() + ":" + port;<a name="line.237"></a>
-<span class="sourceLineNo">238</span>      } catch (UnknownHostException e) {<a name="line.238"></a>
-<span class="sourceLineNo">239</span>        LOG.warn("Can not resolve " + hostname + ", please check your network", e);<a name="line.239"></a>
-<span class="sourceLineNo">240</span>      }<a name="line.240"></a>
-<span class="sourceLineNo">241</span>    }<a name="line.241"></a>
-<span class="sourceLineNo">242</span>    return serviceName + "@" + hostname + ":" + port;<a name="line.242"></a>
-<span class="sourceLineNo">243</span>  }<a name="line.243"></a>
-<span class="sourceLineNo">244</span><a name="line.244"></a>
-<span class="sourceLineNo">245</span>  static void checkHasFamilies(Mutation mutation) {<a name="line.245"></a>
-<span class="sourceLineNo">246</span>    Preconditions.checkArgument(mutation.numFamilies() &gt; 0,<a name="line.246"></a>
-<span class="sourceLineNo">247</span>      "Invalid arguments to %s, zero columns specified", mutation.toString());<a name="line.247"></a>
-<span class="sourceLineNo">248</span>  }<a name="line.248"></a>
-<span class="sourceLineNo">249</span><a name="line.249"></a>
-<span class="sourceLineNo">250</span>  /** Dummy nonce generator for disabled nonces. */<a name="line.250"></a>
-<span class="sourceLineNo">251</span>  static final NonceGenerator NO_NONCE_GENERATOR = new NonceGenerator() {<a name="line.251"></a>
+<span class="sourceLineNo">092</span>    if (ntries &lt; 0) {<a name="line.92"></a>
+<span class="sourceLineNo">093</span>      ntries = 0;<a name="line.93"></a>
+<span class="sourceLineNo">094</span>    }<a name="line.94"></a>
+<span class="sourceLineNo">095</span><a name="line.95"></a>
+<span class="sourceLineNo">096</span>    long normalPause = pause * HConstants.RETRY_BACKOFF[ntries];<a name="line.96"></a>
+<span class="sourceLineNo">097</span>    // 1% possible jitter<a name="line.97"></a>
+<span class="sourceLineNo">098</span>    long jitter = (long) (normalPause * ThreadLocalRandom.current().nextFloat() * 0.01f);<a name="line.98"></a>
+<span class="sourceLineNo">099</span>    return normalPause + jitter;<a name="line.99"></a>
+<span class="sourceLineNo">100</span>  }<a name="line.100"></a>
+<span class="sourceLineNo">101</span><a name="line.101"></a>
+<span class="sourceLineNo">102</span>  /**<a name="line.102"></a>
+<span class="sourceLineNo">103</span>   * @param conn The connection for which to replace the generator.<a name="line.103"></a>
+<span class="sourceLineNo">104</span>   * @param cnm Replaces the nonce generator used, for testing.<a name="line.104"></a>
+<span class="sourceLineNo">105</span>   * @return old nonce generator.<a name="line.105"></a>
+<span class="sourceLineNo">106</span>   */<a name="line.106"></a>
+<span class="sourceLineNo">107</span>  public static NonceGenerator injectNonceGeneratorForTesting(ClusterConnection conn,<a name="line.107"></a>
+<span class="sourceLineNo">108</span>      NonceGenerator cnm) {<a name="line.108"></a>
+<span class="sourceLineNo">109</span>    return ConnectionImplementation.injectNonceGeneratorForTesting(conn, cnm);<a name="line.109"></a>
+<span class="sourceLineNo">110</span>  }<a name="line.110"></a>
+<span class="sourceLineNo">111</span><a name="line.111"></a>
+<span class="sourceLineNo">112</span>  /**<a name="line.112"></a>
+<span class="sourceLineNo">113</span>   * Changes the configuration to set the number of retries needed when using Connection internally,<a name="line.113"></a>
+<span class="sourceLineNo">114</span>   * e.g. for updating catalog tables, etc. Call this method before we create any Connections.<a name="line.114"></a>
+<span class="sourceLineNo">115</span>   * @param c The Configuration instance to set the retries into.<a name="line.115"></a>
+<span class="sourceLineNo">116</span>   * @param log Used to log what we set in here.<a name="line.116"></a>
+<span class="sourceLineNo">117</span>   */<a name="line.117"></a>
+<span class="sourceLineNo">118</span>  public static void setServerSideHConnectionRetriesConfig(final Configuration c, final String sn,<a name="line.118"></a>
+<span class="sourceLineNo">119</span>      final Logger log) {<a name="line.119"></a>
+<span class="sourceLineNo">120</span>    // TODO: Fix this. Not all connections from server side should have 10 times the retries.<a name="line.120"></a>
+<span class="sourceLineNo">121</span>    int hcRetries = c.getInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER,<a name="line.121"></a>
+<span class="sourceLineNo">122</span>      HConstants.DEFAULT_HBASE_CLIENT_RETRIES_NUMBER);<a name="line.122"></a>
+<span class="sourceLineNo">123</span>    // Go big. Multiply by 10. If we can't get to meta after this many retries<a name="line.123"></a>
+<span class="sourceLineNo">124</span>    // then something seriously wrong.<a name="line.124"></a>
+<span class="sourceLineNo">125</span>    int serversideMultiplier = c.getInt(HConstants.HBASE_CLIENT_SERVERSIDE_RETRIES_MULTIPLIER,<a name="line.125"></a>
+<span class="sourceLineNo">126</span>      HConstants.DEFAULT_HBASE_CLIENT_SERVERSIDE_RETRIES_MULTIPLIER);<a name="line.126"></a>
+<span class="sourceLineNo">127</span>    int retries = hcRetries * serversideMultiplier;<a name="line.127"></a>
+<span class="sourceLineNo">128</span>    c.setInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER, retries);<a name="line.128"></a>
+<span class="sourceLineNo">129</span>    log.info(sn + " server-side Connection retries=" + retries);<a name="line.129"></a>
+<span class="sourceLineNo">130</span>  }<a name="line.130"></a>
+<span class="sourceLineNo">131</span><a name="line.131"></a>
+<span class="sourceLineNo">132</span>  /**<a name="line.132"></a>
+<span class="sourceLineNo">133</span>   * A ClusterConnection that will short-circuit RPC making direct invocations against the localhost<a name="line.133"></a>
+<span class="sourceLineNo">134</span>   * if the invocation target is 'this' server; save on network and protobuf invocations.<a name="line.134"></a>
+<span class="sourceLineNo">135</span>   */<a name="line.135"></a>
+<span class="sourceLineNo">136</span>  // TODO This has to still do PB marshalling/unmarshalling stuff. Check how/whether we can avoid.<a name="line.136"></a>
+<span class="sourceLineNo">137</span>  @VisibleForTesting // Class is visible so can assert we are short-circuiting when expected.<a name="line.137"></a>
+<span class="sourceLineNo">138</span>  public static class ShortCircuitingClusterConnection extends ConnectionImplementation {<a name="line.138"></a>
+<span class="sourceLineNo">139</span>    private final ServerName serverName;<a name="line.139"></a>
+<span class="sourceLineNo">140</span>    private final AdminService.BlockingInterface localHostAdmin;<a name="line.140"></a>
+<span class="sourceLineNo">141</span>    private final ClientService.BlockingInterface localHostClient;<a name="line.141"></a>
+<span class="sourceLineNo">142</span><a name="line.142"></a>
+<span class="sourceLineNo">143</span>    private ShortCircuitingClusterConnection(Configuration conf, ExecutorService pool, User user,<a name="line.143"></a>
+<span class="sourceLineNo">144</span>        ServerName serverName, AdminService.BlockingInterface admin,<a name="line.144"></a>
+<span class="sourceLineNo">145</span>        ClientService.BlockingInterface client) throws IOException {<a name="line.145"></a>
+<span class="sourceLineNo">146</span>      super(conf, pool, user);<a name="line.146"></a>
+<span class="sourceLineNo">147</span>      this.serverName = serverName;<a name="line.147"></a>
+<span class="sourceLineNo">148</span>      this.localHostAdmin = admin;<a name="line.148"></a>
+<span class="sourceLineNo">149</span>      this.localHostClient = client;<a name="line.149"></a>
+<span class="sourceLineNo">150</span>    }<a name="line.150"></a>
+<span class="sourceLineNo">151</span><a name="line.151"></a>
+<span class="sourceLineNo">152</span>    @Override<a name="line.152"></a>
+<span class="sourceLineNo">153</span>    public AdminService.BlockingInterface getAdmin(ServerName sn) throws IOException {<a name="line.153"></a>
+<span class="sourceLineNo">154</span>      return serverName.equals(sn) ? this.localHostAdmin : super.getAdmin(sn);<a name="line.154"></a>
+<span class="sourceLineNo">155</span>    }<a name="line.155"></a>
+<span class="sourceLineNo">156</span><a name="line.156"></a>
+<span class="sourceLineNo">157</span>    @Override<a name="line.157"></a>
+<span class="sourceLineNo">158</span>    public ClientService.BlockingInterface getClient(ServerName sn) throws IOException {<a name="line.158"></a>
+<span class="sourceLineNo">159</span>      return serverName.equals(sn) ? this.localHostClient : super.getClient(sn);<a name="line.159"></a>
+<span class="sourceLineNo">160</span>    }<a name="line.160"></a>
+<span class="sourceLineNo">161</span><a name="line.161"></a>
+<span class="sourceLineNo">162</span>    @Override<a name="line.162"></a>
+<span class="sourceLineNo">163</span>    public MasterKeepAliveConnection getMaster() throws IOException {<a name="line.163"></a>
+<span class="sourceLineNo">164</span>      if (this.localHostClient instanceof MasterService.BlockingInterface) {<a name="line.164"></a>
+<span class="sourceLineNo">165</span>        return new ShortCircuitMasterConnection(<a name="line.165"></a>
+<span class="sourceLineNo">166</span>          (MasterService.BlockingInterface) this.localHostClient);<a name="line.166"></a>
+<span class="sourceLineNo">167</span>      }<a name="line.167"></a>
+<span class="sourceLineNo">168</span>      return super.getMaster();<a name="line.168"></a>
+<span class="sourceLineNo">169</span>    }<a name="line.169"></a>
+<span class="sourceLineNo">170</span>  }<a name="line.170"></a>
+<span class="sourceLineNo">171</span><a name="line.171"></a>
+<span class="sourceLineNo">172</span>  /**<a name="line.172"></a>
+<span class="sourceLineNo">173</span>   * Creates a short-circuit connection that can bypass the RPC layer (serialization,<a name="line.173"></a>
+<span class="sourceLineNo">174</span>   * deserialization, networking, etc..) when talking to a local server.<a name="line.174"></a>
+<span class="sourceLineNo">175</span>   * @param conf the current configuration<a name="line.175"></a>
+<span class="sourceLineNo">176</span>   * @param pool the thread pool to use for batch operations<a name="line.176"></a>
+<span class="sourceLineNo">177</span>   * @param user the user the connection is for<a name="line.177"></a>
+<span class="sourceLineNo">178</span>   * @param serverName the local server name<a name="line.178"></a>
+<span class="sourceLineNo">179</span>   * @param admin the admin interface of the local server<a name="line.179"></a>
+<span class="sourceLineNo">180</span>   * @param client the client interface of the local server<a name="line.180"></a>
+<span class="sourceLineNo">181</span>   * @return an short-circuit connection.<a name="line.181"></a>
+<span class="sourceLineNo">182</span>   * @throws IOException if IO failure occurred<a name="line.182"></a>
+<span class="sourceLineNo">183</span>   */<a name="line.183"></a>
+<span class="sourceLineNo">184</span>  public static ClusterConnection createShortCircuitConnection(final Configuration conf,<a name="line.184"></a>
+<span class="sourceLineNo">185</span>      ExecutorService pool, User user, final ServerName serverName,<a name="line.185"></a>
+<span class="sourceLineNo">186</span>      final AdminService.BlockingInterface admin, final ClientService.BlockingInterface client)<a name="line.186"></a>
+<span class="sourceLineNo">187</span>      throws IOException {<a name="line.187"></a>
+<span class="sourceLineNo">188</span>    if (user == null) {<a name="line.188"></a>
+<span class="sourceLineNo">189</span>      user = UserProvider.instantiate(conf).getCurrent();<a name="line.189"></a>
+<span class="sourceLineNo">190</span>    }<a name="line.190"></a>
+<span class="sourceLineNo">191</span>    return new ShortCircuitingClusterConnection(conf, pool, user, serverName, admin, client);<a name="line.191"></a>
+<span class="sourceLineNo">192</span>  }<a name="line.192"></a>
+<span class="sourceLineNo">193</span><a name="line.193"></a>
+<span class="sourceLineNo">194</span>  /**<a name="line.194"></a>
+<span class="sourceLineNo">195</span>   * Setup the connection class, so that it will not depend on master being online. Used for testing<a name="line.195"></a>
+<span class="sourceLineNo">196</span>   * @param conf configuration to set<a name="line.196"></a>
+<span class="sourceLineNo">197</span>   */<a name="line.197"></a>
+<span class="sourceLineNo">198</span>  @VisibleForTesting<a name="line.198"></a>
+<span class="sourceLineNo">199</span>  public static void setupMasterlessConnection(Configuration conf) {<a name="line.199"></a>
+<span class="sourceLineNo">200</span>    conf.set(ClusterConnection.HBASE_CLIENT_CONNECTION_IMPL, MasterlessConnection.class.getName());<a name="line.200"></a>
+<span class="sourceLineNo">201</span>  }<a name="line.201"></a>
+<span class="sourceLineNo">202</span><a name="line.202"></a>
+<span class="sourceLineNo">203</span>  /**<a name="line.203"></a>
+<span class="sourceLineNo">204</span>   * Some tests shut down the master. But table availability is a master RPC which is performed on<a name="line.204"></a>
+<span class="sourceLineNo">205</span>   * region re-lookups.<a name="line.205"></a>
+<span class="sourceLineNo">206</span>   */<a name="line.206"></a>
+<span class="sourceLineNo">207</span>  static class MasterlessConnection extends ConnectionImplementation {<a name="line.207"></a>
+<span class="sourceLineNo">208</span>    MasterlessConnection(Configuration conf, ExecutorService pool, User user) throws IOException {<a name="line.208"></a>
+<span class="sourceLineNo">209</span>      super(conf, pool, user);<a name="line.209"></a>
+<span class="sourceLineNo">210</span>    }<a name="line.210"></a>
+<span class="sourceLineNo">211</span><a name="line.211"></a>
+<span class="sourceLineNo">212</span>    @Override<a name="line.212"></a>
+<span class="sourceLineNo">213</span>    public boolean isTableDisabled(TableName tableName) throws IOException {<a name="line.213"></a>
+<span class="sourceLineNo">214</span>      // treat all tables as enabled<a name="line.214"></a>
+<span class="sourceLineNo">215</span>      return false;<a name="line.215"></a>
+<span class="sourceLineNo">216</span>    }<a name="line.216"></a>
+<span class="sourceLineNo">217</span>  }<a name="line.217"></a>
+<span class="sourceLineNo">218</span><a name="line.218"></a>
+<span class="sourceLineNo">219</span>  /**<a name="line.219"></a>
+<span class="sourceLineNo">220</span>   * Return retires + 1. The returned value will be in range [1, Integer.MAX_VALUE].<a name="line.220"></a>
+<span class="sourceLineNo">221</span>   */<a name="line.221"></a>
+<span class="sourceLineNo">222</span>  static int retries2Attempts(int retries) {<a name="line.222"></a>
+<span class="sourceLineNo">223</span>    return Math.max(1, retries == Integer.MAX_VALUE ? Integer.MAX_VALUE : retries + 1);<a name="line.223"></a>
+<span class="sourceLineNo">224</span>  }<a name="line.224"></a>
+<span class="sourceLineNo">225</span><a name="line.225"></a>
+<span class="sourceLineNo">226</span>  /**<a name="line.226"></a>
+<span class="sourceLineNo">227</span>   * Get a unique key for the rpc stub to the given server.<a name="line.227"></a>
+<span class="sourceLineNo">228</span>   */<a name="line.228"></a>
+<span class="sourceLineNo">229</span>  static String getStubKey(String serviceName, ServerName serverName, boolean hostnameCanChange) {<a name="line.229"></a>
+<span class="sourceLineNo">230</span>    // Sometimes, servers go down and they come back up with the same hostname but a different<a name="line.230"></a>
+<span class="sourceLineNo">231</span>    // IP address. Force a resolution of the rsHostname by trying to instantiate an<a name="line.231"></a>
+<span class="sourceLineNo">232</span>    // InetSocketAddress, and this way we will rightfully get a new stubKey.<a name="line.232"></a>
+<span class="sourceLineNo">233</span>    // Also, include the hostname in the key so as to take care of those cases where the<a name="line.233"></a>
+<span class="sourceLineNo">234</span>    // DNS name is different but IP address remains the same.<a name="line.234"></a>
+<span class="sourceLineNo">235</span>    String hostname = serverName.getHostname();<a name="line.235"></a>
+<span class="sourceLineNo">236</span>    int port = serverName.getPort();<a name="line.236"></a>
+<span class="sourceLineNo">237</span>    if (hostnameCanChange) {<a name="line.237"></a>
+<span class="sourceLineNo">238</span>      try {<a name="line.238"></a>
+<span class="sourceLineNo">239</span>        InetAddress ip = InetAddress.getByName(hostname);<a name="line.239"></a>
+<span class="sourceLineNo">240</span>        return serviceName + "@" + hostname + "-" + ip.getHostAddress() + ":" + port;<a name="line.240"></a>
+<span class="sourceLineNo">241</span>      } catch (UnknownHostException e) {<a name="line.241"></a>
+<span class="sourceLineNo">242</span>        LOG.warn("Can not resolve " + hostname + ", please check your network", e);<a name="line.242"></a>
+<span class="sourceLineNo">243</span>      }<a name="line.243"></a>
+<span class="sourceLineNo">244</span>    }<a name="line.244"></a>
+<span class="sourceLineNo">245</span>    return serviceName + "@" + hostname + ":" + port;<a name="line.245"></a>
+<span class="sourceLineNo">246</span>  }<a name="line.246"></a>
+<span class="sourceLineNo">247</span><a name="line.247"></a>
+<span class="sourceLineNo">248</span>  static void checkHasFamilies(Mutation mutation) {<a name="line.248"></a>
+<span class="sourceLineNo">249</span>    Preconditions.checkArgument(mutation.numFamilies() &gt; 0,<a name="line.249"></a>
+<span class="sourceLineNo">250</span>      "Invalid arguments to %s, zero columns specified", mutation.toString());<a name="line.250"></a>
+<span class="sourceLineNo">251</span>  }<a name="line.251"></a>
 <span class="sourceLineNo">252</span><a name="line.252"></a>
-<span class="sourceLineNo">253</span>    @Override<a name="line.253"></a>
-<span class="sourceLineNo">254</span>    public long newNonce() {<a name="line.254"></a>
-<span class="sourceLineNo">255</span>      return HConstants.NO_NONCE;<a name="line.255"></a>
-<span class="sourceLineNo">256</span>    }<a name="line.256"></a>
-<span class="sourceLineNo">257</span><a name="line.257"></a>
-<span class="sourceLineNo">258</span>    @Override<a name="line.258"></a>
-<span class="sourceLineNo">259</span>    public long getNonceGroup() {<a name="line.259"></a>
-<span class="sourceLineNo">260</span>      return HConstants.NO_NONCE;<a name="line.260"></a>
-<span class="sourceLineNo">261</span>    }<a name="line.261"></a>
-<span class="sourceLineNo">262</span>  };<a name="line.262"></a>
-<span class="sourceLineNo">263</span><a name="line.263"></a>
-<span class="sourceLineNo">264</span>  // A byte array in which all elements are the max byte, and it is used to<a name="line.264"></a>
-<span class="sourceLineNo">265</span>  // construct closest front row<a name="line.265"></a>
-<span class="sourceLineNo">266</span>  static final byte[] MAX_BYTE_ARRAY = Bytes.createMaxByteArray(9);<a name="line.266"></a>
-<span class="sourceLineNo">267</span><a name="line.267"></a>
-<span class="sourceLineNo">268</span>  /**<a name="line.268"></a>
-<span class="sourceLineNo">269</span>   * Create the closest row after the specified row<a name="line.269"></a>
-<span class="sourceLineNo">270</span>   */<a name="line.270"></a>
-<span class="sourceLineNo">271</span>  static byte[] createClosestRowAfter(byte[] row) {<a name="line.271"></a>
-<span class="sourceLineNo">272</span>    return Arrays.copyOf(row, row.length + 1);<a name="line.272"></a>
-<span class="sourceLineNo">273</span>  }<a name="line.273"></a>
-<span class="sourceLineNo">274</span><a name="line.274"></a>
-<span class="sourceLineNo">275</span>  /**<a name="line.275"></a>
-<span class="sourceLineNo">276</span>   * Create a row before the specified row and very close to the specified row.<a name="line.276"></a>
-<span class="sourceLineNo">277</span>   */<a name="line.277"></a>
-<span class="sourceLineNo">278</span>  static byte[] createCloseRowBefore(byte[] row) {<a name="line.278"></a>
-<span class="sourceLineNo">279</span>    if (row.length == 0) {<a name="line.279"></a>
-<span class="sourceLineNo">280</span>      return MAX_BYTE_ARRAY;<a name="line.280"></a>
-<span class="sourceLineNo">281</span>    }<a name="line.281"></a>
-<span class="sourceLineNo">282</span>    if (row[row.length - 1] == 0) {<a name="line.282"></a>
-<span class="sourceLineNo">283</span>      return Arrays.copyOf(row, row.length - 1);<a name="line.283"></a>
-<span class="sourceLineNo">284</span>    } else {<a name="line.284"></a>
-<span class="sourceLineNo">285</span>      byte[] nextRow = new byte[row.length + MAX_BYTE_ARRAY.length];<a name="line.285"></a>
-<span class="sourceLineNo">286</span>      System.arraycopy(row, 0, nextRow, 0, row.length - 1);<a name="line.286"></a>
-<span class="sourceLineNo">287</span>      nextRow[row.length - 1] = (byte) ((row[row.length - 1] &amp; 0xFF) - 1);<a name="line.287"></a>
-<span class="sourceLineNo">288</span>      System.arraycopy(MAX_BYTE_ARRAY, 0, nextRow, row.length, MAX_BYTE_ARRAY.length);<a name="line.288"></a>
-<span class="sourceLineNo">289</span>      return nextRow;<a name="line.289"></a>
-<span class="sourceLineNo">290</span>    }<a name="line.290"></a>
-<span class="sourceLineNo">291</span>  }<a name="line.291"></a>
-<span class="sourceLineNo">292</span><a name="line.292"></a>
-<span class="sourceLineNo">293</span>  static boolean isEmptyStartRow(byte[] row) {<a name="line.293"></a>
-<span class="sourceLineNo">294</span>    return Bytes.equals(row, EMPTY_START_ROW);<a name="line.294"></a>
-<span class="sourceLineNo">295</span>  }<a name="line.295"></a>
-<span class="sourceLineNo">296</span><a name="line.296"></a>
-<span class="sourceLineNo">297</span>  static boolean isEmptyStopRow(byte[] row) {<a name="line.297"></a>
-<span class="sourceLineNo">298</span>    return Bytes.equals(row, EMPTY_END_ROW);<a name="line.298"></a>
-<span class="sourceLineNo">299</span>  }<a name="line.299"></a>
-<span class="sourceLineNo">300</span><a name="line.300"></a>
-<span class="sourceLineNo">301</span>  static void resetController(HBaseRpcController controller, long timeoutNs, int priority) {<a name="line.301"></a>
-<span class="sourceLineNo">302</span>    controller.reset();<a name="line.302"></a>
-<span class="sourceLineNo">303</span>    if (timeoutNs &gt;= 0) {<a name="line.303"></a>
-<span class="sourceLineNo">304</span>      controller.setCallTimeout(<a name="line.304"></a>
-<span class="sourceLineNo">305</span>        (int) Math.min(Integer.MAX_VALUE, TimeUnit.NANOSECONDS.toMillis(timeoutNs)));<a name="line.305"></a>
-<span class="sourceLineNo">306</span>    }<a name="line.306"></a>
-<span class="sourceLineNo">307</span>    controller.setPriority(priority);<a name="line.307"></a>
-<span class="sourceLineNo">308</span>  }<a name="line.308"></a>
-<span class="sourceLineNo">309</span><a name="line.309"></a>
-<span class="sourceLineNo">310</span>  static Throwable translateException(Throwable t) {<a name="line.310"></a>
-<span class="sourceLineNo">311</span>    if (t instanceof UndeclaredThrowableException &amp;&amp; t.getCause() != null) {<a name="line.311"></a>
-<span class="sourceLineNo">312</span>      t = t.getCause();<a name="line.312"></a>
-<span class="sourceLineNo">313</span>    }<a name="line.313"></a>
-<span class="sourceLineNo">314</span>    if (t instanceof RemoteException) {<a name="line.314"></a>
-<span class="sourceLineNo">315</span>      t = ((RemoteException) t).unwrapRemoteException();<a name="line.315"></a>
+<span class="sourceLineNo">253</span>  /** Dummy nonce generator for disabled nonces. */<a name="line.253"></a>
+<span class="sourceLineNo">254</span>  static final NonceGenerator NO_NONCE_GENERATOR = new NonceGenerator() {<a name="line.254"></a>
+<span class="sourceLineNo">255</span><a name="line.255"></a>
+<span class="sourceLineNo">256</span>    @Override<a name="line.256"></a>
+<span class="sourceLineNo">257</span>    public long newNonce() {<a name="line.257"></a>
+<span class="sourceLineNo">258</span>      return HConstants.NO_NONCE;<a name="line.258"></a>
+<span class="sourceLineNo">259</span>    }<a name="line.259"></a>
+<span class="sourceLineNo">260</span><a name="line.260"></a>
+<span class="sourceLineNo">261</span>    @Override<a name="line.261"></a>
+<span class="sourceLineNo">262</span>    public long getNonceGroup() {<a name="line.262"></a>
+<span class="sourceLineNo">263</span>      return HConstants.NO_NONCE;<a name="line.263"></a>
+<span class="sourceLineNo">264</span>    }<a name="line.264"></a>
+<span class="sourceLineNo">265</span>  };<a name="line.265"></a>
+<span class="sourceLineNo">266</span><a name="line.266"></a>
+<span class="sourceLineNo">267</span>  // A byte array in which all elements are the max byte, and it is used to<a name="line.267"></a>
+<span class="sourceLineNo">268</span>  // construct closest front row<a name="line.268"></a>
+<span class="sourceLineNo">269</span>  static final byte[] MAX_BYTE_ARRAY = Bytes.createMaxByteArray(9);<a name="line.269"></a>
+<span class="sourceLineNo">270</span><a name="line.270"></a>
+<span class="sourceLineNo">271</span>  /**<a name="line.271"></a>
+<span class="sourceLineNo">272</span>   * Create the closest row after the specified row<a name="line.272"></a>
+<span class="sourceLineNo">273</span>   */<a name="line.273"></a>
+<span class="sourceLineNo">274</span>  static byte[] createClosestRowAfter(byte[] row) {<a name="line.274"></a>
+<span class="sourceLineNo">275</span>    return Arrays.copyOf(row, row.length + 1);<a name="line.275"></a>
+<span class="sourceLineNo">276</span>  }<a name="line.276"></a>
+<span class="sourceLineNo">277</span><a name="line.277"></a>
+<span class="sourceLineNo">278</span>  /**<a name="line.278"></a>
+<span class="sourceLineNo">279</span>   * Create a row before the specified row and very close to the specified row.<a name="line.279"></a>
+<span class="sourceLineNo">280</span>   */<a name="line.280"></a>
+<span class="sourceLineNo">281</span>  static byte[] createCloseRowBefore(byte[] row) {<a name="line.281"></a>
+<span class="sourceLineNo">282</span>    if (row.length == 0) {<a name="line.282"></a>
+<span class="sourceLineNo">283</span>      return MAX_BYTE_ARRAY;<a name="line.283"></a>
+<span class="sourceLineNo">284</span>    }<a name="line.284"></a>
+<span class="sourceLineNo">285</span>    if (row[row.length - 1] == 0) {<a name="line.285"></a>
+<span class="sourceLineNo">286</span>      return Arrays.copyOf(row, row.length - 1);<a name="line.286"></a>
+<span class="sourceLineNo">287</span>    } else {<a name="line.287"></a>
+<span class="sourceLineNo">288</span>      byte[] nextRow = new byte[row.length + MAX_BYTE_ARRAY.length];<a name="line.288"></a>
+<span class="sourceLineNo">289</span>      System.arraycopy(row, 0, nextRow, 0, row.length - 1);<a name="line.289"></a>
+<span class="sourceLineNo">290</span>      nextRow[row.length - 1] = (byte) ((row[row.length - 1] &amp; 0xFF) - 1);<a name="line.290"></a>
+<span class="sourceLineNo">291</span>      System.arraycopy(MAX_BYTE_ARRAY, 0, nextRow, row.length, MAX_BYTE_ARRAY.length);<a name="line.291"></a>
+<span class="sourceLineNo">292</span>      return nextRow;<a name="line.292"></a>
+<span class="sourceLineNo">293</span>    }<a name="line.293"></a>
+<span class="sourceLineNo">294</span>  }<a name="line.294"></a>
+<span class="sourceLineNo">295</span><a name="line.295"></a>
+<span class="sourceLineNo">296</span>  static boolean isEmptyStartRow(byte[] row) {<a name="line.296"></a>
+<span class="sourceLineNo">297</span>    return Bytes.equals(row, EMPTY_START_ROW);<a name="line.297"></a>
+<span class="sourceLineNo">298</span>  }<a name="line.298"></a>
+<span class="sourceLineNo">299</span><a name="line.299"></a>
+<span class="sourceLineNo">300</span>  static boolean isEmptyStopRow(byte[] row) {<a name="line.300"></a>
+<span class="sourceLineNo">301</span>    return Bytes.equals(row, EMPTY_END_ROW);<a name="line.301"></a>
+<span class="sourceLineNo">302</span>  }<a name="line.302"></a>
+<span class="sourceLineNo">303</span><a name="line.303"></a>
+<span class="sourceLineNo">304</span>  static void resetController(HBaseRpcController controller, long timeoutNs, int priority) {<a name="line.304"></a>
+<span class="sourceLineNo">305</span>    controller.reset();<a name="line.305"></a>
+<span class="sourceLineNo">306</span>    if (timeoutNs &gt;= 0) {<a name="line.306"></a>
+<span class="sourceLineNo">307</span>      controller.setCallTimeout(<a name="line.307"></a>
+<span class="sourceLineNo">308</span>        (int) Math.min(Integer.MAX_VALUE, TimeUnit.NANOSECONDS.toMillis(timeoutNs)));<a name="line.308"></a>
+<span class="sourceLineNo">309</span>    }<a name="line.309"></a>
+<span class="sourceLineNo">310</span>    controller.setPriority(priority);<a name="line.310"></a>
+<span class="sourceLineNo">311</span>  }<a name="line.311"></a>
+<span class="sourceLineNo">312</span><a name="line.312"></a>
+<span class="sourceLineNo">313</span>  static Throwable translateException(Throwable t) {<a name="line.313"></a>
+<span class="sourceLineNo">314</span>    if (t instanceof UndeclaredThrowableException &amp;&amp; t.getCause() != null) {<a name="line.314"></a>
+<span class="sourceLineNo">315</span>      t = t.getCause();<a name="line.315"></a>
 <span class="sourceLineNo">316</span>    }<a name="line.316"></a>
-<span class="sourceLineNo">317</span>    if (t instanceof ServiceException &amp;&amp; t.getCause() != null) {<a name="line.317"></a>
-<span class="sourceLineNo">318</span>      t = translateException(t.getCause());<a name="line.318"></a>
+<span class="sourceLineNo">317</span>    if (t instanceof RemoteException) {<a name="line.317"></a>
+<span class="sourceLineNo">318</span>      t = ((RemoteException) t).unwrapRemoteException();<a name="line.318"></a>
 <span class="sourceLineNo">319</span>    }<a name="line.319"></a>
-<span class="sourceLineNo">320</span>    return t;<a name="line.320"></a>
-<span class="sourceLineNo">321</span>  }<a name="line.321"></a>
-<span class="sourceLineNo">322</span><a name="line.322"></a>
-<span class="sourceLineNo">323</span>  static long calcEstimatedSize(Result rs) {<a name="line.323"></a>
-<span class="sourceLineNo">324</span>    long estimatedHeapSizeOfResult = 0;<a name="line.324"></a>
-<span class="sourceLineNo">325</span>    // We don't make Iterator here<a name="line.325"></a>
-<span class="sourceLineNo">326</span>    for (Cell cell : rs.rawCells()) {<a name="line.326"></a>
-<span class="sourceLineNo">327</span>      estimatedHeapSizeOfResult += cell.heapSize();<a name="line.327"></a>
-<span class="sourceLineNo">328</span>    }<a name="line.328"></a>
-<span class="sourceLineNo">329</span>    return estimatedHeapSizeOfResult;<a name="line.329"></a>
-<span class="sourceLineNo">330</span>  }<a name="line.330"></a>
-<span class="sourceLineNo">331</span><a name="line.331"></a>
-<span class="sourceLineNo">332</span>  static Result filterCells(Result result, Cell keepCellsAfter) {<a name="line.332"></a>
-<span class="sourceLineNo">333</span>    if (keepCellsAfter == null) {<a name="line.333"></a>
-<span class="sourceLineNo">334</span>      // do not need to filter<a name="line.334"></a>
-<span class="sourceLineNo">335</span>      return result;<a name="line.335"></a>
-<span class="sourceLineNo">336</span>    }<a name="line.336"></a>
-<span class="sourceLineNo">337</span>    // not the same row<a name="line.337"></a>
-<span class="sourceLineNo">338</span>    if (!PrivateCellUtil.matchingRows(keepCellsAfter, result.getRow(), 0, result.getRow().length)) {<a name="line.338"></a>
-<span class="sourceLineNo">339</span>      return result;<a name="line.339"></a>
-<span class="sourceLineNo">340</span>    }<a name="line.340"></a>
-<span class="sourceLineNo">341</span>    Cell[] rawCells = result.rawCells();<a name="line.341"></a>
-<span class="sourceLineNo">342</span>    int index = Arrays.binarySearch(rawCells, keepCellsAfter,<a name="line.342"></a>
-<span class="sourceLineNo">343</span>      CellComparator.getInstance()::compareWithoutRow);<a name="line.343"></a>
-<span class="sourceLineNo">344</span>    if (index &lt; 0) {<a name="line.344"></a>
-<span class="sourceLineNo">345</span>      index = -index - 1;<a name="line.345"></a>
-<span class="sourceLineNo">346</span>    } else {<a name="line.346"></a>
-<span class="sourceLineNo">347</span>      index++;<a name="line.347"></a>
-<span class="sourceLineNo">348</span>    }<a name="line.348"></a>
-<span class="sourceLineNo">349</span>    if (index == 0) {<a name="line.349"></a>
-<span class="sourceLineNo">350</span>      return result;<a name="line.350"></a>
+<span class="sourceLineNo">320</span>    if (t instanceof ServiceException &amp;&amp; t.getCause() != null) {<a name="line.320"></a>
+<span class="sourceLineNo">321</span>      t = translateException(t.getCause());<a name="line.321"></a>
+<span class="sourceLineNo">322</span>    }<a name="line.322"></a>
+<span class="sourceLineNo">323</span>    return t;<a name="line.323"></a>
+<span class="sourceLineNo">324</span>  }<a name="line.324"></a>
+<span class="sourceLineNo">325</span><a name="line.325"></a>
+<span class="sourceLineNo">326</span>  static long calcEstimatedSize(Result rs) {<a name="line.326"></a>
+<span class="sourceLineNo">327</span>    long estimatedHeapSizeOfResult = 0;<a name="line.327"></a>
+<span class="sourceLineNo">328</span>    // We don't make Iterator here<a name="line.328"></a>
+<span class="sourceLineNo">329</span>    for (Cell cell : rs.rawCells()) {<a name="line.329"></a>
+<span class="sourceLineNo">330</span>      estimatedHeapSizeOfResult += cell.heapSize();<a name="line.330"></a>
+<span class="sourceLineNo">331</span>    }<a name="line.331"></a>
+<span class="sourceLineNo">332</span>    return estimatedHeapSizeOfResult;<a name="line.332"></a>
+<span class="sourceLineNo">333</span>  }<a name="line.333"></a>
+<span class="sourceLineNo">334</span><a name="line.334"></a>
+<span class="sourceLineNo">335</span>  static Result filterCells(Result result, Cell keepCellsAfter) {<a name="line.335"></a>
+<span class="sourceLineNo">336</span>    if (keepCellsAfter == null) {<a name="line.336"></a>
+<span class="sourceLineNo">337</span>      // do not need to filter<a name="line.337"></a>
+<span class="sourceLineNo">338</span>      return result;<a name="line.338"></a>
+<span class="sourceLineNo">339</span>    }<a name="line.339"></a>
+<span class="sourceLineNo">340</span>    // not the same row<a name="line.340"></a>
+<span class="sourceLineNo">341</span>    if (!PrivateCellUtil.matchingRows(keepCellsAfter, result.getRow(), 0, result.getRow().length)) {<a name="line.341"></a>
+<span class="sourceLineNo">342</span>      return result;<a name="line.342"></a>
+<span class="sourceLineNo">343</span>    }<a name="line.343"></a>
+<span class="sourceLineNo">344</span>    Cell[] rawCells = result.rawCells();<a name="line.344"></a>
+<span class="sourceLineNo">345</span>    int index = Arrays.binarySearch(rawCells, keepCellsAfter,<a name="line.345"></a>
+<span class="sourceLineNo">346</span>      CellComparator.getInstance()::compareWithoutRow);<a name="line.346"></a>
+<span class="sourceLineNo">347</span>    if (index &lt; 0) {<a name="line.347"></a>
+<span class="sourceLineNo">348</span>      index = -index - 1;<a name="line.348"></a>
+<span class="sourceLineNo">349</span>    } else {<a name="line.349"></a>
+<span class="sourceLineNo">350</span>      index++;<a name="line.350"></a>
 <span class="sourceLineNo">351</span>    }<a name="line.351"></a>
-<span class="sourceLineNo">352</span>    if (index == rawCells.length) {<a name="line.352"></a>
-<span class="sourceLineNo">353</span>      return null;<a name="line.353"></a>
+<span class="sourceLineNo">352</span>    if (index == 0) {<a name="line.352"></a>
+<span class="sourceLineNo">353</span>      return result;<a name="line.353"></a>
 <span class="sourceLineNo">354</span>    }<a name="line.354"></a>
-<span class="sourceLineNo">355</span>    return Result.create(Arrays.copyOfRange(rawCells, index, rawCells.length), null,<a name="line.355"></a>
-<span class="sourceLineNo">356</span>      result.isStale(), result.mayHaveMoreCellsInRow());<a name="line.356"></a>
-<span class="sourceLineNo">357</span>  }<a name="line.357"></a>
-<span class="sourceLineNo">358</span><a name="line.358"></a>
-<span class="sourceLineNo">359</span>  // Add a delta to avoid timeout immediately after a retry sleeping.<a name="line.359"></a>
-<span class="sourceLineNo">360</span>  static final long SLEEP_DELTA_NS = TimeUnit.MILLISECONDS.toNanos(1);<a name="line.360"></a>
+<span class="sourceLineNo">355</span>    if (index == rawCells.length) {<a name="line.355"></a>
+<span class="sourceLineNo">356</span>      return null;<a name="line.356"></a>
+<span class="sourceLineNo">357</span>    }<a name="line.357"></a>
+<span class="sourceLineNo">358</span>    return Result.create(Arrays.copyOfRange(rawCells, index, rawCells.length), null,<a name="line.358"></a>
+<span class="sourceLineNo">359</span>      result.isStale(), result.mayHaveMoreCellsInRow());<a name="line.359"></a>
+<span class="sourceLineNo">360</span>  }<a name="line.360"></a>
 <span class="sourceLineNo">361</span><a name="line.361"></a>
-<span class="sourceLineNo">362</span>  static Get toCheckExistenceOnly(Get get) {<a name="line.362"></a>
-<span class="sourceLineNo">363</span>    if (get.isCheckExistenceOnly()) {<a name="line.363"></a>
-<span class="sourceLineNo">364</span>      return get;<a name="line.364"></a>
-<span class="sourceLineNo">365</span>    }<a name="line.365"></a>
-<span class="sourceLineNo">366</span>    return ReflectionUtils.newInstance(get.getClass(), get).setCheckExistenceOnly(true);<a name="line.366"></a>
-<span class="sourceLineNo">367</span>  }<a name="line.367"></a>
-<span class="sourceLineNo">368</span><a name="line.368"></a>
-<span class="sourceLineNo">369</span>  static List&lt;Get&gt; toCheckExistenceOnly(List&lt;Get&gt; gets) {<a name="line.369"></a>
-<span class="sourceLineNo">370</span>    return gets.stream().map(ConnectionUtils::toCheckExistenceOnly).collect(toList());<a name="line.370"></a>
-<span class="sourceLineNo">371</span>  }<a name="line.371"></a>
-<span class="sourceLineNo">372</span><a name="line.372"></a>
-<span class="sourceLineNo">373</span>  static RegionLocateType getLocateType(Scan scan) {<a name="line.373"></a>
-<span class="sourceLineNo">374</span>    if (scan.isReversed()) {<a name="line.374"></a>
-<span class="sourceLineNo">375</span>      if (isEmptyStartRow(scan.getStartRow())) {<a name="line.375"></a>
-<span class="sourceLineNo">376</span>        return RegionLocateType.BEFORE;<a name="line.376"></a>
-<span class="sourceLineNo">377</span>      } else {<a name="line.377"></a>
-<span class="sourceLineNo">378</span>        return scan.includeStartRow() ? RegionLocateType.CURRENT : RegionLocateType.BEFORE;<a name="line.378"></a>
-<span class="sourceLineNo">379</span>      }<a name="line.379"></a>
-<span class="sourceLineNo">380</span>    } else {<a name="line.380"></a>
-<span class="sourceLineNo">381</span>      return scan.includeStartRow() ? RegionLocateType.CURRENT : RegionLocateType.AFTER;<a name="line.381"></a>
-<span class="sourceLineNo">382</span>    }<a name="line.382"></a>
-<span class="sourceLineNo">383</span>  }<a name="line.383"></a>
-<span class="sourceLineNo">384</span><a name="line.384"></a>
-<span class="sourceLineNo">385</span>  static boolean noMoreResultsForScan(Scan scan, RegionInfo info) {<a name="line.385"></a>
-<span class="sourceLineNo">386</span>    if (isEmptyStopRow(info.getEndKey())) {<a name="line.386"></a>
-<span class="sourceLineNo">387</span>      return true;<a name="line.387"></a>
-<span class="sourceLineNo">388</span>    }<a name="line.388"></a>
-<span class="sourceLineNo">389</span>    if (isEmptyStopRow(scan.getStopRow())) {<a name="line.389"></a>
-<span class="sourceLineNo">390</span>      return false;<a name="line.390"></a>
+<span class="sourceLineNo">362</span>  // Add a delta to avoid timeout immediately after a retry sleeping.<a name="line.362"></a>
+<span class="sourceLineNo">363</span>  static final long SLEEP_DELTA_NS = TimeUnit.MILLISECONDS.toNanos(1);<a name="line.363"></a>
+<span class="sourceLineNo">364</span><a name="line.364"></a>
+<span class="sourceLineNo">365</span>  static Get toCheckExistenceOnly(Get get) {<a name="line.365"></a>
+<span class="sourceLineNo">366</span>    if (get.isCheckExistenceOnly()) {<a name="line.366"></a>
+<span class="sourceLineNo">367</span>      return get;<a name="line.367"></a>
+<span class="sourceLineNo">368</span>    }<a name="line.368"></a>
+<span class="sourceLineNo">369</span>    return ReflectionUtils.newInstance(get.getClass(), get).setCheckExistenceOnly(true);<a name="line.369"></a>
+<span class="sourceLineNo">370</span>  }<a name="line.370"></a>
+<span class="sourceLineNo">371</span><a name="line.371"></a>
+<span class="sourceLineNo">372</span>  static List&lt;Get&gt; toCheckExistenceOnly(List&lt;Get&gt; gets) {<a name="line.372"></a>
+<span class="sourceLineNo">373</span>    return gets.stream().map(ConnectionUtils::toCheckExistenceOnly).collect(toList());<a name="line.373"></a>
+<span class="sourceLineNo">374</span>  }<a name="line.374"></a>
+<span class="sourceLineNo">375</span><a name="line.375"></a>
+<span class="sourceLineNo">376</span>  static RegionLocateType getLocateType(Scan scan) {<a name="line.376"></a>
+<span class="sourceLineNo">377</span>    if (scan.isReversed()) {<a name="line.377"></a>
+<span class="sourceLineNo">378</span>      if (isEmptyStartRow(scan.getStartRow())) {<a name="line.378"></a>
+<span class="sourceLineNo">379</span>        return RegionLocateType.BEFORE;<a name="line.379"></a>
+<span class="sourceLineNo">380</span>      } else {<a name="line.380"></a>
+<span class="sourceLineNo">381</span>        return scan.includeStartRow() ? RegionLocateType.CURRENT : RegionLocateType.BEFORE;<a name="line.381"></a>
+<span class="sourceLineNo">382</span>      }<a name="line.382"></a>
+<span class="sourceLineNo">383</span>    } else {<a name="line.383"></a>
+<span class="sourceLineNo">384</span>      return scan.includeStartRow() ? RegionLocateType.CURRENT : RegionLocateType.AFTER;<a name="line.384"></a>
+<span class="sourceLineNo">385</span>    }<a name="line.385"></a>
+<span class="sourceLineNo">386</span>  }<a name="line.386"></a>
+<span class="sourceLineNo">387</span><a name="line.387"></a>
+<span class="sourceLineNo">388</span>  static boolean noMoreResultsForScan(Scan scan, RegionInfo info) {<a name="line.388"></a>
+<span class="sourceLineNo">389</span>    if (isEmptyStopRow(info.getEndKey())) {<a name="line.389"></a>
+<span class="sourceLineNo">390</span>      return true;<a name="line.390"></a>
 <span class="sourceLineNo">391</span>    }<a name="line.391"></a>
-<span class="sourceLineNo">392</span>    int c = Bytes.compareTo(info.getEndKey(), scan.getStopRow());<a name="line.392"></a>
-<span class="sourceLineNo">393</span>    // 1. if our stop row is less than the endKey of the region<a name="line.393"></a>
-<span class="sourceLineNo">394</span>    // 2. if our stop row is equal to the endKey of the region and we do not include the stop row<a name="line.394"></a>
-<span class="sourceLineNo">395</span>    // for scan.<a name="line.395"></a>
-<span class="sourceLineNo">396</span>    return c &gt; 0 || (c == 0 &amp;&amp; !scan.includeStopRow());<a name="line.396"></a>
-<span class="sourceLineNo">397</span>  }<a name="line.397"></a>
-<span class="sourceLineNo">398</span><a name="line.398"></a>
-<span class="sourceLineNo">399</span>  static boolean noMoreResultsForReverseScan(Scan scan, RegionInfo info) {<a name="line.399"></a>
-<span class="sourceLineNo">400</span>    if (isEmptyStartRow(info.getStartKey())) {<a name="line.400"></a>
-<span class="sourceLineNo">401</span>      return true;<a name="line.401"></a>
-<span class="sourceLineNo">402</span>    }<a name="line.402"></a>
-<span class="sourceLineNo">403</span>    if (isEmptyStopRow(scan.getStopRow())) {<a name="line.403"></a>
-<span class="sourceLineNo">404</span>      return false;<a name="line.404"></a>
+<span class="sourceLineNo">392</span>    if (isEmptyStopRow(scan.getStopRow())) {<a name="line.392"></a>
+<span class="sourceLineNo">393</span>      return false;<a name="line.393"></a>
+<span class="sourceLineNo">394</span>    }<a name="line.394"></a>
+<span class="sourceLineNo">395</span>    int c = Bytes.compareTo(info.getEndKey(), scan.getStopRow());<a name="line.395"></a>
+<span class="sourceLineNo">396</span>    // 1. if our stop row is less than the endKey of the region<a name="line.396"></a>
+<span class="sourceLineNo">397</span>    // 2. if our stop row is equal to the endKey of the region and we do not include the stop row<a name="line.397"></a>
+<span class="sourceLineNo">398</span>    // for scan.<a name="line.398"></a>
+<span class="sourceLineNo">399</span>    return c &gt; 0 || (c == 0 &amp;&amp; !scan.includeStopRow());<a name="line.399"></a>
+<span class="sourceLineNo">400</span>  }<a name="line.400"></a>
+<span class="sourceLineNo">401</span><a name="line.401"></a>
+<span class="sourceLineNo">402</span>  static boolean noMoreResultsForReverseScan(Scan scan, RegionInfo info) {<a name="line.402"></a>
+<span class="sourceLineNo">403</span>    if (isEmptyStartRow(info.getStartKey())) {<a name="line.403"></a>
+<span class="sourceLineNo">404</span>      return true;<a name="line.404"></a>
 <span class="sourceLineNo">405</span>    }<a name="line.405"></a>
-<span class="sourceLineNo">406</span>    // no need to test the inclusive of the stop row as the start key of a region is included in<a name="line.406"></a>
-<span class="sourceLineNo">407</span>    // the region.<a name="line.407"></a>
-<span class="sourceLineNo">408</span>    return Bytes.compareTo(info.getStartKey(), scan.getStopRow()) &lt;= 0;<a name="line.408"></a>
-<span class="sourceLineNo">409</span>  }<a name="line.409"></a>
-<span class="sourceLineNo">410</span><a name="line.410"></a>
-<span class="sourceLineNo">411</span>  static &lt;T&gt; CompletableFuture&lt;List&lt;T&gt;&gt; allOf(List&lt;CompletableFuture&lt;T&gt;&gt; futures) {<a name="line.411"></a>
-<span class="sourceLineNo">412</span>    return CompletableFuture.allOf(futures.toArray(new CompletableFuture[0]))<a name="line.412"></a>
-<span class="sourceLineNo">413</span>      .thenApply(v -&gt; futures.stream().map(f -&gt; f.getNow(null)).collect(toList()));<a name="line.413"></a>
-<span class="sourceLineNo">414</span>  }<a name="line.414"></a>
-<span class="sourceLineNo">415</span><a name="line.415"></a>
-<span class="sourceLineNo">416</span>  public static ScanResultCache createScanResultCache(Scan scan) {<a name="line.416"></a>
-<span class="sourceLineNo">417</span>    if (scan.getAllowPartialResults()) {<a name="line.417"></a>
-<span class="sourceLineNo">418</span>      return new AllowPartialScanResultCache();<a name="line.418"></a>
-<span class="sourceLineNo">419</span>    } else if (scan.getBatch() &gt; 0) {<a name="line.419"></a>
-<span class="sourceLineNo">420</span>      return new BatchScanResultCache(scan.getBatch());<a name="line.420"></a>
-<span class="sourceLineNo">421</span>    } else {<a name="line.421"></a>
-<span class="sourceLineNo">422</span>      return new CompleteScanResultCache();<a name="line.422"></a>
-<span class="sourceLineNo">423</span>    }<a name="line.423"></a>
-<span class="sourceLineNo">424</span>  }<a name="line.424"></a>
-<span class="sourceLineNo">425</span><a name="line.425"></a>
-<span class="sourceLineNo">426</span>  private static final String MY_ADDRESS = getMyAddress();<a name="line.426"></a>
-<span class="sourceLineNo">427</span><a name="line.427"></a>
-<span class="sourceLineNo">428</span>  private static String getMyAddress() {<a name="line.428"></a>
-<span class="sourceLineNo">429</span>    try {<a name="line.429"></a>
-<span class="sourceLineNo">430</span>      return DNS.getDefaultHost("default", "default");<a name="line.430"></a>
-<span class="sourceLineNo">431</span>    } catch (UnknownHostException uhe) {<a name="line.431"></a>
-<span class="sourceLineNo">432</span>      LOG.error("cannot determine my address", uhe);<a name="line.432"></a>
-<span class="sourceLineNo">433</span>      return null;<a name="line.433"></a>
-<span class="sourceLineNo">434</span>    }<a name="line.434"></a>
-<span class="sourceLineNo">435</span>  }<a name="line.435"></a>
-<span class="sourceLineNo">436</span><a name="line.436"></a>
-<span class="sourceLineNo">437</span>  static boolean isRemote(String host) {<a name="line.437"></a>
-<span class="sourceLineNo">438</span>    return !host.equalsIgnoreCase(MY_ADDRESS);<a name="line.438"></a>
-<span class="sourceLineNo">439</span>  }<a name="line.439"></a>
-<span class="sourceLineNo">440</span><a name="line.440"></a>
-<span class="sourceLineNo">441</span>  static void incRPCCallsMetrics(ScanMetrics scanMetrics, boolean isRegionServerRemote) {<a name="line.441"></a>
-<span class="sourceLineNo">442</span>    if (scanMetrics == null) {<a name="line.442"></a>
-<span class="sourceLineNo">443</span>      return;<a name="line.443"></a>
-<span class="sourceLineNo">444</span>    }<a name="line.444"></a>
-<span class="sourceLineNo">445</span>    scanMetrics.countOfRPCcalls.incrementAndGet();<a name="line.445"></a>
-<span class="sourceLineNo">446</span>    if (isRegionServerRemote) {<a name="line.446"></a>
-<span class="sourceLineNo">447</span>      scanMetrics.countOfRemoteRPCcalls.incrementAndGet();<a name="line.447"></a>
-<span class="sourceLineNo">448</span>    }<a name="line.448"></a>
-<span class="sourceLineNo">449</span>  }<a name="line.449"></a>
-<span class="sourceLineNo">450</span><a name="line.450"></a>
-<span class="sourceLineNo">451</span>  static void incRPCRetriesMetrics(ScanMetrics scanMetrics, boolean isRegionServerRemote) {<a name="line.451"></a>
-<span class="sourceLineNo">452</span>    if (scanMetrics == null) {<a name="line.452"></a>
-<span class="sourceLineNo">453</span>      return;<a name="line.453"></a>
-<span class="sourceLineNo">454</span>    }<a name="line.454"></a>
-<span class="sourceLineNo">455</span>    scanMetrics.countOfRPCRetries.incrementAndGet();<a name="line.455"></a>
-<span class="sourceLineNo">456</span>    if (isRegionServerRemote) {<a name="line.456"></a>
-<span class="sourceLineNo">457</span>      scanMetrics.countOfRemoteRPCRetries.incrementAndGet();<a name="line.457"></a>
-<span class="sourceLineNo">458</span>    }<a name="line.458"></a>
-<span class="sourceLineNo">459</span>  }<a name="line.459"></a>
-<span class="sourceLineNo">460</span><a name="line.460"></a>
-<span class="sourceLineNo">461</span>  static void updateResultsMetrics(ScanMetrics scanMetrics, Result[] rrs,<a name="line.461"></a>
-<span class="sourceLineNo">462</span>      boolean isRegionServerRemote) {<a name="line.462"></a>
-<span class="sourceLineNo">463</span>    if (scanMetrics == null || rrs == null || rrs.length == 0) {<a name="line.463"></a>
-<span class="sourceLineNo">464</span>      return;<a name="line.464"></a>
-<span class="sourceLineNo">465</span>    }<a name="line.465"></a>
-<span class="sourceLineNo">466</span>    long resultSize = 0;<a name="line.466"></a>
-<span class="sourceLineNo">467</span>    for (Result rr : rrs) {<a name="line.467"></a>
-<span class="sourceLineNo">468</span>      for (Cell cell : rr.rawCells()) {<a name="line.468"></a>
-<span class="sourceLineNo">469</span>        resultSize += PrivateCellUtil.estimatedSerializedSizeOf(cell);<a name="line.469"></a>
-<span class="sourceLineNo">470</span>      }<a name="line.470"></a>
-<span class="sourceLineNo">471</span>    }<a name="line.471"></a>
-<span class="sourceLineNo">472</span>    scanMetrics.countOfBytesInResults.addAndGet(resultSize);<a name="line.472"></a>
-<span class="sourceLineNo">473</span>    if (isRegionServerRemote) {<a name="line.473"></a>
-<span class="sourceLineNo">474</span>      scanMetrics.countOfBytesInRemoteResults.addAndGet(resultSize);<a name="line.474"></a>
-<span class="sourceLineNo">475</span>    }<a name="line.475"></a>
-<span class="sourceLineNo">476</span>  }<a name="line.476"></a>
-<span class="sourceLineNo">477</span><a name="line.477"></a>
-<span class="sourceLineNo">478</span>  /**<a name="line.478"></a>
-<span class="sourceLineNo">479</span>   * Use the scan metrics returned by the server to add to the identically named counters in the<a name="line.479"></a>
-<span class="sourceLineNo">480</span>   * client side metrics. If a counter does not exist with the same name as the server side metric,<a name="line.480"></a>
-<span class="sourceLineNo">481</span>   * the attempt to increase the counter will fail.<a name="line.481"></a>
-<span class="sourceLineNo">482</span>   */<a name="line.482"></a>
-<span class="sourceLineNo">483</span>  static void updateServerSideMetrics(ScanMetrics scanMetrics, ScanResponse response) {<a name="line.483"></a>
-<span class="sourceLineNo">484</span>    if (scanMetrics == null || response == null || !response.hasScanMetrics()) {<a name="line.484"></a>
-<span class="sourceLineNo">485</span>      return;<a name="line.485"></a>
-<span class="sourceLineNo">486</span>    }<a name="line.486"></a>
-<span class="sourceLineNo">487</span>    ResponseConverter.getScanMetrics(response).forEach(scanMetrics::addToCounter);<a name="line.487"></a>
-<span class="sourceLineNo">488</span>  }<a name="line.488"></a>
-<span class="sourceLineNo">489</span><a name="line.489"></a>
-<span class="sourceLineNo">490</span>  static void incRegionCountMetrics(ScanMetrics scanMetrics) {<a name="line.490"></a>
-<span class="sourceLineNo">491</span>    if (scanMetrics == null) {<a name="line.491"></a>
-<span class="sourceLineNo">492</span>      return;<a name="line.492"></a>
-<span class="sourceLineNo">493</span>    }<a name="line.493"></a>
-<span class="sourceLineNo">494</span>    scanMetrics.countOfRegions.incrementAndGet();<a name="line.494"></a>
-<span class="sourceLineNo">495</span>  }<a name="line.495"></a>
-<span class="sourceLineNo">496</span><a name="line.496"></a>
-<span class="sourceLineNo">497</span>  /**<a name="line.497"></a>
-<span class="sourceLineNo">498</span>   * Connect the two futures, if the src future is done, then mark the dst future as done. And if<a name="line.498"></a>
-<span class="sourceLineNo">499</span>   * the dst future is done, then cancel the src future. This is used for timeline consistent read.<a name="line.499"></a>
-<span class="sourceLineNo">500</span>   */<a name="line.500"></a>
-<span class="sourceLineNo">501</span>  private static &lt;T&gt; void connect(CompletableFuture&lt;T&gt; srcFuture, CompletableFuture&lt;T&gt; dstFuture) {<a name="line.501"></a>
-<span class="sourceLineNo">502</span>    addListener(srcFuture, (r, e) -&gt; {<a name="line.502"></a>
-<span class="sourceLineNo">503</span>      if (e != null) {<a name="line.503"></a>
-<span class="sourceLineNo">504</span>        dstFuture.completeExceptionally(e);<a name="line.504"></a>
-<span class="sourceLineNo">505</span>      } else {<a name="line.505"></a>
-<span class="sourceLineNo">506</span>        dstFuture.complete(r);<a name="line.506"></a>
-<span class="sourceLineNo">507</span>      }<a name="line.507"></a>
-<span class="sourceLineNo">508</span>    });<a name="line.508"></a>
-<span class="sourceLineNo">509</span>    // The cancellation may be a dummy one as the dstFuture may be completed by this srcFuture.<a name="line.509"></a>
-<span class="sourceLineNo">510</span>    // Notice that this is a bit tricky, as the execution chain maybe 'complete src -&gt; complete dst<a name="line.510"></a>
-<span class="sourceLineNo">511</span>    // -&gt; cancel src', for now it seems to be fine, as the will use CAS to set the result first in<a name="line.511"></a>
-<span class="sourceLineNo">512</span>    // CompletableFuture. If later this causes problems, we could use whenCompleteAsync to break the<a name="line.512"></a>
-<span class="sourceLineNo">513</span>    // tie.<a name="line.513"></a>
-<span class="sourceLineNo">514</span>    addListener(dstFuture, (r, e) -&gt; srcFuture.cancel(false));<a name="line.514"></a>
-<span class="sourceLineNo">515</span>  }<a name="line.515"></a>
-<span class="sourceLineNo">516</span><a name="line.516"></a>
-<span class="sourceLineNo">517</span>  private static &lt;T&gt; void sendRequestsToSecondaryReplicas(<a name="line.517"></a>
-<span class="sourceLineNo">518</span>      Function&lt;Integer, CompletableFuture&lt;T&gt;&gt; requestReplica, RegionLocations locs,<a name="line.518"></a>
-<span class="sourceLineNo">519</span>      CompletableFuture&lt;T&gt; future) {<a name="line.519"></a>
-<span class="sourceLineNo">520</span>    if (future.isDone()) {<a name="line.520"></a>
-<span class="sourceLineNo">521</span>      // do not send requests to secondary replicas if the future is done, i.e, the primary request<a name="line.521"></a>
-<span class="sourceLineNo">522</span>      // has already been finished.<a name="line.522"></a>
-<span class="sourceLineNo">523</span>      return;<a name="line.523"></a>
-<span class="sourceLineNo">524</span>    }<a name="line.524"></a>
-<span class="sourceLineNo">525</span>    for (int replicaId = 1, n = locs.size(); replicaId &lt; n; replicaId++) {<a name="line.525"></a>
-<span class="sourceLineNo">526</span>      CompletableFuture&lt;T&gt; secondaryFuture = requestReplica.apply(replicaId);<a name="line.526"></a>
-<span class="sourceLineNo">527</span>      connect(secondaryFuture, future);<a name="line.527"></a>
-<span class="sourceLineNo">528</span>    }<a name="line.528"></a>
-<span class="sourceLineNo">529</span>  }<a name="line.529"></a>
-<span class="sourceLineNo">530</span><a name="line.530"></a>
-<span class="sourceLineNo">531</span>  static &lt;T&gt; CompletableFuture&lt;T&gt; timelineConsistentRead(AsyncRegionLocator locator,<a name="line.531"></a>
-<span class="sourceLineNo">532</span>      TableName tableName, Query query, byte[] row, RegionLocateType locateType,<a name="line.532"></a>
-<span class="sourceLineNo">533</span>      Function&lt;Integer, CompletableFuture&lt;T&gt;&gt; requestReplica, long rpcTimeoutNs,<a name="line.533"></a>
-<span class="sourceLineNo">534</span>      long primaryCallTimeoutNs, Timer retryTimer) {<a name="line.534"></a>
-<span class="sourceLineNo">535</span>    if (query.getConsistency() == Consistency.STRONG) {<a name="line.535"></a>
-<span class="sourceLineNo">536</span>      return requestReplica.apply(RegionReplicaUtil.DEFAULT_REPLICA_ID);<a name="line.536"></a>
-<span class="sourceLineNo">537</span>    }<a name="line.537"></a>
-<span class="sourceLineNo">538</span>    // user specifies a replica id explicitly, just send request to the specific replica<a name="line.538"></a>
-<span class="sourceLineNo">539</span>    if (query.getReplicaId() &gt;= 0) {<a name="line.539"></a>
-<span class="sourceLineNo">540</span>      return requestReplica.apply(query.getReplicaId());<a name="line.540"></a>
-<span class="sourceLineNo">541</span>    }<a name="line.541"></a>
-<span class="sourceLineNo">542</span>    // Timeline consistent read, where we may send requests to other region replicas<a name="line.542"></a>
-<span class="sourceLineNo">543</span>    CompletableFuture&lt;T&gt; primaryFuture = requestReplica.apply(RegionReplicaUtil.DEFAULT_REPLICA_ID);<a name="line.543"></a>
-<span class="sourceLineNo">544</span>    CompletableFuture&lt;T&gt; future = new CompletableFuture&lt;&gt;();<a name="line.544"></a>
-<span class="sourceLineNo">545</span>    connect(primaryFuture, future);<a name="line.545"></a>
-<span class="sourceLineNo">546</span>    long startNs = System.nanoTime();<a name="line.546"></a>
-<span class="sourceLineNo">547</span>    // after the getRegionLocations, all the locations for the replicas of this region should have<a name="line.547"></a>
-<span class="sourceLineNo">548</span>    // been cached, so it is not big deal to locate them again when actually sending requests to<a name="line.548"></a>
-<span class="sourceLineNo">549</span>    // these replicas.<a name="line.549"></a>
-<span class="sourceLineNo">550</span>    addListener(locator.getRegionLocations(tableName, row, locateType, false, rpcTimeoutNs),<a name="line.550"></a>
-<span class="sourceLineNo">551</span>      (locs, error) -&gt; {<a name="line.551"></a>
-<span class="sourceLineNo">552</span>        if (error != null) {<a name="line.552"></a>
-<span class="sourceLineNo">553</span>          LOG.warn(<a name="line.553"></a>
-<span class="sourceLineNo">554</span>            "Failed to locate all the replicas for table={}, row='{}', locateType={}" +<a name="line.554"></a>
-<span class="sourceLineNo">555</span>              " give up timeline consistent read",<a name="line.555"></a>
-<span class="sourceLineNo">556</span>            tableName, Bytes.toStringBinary(row), locateType, error);<a name="line.556"></a>
-<span class="sourceLineNo">557</span>          return;<a name="line.557"></a>
-<span class="sourceLineNo">558</span>        }<a name="line.558"></a>
-<span class="sourceLineNo">559</span>        if (locs.size() &lt;= 1) {<a name="line.559"></a>
-<span class="sourceLineNo">560</span>          LOG.warn(<a name="line.560"></a>
-<span class="sourceLineNo">561</span>            "There are no secondary replicas for region {}, give up timeline consistent read",<a name="line.561"></a>
-<span class="sourceLineNo">562</span>            locs.getDefaultRegionLocation().getRegion());<a name="line.562"></a>
-<span class="sourceLineNo">563</span>          return;<a name="line.563"></a>
-<span class="sourceLineNo">564</span>        }<a name="line.564"></a>
-<span class="sourceLineNo">565</span>        long delayNs = primaryCallTimeoutNs - (System.nanoTime() - startNs);<a name="line.565"></a>
-<span class="sourceLineNo">566</span>        if (delayNs &lt;= 0) {<a name="line.566"></a>
-<span class="sourceLineNo">567</span>          sendRequestsToSecondaryReplicas(requestReplica, locs, future);<a name="line.567"></a>
-<span class="sourceLineNo">568</span>        } else {<a name="line.568"></a>
-<span class="sourceLineNo">569</span>          retryTimer.newTimeout(<a name="line.569"></a>
-<span class="sourceLineNo">570</span>            timeout -&gt; sendRequestsToSecondaryReplicas(requestReplica, locs, future), delayNs,<a name="line.570"></a>
-<span class="sourceLineNo">571</span>            TimeUnit.NANOSECONDS);<a name="line.571"></a>
-<span class="sourceLineNo">572</span>        }<a name="line.572"></a>
-<span class="sourceLineNo">573</span>      });<a name="line.573"></a>
-<span class="sourceLineNo">574</span>    return future;<a name="line.574"></a>
-<span class="sourceLineNo">575</span>  }<a name="line.575"></a>
-<span class="sourceLineNo">576</span><a name="line.576"></a>
-<span class="sourceLineNo">577</span>  // validate for well-formedness<a name="line.577"></a>
-<span class="sourceLineNo">578</span>  static void validatePut(Put put, int maxKeyValueSize) throws IllegalArgumentException {<a name="line.578"></a>
-<span class="sourceLineNo">579</span>    if (put.isEmpty()) {<a name="line.579"></a>
-<span class="sourceLineNo">580</span>      throw new IllegalArgumentException("No columns to insert");<a name="line.580"></a>
-<span class="sourceLineNo">581</span>    }<a name="line.581"></a>
-<span class="sourceLineNo">582</span>    if (maxKeyValueSize &gt; 0) {<a name="line.582"></a>
-<span class="sourceLineNo">583</span>      for (List&lt;Cell&gt; list : put.getFamilyCellMap().values()) {<a name="line.583"></a>
-<span class="sourceLineNo">584</span>        for (Cell cell : list) {<a name="line.584"></a>
-<span class="sourceLineNo">585</span>          if (cell.getSerializedSize() &gt; maxKeyValueSize) {<a name="line.585"></a>
-<span class="sourceLineNo">586</span>            throw new IllegalArgumentException("KeyValue size too large");<a name="line.586"></a>
-<span class="sourceLineNo">587</span>          }<a name="line.587"></a>
-<span class="sourceLineNo">588</span>        }<a name="line.588"></a>
-<span class="sourceLineNo">589</span>      }<a name="line.589"></a>
-<span class="sourceLineNo">590</span>    }<a name="line.590"></a>
-<span class="sourceLineNo">591</span>  }<a name="line.591"></a>
-<span class="sourceLineNo">592</span><a name="line.592"></a>
-<span class="sourceLineNo">593</span>  /**<a name="line.593"></a>
-<span class="sourceLineNo">594</span>   * Select the priority for the rpc call.<a name="line.594"></a>
-<span class="sourceLineNo">595</span>   * &lt;p/&gt;<a name="line.595"></a>
-<span class="sourceLineNo">596</span>   * The rules are:<a name="line.596"></a>
-<span class="sourceLineNo">597</span>   * &lt;ol&gt;<a name="line.597"></a>
-<span class="sourceLineNo">598</span>   * &lt;li&gt;If user set a priority explicitly, then just use it.&lt;/li&gt;<a name="line.598"></a>
-<span class="sourceLineNo">599</span>   * &lt;li&gt;For system table, use {@link HConstants#SYSTEMTABLE_QOS}.&lt;/li&gt;<a name="line.599"></a>
-<span class="sourceLineNo">600</span>   * &lt;li&gt;For other tables, use {@link HConstants#NORMAL_QOS}.&lt;/li&gt;<a name="line.600"></a>
-<span class="sourceLineNo">601</span>   * &lt;/ol&gt;<a name="line.601"></a>
-<span class="sourceLineNo">602</span>   * @param priority the priority set by user, can be {@link HConstants#PRIORITY_UNSET}.<a name="line.602"></a>
-<span class="sourceLineNo">603</span>   * @param tableName the table we operate on<a name="line.603"></a>
-<span class="sourceLineNo">604</span>   */<a name="line.604"></a>
-<span class="sourceLineNo">605</span>  static int calcPriority(int priority, TableName tableName) {<a name="line.605"></a>
-<span class="sourceLineNo">606</span>    if (priority != HConstants.PRIORITY_UNSET) {<a name="line.606"></a>
-<span class="sourceLineNo">607</span>      return priority;<a name="line.607"></a>
-<span class="sourceLineNo">608</span>    } else {<a name="line.608"></a>
-<span class="sourceLineNo">609</span>      return getPriority(tableName);<a name="line.609"></a>
-<span class="sourceLineNo">610</span>    }<a name="line.610"></a>
-<span class="sourceLineNo">611</span>  }<a name="line.611"></a>
-<span class="sourceLineNo">612</span><a name="line.612"></a>
-<span class="sourceLineNo">613</span>  static int getPriority(TableName tableName) {<a name="line.613"></a>
-<span class="sourceLineNo">614</span>    if (tableName.isSystemTable()) {<a name="line.614"></a>
-<span class="sourceLineNo">615</span>      return HConstants.SYSTEMTABLE_QOS;<a name="line.615"></a>
-<span class="sourceLineNo">616</span>    } else {<a name="line.616"></a>
-<span class="sourceLineNo">617</span>      return HConstants.NORMAL_QOS;<a name="line.617"></a>
-<span class="sourceLineNo">618</span>    }<a name="line.618"></a>
-<span class="sourceLineNo">619</span>  }<a name="line.619"></a>
-<span class="sourceLineNo">620</span>}<a name="line.620"></a>
+<span class="sourceLineNo">406</span>    if (isEmptyStopRow(scan.getStopRow())) {<a name="line.406"></a>
+<span class="sourceLineNo">407</span>      return false;<a name="line.407"></a>
+<span class="sourceLineNo">408</span>    }<a name="line.408"></a>
+<span class="sourceLineNo">409</span>    // no need to test the inclusive of the stop row as the start key of a region is included in<a name="line.409"></a>
+<span class="sourceLineNo">410</span>    // the region.<a name="line.410"></a>
+<span class="sourceLineNo">411</span>    return Bytes.compareTo(info.getStartKey(), scan.getStopRow()) &lt;= 0;<a name="line.411"></a>
+<span class="sourceLineNo">412</span>  }<a name="line.412"></a>
+<span class="sourceLineNo">413</span><a name="line.413"></a>
+<span class="sourceLineNo">414</span>  static &lt;T&gt; CompletableFuture&lt;List&lt;T&gt;&gt; allOf(List&lt;CompletableFuture&lt;T&gt;&gt; futures) {<a name="line.414"></a>
+<span class="sourceLineNo">415</span>    return CompletableFuture.allOf(futures.toArray(new CompletableFuture[0]))<a name="line.415"></a>
+<span class="sourceLineNo">416</span>      .thenApply(v -&gt; futures.stream().map(f -&gt; f.getNow(null)).collect(toList()));<a name="line.416"></a>
+<span class="sourceLineNo">417</span>  }<a name="line.417"></a>
+<span class="sourceLineNo">418</span><a name="line.418"></a>
+<span class="sourceLineNo">419</span>  public static ScanResultCache createScanResultCache(Scan scan) {<a name="line.419"></a>
+<span class="sourceLineNo">420</span>    if (scan.getAllowPartialResults()) {<a name="line.420"></a>
+<span class="sourceLineNo">421</span>      return new AllowPartialScanResultCache();<a name="line.421"></a>
+<span class="sourceLineNo">422</span>    } else if (scan.getBatch() &gt; 0) {<a name="line.422"></a>
+<span class="sourceLineNo">423</span>      return new BatchScanResultCache(scan.getBatch());<a name="line.423"></a>
+<span class="sourceLineNo">424</span>    } else {<a name="line.424"></a>
+<span class="sourceLineNo">425</span>      return new CompleteScanResultCache();<a name="line.425"></a>
+<span class="sourceLineNo">426</span>    }<a name="line.426"></a>
+<span class="sourceLineNo">427</span>  }<a name="line.427"></a>
+<span class="sourceLineNo">428</span><a name="line.428"></a>
+<span class="sourceLineNo">429</span>  private static final String MY_ADDRESS = getMyAddress();<a name="line.429"></a>
+<span class="sourceLineNo">430</span><a name="line.430"></a>
+<span class="sourceLineNo">431</span>  private static String getMyAddress() {<a name="line.431"></a>
+<span class="sourceLineNo">432</span>    try {<a name="line.432"></a>
+<span class="sourceLineNo">433</span>      return DNS.getDefaultHost("default", "default");<a name="line.433"></a>
+<span class="sourceLineNo">434</span>    } catch (UnknownHostException uhe) {<a name="line.434"></a>
+<span class="sourceLineNo">435</span>      LOG.error("cannot determine my address", uhe);<a name="line.435"></a>
+<span class="sourceLineNo">436</span>      return null;<a name="line.436"></a>
+<span class="sourceLineNo">437</span>    }<a name="line.437"></a>
+<span class="sourceLineNo">438</span>  }<a name="line.438"></a>
+<span class="sourceLineNo">439</span><a name="line.439"></a>
+<span class="sourceLineNo">440</span>  static boolean isRemote(String host) {<a name="line.440"></a>
+<span class="sourceLineNo">441</span>    return !host.equalsIgnoreCase(MY_ADDRESS);<a name="line.441"></a>
+<span class="sourceLineNo">442</span>  }<a name="line.442"></a>
+<span class="sourceLineNo">443</span><a name="line.443"></a>
+<span class="sourceLineNo">444</span>  static void incRPCCallsMetrics(ScanMetrics scanMetrics, boolean isRegionServerRemote) {<a name="line.444"></a>
+<span class="sourceLineNo">445</span>    if (scanMetrics == null) {<a name="line.445"></a>
+<span class="sourceLineNo">446</span>      return;<a name="line.446"></a>
+<span class="sourceLineNo">447</span>    }<a name="line.447"></a>
+<span class="sourceLineNo">448</span>    scanMetrics.countOfRPCcalls.incrementAndGet();<a name="line.448"></a>
+<span class="sourceLineNo">449</span>    if (isRegionServerRemote) {<a name="line.449"></a>
+<span class="sourceLineNo">450</span>      scanMetrics.countOfRemoteRPCcalls.incrementAndGet();<a name="line.450"></a>
+<span class="sourceLineNo">451</span>    }<a name="line.451"></a>
+<span class="sourceLineNo">452</span>  }<a name="line.452"></a>
+<span class="sourceLineNo">453</span><a name="line.453"></a>
+<span class="sourceLineNo">454</span>  static void incRPCRetriesMetrics(ScanMetrics scanMetrics, boolean isRegionServerRemote) {<a name="line.454"></a>
+<span class="sourceLineNo">455</span>    if (scanMetrics == null) {<a name="line.455"></a>
+<span class="sourceLineNo">456</span>      return;<a name="line.456"></a>
+<span class="sourceLineNo">457</span>    }<a name="line.457"></a>
+<span class="sourceLineNo">458</span>    scanMetrics.countOfRPCRetries.incrementAndGet();<a name="line.458"></a>
+<span class="sourceLineNo">459</span>    if (isRegionServerRemote) {<a name="line.459"></a>
+<span class="sourceLineNo">460</span>      scanMetrics.countOfRemoteRPCRetries.incrementAndGet();<a name="line.460"></a>
+<span class="sourceLineNo">461</span>    }<a name="line.461"></a>
+<span class="sourceLineNo">462</span>  }<a name="line.462"></a>
+<span class="sourceLineNo">463</span><a name="line.463"></a>
+<span class="sourceLineNo">464</span>  static void updateResultsMetrics(ScanMetrics scanMetrics, Result[] rrs,<a name="line.464"></a>
+<span class="sourceLineNo">465</span>      boolean isRegionServerRemote) {<a name="line.465"></a>
+<span class="sourceLineNo">466</span>    if (scanMetrics == null || rrs == null || rrs.length == 0) {<a name="line.466"></a>
+<span class="sourceLineNo">467</span>      return;<a name="line.467"></a>
+<span class="sourceLineNo">468</span>    }<a name="line.468"></a>
+<span class="sourceLineNo">469</span>    long resultSize = 0;<a name="line.469"></a>
+<span class="sourceLineNo">470</span>    for (Result rr : rrs) {<a name="line.470"></a>
+<span class="sourceLineNo">471</span>      for (Cell cell : rr.rawCells()) {<a name="line.471"></a>
+<span class="sourceLineNo">472</span>        resultSize += PrivateCellUtil.estimatedSerializedSizeOf(cell);<a name="line.472"></a>
+<span class="sourceLineNo">473</span>      }<a name="line.473"></a>
+<span class="sourceLineNo">474</span>    }<a name="line.474"></a>
+<span class="sourceLineNo">475</span>    scanMetrics.countOfBytesInResults.addAndGet(resultSize);<a name="line.475"></a>
+<span class="sourceLineNo">476</span>    if (isRegionServerRemote) {<a name="line.476"></a>
+<span class="sourceLineNo">477</span>      scanMetrics.countOfBytesInRemoteResults.addAndGet(resultSize);<a name="line.477"></a>
+<span class="sourceLineNo">478</span>    }<a name="line.478"></a>
+<span class="sourceLineNo">479</span>  }<a name="line.479"></a>
+<span class="sourceLineNo">480</span><a name="line.480"></a>
+<span class="sourceLineNo">481</span>  /**<a name="line.481"></a>
+<span class="sourceLineNo">482</span>   * Use the scan metrics returned by the server to add to the identically named counters in the<a name="line.482"></a>
+<span class="sourceLineNo">483</span>   * client side metrics. If a counter does not exist with the same name as the server side metric,<a name="line.483"></a>
+<span class="sourceLineNo">484</span>   * the attempt to increase the counter will fail.<a name="line.484"></a>
+<span class="sourceLineNo">485</span>   */<a name="line.485"></a>
+<span class="sourceLineNo">486</span>  static void updateServerSideMetrics(ScanMetrics scanMetrics, ScanResponse response) {<a name="line.486"></a>
+<span class="sourceLineNo">487</span>    if (scanMetrics == null || response == null || !response.hasScanMetrics()) {<a name="line.487"></a>
+<span class="sourceLineNo">488</span>      return;<a name="line.488"></a>
+<span class="sourceLineNo">489</span>    }<a name="line.489"></a>
+<span class="sourceLineNo">490</span>    ResponseConverter.getScanMetrics(response).forEach(scanMetrics::addToCounter);<a name="line.490"></a>
+<span class="sourceLineNo">491</span>  }<a name="line.491"></a>
+<span class="sourceLineNo">492</span><a name="line.492"></a>
+<span class="sourceLineNo">493</span>  static void incRegionCountMetrics(ScanMetrics scanMetrics) {<a name="line.493"></a>
+<span class="sourceLineNo">494</span>    if (scanMetrics == null) {<a name="line.494"></a>
+<span class="sourceLineNo">495</span>      return;<a name="line.495"></a>
+<span class="sourceLineNo">496</span>    }<a name="line.496"></a>
+<span class="sourceLineNo">497</span>    scanMetrics.countOfRegions.incrementAndGet();<a name="line.497"></a>
+<span class="sourceLineNo">498</span>  }<a name="line.498"></a>
+<span class="sourceLineNo">499</span><a name="line.499"></a>
+<span class="sourceLineNo">500</span>  /**<a name="line.500"></a>
+<span class="sourceLineNo">501</span>   * Connect the two futures, if the src future is done, then mark the dst future as done. And if<a name="line.501"></a>
+<span class="sourceLineNo">502</span>   * the dst future is done, then cancel the src future. This is used for timeline consistent read.<a name="line.502"></a>
+<span class="sourceLineNo">503</span>   */<a name="line.503"></a>
+<span class="sourceLineNo">504</span>  private static &lt;T&gt; void connect(CompletableFuture&lt;T&gt; srcFuture, CompletableFuture&lt;T&gt; dstFuture) {<a name="line.504"></a>
+<span class="sourceLineNo">505</span>    addListener(srcFuture, (r, e) -&gt; {<a name="line.505"></a>
+<span class="sourceLineNo">506</span>      if (e != null) {<a name="line.506"></a>
+<span class="sourceLineNo">507</span>        dstFuture.completeExceptionally(e);<a name="line.507"></a>
+<span class="sourceLineNo">508</span>      } else {<a name="line.508"></a>
+<span class="sourceLineNo">509</span>        dstFuture.complete(r);<a name="line.509"></a>
+<span class="sourceLineNo">510</span>      }<a name="line.510"></a>
+<span class="sourceLineNo">511</span>    });<a name="line.511"></a>
+<span class="sourceLineNo">512</span>    // The cancellation may be a dummy one as the dstFuture may be completed by this srcFuture.<a name="line.512"></a>
+<span class="sourceLineNo">513</span>    // Notice that this is a bit tricky, as the execution chain maybe 'complete src -&gt; complete dst<a name="line.513"></a>
+<span class="sourceLineNo">514</span>    // -&gt; cancel src', for now it seems to be fine, as the will use CAS to set the result first in<a name="line.514"></a>
+<span class="sourceLineNo">515</span>    // CompletableFuture. If later this causes problems, we could use whenCompleteAsync to break the<a name="line.515"></a>
+<span class="sourceLineNo">516</span>    // tie.<a name="line.516"></a>
+<span class="sourceLineNo">517</span>    addListener(dstFuture, (r, e) -&gt; srcFuture.cancel(false));<a name="line.517"></a>
+<span class="sourceLineNo">518</span>  }<a name="line.518"></a>
+<span class="sourceLineNo">519</span><a name="line.519"></a>
+<span class="sourceLineNo">520</span>  private static &lt;T&gt; void sendRequestsToSecondaryReplicas(<a name="line.520"></a>
+<span class="sourceLineNo">521</span>      Function&lt;Integer, CompletableFuture&lt;T&gt;&gt; requestReplica, RegionLocations locs,<a name="line.521"></a>
+<span class="sourceLineNo">522</span>      CompletableFuture&lt;T&gt; future) {<a name="line.522"></a>
+<span class="sourceLineNo">523</span>    if (future.isDone()) {<a name="line.523"></a>
+<span class="sourceLineNo">524</span>      // do not send requests to secondary replicas if the future is done, i.e, the primary request<a name="line.524"></a>
+<span class="sourceLineNo">525</span>      // has already been finished.<a name="line.525"></a>
+<span class="sourceLineNo">526</span>      return;<a name="line.526"></a>
+<span class="sourceLineNo">527</span>    }<a name="line.527"></a>
+<span class="sourceLineNo">528</span>    for (int replicaId = 1, n = locs.size(); replicaId &lt; n; replicaId++) {<a name="line.528"></a>
+<span class="sourceLineNo">529</span>      CompletableFuture&lt;T&gt; secondaryFuture = requestReplica.apply(replicaId);<a name="line.529"></a>
+<span class="sourceLineNo">530</span>      connect(secondaryFuture, future);<a name="line.530"></a>
+<span class="sourceLineNo">531</span>    }<a name="line.531"></a>
+<span class="sourceLineNo">532</span>  }<a name="line.532"></a>
+<span class="sourceLineNo">533</span><a name="line.533"></a>
+<span class="sourceLineNo">534</span>  static &lt;T&gt; CompletableFuture&lt;T&gt; timelineConsistentRead(AsyncRegionLocator locator,<a name="line.534"></a>
+<span class="sourceLineNo">535</span>      TableName tableName, Query query, byte[] row, RegionLocateType locateType,<a name="line.535"></a>
+<span class="sourceLineNo">536</span>      Function&lt;Integer, CompletableFuture&lt;T&gt;&gt; requestReplica, long rpcTimeoutNs,<a name="line.536"></a>
+<span class="sourceLineNo">537</span>      long primaryCallTimeoutNs, Timer retryTimer) {<a name="line.537"></a>
+<span class="sourceLineNo">538</span>    if (query.getConsistency() == Consistency.STRONG) {<a name="line.538"></a>
+<span class="sourceLineNo">539</span>      return requestReplica.apply(RegionReplicaUtil.DEFAULT_REPLICA_ID);<a name="line.539"></a>
+<span class="sourceLineNo">540</span>    }<a name="line.540"></a>
+<span class="sourceLineNo">541</span>    // user specifies a replica id explicitly, just send request to the specific replica<a name="line.541"></a>
+<span class="sourceLineNo">542</span>    if (query.getReplicaId() &gt;= 0) {<a name="line.542"></a>
+<span class="sourceLineNo">543</span>      return requestReplica.apply(query.getReplicaId());<a name="line.543"></a>
+<span class="sourceLineNo">544</span>    }<a name="line.544"></a>
+<span class="sourceLineNo">545</span>    // Timeline consistent read, where we may send requests to other region replicas<a name="line.545"></a>
+<span class="sourceLineNo">546</span>    CompletableFuture&lt;T&gt; primaryFuture = requestReplica.apply(RegionReplicaUtil.DEFAULT_REPLICA_ID);<a name="line.546"></a>
+<span class="sourceLineNo">547</span>    CompletableFuture&lt;T&gt; future = new CompletableFuture&lt;&gt;();<a name="line.547"></a>
+<span class="sourceLineNo">548</span>    connect(primaryFuture, future);<a name="line.548"></a>
+<span class="sourceLineNo">549</span>    long startNs = System.nanoTime();<a name="line.549"></a>
+<span class="sourceLineNo">550</span>    // after the getRegionLocations, all the locations for the replicas of this region should have<a name="line.550"></a>
+<span class="sourceLineNo">551</span>    // been cached, so it is not big deal to locate them again when actually sending requests to<a name="line.551"></a>
+<span class="sourceLineNo">552</span>    // these replicas.<a name="line.552"></a>
+<span class="sourceLineNo">553</span>    addListener(locator.getRegionLocations(tableName, row, locateType, false, rpcTimeoutNs),<a name="line.553"></a>
+<span class="sourceLineNo">554</span>      (locs, error) -&gt; {<a name="line.554"></a>
+<span class="sourceLineNo">555</span>        if (error != null) {<a name="line.555"></a>
+<span class="sourceLineNo">556</span>          LOG.warn(<a name="line.556"></a>
+<span class="sourceLineNo">557</span>            "Failed to locate all the replicas for table={}, row='{}', locateType={}" +<a name="line.557"></a>
+<span class="sourceLineNo">558</span>              " give up timeline consistent read",<a name="line.558"></a>
+<span class="sourceLineNo">559</span>            tableName, Bytes.toStringBinary(row), locateType, error);<a name="line.559"></a>
+<span class="sourceLineNo">560</span>          return;<a name="line.560"></a>
+<span class="sourceLineNo">561</span>        }<a name="line.561"></a>
+<span class="sourceLineNo">562</span>        if (locs.size() &lt;= 1) {<a name="line.562"></a>
+<span class="sourceLineNo">563</span>          LOG.warn(<a name="line.563"></a>
+<span class="sourceLineNo">564</span>            "There are no secondary replicas for region {}, give up timeline consistent read",<a name="line.564"></a>
+<span class="sourceLineNo">565</span>            locs.getDefaultRegionLocation().getRegion());<a name="line.565"></a>
+<span class="sourceLineNo">566</span>          return;<a name="line.566"></a>
+<span class="sourceLineNo">567</span>        }<a name="line.567"></a>
+<span class="sourceLineNo">568</span>        long delayNs = primaryCallTimeoutNs - (System.nanoTime() - startNs);<a name="line.568"></a>
+<span class="sourceLineNo">569</span>        if (delayNs &lt;= 0) {<a name="line.569"></a>
+<span class="sourceLineNo">570</span>          sendRequestsToSecondaryReplicas(requestReplica, locs, future);<a name="line.570"></a>
+<span class="sourceLineNo">571</span>        } else {<a name="line.571"></a>
+<span class="sourceLineNo">572</span>          retryTimer.newTimeout(<a name="line.572"></a>
+<span class="sourceLineNo">573</span>            timeout -&gt; sendRequestsToSecondaryReplicas(requestReplica, locs, future), delayNs,<a name="line.573"></a>
+<span class="sourceLineNo">574</span>            TimeUnit.NANOSECONDS);<a name="line.574"></a>
+<span class="sourceLineNo">575</span>        }<a name="line.575"></a>
+<span class="sourceLineNo">576</span>      });<a name="line.576"></a>
+<span class="sourceLineNo">577</span>    return future;<a name="line.577"></a>
+<span class="sourceLineNo">578</span>  }<a name="line.578"></a>
+<span class="sourceLineNo">579</span><a name="line.579"></a>
+<span class="sourceLineNo">580</span>  // validate for well-formedness<a name="line.580"></a>
+<span class="sourceLineNo">581</span>  static void validatePut(Put put, int maxKeyValueSize) throws IllegalArgumentException {<a name="line.581"></a>
+<span class="sourceLineNo">582</span>    if (put.isEmpty()) {<a name="line.582"></a>
+<span class="sourceLineNo">583</span>      throw new IllegalArgumentException("No columns to insert");<a name="line.583"></a>
+<span class="sourceLineNo">584</span>    }<a name="line.584"></a>
+<span class="sourceLineNo">585</span>    if (maxKeyValueSize &gt; 0) {<a name="line.585"></a>
+<span class="sourceLineNo">586</span>      for (List&lt;Cell&gt; list : put.getFamilyCellMap().values()) {<a name="line.586"></a>
+<span class="sourceLineNo">587</span>        for (Cell cell : list) {<a name="line.587"></a>
+<span class="sourceLineNo">588</span>          if (cell.getSerializedSize() &gt; maxKeyValueSize) {<a name="line.588"></a>
+<span class="sourceLineNo">589</span>            throw new IllegalArgumentException("KeyValue size too large");<a name="line.589"></a>
+<span class="sourceLineNo">590</span>          }<a name="line.590"></a>
+<span class="sourceLineNo">591</span>        }<a name="line.591"></a>
+<span class="sourceLineNo">592</span>      }<a name="line.592"></a>
+<span class="sourceLineNo">593</span>    }<a name="line.593"></a>
+<span class="sourceLineNo">594</span>  }<a name="line.594"></a>
+<span class="sourceLineNo">595</span><a name="line.595"></a>
+<span class="sourceLineNo">596</span>  /**<a name="line.596"></a>
+<span class="sourceLineNo">597</span>   * Select the priority for the rpc call.<a name="line.597"></a>
+<span class="sourceLineNo">598</span>   * &lt;p/&gt;<a name="line.598"></a>
+<span class="sourceLineNo">599</span>   * The rules are:<a name="line.599"></a>
+<span class="sourceLineNo">600</span>   * &lt;ol&gt;<a name="line.600"></a>
+<span class="sourceLineNo">601</span>   * &lt;li&gt;If user set a priority explicitly, then just use it.&lt;/li&gt;<a name="line.601"></a>
+<span class="sourceLineNo">602</span>   * &lt;li&gt;For system table, use {@link HConstants#SYSTEMTABLE_QOS}.&lt;/li&gt;<a name="line.602"></a>
+<span class="sourceLineNo">603</span>   * &lt;li&gt;For other tables, use {@link HConstants#NORMAL_QOS}.&lt;/li&gt;<a name="line.603"></a>
+<span class="sourceLineNo">604</span>   * &lt;/ol&gt;<a name="line.604"></a>
+<span class="sourceLineNo">605</span>   * @param priority the priority set by user, can be {@link HConstants#PRIORITY_UNSET}.<a name="line.605"></a>
+<span class="sourceLineNo">606</span>   * @param tableName the table we operate on<a name="line.606"></a>
+<span class="sourceLineNo">607</span>   */<a name="line.607"></a>
+<span class="sourceLineNo">608</span>  static int calcPriority(int priority, TableName tableName) {<a name="line.608"></a>
+<span class="sourceLineNo">609</span>    if (priority != HConstants.PRIORITY_UNSET) {<a name="line.609"></a>
+<span class="sourceLineNo">610</span>      return priority;<a name="line.610"></a>
+<span class="sourceLineNo">611</span>    } else {<a name="line.611"></a>
+<span class="sourceLineNo">612</span>      return getPriority(tableName);<a name="line.612"></a>
+<span class="sourceLineNo">613</span>    }<a name="line.613"></a>
+<span class="sourceLineNo">614</span>  }<a name="line.614"></a>
+<span class="sourceLineNo">615</span><a name="line.615"></a>
+<span class="sourceLineNo">616</span>  static int getPriority(TableName tableName) {<a name="line.616"></a>
+<span class="sourceLineNo">617</span>    if (tableName.isSystemTable()) {<a name="line.617"></a>
+<span class="sourceLineNo">618</span>      return HConstants.SYSTEMTABLE_QOS;<a name="line.618"></a>
+<span class="sourceLineNo">619</span>    } else {<a name="line.619"></a>
+<span class="sourceLineNo">620</span>      return HConstants.NORMAL_QOS;<a name="line.620"></a>
+<span class="sourceLineNo">621</span>    }<a name="line.621"></a>
+<span class="sourceLineNo">622</span>  }<a name="line.622"></a>
+<span class="sourceLineNo">623</span><a name="line.623"></a>
+<span class="sourceLineNo">624</span>  static &lt;T&gt; CompletableFuture&lt;T&gt; getOrFetch(AtomicReference&lt;T&gt; cacheRef,<a name="line.624"></a>
+<span class="sourceLineNo">625</span>      AtomicReference&lt;CompletableFuture&lt;T&gt;&gt; futureRef, boolean reload,<a name="line.625"></a>
+<span class="sourceLineNo">626</span>      Supplier&lt;CompletableFuture&lt;T&gt;&gt; fetch, Predicate&lt;T&gt; validator, String type) {<a name="line.626"></a>
+<span class="sourceLineNo">627</span>    for (;;) {<a name="line.627"></a>
+<span class="sourceLineNo">628</span>      if (!reload) {<a name="line.628"></a>
+<span class="sourceLineNo">629</span>        T value = cacheRef.get();<a name="line.629"></a>
+<span class="sourceLineNo">630</span>        if (value != null &amp;&amp; validator.test(value)) {<a name="line.630"></a>
+<span class="sourceLineNo">631</span>          return CompletableFuture.completedFuture(value);<a name="line.631"></a>
+<span class="sourceLineNo">632</span>        }<a name="line.632"></a>
+<span class="sourceLineNo">633</span>      }<a name="line.633"></a>
+<span class="sourceLineNo">634</span>      LOG.trace("{} cache is null, try fetching from registry", type);<a name="line.634"></a>
+<span class="sourceLineNo">635</span>      if (futureRef.compareAndSet(null, new CompletableFuture&lt;&gt;())) {<a name="line.635"></a>
+<span class="sourceLineNo">636</span>        LOG.debug("Start fetching{} from registry", type);<a name="line.636"></a>
+<span class="sourceLineNo">637</span>        CompletableFuture&lt;T&gt; future = futureRef.get();<a name="line.637"></a>
+<span class="sourceLineNo">638</span>        addListener(fetch.get(), (value, error) -&gt; {<a name="line.638"></a>
+<span class="sourceLineNo">639</span>          if (error != null) {<a name="line.639"></a>
+<span class="sourceLineNo">640</span>            LOG.debug("Failed to fetch {} from registry", type, error);<a name="line.640"></a>
+<span class="sourceLineNo">641</span>            futureRef.getAndSet(null).completeExceptionally(error);<a name="line.641"></a>
+<span class="sourceLineNo">642</span>            return;<a name="line.642"></a>
+<span class="sourceLineNo">643</span>          }<a name="line.643"></a>
+<span class="sourceLineNo">644</span>          LOG.debug("The fetched {} is {}", type, value);<a name="line.644"></a>
+<span class="sourceLineNo">645</span>          // Here we update cache before reset future, so it is possible that someone can get a<a name="line.645"></a>
+<span class="sourceLineNo">646</span>          // stale value. Consider this:<a name="line.646"></a>
+<span class="sourceLineNo">647</span>          // 1. update cacheRef<a name="line.647"></a>
+<span class="sourceLineNo">648</span>          // 2. someone clears the cache and relocates again<a name="line.648"></a>
+<span class="sourceLineNo">649</span>          // 3. the futureRef is not null so the old future is used.<a name="line.649"></a>
+<span class="sourceLineNo">650</span>          // 4. we clear futureRef and complete the future in it with the value being<a name="line.650"></a>
+<span class="sourceLineNo">651</span>          // cleared in step 2.<a name="line.651"></a>
+<span class="sourceLineNo">652</span>          // But we do not think it is a big deal as it rarely happens, and even if it happens, the<a name="line.652"></a>
+<span class="sourceLineNo">653</span>          // caller will retry again later, no correctness problems.<a name="line.653"></a>
+<span class="sourceLineNo">654</span>          cacheRef.set(value);<a name="line.654"></a>
+<span class="sourceLineNo">655</span>          futureRef.set(null);<a name="line.655"></a>
+<span class="sourceLineNo">656</span>          future.complete(value);<a name="line.656"></a>
+<span class="sourceLineNo">657</span>        });<a name="line.657"></a>
+<span class="sourceLineNo">658</span>        return future;<a name="line.658"></a>
+<span class="sourceLineNo">659</span>      } else {<a name="line.659"></a>
+<span class="sourceLineNo">660</span>        CompletableFuture&lt;T&gt; future = futureRef.get();<a name="line.660"></a>
+<span class="sourceLineNo">661</span>        if (future != null) {<a name="line.661"></a>
+<span class="sourceLineNo">662</span>          return future;<a name="line.662"></a>
+<span class="sourceLineNo">663</span>        }<a name="line.663"></a>
+<span class="sourceLineNo">664</span>      }<a name="line.664"></a>
+<span class="sourceLineNo">665</span>    }<a name="line.665"></a>
+<span class="sourceLineNo">666</span>  }<a name="line.666"></a>
+<span class="sourceLineNo">667</span>}<a name="line.667"></a>
 
 
 
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/client/ConnectionUtils.ShortCircuitingClusterConnection.html b/devapidocs/src-html/org/apache/hadoop/hbase/client/ConnectionUtils.ShortCircuitingClusterConnection.html
index 49ca6d8..ff9e4cd 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/client/ConnectionUtils.ShortCircuitingClusterConnection.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/client/ConnectionUtils.ShortCircuitingClusterConnection.html
@@ -40,592 +40,639 @@
 <span class="sourceLineNo">032</span>import java.util.concurrent.ExecutorService;<a name="line.32"></a>
 <span class="sourceLineNo">033</span>import java.util.concurrent.ThreadLocalRandom;<a name="line.33"></a>
 <span class="sourceLineNo">034</span>import java.util.concurrent.TimeUnit;<a name="line.34"></a>
-<span class="sourceLineNo">035</span>import java.util.function.Function;<a name="line.35"></a>
-<span class="sourceLineNo">036</span>import org.apache.hadoop.conf.Configuration;<a name="line.36"></a>
-<span class="sourceLineNo">037</span>import org.apache.hadoop.hbase.Cell;<a name="line.37"></a>
-<span class="sourceLineNo">038</span>import org.apache.hadoop.hbase.CellComparator;<a name="line.38"></a>
-<span class="sourceLineNo">039</span>import org.apache.hadoop.hbase.HConstants;<a name="line.39"></a>
-<span class="sourceLineNo">040</span>import org.apache.hadoop.hbase.PrivateCellUtil;<a name="line.40"></a>
-<span class="sourceLineNo">041</span>import org.apache.hadoop.hbase.RegionLocations;<a name="line.41"></a>
-<span class="sourceLineNo">042</span>import org.apache.hadoop.hbase.ServerName;<a name="line.42"></a>
-<span class="sourceLineNo">043</span>import org.apache.hadoop.hbase.TableName;<a name="line.43"></a>
-<span class="sourceLineNo">044</span>import org.apache.hadoop.hbase.client.metrics.ScanMetrics;<a name="line.44"></a>
-<span class="sourceLineNo">045</span>import org.apache.hadoop.hbase.ipc.HBaseRpcController;<a name="line.45"></a>
-<span class="sourceLineNo">046</span>import org.apache.hadoop.hbase.security.User;<a name="line.46"></a>
-<span class="sourceLineNo">047</span>import org.apache.hadoop.hbase.security.UserProvider;<a name="line.47"></a>
-<span class="sourceLineNo">048</span>import org.apache.hadoop.hbase.util.Bytes;<a name="line.48"></a>
-<span class="sourceLineNo">049</span>import org.apache.hadoop.hbase.util.ReflectionUtils;<a name="line.49"></a>
-<span class="sourceLineNo">050</span>import org.apache.hadoop.ipc.RemoteException;<a name="line.50"></a>
-<span class="sourceLineNo">051</span>import org.apache.hadoop.net.DNS;<a name="line.51"></a>
-<span class="sourceLineNo">052</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.52"></a>
-<span class="sourceLineNo">053</span>import org.slf4j.Logger;<a name="line.53"></a>
-<span class="sourceLineNo">054</span>import org.slf4j.LoggerFactory;<a name="line.54"></a>
-<span class="sourceLineNo">055</span><a name="line.55"></a>
-<span class="sourceLineNo">056</span>import org.apache.hbase.thirdparty.com.google.common.annotations.VisibleForTesting;<a name="line.56"></a>
-<span class="sourceLineNo">057</span>import org.apache.hbase.thirdparty.com.google.common.base.Preconditions;<a name="line.57"></a>
-<span class="sourceLineNo">058</span>import org.apache.hbase.thirdparty.com.google.protobuf.ServiceException;<a name="line.58"></a>
-<span class="sourceLineNo">059</span>import org.apache.hbase.thirdparty.io.netty.util.Timer;<a name="line.59"></a>
-<span class="sourceLineNo">060</span><a name="line.60"></a>
-<span class="sourceLineNo">061</span>import org.apache.hadoop.hbase.shaded.protobuf.ResponseConverter;<a name="line.61"></a>
-<span class="sourceLineNo">062</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.AdminService;<a name="line.62"></a>
-<span class="sourceLineNo">063</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService;<a name="line.63"></a>
-<span class="sourceLineNo">064</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ScanResponse;<a name="line.64"></a>
-<span class="sourceLineNo">065</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService;<a name="line.65"></a>
-<span class="sourceLineNo">066</span><a name="line.66"></a>
-<span class="sourceLineNo">067</span>/**<a name="line.67"></a>
-<span class="sourceLineNo">068</span> * Utility used by client connections.<a name="line.68"></a>
-<span class="sourceLineNo">069</span> */<a name="line.69"></a>
-<span class="sourceLineNo">070</span>@InterfaceAudience.Private<a name="line.70"></a>
-<span class="sourceLineNo">071</span>public final class ConnectionUtils {<a name="line.71"></a>
-<span class="sourceLineNo">072</span><a name="line.72"></a>
-<span class="sourceLineNo">073</span>  private static final Logger LOG = LoggerFactory.getLogger(ConnectionUtils.class);<a name="line.73"></a>
-<span class="sourceLineNo">074</span><a name="line.74"></a>
-<span class="sourceLineNo">075</span>  private ConnectionUtils() {<a name="line.75"></a>
-<span class="sourceLineNo">076</span>  }<a name="line.76"></a>
+<span class="sourceLineNo">035</span>import java.util.concurrent.atomic.AtomicReference;<a name="line.35"></a>
+<span class="sourceLineNo">036</span>import java.util.function.Function;<a name="line.36"></a>
+<span class="sourceLineNo">037</span>import java.util.function.Predicate;<a name="line.37"></a>
+<span class="sourceLineNo">038</span>import java.util.function.Supplier;<a name="line.38"></a>
+<span class="sourceLineNo">039</span>import org.apache.hadoop.conf.Configuration;<a name="line.39"></a>
+<span class="sourceLineNo">040</span>import org.apache.hadoop.hbase.Cell;<a name="line.40"></a>
+<span class="sourceLineNo">041</span>import org.apache.hadoop.hbase.CellComparator;<a name="line.41"></a>
+<span class="sourceLineNo">042</span>import org.apache.hadoop.hbase.HConstants;<a name="line.42"></a>
+<span class="sourceLineNo">043</span>import org.apache.hadoop.hbase.PrivateCellUtil;<a name="line.43"></a>
+<span class="sourceLineNo">044</span>import org.apache.hadoop.hbase.RegionLocations;<a name="line.44"></a>
+<span class="sourceLineNo">045</span>import org.apache.hadoop.hbase.ServerName;<a name="line.45"></a>
+<span class="sourceLineNo">046</span>import org.apache.hadoop.hbase.TableName;<a name="line.46"></a>
+<span class="sourceLineNo">047</span>import org.apache.hadoop.hbase.client.metrics.ScanMetrics;<a name="line.47"></a>
+<span class="sourceLineNo">048</span>import org.apache.hadoop.hbase.ipc.HBaseRpcController;<a name="line.48"></a>
+<span class="sourceLineNo">049</span>import org.apache.hadoop.hbase.security.User;<a name="line.49"></a>
+<span class="sourceLineNo">050</span>import org.apache.hadoop.hbase.security.UserProvider;<a name="line.50"></a>
+<span class="sourceLineNo">051</span>import org.apache.hadoop.hbase.util.Bytes;<a name="line.51"></a>
+<span class="sourceLineNo">052</span>import org.apache.hadoop.hbase.util.ReflectionUtils;<a name="line.52"></a>
+<span class="sourceLineNo">053</span>import org.apache.hadoop.ipc.RemoteException;<a name="line.53"></a>
+<span class="sourceLineNo">054</span>import org.apache.hadoop.net.DNS;<a name="line.54"></a>
+<span class="sourceLineNo">055</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.55"></a>
+<span class="sourceLineNo">056</span>import org.slf4j.Logger;<a name="line.56"></a>
+<span class="sourceLineNo">057</span>import org.slf4j.LoggerFactory;<a name="line.57"></a>
+<span class="sourceLineNo">058</span><a name="line.58"></a>
+<span class="sourceLineNo">059</span>import org.apache.hbase.thirdparty.com.google.common.annotations.VisibleForTesting;<a name="line.59"></a>
+<span class="sourceLineNo">060</span>import org.apache.hbase.thirdparty.com.google.common.base.Preconditions;<a name="line.60"></a>
+<span class="sourceLineNo">061</span>import org.apache.hbase.thirdparty.com.google.protobuf.ServiceException;<a name="line.61"></a>
+<span class="sourceLineNo">062</span>import org.apache.hbase.thirdparty.io.netty.util.Timer;<a name="line.62"></a>
+<span class="sourceLineNo">063</span><a name="line.63"></a>
+<span class="sourceLineNo">064</span>import org.apache.hadoop.hbase.shaded.protobuf.ResponseConverter;<a name="line.64"></a>
+<span class="sourceLineNo">065</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.AdminService;<a name="line.65"></a>
+<span class="sourceLineNo">066</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService;<a name="line.66"></a>
+<span class="sourceLineNo">067</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ScanResponse;<a name="line.67"></a>
+<span class="sourceLineNo">068</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService;<a name="line.68"></a>
+<span class="sourceLineNo">069</span><a name="line.69"></a>
+<span class="sourceLineNo">070</span>/**<a name="line.70"></a>
+<span class="sourceLineNo">071</span> * Utility used by client connections.<a name="line.71"></a>
+<span class="sourceLineNo">072</span> */<a name="line.72"></a>
+<span class="sourceLineNo">073</span>@InterfaceAudience.Private<a name="line.73"></a>
+<span class="sourceLineNo">074</span>public final class ConnectionUtils {<a name="line.74"></a>
+<span class="sourceLineNo">075</span><a name="line.75"></a>
+<span class="sourceLineNo">076</span>  private static final Logger LOG = LoggerFactory.getLogger(ConnectionUtils.class);<a name="line.76"></a>
 <span class="sourceLineNo">077</span><a name="line.77"></a>
-<span class="sourceLineNo">078</span>  /**<a name="line.78"></a>
-<span class="sourceLineNo">079</span>   * Calculate pause time. Built on {@link HConstants#RETRY_BACKOFF}.<a name="line.79"></a>
-<span class="sourceLineNo">080</span>   * @param pause time to pause<a name="line.80"></a>
-<span class="sourceLineNo">081</span>   * @param tries amount of tries<a name="line.81"></a>
-<span class="sourceLineNo">082</span>   * @return How long to wait after &lt;code&gt;tries&lt;/code&gt; retries<a name="line.82"></a>
-<span class="sourceLineNo">083</span>   */<a name="line.83"></a>
-<span class="sourceLineNo">084</span>  public static long getPauseTime(final long pause, final int tries) {<a name="line.84"></a>
-<span class="sourceLineNo">085</span>    int ntries = tries;<a name="line.85"></a>
-<span class="sourceLineNo">086</span>    if (ntries &gt;= HConstants.RETRY_BACKOFF.length) {<a name="line.86"></a>
-<span class="sourceLineNo">087</span>      ntries = HConstants.RETRY_BACKOFF.length - 1;<a name="line.87"></a>
-<span class="sourceLineNo">088</span>    }<a name="line.88"></a>
-<span class="sourceLineNo">089</span>    if (ntries &lt; 0) {<a name="line.89"></a>
-<span class="sourceLineNo">090</span>      ntries = 0;<a name="line.90"></a>
+<span class="sourceLineNo">078</span>  private ConnectionUtils() {<a name="line.78"></a>
+<span class="sourceLineNo">079</span>  }<a name="line.79"></a>
+<span class="sourceLineNo">080</span><a name="line.80"></a>
+<span class="sourceLineNo">081</span>  /**<a name="line.81"></a>
+<span class="sourceLineNo">082</span>   * Calculate pause time. Built on {@link HConstants#RETRY_BACKOFF}.<a name="line.82"></a>
+<span class="sourceLineNo">083</span>   * @param pause time to pause<a name="line.83"></a>
+<span class="sourceLineNo">084</span>   * @param tries amount of tries<a name="line.84"></a>
+<span class="sourceLineNo">085</span>   * @return How long to wait after &lt;code&gt;tries&lt;/code&gt; retries<a name="line.85"></a>
+<span class="sourceLineNo">086</span>   */<a name="line.86"></a>
+<span class="sourceLineNo">087</span>  public static long getPauseTime(final long pause, final int tries) {<a name="line.87"></a>
+<span class="sourceLineNo">088</span>    int ntries = tries;<a name="line.88"></a>
+<span class="sourceLineNo">089</span>    if (ntries &gt;= HConstants.RETRY_BACKOFF.length) {<a name="line.89"></a>
+<span class="sourceLineNo">090</span>      ntries = HConstants.RETRY_BACKOFF.length - 1;<a name="line.90"></a>
 <span class="sourceLineNo">091</span>    }<a name="line.91"></a>
-<span class="sourceLineNo">092</span><a name="line.92"></a>
-<span class="sourceLineNo">093</span>    long normalPause = pause * HConstants.RETRY_BACKOFF[ntries];<a name="line.93"></a>
-<span class="sourceLineNo">094</span>    // 1% possible jitter<a name="line.94"></a>
-<span class="sourceLineNo">095</span>    long jitter = (long) (normalPause * ThreadLocalRandom.current().nextFloat() * 0.01f);<a name="line.95"></a>
-<span class="sourceLineNo">096</span>    return normalPause + jitter;<a name="line.96"></a>
-<span class="sourceLineNo">097</span>  }<a name="line.97"></a>
-<span class="sourceLineNo">098</span><a name="line.98"></a>
-<span class="sourceLineNo">099</span>  /**<a name="line.99"></a>
-<span class="sourceLineNo">100</span>   * @param conn The connection for which to replace the generator.<a name="line.100"></a>
-<span class="sourceLineNo">101</span>   * @param cnm Replaces the nonce generator used, for testing.<a name="line.101"></a>
-<span class="sourceLineNo">102</span>   * @return old nonce generator.<a name="line.102"></a>
-<span class="sourceLineNo">103</span>   */<a name="line.103"></a>
-<span class="sourceLineNo">104</span>  public static NonceGenerator injectNonceGeneratorForTesting(ClusterConnection conn,<a name="line.104"></a>
-<span class="sourceLineNo">105</span>      NonceGenerator cnm) {<a name="line.105"></a>
-<span class="sourceLineNo">106</span>    return ConnectionImplementation.injectNonceGeneratorForTesting(conn, cnm);<a name="line.106"></a>
-<span class="sourceLineNo">107</span>  }<a name="line.107"></a>
-<span class="sourceLineNo">108</span><a name="line.108"></a>
-<span class="sourceLineNo">109</span>  /**<a name="line.109"></a>
-<span class="sourceLineNo">110</span>   * Changes the configuration to set the number of retries needed when using Connection internally,<a name="line.110"></a>
-<span class="sourceLineNo">111</span>   * e.g. for updating catalog tables, etc. Call this method before we create any Connections.<a name="line.111"></a>
-<span class="sourceLineNo">112</span>   * @param c The Configuration instance to set the retries into.<a name="line.112"></a>
-<span class="sourceLineNo">113</span>   * @param log Used to log what we set in here.<a name="line.113"></a>
-<span class="sourceLineNo">114</span>   */<a name="line.114"></a>
-<span class="sourceLineNo">115</span>  public static void setServerSideHConnectionRetriesConfig(final Configuration c, final String sn,<a name="line.115"></a>
-<span class="sourceLineNo">116</span>      final Logger log) {<a name="line.116"></a>
-<span class="sourceLineNo">117</span>    // TODO: Fix this. Not all connections from server side should have 10 times the retries.<a name="line.117"></a>
-<span class="sourceLineNo">118</span>    int hcRetries = c.getInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER,<a name="line.118"></a>
-<span class="sourceLineNo">119</span>      HConstants.DEFAULT_HBASE_CLIENT_RETRIES_NUMBER);<a name="line.119"></a>
-<span class="sourceLineNo">120</span>    // Go big. Multiply by 10. If we can't get to meta after this many retries<a name="line.120"></a>
-<span class="sourceLineNo">121</span>    // then something seriously wrong.<a name="line.121"></a>
-<span class="sourceLineNo">122</span>    int serversideMultiplier = c.getInt(HConstants.HBASE_CLIENT_SERVERSIDE_RETRIES_MULTIPLIER,<a name="line.122"></a>
-<span class="sourceLineNo">123</span>      HConstants.DEFAULT_HBASE_CLIENT_SERVERSIDE_RETRIES_MULTIPLIER);<a name="line.123"></a>
-<span class="sourceLineNo">124</span>    int retries = hcRetries * serversideMultiplier;<a name="line.124"></a>
-<span class="sourceLineNo">125</span>    c.setInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER, retries);<a name="line.125"></a>
-<span class="sourceLineNo">126</span>    log.info(sn + " server-side Connection retries=" + retries);<a name="line.126"></a>
-<span class="sourceLineNo">127</span>  }<a name="line.127"></a>
-<span class="sourceLineNo">128</span><a name="line.128"></a>
-<span class="sourceLineNo">129</span>  /**<a name="line.129"></a>
-<span class="sourceLineNo">130</span>   * A ClusterConnection that will short-circuit RPC making direct invocations against the localhost<a name="line.130"></a>
-<span class="sourceLineNo">131</span>   * if the invocation target is 'this' server; save on network and protobuf invocations.<a name="line.131"></a>
-<span class="sourceLineNo">132</span>   */<a name="line.132"></a>
-<span class="sourceLineNo">133</span>  // TODO This has to still do PB marshalling/unmarshalling stuff. Check how/whether we can avoid.<a name="line.133"></a>
-<span class="sourceLineNo">134</span>  @VisibleForTesting // Class is visible so can assert we are short-circuiting when expected.<a name="line.134"></a>
-<span class="sourceLineNo">135</span>  public static class ShortCircuitingClusterConnection extends ConnectionImplementation {<a name="line.135"></a>
-<span class="sourceLineNo">136</span>    private final ServerName serverName;<a name="line.136"></a>
-<span class="sourceLineNo">137</span>    private final AdminService.BlockingInterface localHostAdmin;<a name="line.137"></a>
-<span class="sourceLineNo">138</span>    private final ClientService.BlockingInterface localHostClient;<a name="line.138"></a>
-<span class="sourceLineNo">139</span><a name="line.139"></a>
-<span class="sourceLineNo">140</span>    private ShortCircuitingClusterConnection(Configuration conf, ExecutorService pool, User user,<a name="line.140"></a>
-<span class="sourceLineNo">141</span>        ServerName serverName, AdminService.BlockingInterface admin,<a name="line.141"></a>
-<span class="sourceLineNo">142</span>        ClientService.BlockingInterface client) throws IOException {<a name="line.142"></a>
-<span class="sourceLineNo">143</span>      super(conf, pool, user);<a name="line.143"></a>
-<span class="sourceLineNo">144</span>      this.serverName = serverName;<a name="line.144"></a>
-<span class="sourceLineNo">145</span>      this.localHostAdmin = admin;<a name="line.145"></a>
-<span class="sourceLineNo">146</span>      this.localHostClient = client;<a name="line.146"></a>
-<span class="sourceLineNo">147</span>    }<a name="line.147"></a>
-<span class="sourceLineNo">148</span><a name="line.148"></a>
-<span class="sourceLineNo">149</span>    @Override<a name="line.149"></a>
-<span class="sourceLineNo">150</span>    public AdminService.BlockingInterface getAdmin(ServerName sn) throws IOException {<a name="line.150"></a>
-<span class="sourceLineNo">151</span>      return serverName.equals(sn) ? this.localHostAdmin : super.getAdmin(sn);<a name="line.151"></a>
-<span class="sourceLineNo">152</span>    }<a name="line.152"></a>
-<span class="sourceLineNo">153</span><a name="line.153"></a>
-<span class="sourceLineNo">154</span>    @Override<a name="line.154"></a>
-<span class="sourceLineNo">155</span>    public ClientService.BlockingInterface getClient(ServerName sn) throws IOException {<a name="line.155"></a>
-<span class="sourceLineNo">156</span>      return serverName.equals(sn) ? this.localHostClient : super.getClient(sn);<a name="line.156"></a>
-<span class="sourceLineNo">157</span>    }<a name="line.157"></a>
-<span class="sourceLineNo">158</span><a name="line.158"></a>
-<span class="sourceLineNo">159</span>    @Override<a name="line.159"></a>
-<span class="sourceLineNo">160</span>    public MasterKeepAliveConnection getMaster() throws IOException {<a name="line.160"></a>
-<span class="sourceLineNo">161</span>      if (this.localHostClient instanceof MasterService.BlockingInterface) {<a name="line.161"></a>
-<span class="sourceLineNo">162</span>        return new ShortCircuitMasterConnection(<a name="line.162"></a>
-<span class="sourceLineNo">163</span>          (MasterService.BlockingInterface) this.localHostClient);<a name="line.163"></a>
-<span class="sourceLineNo">164</span>      }<a name="line.164"></a>
-<span class="sourceLineNo">165</span>      return super.getMaster();<a name="line.165"></a>
-<span class="sourceLineNo">166</span>    }<a name="line.166"></a>
-<span class="sourceLineNo">167</span>  }<a name="line.167"></a>
-<span class="sourceLineNo">168</span><a name="line.168"></a>
-<span class="sourceLineNo">169</span>  /**<a name="line.169"></a>
-<span class="sourceLineNo">170</span>   * Creates a short-circuit connection that can bypass the RPC layer (serialization,<a name="line.170"></a>
-<span class="sourceLineNo">171</span>   * deserialization, networking, etc..) when talking to a local server.<a name="line.171"></a>
-<span class="sourceLineNo">172</span>   * @param conf the current configuration<a name="line.172"></a>
-<span class="sourceLineNo">173</span>   * @param pool the thread pool to use for batch operations<a name="line.173"></a>
-<span class="sourceLineNo">174</span>   * @param user the user the connection is for<a name="line.174"></a>
-<span class="sourceLineNo">175</span>   * @param serverName the local server name<a name="line.175"></a>
-<span class="sourceLineNo">176</span>   * @param admin the admin interface of the local server<a name="line.176"></a>
-<span class="sourceLineNo">177</span>   * @param client the client interface of the local server<a name="line.177"></a>
-<span class="sourceLineNo">178</span>   * @return an short-circuit connection.<a name="line.178"></a>
-<span class="sourceLineNo">179</span>   * @throws IOException if IO failure occurred<a name="line.179"></a>
-<span class="sourceLineNo">180</span>   */<a name="line.180"></a>
-<span class="sourceLineNo">181</span>  public static ClusterConnection createShortCircuitConnection(final Configuration conf,<a name="line.181"></a>
-<span class="sourceLineNo">182</span>      ExecutorService pool, User user, final ServerName serverName,<a name="line.182"></a>
-<span class="sourceLineNo">183</span>      final AdminService.BlockingInterface admin, final ClientService.BlockingInterface client)<a name="line.183"></a>
-<span class="sourceLineNo">184</span>      throws IOException {<a name="line.184"></a>
-<span class="sourceLineNo">185</span>    if (user == null) {<a name="line.185"></a>
-<span class="sourceLineNo">186</span>      user = UserProvider.instantiate(conf).getCurrent();<a name="line.186"></a>
-<span class="sourceLineNo">187</span>    }<a name="line.187"></a>
-<span class="sourceLineNo">188</span>    return new ShortCircuitingClusterConnection(conf, pool, user, serverName, admin, client);<a name="line.188"></a>
-<span class="sourceLineNo">189</span>  }<a name="line.189"></a>
-<span class="sourceLineNo">190</span><a name="line.190"></a>
-<span class="sourceLineNo">191</span>  /**<a name="line.191"></a>
-<span class="sourceLineNo">192</span>   * Setup the connection class, so that it will not depend on master being online. Used for testing<a name="line.192"></a>
-<span class="sourceLineNo">193</span>   * @param conf configuration to set<a name="line.193"></a>
-<span class="sourceLineNo">194</span>   */<a name="line.194"></a>
-<span class="sourceLineNo">195</span>  @VisibleForTesting<a name="line.195"></a>
-<span class="sourceLineNo">196</span>  public static void setupMasterlessConnection(Configuration conf) {<a name="line.196"></a>
-<span class="sourceLineNo">197</span>    conf.set(ClusterConnection.HBASE_CLIENT_CONNECTION_IMPL, MasterlessConnection.class.getName());<a name="line.197"></a>
-<span class="sourceLineNo">198</span>  }<a name="line.198"></a>
-<span class="sourceLineNo">199</span><a name="line.199"></a>
-<span class="sourceLineNo">200</span>  /**<a name="line.200"></a>
-<span class="sourceLineNo">201</span>   * Some tests shut down the master. But table availability is a master RPC which is performed on<a name="line.201"></a>
-<span class="sourceLineNo">202</span>   * region re-lookups.<a name="line.202"></a>
-<span class="sourceLineNo">203</span>   */<a name="line.203"></a>
-<span class="sourceLineNo">204</span>  static class MasterlessConnection extends ConnectionImplementation {<a name="line.204"></a>
-<span class="sourceLineNo">205</span>    MasterlessConnection(Configuration conf, ExecutorService pool, User user) throws IOException {<a name="line.205"></a>
-<span class="sourceLineNo">206</span>      super(conf, pool, user);<a name="line.206"></a>
-<span class="sourceLineNo">207</span>    }<a name="line.207"></a>
-<span class="sourceLineNo">208</span><a name="line.208"></a>
-<span class="sourceLineNo">209</span>    @Override<a name="line.209"></a>
-<span class="sourceLineNo">210</span>    public boolean isTableDisabled(TableName tableName) throws IOException {<a name="line.210"></a>
-<span class="sourceLineNo">211</span>      // treat all tables as enabled<a name="line.211"></a>
-<span class="sourceLineNo">212</span>      return false;<a name="line.212"></a>
-<span class="sourceLineNo">213</span>    }<a name="line.213"></a>
-<span class="sourceLineNo">214</span>  }<a name="line.214"></a>
-<span class="sourceLineNo">215</span><a name="line.215"></a>
-<span class="sourceLineNo">216</span>  /**<a name="line.216"></a>
-<span class="sourceLineNo">217</span>   * Return retires + 1. The returned value will be in range [1, Integer.MAX_VALUE].<a name="line.217"></a>
-<span class="sourceLineNo">218</span>   */<a name="line.218"></a>
-<span class="sourceLineNo">219</span>  static int retries2Attempts(int retries) {<a name="line.219"></a>
-<span class="sourceLineNo">220</span>    return Math.max(1, retries == Integer.MAX_VALUE ? Integer.MAX_VALUE : retries + 1);<a name="line.220"></a>
-<span class="sourceLineNo">221</span>  }<a name="line.221"></a>
-<span class="sourceLineNo">222</span><a name="line.222"></a>
-<span class="sourceLineNo">223</span>  /**<a name="line.223"></a>
-<span class="sourceLineNo">224</span>   * Get a unique key for the rpc stub to the given server.<a name="line.224"></a>
-<span class="sourceLineNo">225</span>   */<a name="line.225"></a>
-<span class="sourceLineNo">226</span>  static String getStubKey(String serviceName, ServerName serverName, boolean hostnameCanChange) {<a name="line.226"></a>
-<span class="sourceLineNo">227</span>    // Sometimes, servers go down and they come back up with the same hostname but a different<a name="line.227"></a>
-<span class="sourceLineNo">228</span>    // IP address. Force a resolution of the rsHostname by trying to instantiate an<a name="line.228"></a>
-<span class="sourceLineNo">229</span>    // InetSocketAddress, and this way we will rightfully get a new stubKey.<a name="line.229"></a>
-<span class="sourceLineNo">230</span>    // Also, include the hostname in the key so as to take care of those cases where the<a name="line.230"></a>
-<span class="sourceLineNo">231</span>    // DNS name is different but IP address remains the same.<a name="line.231"></a>
-<span class="sourceLineNo">232</span>    String hostname = serverName.getHostname();<a name="line.232"></a>
-<span class="sourceLineNo">233</span>    int port = serverName.getPort();<a name="line.233"></a>
-<span class="sourceLineNo">234</span>    if (hostnameCanChange) {<a name="line.234"></a>
-<span class="sourceLineNo">235</span>      try {<a name="line.235"></a>
-<span class="sourceLineNo">236</span>        InetAddress ip = InetAddress.getByName(hostname);<a name="line.236"></a>
-<span class="sourceLineNo">237</span>        return serviceName + "@" + hostname + "-" + ip.getHostAddress() + ":" + port;<a name="line.237"></a>
-<span class="sourceLineNo">238</span>      } catch (UnknownHostException e) {<a name="line.238"></a>
-<span class="sourceLineNo">239</span>        LOG.warn("Can not resolve " + hostname + ", please check your network", e);<a name="line.239"></a>
-<span class="sourceLineNo">240</span>      }<a name="line.240"></a>
-<span class="sourceLineNo">241</span>    }<a name="line.241"></a>
-<span class="sourceLineNo">242</span>    return serviceName + "@" + hostname + ":" + port;<a name="line.242"></a>
-<span class="sourceLineNo">243</span>  }<a name="line.243"></a>
-<span class="sourceLineNo">244</span><a name="line.244"></a>
-<span class="sourceLineNo">245</span>  static void checkHasFamilies(Mutation mutation) {<a name="line.245"></a>
-<span class="sourceLineNo">246</span>    Preconditions.checkArgument(mutation.numFamilies() &gt; 0,<a name="line.246"></a>
-<span class="sourceLineNo">247</span>      "Invalid arguments to %s, zero columns specified", mutation.toString());<a name="line.247"></a>
-<span class="sourceLineNo">248</span>  }<a name="line.248"></a>
-<span class="sourceLineNo">249</span><a name="line.249"></a>
-<span class="sourceLineNo">250</span>  /** Dummy nonce generator for disabled nonces. */<a name="line.250"></a>
-<span class="sourceLineNo">251</span>  static final NonceGenerator NO_NONCE_GENERATOR = new NonceGenerator() {<a name="line.251"></a>
+<span class="sourceLineNo">092</span>    if (ntries &lt; 0) {<a name="line.92"></a>
+<span class="sourceLineNo">093</span>      ntries = 0;<a name="line.93"></a>
+<span class="sourceLineNo">094</span>    }<a name="line.94"></a>
+<span class="sourceLineNo">095</span><a name="line.95"></a>
+<span class="sourceLineNo">096</span>    long normalPause = pause * HConstants.RETRY_BACKOFF[ntries];<a name="line.96"></a>
+<span class="sourceLineNo">097</span>    // 1% possible jitter<a name="line.97"></a>
+<span class="sourceLineNo">098</span>    long jitter = (long) (normalPause * ThreadLocalRandom.current().nextFloat() * 0.01f);<a name="line.98"></a>
+<span class="sourceLineNo">099</span>    return normalPause + jitter;<a name="line.99"></a>
+<span class="sourceLineNo">100</span>  }<a name="line.100"></a>
+<span class="sourceLineNo">101</span><a name="line.101"></a>
+<span class="sourceLineNo">102</span>  /**<a name="line.102"></a>
+<span class="sourceLineNo">103</span>   * @param conn The connection for which to replace the generator.<a name="line.103"></a>
+<span class="sourceLineNo">104</span>   * @param cnm Replaces the nonce generator used, for testing.<a name="line.104"></a>
+<span class="sourceLineNo">105</span>   * @return old nonce generator.<a name="line.105"></a>
+<span class="sourceLineNo">106</span>   */<a name="line.106"></a>
+<span class="sourceLineNo">107</span>  public static NonceGenerator injectNonceGeneratorForTesting(ClusterConnection conn,<a name="line.107"></a>
+<span class="sourceLineNo">108</span>      NonceGenerator cnm) {<a name="line.108"></a>
+<span class="sourceLineNo">109</span>    return ConnectionImplementation.injectNonceGeneratorForTesting(conn, cnm);<a name="line.109"></a>
+<span class="sourceLineNo">110</span>  }<a name="line.110"></a>
+<span class="sourceLineNo">111</span><a name="line.111"></a>
+<span class="sourceLineNo">112</span>  /**<a name="line.112"></a>
+<span class="sourceLineNo">113</span>   * Changes the configuration to set the number of retries needed when using Connection internally,<a name="line.113"></a>
+<span class="sourceLineNo">114</span>   * e.g. for updating catalog tables, etc. Call this method before we create any Connections.<a name="line.114"></a>
+<span class="sourceLineNo">115</span>   * @param c The Configuration instance to set the retries into.<a name="line.115"></a>
+<span class="sourceLineNo">116</span>   * @param log Used to log what we set in here.<a name="line.116"></a>
+<span class="sourceLineNo">117</span>   */<a name="line.117"></a>
+<span class="sourceLineNo">118</span>  public static void setServerSideHConnectionRetriesConfig(final Configuration c, final String sn,<a name="line.118"></a>
+<span class="sourceLineNo">119</span>      final Logger log) {<a name="line.119"></a>
+<span class="sourceLineNo">120</span>    // TODO: Fix this. Not all connections from server side should have 10 times the retries.<a name="line.120"></a>
+<span class="sourceLineNo">121</span>    int hcRetries = c.getInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER,<a name="line.121"></a>
+<span class="sourceLineNo">122</span>      HConstants.DEFAULT_HBASE_CLIENT_RETRIES_NUMBER);<a name="line.122"></a>
+<span class="sourceLineNo">123</span>    // Go big. Multiply by 10. If we can't get to meta after this many retries<a name="line.123"></a>
+<span class="sourceLineNo">124</span>    // then something seriously wrong.<a name="line.124"></a>
+<span class="sourceLineNo">125</span>    int serversideMultiplier = c.getInt(HConstants.HBASE_CLIENT_SERVERSIDE_RETRIES_MULTIPLIER,<a name="line.125"></a>
+<span class="sourceLineNo">126</span>      HConstants.DEFAULT_HBASE_CLIENT_SERVERSIDE_RETRIES_MULTIPLIER);<a name="line.126"></a>
+<span class="sourceLineNo">127</span>    int retries = hcRetries * serversideMultiplier;<a name="line.127"></a>
+<span class="sourceLineNo">128</span>    c.setInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER, retries);<a name="line.128"></a>
+<span class="sourceLineNo">129</span>    log.info(sn + " server-side Connection retries=" + retries);<a name="line.129"></a>
+<span class="sourceLineNo">130</span>  }<a name="line.130"></a>
+<span class="sourceLineNo">131</span><a name="line.131"></a>
+<span class="sourceLineNo">132</span>  /**<a name="line.132"></a>
+<span class="sourceLineNo">133</span>   * A ClusterConnection that will short-circuit RPC making direct invocations against the localhost<a name="line.133"></a>
+<span class="sourceLineNo">134</span>   * if the invocation target is 'this' server; save on network and protobuf invocations.<a name="line.134"></a>
+<span class="sourceLineNo">135</span>   */<a name="line.135"></a>
+<span class="sourceLineNo">136</span>  // TODO This has to still do PB marshalling/unmarshalling stuff. Check how/whether we can avoid.<a name="line.136"></a>
+<span class="sourceLineNo">137</span>  @VisibleForTesting // Class is visible so can assert we are short-circuiting when expected.<a name="line.137"></a>
+<span class="sourceLineNo">138</span>  public static class ShortCircuitingClusterConnection extends ConnectionImplementation {<a name="line.138"></a>
+<span class="sourceLineNo">139</span>    private final ServerName serverName;<a name="line.139"></a>
+<span class="sourceLineNo">140</span>    private final AdminService.BlockingInterface localHostAdmin;<a name="line.140"></a>
+<span class="sourceLineNo">141</span>    private final ClientService.BlockingInterface localHostClient;<a name="line.141"></a>
+<span class="sourceLineNo">142</span><a name="line.142"></a>
+<span class="sourceLineNo">143</span>    private ShortCircuitingClusterConnection(Configuration conf, ExecutorService pool, User user,<a name="line.143"></a>
+<span class="sourceLineNo">144</span>        ServerName serverName, AdminService.BlockingInterface admin,<a name="line.144"></a>
+<span class="sourceLineNo">145</span>        ClientService.BlockingInterface client) throws IOException {<a name="line.145"></a>
+<span class="sourceLineNo">146</span>      super(conf, pool, user);<a name="line.146"></a>
+<span class="sourceLineNo">147</span>      this.serverName = serverName;<a name="line.147"></a>
+<span class="sourceLineNo">148</span>      this.localHostAdmin = admin;<a name="line.148"></a>
+<span class="sourceLineNo">149</span>      this.localHostClient = client;<a name="line.149"></a>
+<span class="sourceLineNo">150</span>    }<a name="line.150"></a>
+<span class="sourceLineNo">151</span><a name="line.151"></a>
+<span class="sourceLineNo">152</span>    @Override<a name="line.152"></a>
+<span class="sourceLineNo">153</span>    public AdminService.BlockingInterface getAdmin(ServerName sn) throws IOException {<a name="line.153"></a>
+<span class="sourceLineNo">154</span>      return serverName.equals(sn) ? this.localHostAdmin : super.getAdmin(sn);<a name="line.154"></a>
+<span class="sourceLineNo">155</span>    }<a name="line.155"></a>
+<span class="sourceLineNo">156</span><a name="line.156"></a>
+<span class="sourceLineNo">157</span>    @Override<a name="line.157"></a>
+<span class="sourceLineNo">158</span>    public ClientService.BlockingInterface getClient(ServerName sn) throws IOException {<a name="line.158"></a>
+<span class="sourceLineNo">159</span>      return serverName.equals(sn) ? this.localHostClient : super.getClient(sn);<a name="line.159"></a>
+<span class="sourceLineNo">160</span>    }<a name="line.160"></a>
+<span class="sourceLineNo">161</span><a name="line.161"></a>
+<span class="sourceLineNo">162</span>    @Override<a name="line.162"></a>
+<span class="sourceLineNo">163</span>    public MasterKeepAliveConnection getMaster() throws IOException {<a name="line.163"></a>
+<span class="sourceLineNo">164</span>      if (this.localHostClient instanceof MasterService.BlockingInterface) {<a name="line.164"></a>
+<span class="sourceLineNo">165</span>        return new ShortCircuitMasterConnection(<a name="line.165"></a>
+<span class="sourceLineNo">166</span>          (MasterService.BlockingInterface) this.localHostClient);<a name="line.166"></a>
+<span class="sourceLineNo">167</span>      }<a name="line.167"></a>
+<span class="sourceLineNo">168</span>      return super.getMaster();<a name="line.168"></a>
+<span class="sourceLineNo">169</span>    }<a name="line.169"></a>
+<span class="sourceLineNo">170</span>  }<a name="line.170"></a>
+<span class="sourceLineNo">171</span><a name="line.171"></a>
+<span class="sourceLineNo">172</span>  /**<a name="line.172"></a>
+<span class="sourceLineNo">173</span>   * Creates a short-circuit connection that can bypass the RPC layer (serialization,<a name="line.173"></a>
+<span class="sourceLineNo">174</span>   * deserialization, networking, etc..) when talking to a local server.<a name="line.174"></a>
+<span class="sourceLineNo">175</span>   * @param conf the current configuration<a name="line.175"></a>
+<span class="sourceLineNo">176</span>   * @param pool the thread pool to use for batch operations<a name="line.176"></a>
+<span class="sourceLineNo">177</span>   * @param user the user the connection is for<a name="line.177"></a>
+<span class="sourceLineNo">178</span>   * @param serverName the local server name<a name="line.178"></a>
+<span class="sourceLineNo">179</span>   * @param admin the admin interface of the local server<a name="line.179"></a>
+<span class="sourceLineNo">180</span>   * @param client the client interface of the local server<a name="line.180"></a>
+<span class="sourceLineNo">181</span>   * @return an short-circuit connection.<a name="line.181"></a>
+<span class="sourceLineNo">182</span>   * @throws IOException if IO failure occurred<a name="line.182"></a>
+<span class="sourceLineNo">183</span>   */<a name="line.183"></a>
+<span class="sourceLineNo">184</span>  public static ClusterConnection createShortCircuitConnection(final Configuration conf,<a name="line.184"></a>
+<span class="sourceLineNo">185</span>      ExecutorService pool, User user, final ServerName serverName,<a name="line.185"></a>
+<span class="sourceLineNo">186</span>      final AdminService.BlockingInterface admin, final ClientService.BlockingInterface client)<a name="line.186"></a>
+<span class="sourceLineNo">187</span>      throws IOException {<a name="line.187"></a>
+<span class="sourceLineNo">188</span>    if (user == null) {<a name="line.188"></a>
+<span class="sourceLineNo">189</span>      user = UserProvider.instantiate(conf).getCurrent();<a name="line.189"></a>
+<span class="sourceLineNo">190</span>    }<a name="line.190"></a>
+<span class="sourceLineNo">191</span>    return new ShortCircuitingClusterConnection(conf, pool, user, serverName, admin, client);<a name="line.191"></a>
+<span class="sourceLineNo">192</span>  }<a name="line.192"></a>
+<span class="sourceLineNo">193</span><a name="line.193"></a>
+<span class="sourceLineNo">194</span>  /**<a name="line.194"></a>
+<span class="sourceLineNo">195</span>   * Setup the connection class, so that it will not depend on master being online. Used for testing<a name="line.195"></a>
+<span class="sourceLineNo">196</span>   * @param conf configuration to set<a name="line.196"></a>
+<span class="sourceLineNo">197</span>   */<a name="line.197"></a>
+<span class="sourceLineNo">198</span>  @VisibleForTesting<a name="line.198"></a>
+<span class="sourceLineNo">199</span>  public static void setupMasterlessConnection(Configuration conf) {<a name="line.199"></a>
+<span class="sourceLineNo">200</span>    conf.set(ClusterConnection.HBASE_CLIENT_CONNECTION_IMPL, MasterlessConnection.class.getName());<a name="line.200"></a>
+<span class="sourceLineNo">201</span>  }<a name="line.201"></a>
+<span class="sourceLineNo">202</span><a name="line.202"></a>
+<span class="sourceLineNo">203</span>  /**<a name="line.203"></a>
+<span class="sourceLineNo">204</span>   * Some tests shut down the master. But table availability is a master RPC which is performed on<a name="line.204"></a>
+<span class="sourceLineNo">205</span>   * region re-lookups.<a name="line.205"></a>
+<span class="sourceLineNo">206</span>   */<a name="line.206"></a>
+<span class="sourceLineNo">207</span>  static class MasterlessConnection extends ConnectionImplementation {<a name="line.207"></a>
+<span class="sourceLineNo">208</span>    MasterlessConnection(Configuration conf, ExecutorService pool, User user) throws IOException {<a name="line.208"></a>
+<span class="sourceLineNo">209</span>      super(conf, pool, user);<a name="line.209"></a>
+<span class="sourceLineNo">210</span>    }<a name="line.210"></a>
+<span class="sourceLineNo">211</span><a name="line.211"></a>
+<span class="sourceLineNo">212</span>    @Override<a name="line.212"></a>
+<span class="sourceLineNo">213</span>    public boolean isTableDisabled(TableName tableName) throws IOException {<a name="line.213"></a>
+<span class="sourceLineNo">214</span>      // treat all tables as enabled<a name="line.214"></a>
+<span class="sourceLineNo">215</span>      return false;<a name="line.215"></a>
+<span class="sourceLineNo">216</span>    }<a name="line.216"></a>
+<span class="sourceLineNo">217</span>  }<a name="line.217"></a>
+<span class="sourceLineNo">218</span><a name="line.218"></a>
+<span class="sourceLineNo">219</span>  /**<a name="line.219"></a>
+<span class="sourceLineNo">220</span>   * Return retires + 1. The returned value will be in range [1, Integer.MAX_VALUE].<a name="line.220"></a>
+<span class="sourceLineNo">221</span>   */<a name="line.221"></a>
+<span class="sourceLineNo">222</span>  static int retries2Attempts(int retries) {<a name="line.222"></a>
+<span class="sourceLineNo">223</span>    return Math.max(1, retries == Integer.MAX_VALUE ? Integer.MAX_VALUE : retries + 1);<a name="line.223"></a>
+<span class="sourceLineNo">224</span>  }<a name="line.224"></a>
+<span class="sourceLineNo">225</span><a name="line.225"></a>
+<span class="sourceLineNo">226</span>  /**<a name="line.226"></a>
+<span class="sourceLineNo">227</span>   * Get a unique key for the rpc stub to the given server.<a name="line.227"></a>
+<span class="sourceLineNo">228</span>   */<a name="line.228"></a>
+<span class="sourceLineNo">229</span>  static String getStubKey(String serviceName, ServerName serverName, boolean hostnameCanChange) {<a name="line.229"></a>
+<span class="sourceLineNo">230</span>    // Sometimes, servers go down and they come back up with the same hostname but a different<a name="line.230"></a>
+<span class="sourceLineNo">231</span>    // IP address. Force a resolution of the rsHostname by trying to instantiate an<a name="line.231"></a>
+<span class="sourceLineNo">232</span>    // InetSocketAddress, and this way we will rightfully get a new stubKey.<a name="line.232"></a>
+<span class="sourceLineNo">233</span>    // Also, include the hostname in the key so as to take care of those cases where the<a name="line.233"></a>
+<span class="sourceLineNo">234</span>    // DNS name is different but IP address remains the same.<a name="line.234"></a>
+<span class="sourceLineNo">235</span>    String hostname = serverName.getHostname();<a name="line.235"></a>
+<span class="sourceLineNo">236</span>    int port = serverName.getPort();<a name="line.236"></a>
+<span class="sourceLineNo">237</span>    if (hostnameCanChange) {<a name="line.237"></a>
+<span class="sourceLineNo">238</span>      try {<a name="line.238"></a>
+<span class="sourceLineNo">239</span>        InetAddress ip = InetAddress.getByName(hostname);<a name="line.239"></a>
+<span class="sourceLineNo">240</span>        return serviceName + "@" + hostname + "-" + ip.getHostAddress() + ":" + port;<a name="line.240"></a>
+<span class="sourceLineNo">241</span>      } catch (UnknownHostException e) {<a name="line.241"></a>
+<span class="sourceLineNo">242</span>        LOG.warn("Can not resolve " + hostname + ", please check your network", e);<a name="line.242"></a>
+<span class="sourceLineNo">243</span>      }<a name="line.243"></a>
+<span class="sourceLineNo">244</span>    }<a name="line.244"></a>
+<span class="sourceLineNo">245</span>    return serviceName + "@" + hostname + ":" + port;<a name="line.245"></a>
+<span class="sourceLineNo">246</span>  }<a name="line.246"></a>
+<span class="sourceLineNo">247</span><a name="line.247"></a>
+<span class="sourceLineNo">248</span>  static void checkHasFamilies(Mutation mutation) {<a name="line.248"></a>
+<span class="sourceLineNo">249</span>    Preconditions.checkArgument(mutation.numFamilies() &gt; 0,<a name="line.249"></a>
+<span class="sourceLineNo">250</span>      "Invalid arguments to %s, zero columns specified", mutation.toString());<a name="line.250"></a>
+<span class="sourceLineNo">251</span>  }<a name="line.251"></a>
 <span class="sourceLineNo">252</span><a name="line.252"></a>
-<span class="sourceLineNo">253</span>    @Override<a name="line.253"></a>
-<span class="sourceLineNo">254</span>    public long newNonce() {<a name="line.254"></a>
-<span class="sourceLineNo">255</span>      return HConstants.NO_NONCE;<a name="line.255"></a>
-<span class="sourceLineNo">256</span>    }<a name="line.256"></a>
-<span class="sourceLineNo">257</span><a name="line.257"></a>
-<span class="sourceLineNo">258</span>    @Override<a name="line.258"></a>
-<span class="sourceLineNo">259</span>    public long getNonceGroup() {<a name="line.259"></a>
-<span class="sourceLineNo">260</span>      return HConstants.NO_NONCE;<a name="line.260"></a>
-<span class="sourceLineNo">261</span>    }<a name="line.261"></a>
-<span class="sourceLineNo">262</span>  };<a name="line.262"></a>
-<span class="sourceLineNo">263</span><a name="line.263"></a>
-<span class="sourceLineNo">264</span>  // A byte array in which all elements are the max byte, and it is used to<a name="line.264"></a>
-<span class="sourceLineNo">265</span>  // construct closest front row<a name="line.265"></a>
-<span class="sourceLineNo">266</span>  static final byte[] MAX_BYTE_ARRAY = Bytes.createMaxByteArray(9);<a name="line.266"></a>
-<span class="sourceLineNo">267</span><a name="line.267"></a>
-<span class="sourceLineNo">268</span>  /**<a name="line.268"></a>
-<span class="sourceLineNo">269</span>   * Create the closest row after the specified row<a name="line.269"></a>
-<span class="sourceLineNo">270</span>   */<a name="line.270"></a>
-<span class="sourceLineNo">271</span>  static byte[] createClosestRowAfter(byte[] row) {<a name="line.271"></a>
-<span class="sourceLineNo">272</span>    return Arrays.copyOf(row, row.length + 1);<a name="line.272"></a>
-<span class="sourceLineNo">273</span>  }<a name="line.273"></a>
-<span class="sourceLineNo">274</span><a name="line.274"></a>
-<span class="sourceLineNo">275</span>  /**<a name="line.275"></a>
-<span class="sourceLineNo">276</span>   * Create a row before the specified row and very close to the specified row.<a name="line.276"></a>
-<span class="sourceLineNo">277</span>   */<a name="line.277"></a>
-<span class="sourceLineNo">278</span>  static byte[] createCloseRowBefore(byte[] row) {<a name="line.278"></a>
-<span class="sourceLineNo">279</span>    if (row.length == 0) {<a name="line.279"></a>
-<span class="sourceLineNo">280</span>      return MAX_BYTE_ARRAY;<a name="line.280"></a>
-<span class="sourceLineNo">281</span>    }<a name="line.281"></a>
-<span class="sourceLineNo">282</span>    if (row[row.length - 1] == 0) {<a name="line.282"></a>
-<span class="sourceLineNo">283</span>      return Arrays.copyOf(row, row.length - 1);<a name="line.283"></a>
-<span class="sourceLineNo">284</span>    } else {<a name="line.284"></a>
-<span class="sourceLineNo">285</span>      byte[] nextRow = new byte[row.length + MAX_BYTE_ARRAY.length];<a name="line.285"></a>
-<span class="sourceLineNo">286</span>      System.arraycopy(row, 0, nextRow, 0, row.length - 1);<a name="line.286"></a>
-<span class="sourceLineNo">287</span>      nextRow[row.length - 1] = (byte) ((row[row.length - 1] &amp; 0xFF) - 1);<a name="line.287"></a>
-<span class="sourceLineNo">288</span>      System.arraycopy(MAX_BYTE_ARRAY, 0, nextRow, row.length, MAX_BYTE_ARRAY.length);<a name="line.288"></a>
-<span class="sourceLineNo">289</span>      return nextRow;<a name="line.289"></a>
-<span class="sourceLineNo">290</span>    }<a name="line.290"></a>
-<span class="sourceLineNo">291</span>  }<a name="line.291"></a>
-<span class="sourceLineNo">292</span><a name="line.292"></a>
-<span class="sourceLineNo">293</span>  static boolean isEmptyStartRow(byte[] row) {<a name="line.293"></a>
-<span class="sourceLineNo">294</span>    return Bytes.equals(row, EMPTY_START_ROW);<a name="line.294"></a>
-<span class="sourceLineNo">295</span>  }<a name="line.295"></a>
-<span class="sourceLineNo">296</span><a name="line.296"></a>
-<span class="sourceLineNo">297</span>  static boolean isEmptyStopRow(byte[] row) {<a name="line.297"></a>
-<span class="sourceLineNo">298</span>    return Bytes.equals(row, EMPTY_END_ROW);<a name="line.298"></a>
-<span class="sourceLineNo">299</span>  }<a name="line.299"></a>
-<span class="sourceLineNo">300</span><a name="line.300"></a>
-<span class="sourceLineNo">301</span>  static void resetController(HBaseRpcController controller, long timeoutNs, int priority) {<a name="line.301"></a>
-<span class="sourceLineNo">302</span>    controller.reset();<a name="line.302"></a>
-<span class="sourceLineNo">303</span>    if (timeoutNs &gt;= 0) {<a name="line.303"></a>
-<span class="sourceLineNo">304</span>      controller.setCallTimeout(<a name="line.304"></a>
-<span class="sourceLineNo">305</span>        (int) Math.min(Integer.MAX_VALUE, TimeUnit.NANOSECONDS.toMillis(timeoutNs)));<a name="line.305"></a>
-<span class="sourceLineNo">306</span>    }<a name="line.306"></a>
-<span class="sourceLineNo">307</span>    controller.setPriority(priority);<a name="line.307"></a>
-<span class="sourceLineNo">308</span>  }<a name="line.308"></a>
-<span class="sourceLineNo">309</span><a name="line.309"></a>
-<span class="sourceLineNo">310</span>  static Throwable translateException(Throwable t) {<a name="line.310"></a>
-<span class="sourceLineNo">311</span>    if (t instanceof UndeclaredThrowableException &amp;&amp; t.getCause() != null) {<a name="line.311"></a>
-<span class="sourceLineNo">312</span>      t = t.getCause();<a name="line.312"></a>
-<span class="sourceLineNo">313</span>    }<a name="line.313"></a>
-<span class="sourceLineNo">314</span>    if (t instanceof RemoteException) {<a name="line.314"></a>
-<span class="sourceLineNo">315</span>      t = ((RemoteException) t).unwrapRemoteException();<a name="line.315"></a>
+<span class="sourceLineNo">253</span>  /** Dummy nonce generator for disabled nonces. */<a name="line.253"></a>
+<span class="sourceLineNo">254</span>  static final NonceGenerator NO_NONCE_GENERATOR = new NonceGenerator() {<a name="line.254"></a>
+<span class="sourceLineNo">255</span><a name="line.255"></a>
+<span class="sourceLineNo">256</span>    @Override<a name="line.256"></a>
+<span class="sourceLineNo">257</span>    public long newNonce() {<a name="line.257"></a>
+<span class="sourceLineNo">258</span>      return HConstants.NO_NONCE;<a name="line.258"></a>
+<span class="sourceLineNo">259</span>    }<a name="line.259"></a>
+<span class="sourceLineNo">260</span><a name="line.260"></a>
+<span class="sourceLineNo">261</span>    @Override<a name="line.261"></a>
+<span class="sourceLineNo">262</span>    public long getNonceGroup() {<a name="line.262"></a>
+<span class="sourceLineNo">263</span>      return HConstants.NO_NONCE;<a name="line.263"></a>
+<span class="sourceLineNo">264</span>    }<a name="line.264"></a>
+<span class="sourceLineNo">265</span>  };<a name="line.265"></a>
+<span class="sourceLineNo">266</span><a name="line.266"></a>
+<span class="sourceLineNo">267</span>  // A byte array in which all elements are the max byte, and it is used to<a name="line.267"></a>
+<span class="sourceLineNo">268</span>  // construct closest front row<a name="line.268"></a>
+<span class="sourceLineNo">269</span>  static final byte[] MAX_BYTE_ARRAY = Bytes.createMaxByteArray(9);<a name="line.269"></a>
+<span class="sourceLineNo">270</span><a name="line.270"></a>
+<span class="sourceLineNo">271</span>  /**<a name="line.271"></a>
+<span class="sourceLineNo">272</span>   * Create the closest row after the specified row<a name="line.272"></a>
+<span class="sourceLineNo">273</span>   */<a name="line.273"></a>
+<span class="sourceLineNo">274</span>  static byte[] createClosestRowAfter(byte[] row) {<a name="line.274"></a>
+<span class="sourceLineNo">275</span>    return Arrays.copyOf(row, row.length + 1);<a name="line.275"></a>
+<span class="sourceLineNo">276</span>  }<a name="line.276"></a>
+<span class="sourceLineNo">277</span><a name="line.277"></a>
+<span class="sourceLineNo">278</span>  /**<a name="line.278"></a>
+<span class="sourceLineNo">279</span>   * Create a row before the specified row and very close to the specified row.<a name="line.279"></a>
+<span class="sourceLineNo">280</span>   */<a name="line.280"></a>
+<span class="sourceLineNo">281</span>  static byte[] createCloseRowBefore(byte[] row) {<a name="line.281"></a>
+<span class="sourceLineNo">282</span>    if (row.length == 0) {<a name="line.282"></a>
+<span class="sourceLineNo">283</span>      return MAX_BYTE_ARRAY;<a name="line.283"></a>
+<span class="sourceLineNo">284</span>    }<a name="line.284"></a>
+<span class="sourceLineNo">285</span>    if (row[row.length - 1] == 0) {<a name="line.285"></a>
+<span class="sourceLineNo">286</span>      return Arrays.copyOf(row, row.length - 1);<a name="line.286"></a>
+<span class="sourceLineNo">287</span>    } else {<a name="line.287"></a>
+<span class="sourceLineNo">288</span>      byte[] nextRow = new byte[row.length + MAX_BYTE_ARRAY.length];<a name="line.288"></a>
+<span class="sourceLineNo">289</span>      System.arraycopy(row, 0, nextRow, 0, row.length - 1);<a name="line.289"></a>
+<span class="sourceLineNo">290</span>      nextRow[row.length - 1] = (byte) ((row[row.length - 1] &amp; 0xFF) - 1);<a name="line.290"></a>
+<span class="sourceLineNo">291</span>      System.arraycopy(MAX_BYTE_ARRAY, 0, nextRow, row.length, MAX_BYTE_ARRAY.length);<a name="line.291"></a>
+<span class="sourceLineNo">292</span>      return nextRow;<a name="line.292"></a>
+<span class="sourceLineNo">293</span>    }<a name="line.293"></a>
+<span class="sourceLineNo">294</span>  }<a name="line.294"></a>
+<span class="sourceLineNo">295</span><a name="line.295"></a>
+<span class="sourceLineNo">296</span>  static boolean isEmptyStartRow(byte[] row) {<a name="line.296"></a>
+<span class="sourceLineNo">297</span>    return Bytes.equals(row, EMPTY_START_ROW);<a name="line.297"></a>
+<span class="sourceLineNo">298</span>  }<a name="line.298"></a>
+<span class="sourceLineNo">299</span><a name="line.299"></a>
+<span class="sourceLineNo">300</span>  static boolean isEmptyStopRow(byte[] row) {<a name="line.300"></a>
+<span class="sourceLineNo">301</span>    return Bytes.equals(row, EMPTY_END_ROW);<a name="line.301"></a>
+<span class="sourceLineNo">302</span>  }<a name="line.302"></a>
+<span class="sourceLineNo">303</span><a name="line.303"></a>
+<span class="sourceLineNo">304</span>  static void resetController(HBaseRpcController controller, long timeoutNs, int priority) {<a name="line.304"></a>
+<span class="sourceLineNo">305</span>    controller.reset();<a name="line.305"></a>
+<span class="sourceLineNo">306</span>    if (timeoutNs &gt;= 0) {<a name="line.306"></a>
+<span class="sourceLineNo">307</span>      controller.setCallTimeout(<a name="line.307"></a>
+<span class="sourceLineNo">308</span>        (int) Math.min(Integer.MAX_VALUE, TimeUnit.NANOSECONDS.toMillis(timeoutNs)));<a name="line.308"></a>
+<span class="sourceLineNo">309</span>    }<a name="line.309"></a>
+<span class="sourceLineNo">310</span>    controller.setPriority(priority);<a name="line.310"></a>
+<span class="sourceLineNo">311</span>  }<a name="line.311"></a>
+<span class="sourceLineNo">312</span><a name="line.312"></a>
+<span class="sourceLineNo">313</span>  static Throwable translateException(Throwable t) {<a name="line.313"></a>
+<span class="sourceLineNo">314</span>    if (t instanceof UndeclaredThrowableException &amp;&amp; t.getCause() != null) {<a name="line.314"></a>
+<span class="sourceLineNo">315</span>      t = t.getCause();<a name="line.315"></a>
 <span class="sourceLineNo">316</span>    }<a name="line.316"></a>
-<span class="sourceLineNo">317</span>    if (t instanceof ServiceException &amp;&amp; t.getCause() != null) {<a name="line.317"></a>
-<span class="sourceLineNo">318</span>      t = translateException(t.getCause());<a name="line.318"></a>
+<span class="sourceLineNo">317</span>    if (t instanceof RemoteException) {<a name="line.317"></a>
+<span class="sourceLineNo">318</span>      t = ((RemoteException) t).unwrapRemoteException();<a name="line.318"></a>
 <span class="sourceLineNo">319</span>    }<a name="line.319"></a>
-<span class="sourceLineNo">320</span>    return t;<a name="line.320"></a>
-<span class="sourceLineNo">321</span>  }<a name="line.321"></a>
-<span class="sourceLineNo">322</span><a name="line.322"></a>
-<span class="sourceLineNo">323</span>  static long calcEstimatedSize(Result rs) {<a name="line.323"></a>
-<span class="sourceLineNo">324</span>    long estimatedHeapSizeOfResult = 0;<a name="line.324"></a>
-<span class="sourceLineNo">325</span>    // We don't make Iterator here<a name="line.325"></a>
-<span class="sourceLineNo">326</span>    for (Cell cell : rs.rawCells()) {<a name="line.326"></a>
-<span class="sourceLineNo">327</span>      estimatedHeapSizeOfResult += cell.heapSize();<a name="line.327"></a>
-<span class="sourceLineNo">328</span>    }<a name="line.328"></a>
-<span class="sourceLineNo">329</span>    return estimatedHeapSizeOfResult;<a name="line.329"></a>
-<span class="sourceLineNo">330</span>  }<a name="line.330"></a>
-<span class="sourceLineNo">331</span><a name="line.331"></a>
-<span class="sourceLineNo">332</span>  static Result filterCells(Result result, Cell keepCellsAfter) {<a name="line.332"></a>
-<span class="sourceLineNo">333</span>    if (keepCellsAfter == null) {<a name="line.333"></a>
-<span class="sourceLineNo">334</span>      // do not need to filter<a name="line.334"></a>
-<span class="sourceLineNo">335</span>      return result;<a name="line.335"></a>
-<span class="sourceLineNo">336</span>    }<a name="line.336"></a>
-<span class="sourceLineNo">337</span>    // not the same row<a name="line.337"></a>
-<span class="sourceLineNo">338</span>    if (!PrivateCellUtil.matchingRows(keepCellsAfter, result.getRow(), 0, result.getRow().length)) {<a name="line.338"></a>
-<span class="sourceLineNo">339</span>      return result;<a name="line.339"></a>
-<span class="sourceLineNo">340</span>    }<a name="line.340"></a>
-<span class="sourceLineNo">341</span>    Cell[] rawCells = result.rawCells();<a name="line.341"></a>
-<span class="sourceLineNo">342</span>    int index = Arrays.binarySearch(rawCells, keepCellsAfter,<a name="line.342"></a>
-<span class="sourceLineNo">343</span>      CellComparator.getInstance()::compareWithoutRow);<a name="line.343"></a>
-<span class="sourceLineNo">344</span>    if (index &lt; 0) {<a name="line.344"></a>
-<span class="sourceLineNo">345</span>      index = -index - 1;<a name="line.345"></a>
-<span class="sourceLineNo">346</span>    } else {<a name="line.346"></a>
-<span class="sourceLineNo">347</span>      index++;<a name="line.347"></a>
-<span class="sourceLineNo">348</span>    }<a name="line.348"></a>
-<span class="sourceLineNo">349</span>    if (index == 0) {<a name="line.349"></a>
-<span class="sourceLineNo">350</span>      return result;<a name="line.350"></a>
+<span class="sourceLineNo">320</span>    if (t instanceof ServiceException &amp;&amp; t.getCause() != null) {<a name="line.320"></a>
+<span class="sourceLineNo">321</span>      t = translateException(t.getCause());<a name="line.321"></a>
+<span class="sourceLineNo">322</span>    }<a name="line.322"></a>
+<span class="sourceLineNo">323</span>    return t;<a name="line.323"></a>
+<span class="sourceLineNo">324</span>  }<a name="line.324"></a>
+<span class="sourceLineNo">325</span><a name="line.325"></a>
+<span class="sourceLineNo">326</span>  static long calcEstimatedSize(Result rs) {<a name="line.326"></a>
+<span class="sourceLineNo">327</span>    long estimatedHeapSizeOfResult = 0;<a name="line.327"></a>
+<span class="sourceLineNo">328</span>    // We don't make Iterator here<a name="line.328"></a>
+<span class="sourceLineNo">329</span>    for (Cell cell : rs.rawCells()) {<a name="line.329"></a>
+<span class="sourceLineNo">330</span>      estimatedHeapSizeOfResult += cell.heapSize();<a name="line.330"></a>
+<span class="sourceLineNo">331</span>    }<a name="line.331"></a>
+<span class="sourceLineNo">332</span>    return estimatedHeapSizeOfResult;<a name="line.332"></a>
+<span class="sourceLineNo">333</span>  }<a name="line.333"></a>
+<span class="sourceLineNo">334</span><a name="line.334"></a>
+<span class="sourceLineNo">335</span>  static Result filterCells(Result result, Cell keepCellsAfter) {<a name="line.335"></a>
+<span class="sourceLineNo">336</span>    if (keepCellsAfter == null) {<a name="line.336"></a>
+<span class="sourceLineNo">337</span>      // do not need to filter<a name="line.337"></a>
+<span class="sourceLineNo">338</span>      return result;<a name="line.338"></a>
+<span class="sourceLineNo">339</span>    }<a name="line.339"></a>
+<span class="sourceLineNo">340</span>    // not the same row<a name="line.340"></a>
+<span class="sourceLineNo">341</span>    if (!PrivateCellUtil.matchingRows(keepCellsAfter, result.getRow(), 0, result.getRow().length)) {<a name="line.341"></a>
+<span class="sourceLineNo">342</span>      return result;<a name="line.342"></a>
+<span class="sourceLineNo">343</span>    }<a name="line.343"></a>
+<span class="sourceLineNo">344</span>    Cell[] rawCells = result.rawCells();<a name="line.344"></a>
+<span class="sourceLineNo">345</span>    int index = Arrays.binarySearch(rawCells, keepCellsAfter,<a name="line.345"></a>
+<span class="sourceLineNo">346</span>      CellComparator.getInstance()::compareWithoutRow);<a name="line.346"></a>
+<span class="sourceLineNo">347</span>    if (index &lt; 0) {<a name="line.347"></a>
+<span class="sourceLineNo">348</span>      index = -index - 1;<a name="line.348"></a>
+<span class="sourceLineNo">349</span>    } else {<a name="line.349"></a>
+<span class="sourceLineNo">350</span>      index++;<a name="line.350"></a>
 <span class="sourceLineNo">351</span>    }<a name="line.351"></a>
-<span class="sourceLineNo">352</span>    if (index == rawCells.length) {<a name="line.352"></a>
-<span class="sourceLineNo">353</span>      return null;<a name="line.353"></a>
+<span class="sourceLineNo">352</span>    if (index == 0) {<a name="line.352"></a>
+<span class="sourceLineNo">353</span>      return result;<a name="line.353"></a>
 <span class="sourceLineNo">354</span>    }<a name="line.354"></a>
-<span class="sourceLineNo">355</span>    return Result.create(Arrays.copyOfRange(rawCells, index, rawCells.length), null,<a name="line.355"></a>
-<span class="sourceLineNo">356</span>      result.isStale(), result.mayHaveMoreCellsInRow());<a name="line.356"></a>
-<span class="sourceLineNo">357</span>  }<a name="line.357"></a>
-<span class="sourceLineNo">358</span><a name="line.358"></a>
-<span class="sourceLineNo">359</span>  // Add a delta to avoid timeout immediately after a retry sleeping.<a name="line.359"></a>
-<span class="sourceLineNo">360</span>  static final long SLEEP_DELTA_NS = TimeUnit.MILLISECONDS.toNanos(1);<a name="line.360"></a>
+<span class="sourceLineNo">355</span>    if (index == rawCells.length) {<a name="line.355"></a>
+<span class="sourceLineNo">356</span>      return null;<a name="line.356"></a>
+<span class="sourceLineNo">357</span>    }<a name="line.357"></a>
+<span class="sourceLineNo">358</span>    return Result.create(Arrays.copyOfRange(rawCells, index, rawCells.length), null,<a name="line.358"></a>
+<span class="sourceLineNo">359</span>      result.isStale(), result.mayHaveMoreCellsInRow());<a name="line.359"></a>
+<span class="sourceLineNo">360</span>  }<a name="line.360"></a>
 <span class="sourceLineNo">361</span><a name="line.361"></a>
-<span class="sourceLineNo">362</span>  static Get toCheckExistenceOnly(Get get) {<a name="line.362"></a>
-<span class="sourceLineNo">363</span>    if (get.isCheckExistenceOnly()) {<a name="line.363"></a>
-<span class="sourceLineNo">364</span>      return get;<a name="line.364"></a>
-<span class="sourceLineNo">365</span>    }<a name="line.365"></a>
-<span class="sourceLineNo">366</span>    return ReflectionUtils.newInstance(get.getClass(), get).setCheckExistenceOnly(true);<a name="line.366"></a>
-<span class="sourceLineNo">367</span>  }<a name="line.367"></a>
-<span class="sourceLineNo">368</span><a name="line.368"></a>
-<span class="sourceLineNo">369</span>  static List&lt;Get&gt; toCheckExistenceOnly(List&lt;Get&gt; gets) {<a name="line.369"></a>
-<span class="sourceLineNo">370</span>    return gets.stream().map(ConnectionUtils::toCheckExistenceOnly).collect(toList());<a name="line.370"></a>
-<span class="sourceLineNo">371</span>  }<a name="line.371"></a>
-<span class="sourceLineNo">372</span><a name="line.372"></a>
-<span class="sourceLineNo">373</span>  static RegionLocateType getLocateType(Scan scan) {<a name="line.373"></a>
-<span class="sourceLineNo">374</span>    if (scan.isReversed()) {<a name="line.374"></a>
-<span class="sourceLineNo">375</span>      if (isEmptyStartRow(scan.getStartRow())) {<a name="line.375"></a>
-<span class="sourceLineNo">376</span>        return RegionLocateType.BEFORE;<a name="line.376"></a>
-<span class="sourceLineNo">377</span>      } else {<a name="line.377"></a>
-<span class="sourceLineNo">378</span>        return scan.includeStartRow() ? RegionLocateType.CURRENT : RegionLocateType.BEFORE;<a name="line.378"></a>
-<span class="sourceLineNo">379</span>      }<a name="line.379"></a>
-<span class="sourceLineNo">380</span>    } else {<a name="line.380"></a>
-<span class="sourceLineNo">381</span>      return scan.includeStartRow() ? RegionLocateType.CURRENT : RegionLocateType.AFTER;<a name="line.381"></a>
-<span class="sourceLineNo">382</span>    }<a name="line.382"></a>
-<span class="sourceLineNo">383</span>  }<a name="line.383"></a>
-<span class="sourceLineNo">384</span><a name="line.384"></a>
-<span class="sourceLineNo">385</span>  static boolean noMoreResultsForScan(Scan scan, RegionInfo info) {<a name="line.385"></a>
-<span class="sourceLineNo">386</span>    if (isEmptyStopRow(info.getEndKey())) {<a name="line.386"></a>
-<span class="sourceLineNo">387</span>      return true;<a name="line.387"></a>
-<span class="sourceLineNo">388</span>    }<a name="line.388"></a>
-<span class="sourceLineNo">389</span>    if (isEmptyStopRow(scan.getStopRow())) {<a name="line.389"></a>
-<span class="sourceLineNo">390</span>      return false;<a name="line.390"></a>
+<span class="sourceLineNo">362</span>  // Add a delta to avoid timeout immediately after a retry sleeping.<a name="line.362"></a>
+<span class="sourceLineNo">363</span>  static final long SLEEP_DELTA_NS = TimeUnit.MILLISECONDS.toNanos(1);<a name="line.363"></a>
+<span class="sourceLineNo">364</span><a name="line.364"></a>
+<span class="sourceLineNo">365</span>  static Get toCheckExistenceOnly(Get get) {<a name="line.365"></a>
+<span class="sourceLineNo">366</span>    if (get.isCheckExistenceOnly()) {<a name="line.366"></a>
+<span class="sourceLineNo">367</span>      return get;<a name="line.367"></a>
+<span class="sourceLineNo">368</span>    }<a name="line.368"></a>
+<span class="sourceLineNo">369</span>    return ReflectionUtils.newInstance(get.getClass(), get).setCheckExistenceOnly(true);<a name="line.369"></a>
+<span class="sourceLineNo">370</span>  }<a name="line.370"></a>
+<span class="sourceLineNo">371</span><a name="line.371"></a>
+<span class="sourceLineNo">372</span>  static List&lt;Get&gt; toCheckExistenceOnly(List&lt;Get&gt; gets) {<a name="line.372"></a>
+<span class="sourceLineNo">373</span>    return gets.stream().map(ConnectionUtils::toCheckExistenceOnly).collect(toList());<a name="line.373"></a>
+<span class="sourceLineNo">374</span>  }<a name="line.374"></a>
+<span class="sourceLineNo">375</span><a name="line.375"></a>
+<span class="sourceLineNo">376</span>  static RegionLocateType getLocateType(Scan scan) {<a name="line.376"></a>
+<span class="sourceLineNo">377</span>    if (scan.isReversed()) {<a name="line.377"></a>
+<span class="sourceLineNo">378</span>      if (isEmptyStartRow(scan.getStartRow())) {<a name="line.378"></a>
+<span class="sourceLineNo">379</span>        return RegionLocateType.BEFORE;<a name="line.379"></a>
+<span class="sourceLineNo">380</span>      } else {<a name="line.380"></a>
+<span class="sourceLineNo">381</span>        return scan.includeStartRow() ? RegionLocateType.CURRENT : RegionLocateType.BEFORE;<a name="line.381"></a>
+<span class="sourceLineNo">382</span>      }<a name="line.382"></a>
+<span class="sourceLineNo">383</span>    } else {<a name="line.383"></a>
+<span class="sourceLineNo">384</span>      return scan.includeStartRow() ? RegionLocateType.CURRENT : RegionLocateType.AFTER;<a name="line.384"></a>
+<span class="sourceLineNo">385</span>    }<a name="line.385"></a>
+<span class="sourceLineNo">386</span>  }<a name="line.386"></a>
+<span class="sourceLineNo">387</span><a name="line.387"></a>
+<span class="sourceLineNo">388</span>  static boolean noMoreResultsForScan(Scan scan, RegionInfo info) {<a name="line.388"></a>
+<span class="sourceLineNo">389</span>    if (isEmptyStopRow(info.getEndKey())) {<a name="line.389"></a>
+<span class="sourceLineNo">390</span>      return true;<a name="line.390"></a>
 <span class="sourceLineNo">391</span>    }<a name="line.391"></a>
-<span class="sourceLineNo">392</span>    int c = Bytes.compareTo(info.getEndKey(), scan.getStopRow());<a name="line.392"></a>
-<span class="sourceLineNo">393</span>    // 1. if our stop row is less than the endKey of the region<a name="line.393"></a>
-<span class="sourceLineNo">394</span>    // 2. if our stop row is equal to the endKey of the region and we do not include the stop row<a name="line.394"></a>
-<span class="sourceLineNo">395</span>    // for scan.<a name="line.395"></a>
-<span class="sourceLineNo">396</span>    return c &gt; 0 || (c == 0 &amp;&amp; !scan.includeStopRow());<a name="line.396"></a>
-<span class="sourceLineNo">397</span>  }<a name="line.397"></a>
-<span class="sourceLineNo">398</span><a name="line.398"></a>
-<span class="sourceLineNo">399</span>  static boolean noMoreResultsForReverseScan(Scan scan, RegionInfo info) {<a name="line.399"></a>
-<span class="sourceLineNo">400</span>    if (isEmptyStartRow(info.getStartKey())) {<a name="line.400"></a>
-<span class="sourceLineNo">401</span>      return true;<a name="line.401"></a>
-<span class="sourceLineNo">402</span>    }<a name="line.402"></a>
-<span class="sourceLineNo">403</span>    if (isEmptyStopRow(scan.getStopRow())) {<a name="line.403"></a>
-<span class="sourceLineNo">404</span>      return false;<a name="line.404"></a>
+<span class="sourceLineNo">392</span>    if (isEmptyStopRow(scan.getStopRow())) {<a name="line.392"></a>
+<span class="sourceLineNo">393</span>      return false;<a name="line.393"></a>
+<span class="sourceLineNo">394</span>    }<a name="line.394"></a>
+<span class="sourceLineNo">395</span>    int c = Bytes.compareTo(info.getEndKey(), scan.getStopRow());<a name="line.395"></a>
+<span class="sourceLineNo">396</span>    // 1. if our stop row is less than the endKey of the region<a name="line.396"></a>
+<span class="sourceLineNo">397</span>    // 2. if our stop row is equal to the endKey of the region and we do not include the stop row<a name="line.397"></a>
+<span class="sourceLineNo">398</span>    // for scan.<a name="line.398"></a>
+<span class="sourceLineNo">399</span>    return c &gt; 0 || (c == 0 &amp;&amp; !scan.includeStopRow());<a name="line.399"></a>
+<span class="sourceLineNo">400</span>  }<a name="line.400"></a>
+<span class="sourceLineNo">401</span><a name="line.401"></a>
+<span class="sourceLineNo">402</span>  static boolean noMoreResultsForReverseScan(Scan scan, RegionInfo info) {<a name="line.402"></a>
+<span class="sourceLineNo">403</span>    if (isEmptyStartRow(info.getStartKey())) {<a name="line.403"></a>
+<span class="sourceLineNo">404</span>      return true;<a name="line.404"></a>
 <span class="sourceLineNo">405</span>    }<a name="line.405"></a>
-<span class="sourceLineNo">406</span>    // no need to test the inclusive of the stop row as the start key of a region is included in<a name="line.406"></a>
-<span class="sourceLineNo">407</span>    // the region.<a name="line.407"></a>
-<span class="sourceLineNo">408</span>    return Bytes.compareTo(info.getStartKey(), scan.getStopRow()) &lt;= 0;<a name="line.408"></a>
-<span class="sourceLineNo">409</span>  }<a name="line.409"></a>
-<span class="sourceLineNo">410</span><a name="line.410"></a>
-<span class="sourceLineNo">411</span>  static &lt;T&gt; CompletableFuture&lt;List&lt;T&gt;&gt; allOf(List&lt;CompletableFuture&lt;T&gt;&gt; futures) {<a name="line.411"></a>
-<span class="sourceLineNo">412</span>    return CompletableFuture.allOf(futures.toArray(new CompletableFuture[0]))<a name="line.412"></a>
-<span class="sourceLineNo">413</span>      .thenApply(v -&gt; futures.stream().map(f -&gt; f.getNow(null)).collect(toList()));<a name="line.413"></a>
-<span class="sourceLineNo">414</span>  }<a name="line.414"></a>
-<span class="sourceLineNo">415</span><a name="line.415"></a>
-<span class="sourceLineNo">416</span>  public static ScanResultCache createScanResultCache(Scan scan) {<a name="line.416"></a>
-<span class="sourceLineNo">417</span>    if (scan.getAllowPartialResults()) {<a name="line.417"></a>
-<span class="sourceLineNo">418</span>      return new AllowPartialScanResultCache();<a name="line.418"></a>
-<span class="sourceLineNo">419</span>    } else if (scan.getBatch() &gt; 0) {<a name="line.419"></a>
-<span class="sourceLineNo">420</span>      return new BatchScanResultCache(scan.getBatch());<a name="line.420"></a>
-<span class="sourceLineNo">421</span>    } else {<a name="line.421"></a>
-<span class="sourceLineNo">422</span>      return new CompleteScanResultCache();<a name="line.422"></a>
-<span class="sourceLineNo">423</span>    }<a name="line.423"></a>
-<span class="sourceLineNo">424</span>  }<a name="line.424"></a>
-<span class="sourceLineNo">425</span><a name="line.425"></a>
-<span class="sourceLineNo">426</span>  private static final String MY_ADDRESS = getMyAddress();<a name="line.426"></a>
-<span class="sourceLineNo">427</span><a name="line.427"></a>
-<span class="sourceLineNo">428</span>  private static String getMyAddress() {<a name="line.428"></a>
-<span class="sourceLineNo">429</span>    try {<a name="line.429"></a>
-<span class="sourceLineNo">430</span>      return DNS.getDefaultHost("default", "default");<a name="line.430"></a>
-<span class="sourceLineNo">431</span>    } catch (UnknownHostException uhe) {<a name="line.431"></a>
-<span class="sourceLineNo">432</span>      LOG.error("cannot determine my address", uhe);<a name="line.432"></a>
-<span class="sourceLineNo">433</span>      return null;<a name="line.433"></a>
-<span class="sourceLineNo">434</span>    }<a name="line.434"></a>
-<span class="sourceLineNo">435</span>  }<a name="line.435"></a>
-<span class="sourceLineNo">436</span><a name="line.436"></a>
-<span class="sourceLineNo">437</span>  static boolean isRemote(String host) {<a name="line.437"></a>
-<span class="sourceLineNo">438</span>    return !host.equalsIgnoreCase(MY_ADDRESS);<a name="line.438"></a>
-<span class="sourceLineNo">439</span>  }<a name="line.439"></a>
-<span class="sourceLineNo">440</span><a name="line.440"></a>
-<span class="sourceLineNo">441</span>  static void incRPCCallsMetrics(ScanMetrics scanMetrics, boolean isRegionServerRemote) {<a name="line.441"></a>
-<span class="sourceLineNo">442</span>    if (scanMetrics == null) {<a name="line.442"></a>
-<span class="sourceLineNo">443</span>      return;<a name="line.443"></a>
-<span class="sourceLineNo">444</span>    }<a name="line.444"></a>
-<span class="sourceLineNo">445</span>    scanMetrics.countOfRPCcalls.incrementAndGet();<a name="line.445"></a>
-<span class="sourceLineNo">446</span>    if (isRegionServerRemote) {<a name="line.446"></a>
-<span class="sourceLineNo">447</span>      scanMetrics.countOfRemoteRPCcalls.incrementAndGet();<a name="line.447"></a>
-<span class="sourceLineNo">448</span>    }<a name="line.448"></a>
-<span class="sourceLineNo">449</span>  }<a name="line.449"></a>
-<span class="sourceLineNo">450</span><a name="line.450"></a>
-<span class="sourceLineNo">451</span>  static void incRPCRetriesMetrics(ScanMetrics scanMetrics, boolean isRegionServerRemote) {<a name="line.451"></a>
-<span class="sourceLineNo">452</span>    if (scanMetrics == null) {<a name="line.452"></a>
-<span class="sourceLineNo">453</span>      return;<a name="line.453"></a>
-<span class="sourceLineNo">454</span>    }<a name="line.454"></a>
-<span class="sourceLineNo">455</span>    scanMetrics.countOfRPCRetries.incrementAndGet();<a name="line.455"></a>
-<span class="sourceLineNo">456</span>    if (isRegionServerRemote) {<a name="line.456"></a>
-<span class="sourceLineNo">457</span>      scanMetrics.countOfRemoteRPCRetries.incrementAndGet();<a name="line.457"></a>
-<span class="sourceLineNo">458</span>    }<a name="line.458"></a>
-<span class="sourceLineNo">459</span>  }<a name="line.459"></a>
-<span class="sourceLineNo">460</span><a name="line.460"></a>
-<span class="sourceLineNo">461</span>  static void updateResultsMetrics(ScanMetrics scanMetrics, Result[] rrs,<a name="line.461"></a>
-<span class="sourceLineNo">462</span>      boolean isRegionServerRemote) {<a name="line.462"></a>
-<span class="sourceLineNo">463</span>    if (scanMetrics == null || rrs == null || rrs.length == 0) {<a name="line.463"></a>
-<span class="sourceLineNo">464</span>      return;<a name="line.464"></a>
-<span class="sourceLineNo">465</span>    }<a name="line.465"></a>
-<span class="sourceLineNo">466</span>    long resultSize = 0;<a name="line.466"></a>
-<span class="sourceLineNo">467</span>    for (Result rr : rrs) {<a name="line.467"></a>
-<span class="sourceLineNo">468</span>      for (Cell cell : rr.rawCells()) {<a name="line.468"></a>
-<span class="sourceLineNo">469</span>        resultSize += PrivateCellUtil.estimatedSerializedSizeOf(cell);<a name="line.469"></a>
-<span class="sourceLineNo">470</span>      }<a name="line.470"></a>
-<span class="sourceLineNo">471</span>    }<a name="line.471"></a>
-<span class="sourceLineNo">472</span>    scanMetrics.countOfBytesInResults.addAndGet(resultSize);<a name="line.472"></a>
-<span class="sourceLineNo">473</span>    if (isRegionServerRemote) {<a name="line.473"></a>
-<span class="sourceLineNo">474</span>      scanMetrics.countOfBytesInRemoteResults.addAndGet(resultSize);<a name="line.474"></a>
-<span class="sourceLineNo">475</span>    }<a name="line.475"></a>
-<span class="sourceLineNo">476</span>  }<a name="line.476"></a>
-<span class="sourceLineNo">477</span><a name="line.477"></a>
-<span class="sourceLineNo">478</span>  /**<a name="line.478"></a>
-<span class="sourceLineNo">479</span>   * Use the scan metrics returned by the server to add to the identically named counters in the<a name="line.479"></a>
-<span class="sourceLineNo">480</span>   * client side metrics. If a counter does not exist with the same name as the server side metric,<a name="line.480"></a>
-<span class="sourceLineNo">481</span>   * the attempt to increase the counter will fail.<a name="line.481"></a>
-<span class="sourceLineNo">482</span>   */<a name="line.482"></a>
-<span class="sourceLineNo">483</span>  static void updateServerSideMetrics(ScanMetrics scanMetrics, ScanResponse response) {<a name="line.483"></a>
-<span class="sourceLineNo">484</span>    if (scanMetrics == null || response == null || !response.hasScanMetrics()) {<a name="line.484"></a>
-<span class="sourceLineNo">485</span>      return;<a name="line.485"></a>
-<span class="sourceLineNo">486</span>    }<a name="line.486"></a>
-<span class="sourceLineNo">487</span>    ResponseConverter.getScanMetrics(response).forEach(scanMetrics::addToCounter);<a name="line.487"></a>
-<span class="sourceLineNo">488</span>  }<a name="line.488"></a>
-<span class="sourceLineNo">489</span><a name="line.489"></a>
-<span class="sourceLineNo">490</span>  static void incRegionCountMetrics(ScanMetrics scanMetrics) {<a name="line.490"></a>
-<span class="sourceLineNo">491</span>    if (scanMetrics == null) {<a name="line.491"></a>
-<span class="sourceLineNo">492</span>      return;<a name="line.492"></a>
-<span class="sourceLineNo">493</span>    }<a name="line.493"></a>
-<span class="sourceLineNo">494</span>    scanMetrics.countOfRegions.incrementAndGet();<a name="line.494"></a>
-<span class="sourceLineNo">495</span>  }<a name="line.495"></a>
-<span class="sourceLineNo">496</span><a name="line.496"></a>
-<span class="sourceLineNo">497</span>  /**<a name="line.497"></a>
-<span class="sourceLineNo">498</span>   * Connect the two futures, if the src future is done, then mark the dst future as done. And if<a name="line.498"></a>
-<span class="sourceLineNo">499</span>   * the dst future is done, then cancel the src future. This is used for timeline consistent read.<a name="line.499"></a>
-<span class="sourceLineNo">500</span>   */<a name="line.500"></a>
-<span class="sourceLineNo">501</span>  private static &lt;T&gt; void connect(CompletableFuture&lt;T&gt; srcFuture, CompletableFuture&lt;T&gt; dstFuture) {<a name="line.501"></a>
-<span class="sourceLineNo">502</span>    addListener(srcFuture, (r, e) -&gt; {<a name="line.502"></a>
-<span class="sourceLineNo">503</span>      if (e != null) {<a name="line.503"></a>
-<span class="sourceLineNo">504</span>        dstFuture.completeExceptionally(e);<a name="line.504"></a>
-<span class="sourceLineNo">505</span>      } else {<a name="line.505"></a>
-<span class="sourceLineNo">506</span>        dstFuture.complete(r);<a name="line.506"></a>
-<span class="sourceLineNo">507</span>      }<a name="line.507"></a>
-<span class="sourceLineNo">508</span>    });<a name="line.508"></a>
-<span class="sourceLineNo">509</span>    // The cancellation may be a dummy one as the dstFuture may be completed by this srcFuture.<a name="line.509"></a>
-<span class="sourceLineNo">510</span>    // Notice that this is a bit tricky, as the execution chain maybe 'complete src -&gt; complete dst<a name="line.510"></a>
-<span class="sourceLineNo">511</span>    // -&gt; cancel src', for now it seems to be fine, as the will use CAS to set the result first in<a name="line.511"></a>
-<span class="sourceLineNo">512</span>    // CompletableFuture. If later this causes problems, we could use whenCompleteAsync to break the<a name="line.512"></a>
-<span class="sourceLineNo">513</span>    // tie.<a name="line.513"></a>
-<span class="sourceLineNo">514</span>    addListener(dstFuture, (r, e) -&gt; srcFuture.cancel(false));<a name="line.514"></a>
-<span class="sourceLineNo">515</span>  }<a name="line.515"></a>
-<span class="sourceLineNo">516</span><a name="line.516"></a>
-<span class="sourceLineNo">517</span>  private static &lt;T&gt; void sendRequestsToSecondaryReplicas(<a name="line.517"></a>
-<span class="sourceLineNo">518</span>      Function&lt;Integer, CompletableFuture&lt;T&gt;&gt; requestReplica, RegionLocations locs,<a name="line.518"></a>
-<span class="sourceLineNo">519</span>      CompletableFuture&lt;T&gt; future) {<a name="line.519"></a>
-<span class="sourceLineNo">520</span>    if (future.isDone()) {<a name="line.520"></a>
-<span class="sourceLineNo">521</span>      // do not send requests to secondary replicas if the future is done, i.e, the primary request<a name="line.521"></a>
-<span class="sourceLineNo">522</span>      // has already been finished.<a name="line.522"></a>
-<span class="sourceLineNo">523</span>      return;<a name="line.523"></a>
-<span class="sourceLineNo">524</span>    }<a name="line.524"></a>
-<span class="sourceLineNo">525</span>    for (int replicaId = 1, n = locs.size(); replicaId &lt; n; replicaId++) {<a name="line.525"></a>
-<span class="sourceLineNo">526</span>      CompletableFuture&lt;T&gt; secondaryFuture = requestReplica.apply(replicaId);<a name="line.526"></a>
-<span class="sourceLineNo">527</span>      connect(secondaryFuture, future);<a name="line.527"></a>
-<span class="sourceLineNo">528</span>    }<a name="line.528"></a>
-<span class="sourceLineNo">529</span>  }<a name="line.529"></a>
-<span class="sourceLineNo">530</span><a name="line.530"></a>
-<span class="sourceLineNo">531</span>  static &lt;T&gt; CompletableFuture&lt;T&gt; timelineConsistentRead(AsyncRegionLocator locator,<a name="line.531"></a>
-<span class="sourceLineNo">532</span>      TableName tableName, Query query, byte[] row, RegionLocateType locateType,<a name="line.532"></a>
-<span class="sourceLineNo">533</span>      Function&lt;Integer, CompletableFuture&lt;T&gt;&gt; requestReplica, long rpcTimeoutNs,<a name="line.533"></a>
-<span class="sourceLineNo">534</span>      long primaryCallTimeoutNs, Timer retryTimer) {<a name="line.534"></a>
-<span class="sourceLineNo">535</span>    if (query.getConsistency() == Consistency.STRONG) {<a name="line.535"></a>
-<span class="sourceLineNo">536</span>      return requestReplica.apply(RegionReplicaUtil.DEFAULT_REPLICA_ID);<a name="line.536"></a>
-<span class="sourceLineNo">537</span>    }<a name="line.537"></a>
-<span class="sourceLineNo">538</span>    // user specifies a replica id explicitly, just send request to the specific replica<a name="line.538"></a>
-<span class="sourceLineNo">539</span>    if (query.getReplicaId() &gt;= 0) {<a name="line.539"></a>
-<span class="sourceLineNo">540</span>      return requestReplica.apply(query.getReplicaId());<a name="line.540"></a>
-<span class="sourceLineNo">541</span>    }<a name="line.541"></a>
-<span class="sourceLineNo">542</span>    // Timeline consistent read, where we may send requests to other region replicas<a name="line.542"></a>
-<span class="sourceLineNo">543</span>    CompletableFuture&lt;T&gt; primaryFuture = requestReplica.apply(RegionReplicaUtil.DEFAULT_REPLICA_ID);<a name="line.543"></a>
-<span class="sourceLineNo">544</span>    CompletableFuture&lt;T&gt; future = new CompletableFuture&lt;&gt;();<a name="line.544"></a>
-<span class="sourceLineNo">545</span>    connect(primaryFuture, future);<a name="line.545"></a>
-<span class="sourceLineNo">546</span>    long startNs = System.nanoTime();<a name="line.546"></a>
-<span class="sourceLineNo">547</span>    // after the getRegionLocations, all the locations for the replicas of this region should have<a name="line.547"></a>
-<span class="sourceLineNo">548</span>    // been cached, so it is not big deal to locate them again when actually sending requests to<a name="line.548"></a>
-<span class="sourceLineNo">549</span>    // these replicas.<a name="line.549"></a>
-<span class="sourceLineNo">550</span>    addListener(locator.getRegionLocations(tableName, row, locateType, false, rpcTimeoutNs),<a name="line.550"></a>
-<span class="sourceLineNo">551</span>      (locs, error) -&gt; {<a name="line.551"></a>
-<span class="sourceLineNo">552</span>        if (error != null) {<a name="line.552"></a>
-<span class="sourceLineNo">553</span>          LOG.warn(<a name="line.553"></a>
-<span class="sourceLineNo">554</span>            "Failed to locate all the replicas for table={}, row='{}', locateType={}" +<a name="line.554"></a>
-<span class="sourceLineNo">555</span>              " give up timeline consistent read",<a name="line.555"></a>
-<span class="sourceLineNo">556</span>            tableName, Bytes.toStringBinary(row), locateType, error);<a name="line.556"></a>
-<span class="sourceLineNo">557</span>          return;<a name="line.557"></a>
-<span class="sourceLineNo">558</span>        }<a name="line.558"></a>
-<span class="sourceLineNo">559</span>        if (locs.size() &lt;= 1) {<a name="line.559"></a>
-<span class="sourceLineNo">560</span>          LOG.warn(<a name="line.560"></a>
-<span class="sourceLineNo">561</span>            "There are no secondary replicas for region {}, give up timeline consistent read",<a name="line.561"></a>
-<span class="sourceLineNo">562</span>            locs.getDefaultRegionLocation().getRegion());<a name="line.562"></a>
-<span class="sourceLineNo">563</span>          return;<a name="line.563"></a>
-<span class="sourceLineNo">564</span>        }<a name="line.564"></a>
-<span class="sourceLineNo">565</span>        long delayNs = primaryCallTimeoutNs - (System.nanoTime() - startNs);<a name="line.565"></a>
-<span class="sourceLineNo">566</span>        if (delayNs &lt;= 0) {<a name="line.566"></a>
-<span class="sourceLineNo">567</span>          sendRequestsToSecondaryReplicas(requestReplica, locs, future);<a name="line.567"></a>
-<span class="sourceLineNo">568</span>        } else {<a name="line.568"></a>
-<span class="sourceLineNo">569</span>          retryTimer.newTimeout(<a name="line.569"></a>
-<span class="sourceLineNo">570</span>            timeout -&gt; sendRequestsToSecondaryReplicas(requestReplica, locs, future), delayNs,<a name="line.570"></a>
-<span class="sourceLineNo">571</span>            TimeUnit.NANOSECONDS);<a name="line.571"></a>
-<span class="sourceLineNo">572</span>        }<a name="line.572"></a>
-<span class="sourceLineNo">573</span>      });<a name="line.573"></a>
-<span class="sourceLineNo">574</span>    return future;<a name="line.574"></a>
-<span class="sourceLineNo">575</span>  }<a name="line.575"></a>
-<span class="sourceLineNo">576</span><a name="line.576"></a>
-<span class="sourceLineNo">577</span>  // validate for well-formedness<a name="line.577"></a>
-<span class="sourceLineNo">578</span>  static void validatePut(Put put, int maxKeyValueSize) throws IllegalArgumentException {<a name="line.578"></a>
-<span class="sourceLineNo">579</span>    if (put.isEmpty()) {<a name="line.579"></a>
-<span class="sourceLineNo">580</span>      throw new IllegalArgumentException("No columns to insert");<a name="line.580"></a>
-<span class="sourceLineNo">581</span>    }<a name="line.581"></a>
-<span class="sourceLineNo">582</span>    if (maxKeyValueSize &gt; 0) {<a name="line.582"></a>
-<span class="sourceLineNo">583</span>      for (List&lt;Cell&gt; list : put.getFamilyCellMap().values()) {<a name="line.583"></a>
-<span class="sourceLineNo">584</span>        for (Cell cell : list) {<a name="line.584"></a>
-<span class="sourceLineNo">585</span>          if (cell.getSerializedSize() &gt; maxKeyValueSize) {<a name="line.585"></a>
-<span class="sourceLineNo">586</span>            throw new IllegalArgumentException("KeyValue size too large");<a name="line.586"></a>
-<span class="sourceLineNo">587</span>          }<a name="line.587"></a>
-<span class="sourceLineNo">588</span>        }<a name="line.588"></a>
-<span class="sourceLineNo">589</span>      }<a name="line.589"></a>
-<span class="sourceLineNo">590</span>    }<a name="line.590"></a>
-<span class="sourceLineNo">591</span>  }<a name="line.591"></a>
-<span class="sourceLineNo">592</span><a name="line.592"></a>
-<span class="sourceLineNo">593</span>  /**<a name="line.593"></a>
-<span class="sourceLineNo">594</span>   * Select the priority for the rpc call.<a name="line.594"></a>
-<span class="sourceLineNo">595</span>   * &lt;p/&gt;<a name="line.595"></a>
-<span class="sourceLineNo">596</span>   * The rules are:<a name="line.596"></a>
-<span class="sourceLineNo">597</span>   * &lt;ol&gt;<a name="line.597"></a>
-<span class="sourceLineNo">598</span>   * &lt;li&gt;If user set a priority explicitly, then just use it.&lt;/li&gt;<a name="line.598"></a>
-<span class="sourceLineNo">599</span>   * &lt;li&gt;For system table, use {@link HConstants#SYSTEMTABLE_QOS}.&lt;/li&gt;<a name="line.599"></a>
-<span class="sourceLineNo">600</span>   * &lt;li&gt;For other tables, use {@link HConstants#NORMAL_QOS}.&lt;/li&gt;<a name="line.600"></a>
-<span class="sourceLineNo">601</span>   * &lt;/ol&gt;<a name="line.601"></a>
-<span class="sourceLineNo">602</span>   * @param priority the priority set by user, can be {@link HConstants#PRIORITY_UNSET}.<a name="line.602"></a>
-<span class="sourceLineNo">603</span>   * @param tableName the table we operate on<a name="line.603"></a>
-<span class="sourceLineNo">604</span>   */<a name="line.604"></a>
-<span class="sourceLineNo">605</span>  static int calcPriority(int priority, TableName tableName) {<a name="line.605"></a>
-<span class="sourceLineNo">606</span>    if (priority != HConstants.PRIORITY_UNSET) {<a name="line.606"></a>
-<span class="sourceLineNo">607</span>      return priority;<a name="line.607"></a>
-<span class="sourceLineNo">608</span>    } else {<a name="line.608"></a>
-<span class="sourceLineNo">609</span>      return getPriority(tableName);<a name="line.609"></a>
-<span class="sourceLineNo">610</span>    }<a name="line.610"></a>
-<span class="sourceLineNo">611</span>  }<a name="line.611"></a>
-<span class="sourceLineNo">612</span><a name="line.612"></a>
-<span class="sourceLineNo">613</span>  static int getPriority(TableName tableName) {<a name="line.613"></a>
-<span class="sourceLineNo">614</span>    if (tableName.isSystemTable()) {<a name="line.614"></a>
-<span class="sourceLineNo">615</span>      return HConstants.SYSTEMTABLE_QOS;<a name="line.615"></a>
-<span class="sourceLineNo">616</span>    } else {<a name="line.616"></a>
-<span class="sourceLineNo">617</span>      return HConstants.NORMAL_QOS;<a name="line.617"></a>
-<span class="sourceLineNo">618</span>    }<a name="line.618"></a>
-<span class="sourceLineNo">619</span>  }<a name="line.619"></a>
-<span class="sourceLineNo">620</span>}<a name="line.620"></a>
+<span class="sourceLineNo">406</span>    if (isEmptyStopRow(scan.getStopRow())) {<a name="line.406"></a>
+<span class="sourceLineNo">407</span>      return false;<a name="line.407"></a>
+<span class="sourceLineNo">408</span>    }<a name="line.408"></a>
+<span class="sourceLineNo">409</span>    // no need to test the inclusive of the stop row as the start key of a region is included in<a name="line.409"></a>
+<span class="sourceLineNo">410</span>    // the region.<a name="line.410"></a>
+<span class="sourceLineNo">411</span>    return Bytes.compareTo(info.getStartKey(), scan.getStopRow()) &lt;= 0;<a name="line.411"></a>
+<span class="sourceLineNo">412</span>  }<a name="line.412"></a>
+<span class="sourceLineNo">413</span><a name="line.413"></a>
+<span class="sourceLineNo">414</span>  static &lt;T&gt; CompletableFuture&lt;List&lt;T&gt;&gt; allOf(List&lt;CompletableFuture&lt;T&gt;&gt; futures) {<a name="line.414"></a>
+<span class="sourceLineNo">415</span>    return CompletableFuture.allOf(futures.toArray(new CompletableFuture[0]))<a name="line.415"></a>
+<span class="sourceLineNo">416</span>      .thenApply(v -&gt; futures.stream().map(f -&gt; f.getNow(null)).collect(toList()));<a name="line.416"></a>
+<span class="sourceLineNo">417</span>  }<a name="line.417"></a>
+<span class="sourceLineNo">418</span><a name="line.418"></a>
+<span class="sourceLineNo">419</span>  public static ScanResultCache createScanResultCache(Scan scan) {<a name="line.419"></a>
+<span class="sourceLineNo">420</span>    if (scan.getAllowPartialResults()) {<a name="line.420"></a>
+<span class="sourceLineNo">421</span>      return new AllowPartialScanResultCache();<a name="line.421"></a>
+<span class="sourceLineNo">422</span>    } else if (scan.getBatch() &gt; 0) {<a name="line.422"></a>
+<span class="sourceLineNo">423</span>      return new BatchScanResultCache(scan.getBatch());<a name="line.423"></a>
+<span class="sourceLineNo">424</span>    } else {<a name="line.424"></a>
+<span class="sourceLineNo">425</span>      return new CompleteScanResultCache();<a name="line.425"></a>
+<span class="sourceLineNo">426</span>    }<a name="line.426"></a>
+<span class="sourceLineNo">427</span>  }<a name="line.427"></a>
+<span class="sourceLineNo">428</span><a name="line.428"></a>
+<span class="sourceLineNo">429</span>  private static final String MY_ADDRESS = getMyAddress();<a name="line.429"></a>
+<span class="sourceLineNo">430</span><a name="line.430"></a>
+<span class="sourceLineNo">431</span>  private static String getMyAddress() {<a name="line.431"></a>
+<span class="sourceLineNo">432</span>    try {<a name="line.432"></a>
+<span class="sourceLineNo">433</span>      return DNS.getDefaultHost("default", "default");<a name="line.433"></a>
+<span class="sourceLineNo">434</span>    } catch (UnknownHostException uhe) {<a name="line.434"></a>
+<span class="sourceLineNo">435</span>      LOG.error("cannot determine my address", uhe);<a name="line.435"></a>
+<span class="sourceLineNo">436</span>      return null;<a name="line.436"></a>
+<span class="sourceLineNo">437</span>    }<a name="line.437"></a>
+<span class="sourceLineNo">438</span>  }<a name="line.438"></a>
+<span class="sourceLineNo">439</span><a name="line.439"></a>
+<span class="sourceLineNo">440</span>  static boolean isRemote(String host) {<a name="line.440"></a>
+<span class="sourceLineNo">441</span>    return !host.equalsIgnoreCase(MY_ADDRESS);<a name="line.441"></a>
+<span class="sourceLineNo">442</span>  }<a name="line.442"></a>
+<span class="sourceLineNo">443</span><a name="line.443"></a>
+<span class="sourceLineNo">444</span>  static void incRPCCallsMetrics(ScanMetrics scanMetrics, boolean isRegionServerRemote) {<a name="line.444"></a>
+<span class="sourceLineNo">445</span>    if (scanMetrics == null) {<a name="line.445"></a>
+<span class="sourceLineNo">446</span>      return;<a name="line.446"></a>
+<span class="sourceLineNo">447</span>    }<a name="line.447"></a>
+<span class="sourceLineNo">448</span>    scanMetrics.countOfRPCcalls.incrementAndGet();<a name="line.448"></a>
+<span class="sourceLineNo">449</span>    if (isRegionServerRemote) {<a name="line.449"></a>
+<span class="sourceLineNo">450</span>      scanMetrics.countOfRemoteRPCcalls.incrementAndGet();<a name="line.450"></a>
+<span class="sourceLineNo">451</span>    }<a name="line.451"></a>
+<span class="sourceLineNo">452</span>  }<a name="line.452"></a>
+<span class="sourceLineNo">453</span><a name="line.453"></a>
+<span class="sourceLineNo">454</span>  static void incRPCRetriesMetrics(ScanMetrics scanMetrics, boolean isRegionServerRemote) {<a name="line.454"></a>
+<span class="sourceLineNo">455</span>    if (scanMetrics == null) {<a name="line.455"></a>
+<span class="sourceLineNo">456</span>      return;<a name="line.456"></a>
+<span class="sourceLineNo">457</span>    }<a name="line.457"></a>
+<span class="sourceLineNo">458</span>    scanMetrics.countOfRPCRetries.incrementAndGet();<a name="line.458"></a>
+<span class="sourceLineNo">459</span>    if (isRegionServerRemote) {<a name="line.459"></a>
+<span class="sourceLineNo">460</span>      scanMetrics.countOfRemoteRPCRetries.incrementAndGet();<a name="line.460"></a>
+<span class="sourceLineNo">461</span>    }<a name="line.461"></a>
+<span class="sourceLineNo">462</span>  }<a name="line.462"></a>
+<span class="sourceLineNo">463</span><a name="line.463"></a>
+<span class="sourceLineNo">464</span>  static void updateResultsMetrics(ScanMetrics scanMetrics, Result[] rrs,<a name="line.464"></a>
+<span class="sourceLineNo">465</span>      boolean isRegionServerRemote) {<a name="line.465"></a>
+<span class="sourceLineNo">466</span>    if (scanMetrics == null || rrs == null || rrs.length == 0) {<a name="line.466"></a>
+<span class="sourceLineNo">467</span>      return;<a name="line.467"></a>
+<span class="sourceLineNo">468</span>    }<a name="line.468"></a>
+<span class="sourceLineNo">469</span>    long resultSize = 0;<a name="line.469"></a>
+<span class="sourceLineNo">470</span>    for (Result rr : rrs) {<a name="line.470"></a>
+<span class="sourceLineNo">471</span>      for (Cell cell : rr.rawCells()) {<a name="line.471"></a>
+<span class="sourceLineNo">472</span>        resultSize += PrivateCellUtil.estimatedSerializedSizeOf(cell);<a name="line.472"></a>
+<span class="sourceLineNo">473</span>      }<a name="line.473"></a>
+<span class="sourceLineNo">474</span>    }<a name="line.474"></a>
+<span class="sourceLineNo">475</span>    scanMetrics.countOfBytesInResults.addAndGet(resultSize);<a name="line.475"></a>
+<span class="sourceLineNo">476</span>    if (isRegionServerRemote) {<a name="line.476"></a>
+<span class="sourceLineNo">477</span>      scanMetrics.countOfBytesInRemoteResults.addAndGet(resultSize);<a name="line.477"></a>
+<span class="sourceLineNo">478</span>    }<a name="line.478"></a>
+<span class="sourceLineNo">479</span>  }<a name="line.479"></a>
+<span class="sourceLineNo">480</span><a name="line.480"></a>
+<span class="sourceLineNo">481</span>  /**<a name="line.481"></a>
+<span class="sourceLineNo">482</span>   * Use the scan metrics returned by the server to add to the identically named counters in the<a name="line.482"></a>
+<span class="sourceLineNo">483</span>   * client side metrics. If a counter does not exist with the same name as the server side metric,<a name="line.483"></a>
+<span class="sourceLineNo">484</span>   * the attempt to increase the counter will fail.<a name="line.484"></a>
+<span class="sourceLineNo">485</span>   */<a name="line.485"></a>
+<span class="sourceLineNo">486</span>  static void updateServerSideMetrics(ScanMetrics scanMetrics, ScanResponse response) {<a name="line.486"></a>
+<span class="sourceLineNo">487</span>    if (scanMetrics == null || response == null || !response.hasScanMetrics()) {<a name="line.487"></a>
+<span class="sourceLineNo">488</span>      return;<a name="line.488"></a>
+<span class="sourceLineNo">489</span>    }<a name="line.489"></a>
+<span class="sourceLineNo">490</span>    ResponseConverter.getScanMetrics(response).forEach(scanMetrics::addToCounter);<a name="line.490"></a>
+<span class="sourceLineNo">491</span>  }<a name="line.491"></a>
+<span class="sourceLineNo">492</span><a name="line.492"></a>
+<span class="sourceLineNo">493</span>  static void incRegionCountMetrics(ScanMetrics scanMetrics) {<a name="line.493"></a>
+<span class="sourceLineNo">494</span>    if (scanMetrics == null) {<a name="line.494"></a>
+<span class="sourceLineNo">495</span>      return;<a name="line.495"></a>
+<span class="sourceLineNo">496</span>    }<a name="line.496"></a>
+<span class="sourceLineNo">497</span>    scanMetrics.countOfRegions.incrementAndGet();<a name="line.497"></a>
+<span class="sourceLineNo">498</span>  }<a name="line.498"></a>
+<span class="sourceLineNo">499</span><a name="line.499"></a>
+<span class="sourceLineNo">500</span>  /**<a name="line.500"></a>
+<span class="sourceLineNo">501</span>   * Connect the two futures, if the src future is done, then mark the dst future as done. And if<a name="line.501"></a>
+<span class="sourceLineNo">502</span>   * the dst future is done, then cancel the src future. This is used for timeline consistent read.<a name="line.502"></a>
+<span class="sourceLineNo">503</span>   */<a name="line.503"></a>
+<span class="sourceLineNo">504</span>  private static &lt;T&gt; void connect(CompletableFuture&lt;T&gt; srcFuture, CompletableFuture&lt;T&gt; dstFuture) {<a name="line.504"></a>
+<span class="sourceLineNo">505</span>    addListener(srcFuture, (r, e) -&gt; {<a name="line.505"></a>
+<span class="sourceLineNo">506</span>      if (e != null) {<a name="line.506"></a>
+<span class="sourceLineNo">507</span>        dstFuture.completeExceptionally(e);<a name="line.507"></a>
+<span class="sourceLineNo">508</span>      } else {<a name="line.508"></a>
+<span class="sourceLineNo">509</span>        dstFuture.complete(r);<a name="line.509"></a>
+<span class="sourceLineNo">510</span>      }<a name="line.510"></a>
+<span class="sourceLineNo">511</span>    });<a name="line.511"></a>
+<span class="sourceLineNo">512</span>    // The cancellation may be a dummy one as the dstFuture may be completed by this srcFuture.<a name="line.512"></a>
+<span class="sourceLineNo">513</span>    // Notice that this is a bit tricky, as the execution chain maybe 'complete src -&gt; complete dst<a name="line.513"></a>
+<span class="sourceLineNo">514</span>    // -&gt; cancel src', for now it seems to be fine, as the will use CAS to set the result first in<a name="line.514"></a>
+<span class="sourceLineNo">515</span>    // CompletableFuture. If later this causes problems, we could use whenCompleteAsync to break the<a name="line.515"></a>
+<span class="sourceLineNo">516</span>    // tie.<a name="line.516"></a>
+<span class="sourceLineNo">517</span>    addListener(dstFuture, (r, e) -&gt; srcFuture.cancel(false));<a name="line.517"></a>
+<span class="sourceLineNo">518</span>  }<a name="line.518"></a>
+<span class="sourceLineNo">519</span><a name="line.519"></a>
+<span class="sourceLineNo">520</span>  private static &lt;T&gt; void sendRequestsToSecondaryReplicas(<a name="line.520"></a>
+<span class="sourceLineNo">521</span>      Function&lt;Integer, CompletableFuture&lt;T&gt;&gt; requestReplica, RegionLocations locs,<a name="line.521"></a>
+<span class="sourceLineNo">522</span>      CompletableFuture&lt;T&gt; future) {<a name="line.522"></a>
+<span class="sourceLineNo">523</span>    if (future.isDone()) {<a name="line.523"></a>
+<span class="sourceLineNo">524</span>      // do not send requests to secondary replicas if the future is done, i.e, the primary request<a name="line.524"></a>
+<span class="sourceLineNo">525</span>      // has already been finished.<a name="line.525"></a>
+<span class="sourceLineNo">526</span>      return;<a name="line.526"></a>
+<span class="sourceLineNo">527</span>    }<a name="line.527"></a>
+<span class="sourceLineNo">528</span>    for (int replicaId = 1, n = locs.size(); replicaId &lt; n; replicaId++) {<a name="line.528"></a>
+<span class="sourceLineNo">529</span>      CompletableFuture&lt;T&gt; secondaryFuture = requestReplica.apply(replicaId);<a name="line.529"></a>
+<span class="sourceLineNo">530</span>      connect(secondaryFuture, future);<a name="line.530"></a>
+<span class="sourceLineNo">531</span>    }<a name="line.531"></a>
+<span class="sourceLineNo">532</span>  }<a name="line.532"></a>
+<span class="sourceLineNo">533</span><a name="line.533"></a>
+<span class="sourceLineNo">534</span>  static &lt;T&gt; CompletableFuture&lt;T&gt; timelineConsistentRead(AsyncRegionLocator locator,<a name="line.534"></a>
+<span class="sourceLineNo">535</span>      TableName tableName, Query query, byte[] row, RegionLocateType locateType,<a name="line.535"></a>
+<span class="sourceLineNo">536</span>      Function&lt;Integer, CompletableFuture&lt;T&gt;&gt; requestReplica, long rpcTimeoutNs,<a name="line.536"></a>
+<span class="sourceLineNo">537</span>      long primaryCallTimeoutNs, Timer retryTimer) {<a name="line.537"></a>
+<span class="sourceLineNo">538</span>    if (query.getConsistency() == Consistency.STRONG) {<a name="line.538"></a>
+<span class="sourceLineNo">539</span>      return requestReplica.apply(RegionReplicaUtil.DEFAULT_REPLICA_ID);<a name="line.539"></a>
+<span class="sourceLineNo">540</span>    }<a name="line.540"></a>
+<span class="sourceLineNo">541</span>    // user specifies a replica id explicitly, just send request to the specific replica<a name="line.541"></a>
+<span class="sourceLineNo">542</span>    if (query.getReplicaId() &gt;= 0) {<a name="line.542"></a>
+<span class="sourceLineNo">543</span>      return requestReplica.apply(query.getReplicaId());<a name="line.543"></a>
+<span class="sourceLineNo">544</span>    }<a name="line.544"></a>
+<span class="sourceLineNo">545</span>    // Timeline consistent read, where we may send requests to other region replicas<a name="line.545"></a>
+<span class="sourceLineNo">546</span>    CompletableFuture&lt;T&gt; primaryFuture = requestReplica.apply(RegionReplicaUtil.DEFAULT_REPLICA_ID);<a name="line.546"></a>
+<span class="sourceLineNo">547</span>    CompletableFuture&lt;T&gt; future = new CompletableFuture&lt;&gt;();<a name="line.547"></a>
+<span class="sourceLineNo">548</span>    connect(primaryFuture, future);<a name="line.548"></a>
+<span class="sourceLineNo">549</span>    long startNs = System.nanoTime();<a name="line.549"></a>
+<span class="sourceLineNo">550</span>    // after the getRegionLocations, all the locations for the replicas of this region should have<a name="line.550"></a>
+<span class="sourceLineNo">551</span>    // been cached, so it is not big deal to locate them again when actually sending requests to<a name="line.551"></a>
+<span class="sourceLineNo">552</span>    // these replicas.<a name="line.552"></a>
+<span class="sourceLineNo">553</span>    addListener(locator.getRegionLocations(tableName, row, locateType, false, rpcTimeoutNs),<a name="line.553"></a>
+<span class="sourceLineNo">554</span>      (locs, error) -&gt; {<a name="line.554"></a>
+<span class="sourceLineNo">555</span>        if (error != null) {<a name="line.555"></a>
+<span class="sourceLineNo">556</span>          LOG.warn(<a name="line.556"></a>
+<span class="sourceLineNo">557</span>            "Failed to locate all the replicas for table={}, row='{}', locateType={}" +<a name="line.557"></a>
+<span class="sourceLineNo">558</span>              " give up timeline consistent read",<a name="line.558"></a>
+<span class="sourceLineNo">559</span>            tableName, Bytes.toStringBinary(row), locateType, error);<a name="line.559"></a>
+<span class="sourceLineNo">560</span>          return;<a name="line.560"></a>
+<span class="sourceLineNo">561</span>        }<a name="line.561"></a>
+<span class="sourceLineNo">562</span>        if (locs.size() &lt;= 1) {<a name="line.562"></a>
+<span class="sourceLineNo">563</span>          LOG.warn(<a name="line.563"></a>
+<span class="sourceLineNo">564</span>            "There are no secondary replicas for region {}, give up timeline consistent read",<a name="line.564"></a>
+<span class="sourceLineNo">565</span>            locs.getDefaultRegionLocation().getRegion());<a name="line.565"></a>
+<span class="sourceLineNo">566</span>          return;<a name="line.566"></a>
+<span class="sourceLineNo">567</span>        }<a name="line.567"></a>
+<span class="sourceLineNo">568</span>        long delayNs = primaryCallTimeoutNs - (System.nanoTime() - startNs);<a name="line.568"></a>
+<span class="sourceLineNo">569</span>        if (delayNs &lt;= 0) {<a name="line.569"></a>
+<span class="sourceLineNo">570</span>          sendRequestsToSecondaryReplicas(requestReplica, locs, future);<a name="line.570"></a>
+<span class="sourceLineNo">571</span>        } else {<a name="line.571"></a>
+<span class="sourceLineNo">572</span>          retryTimer.newTimeout(<a name="line.572"></a>
+<span class="sourceLineNo">573</span>            timeout -&gt; sendRequestsToSecondaryReplicas(requestReplica, locs, future), delayNs,<a name="line.573"></a>
+<span class="sourceLineNo">574</span>            TimeUnit.NANOSECONDS);<a name="line.574"></a>
+<span class="sourceLineNo">575</span>        }<a name="line.575"></a>
+<span class="sourceLineNo">576</span>      });<a name="line.576"></a>
+<span class="sourceLineNo">577</span>    return future;<a name="line.577"></a>
+<span class="sourceLineNo">578</span>  }<a name="line.578"></a>
+<span class="sourceLineNo">579</span><a name="line.579"></a>
+<span class="sourceLineNo">580</span>  // validate for well-formedness<a name="line.580"></a>
+<span class="sourceLineNo">581</span>  static void validatePut(Put put, int maxKeyValueSize) throws IllegalArgumentException {<a name="line.581"></a>
+<span class="sourceLineNo">582</span>    if (put.isEmpty()) {<a name="line.582"></a>
+<span class="sourceLineNo">583</span>      throw new IllegalArgumentException("No columns to insert");<a name="line.583"></a>
+<span class="sourceLineNo">584</span>    }<a name="line.584"></a>
+<span class="sourceLineNo">585</span>    if (maxKeyValueSize &gt; 0) {<a name="line.585"></a>
+<span class="sourceLineNo">586</span>      for (List&lt;Cell&gt; list : put.getFamilyCellMap().values()) {<a name="line.586"></a>
+<span class="sourceLineNo">587</span>        for (Cell cell : list) {<a name="line.587"></a>
+<span class="sourceLineNo">588</span>          if (cell.getSerializedSize() &gt; maxKeyValueSize) {<a name="line.588"></a>
+<span class="sourceLineNo">589</span>            throw new IllegalArgumentException("KeyValue size too large");<a name="line.589"></a>
+<span class="sourceLineNo">590</span>          }<a name="line.590"></a>
+<span class="sourceLineNo">591</span>        }<a name="line.591"></a>
+<span class="sourceLineNo">592</span>      }<a name="line.592"></a>
+<span class="sourceLineNo">593</span>    }<a name="line.593"></a>
+<span class="sourceLineNo">594</span>  }<a name="line.594"></a>
+<span class="sourceLineNo">595</span><a name="line.595"></a>
+<span class="sourceLineNo">596</span>  /**<a name="line.596"></a>
+<span class="sourceLineNo">597</span>   * Select the priority for the rpc call.<a name="line.597"></a>
+<span class="sourceLineNo">598</span>   * &lt;p/&gt;<a name="line.598"></a>
+<span class="sourceLineNo">599</span>   * The rules are:<a name="line.599"></a>
+<span class="sourceLineNo">600</span>   * &lt;ol&gt;<a name="line.600"></a>
+<span class="sourceLineNo">601</span>   * &lt;li&gt;If user set a priority explicitly, then just use it.&lt;/li&gt;<a name="line.601"></a>
+<span class="sourceLineNo">602</span>   * &lt;li&gt;For system table, use {@link HConstants#SYSTEMTABLE_QOS}.&lt;/li&gt;<a name="line.602"></a>
+<span class="sourceLineNo">603</span>   * &lt;li&gt;For other tables, use {@link HConstants#NORMAL_QOS}.&lt;/li&gt;<a name="line.603"></a>
+<span class="sourceLineNo">604</span>   * &lt;/ol&gt;<a name="line.604"></a>
+<span class="sourceLineNo">605</span>   * @param priority the priority set by user, can be {@link HConstants#PRIORITY_UNSET}.<a name="line.605"></a>
+<span class="sourceLineNo">606</span>   * @param tableName the table we operate on<a name="line.606"></a>
+<span class="sourceLineNo">607</span>   */<a name="line.607"></a>
+<span class="sourceLineNo">608</span>  static int calcPriority(int priority, TableName tableName) {<a name="line.608"></a>
+<span class="sourceLineNo">609</span>    if (priority != HConstants.PRIORITY_UNSET) {<a name="line.609"></a>
+<span class="sourceLineNo">610</span>      return priority;<a name="line.610"></a>
+<span class="sourceLineNo">611</span>    } else {<a name="line.611"></a>
+<span class="sourceLineNo">612</span>      return getPriority(tableName);<a name="line.612"></a>
+<span class="sourceLineNo">613</span>    }<a name="line.613"></a>
+<span class="sourceLineNo">614</span>  }<a name="line.614"></a>
+<span class="sourceLineNo">615</span><a name="line.615"></a>
+<span class="sourceLineNo">616</span>  static int getPriority(TableName tableName) {<a name="line.616"></a>
+<span class="sourceLineNo">617</span>    if (tableName.isSystemTable()) {<a name="line.617"></a>
+<span class="sourceLineNo">618</span>      return HConstants.SYSTEMTABLE_QOS;<a name="line.618"></a>
+<span class="sourceLineNo">619</span>    } else {<a name="line.619"></a>
+<span class="sourceLineNo">620</span>      return HConstants.NORMAL_QOS;<a name="line.620"></a>
+<span class="sourceLineNo">621</span>    }<a name="line.621"></a>
+<span class="sourceLineNo">622</span>  }<a name="line.622"></a>
+<span class="sourceLineNo">623</span><a name="line.623"></a>
+<span class="sourceLineNo">624</span>  static &lt;T&gt; CompletableFuture&lt;T&gt; getOrFetch(AtomicReference&lt;T&gt; cacheRef,<a name="line.624"></a>
+<span class="sourceLineNo">625</span>      AtomicReference&lt;CompletableFuture&lt;T&gt;&gt; futureRef, boolean reload,<a name="line.625"></a>
+<span class="sourceLineNo">626</span>      Supplier&lt;CompletableFuture&lt;T&gt;&gt; fetch, Predicate&lt;T&gt; validator, String type) {<a name="line.626"></a>
+<span class="sourceLineNo">627</span>    for (;;) {<a name="line.627"></a>
+<span class="sourceLineNo">628</span>      if (!reload) {<a name="line.628"></a>
+<span class="sourceLineNo">629</span>        T value = cacheRef.get();<a name="line.629"></a>
+<span class="sourceLineNo">630</span>        if (value != null &amp;&amp; validator.test(value)) {<a name="line.630"></a>
+<span class="sourceLineNo">631</span>          return CompletableFuture.completedFuture(value);<a name="line.631"></a>
+<span class="sourceLineNo">632</span>        }<a name="line.632"></a>
+<span class="sourceLineNo">633</span>      }<a name="line.633"></a>
+<span class="sourceLineNo">634</span>      LOG.trace("{} cache is null, try fetching from registry", type);<a name="line.634"></a>
+<span class="sourceLineNo">635</span>      if (futureRef.compareAndSet(null, new CompletableFuture&lt;&gt;())) {<a name="line.635"></a>
+<span class="sourceLineNo">636</span>        LOG.debug("Start fetching{} from registry", type);<a name="line.636"></a>
+<span class="sourceLineNo">637</span>        CompletableFuture&lt;T&gt; future = futureRef.get();<a name="line.637"></a>
+<span class="sourceLineNo">638</span>        addListener(fetch.get(), (value, error) -&gt; {<a name="line.638"></a>
+<span class="sourceLineNo">639</span>          if (error != null) {<a name="line.639"></a>
+<span class="sourceLineNo">640</span>            LOG.debug("Failed to fetch {} from registry", type, error);<a name="line.640"></a>
+<span class="sourceLineNo">641</span>            futureRef.getAndSet(null).completeExceptionally(error);<a name="line.641"></a>
+<span class="sourceLineNo">642</span>            return;<a name="line.642"></a>
+<span class="sourceLineNo">643</span>          }<a name="line.643"></a>
+<span class="sourceLineNo">644</span>          LOG.debug("The fetched {} is {}", type, value);<a name="line.644"></a>
+<span class="sourceLineNo">645</span>          // Here we update cache before reset future, so it is possible that someone can get a<a name="line.645"></a>
+<span class="sourceLineNo">646</span>          // stale value. Consider this:<a name="line.646"></a>
+<span class="sourceLineNo">647</span>          // 1. update cacheRef<a name="line.647"></a>
+<span class="sourceLineNo">648</span>          // 2. someone clears the cache and relocates again<a name="line.648"></a>
+<span class="sourceLineNo">649</span>          // 3. the futureRef is not null so the old future is used.<a name="line.649"></a>
+<span class="sourceLineNo">650</span>          // 4. we clear futureRef and complete the future in it with the value being<a name="line.650"></a>
+<span class="sourceLineNo">651</span>          // cleared in step 2.<a name="line.651"></a>
+<span class="sourceLineNo">652</span>          // But we do not think it is a big deal as it rarely happens, and even if it happens, the<a name="line.652"></a>
+<span class="sourceLineNo">653</span>          // caller will retry again later, no correctness problems.<a name="line.653"></a>
+<span class="sourceLineNo">654</span>          cacheRef.set(value);<a name="line.654"></a>
+<span class="sourceLineNo">655</span>          futureRef.set(null);<a name="line.655"></a>
+<span class="sourceLineNo">656</span>          future.complete(value);<a name="line.656"></a>
+<span class="sourceLineNo">657</span>        });<a name="line.657"></a>
+<span class="sourceLineNo">658</span>        return future;<a name="line.658"></a>
+<span class="sourceLineNo">659</span>      } else {<a name="line.659"></a>
+<span class="sourceLineNo">660</span>        CompletableFuture&lt;T&gt; future = futureRef.get();<a name="line.660"></a>
+<span class="sourceLineNo">661</span>        if (future != null) {<a name="line.661"></a>
+<span class="sourceLineNo">662</span>          return future;<a name="line.662"></a>
+<span class="sourceLineNo">663</span>        }<a name="line.663"></a>
+<span class="sourceLineNo">664</span>      }<a name="line.664"></a>
+<span class="sourceLineNo">665</span>    }<a name="line.665"></a>
+<span class="sourceLineNo">666</span>  }<a name="line.666"></a>
+<span class="sourceLineNo">667</span>}<a name="line.667"></a>
 
 
 
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html b/devapidocs/src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html
index 49ca6d8..ff9e4cd 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/client/ConnectionUtils.html
@@ -40,592 +40,639 @@
 <span class="sourceLineNo">032</span>import java.util.concurrent.ExecutorService;<a name="line.32"></a>
 <span class="sourceLineNo">033</span>import java.util.concurrent.ThreadLocalRandom;<a name="line.33"></a>
 <span class="sourceLineNo">034</span>import java.util.concurrent.TimeUnit;<a name="line.34"></a>
-<span class="sourceLineNo">035</span>import java.util.function.Function;<a name="line.35"></a>
-<span class="sourceLineNo">036</span>import org.apache.hadoop.conf.Configuration;<a name="line.36"></a>
-<span class="sourceLineNo">037</span>import org.apache.hadoop.hbase.Cell;<a name="line.37"></a>
-<span class="sourceLineNo">038</span>import org.apache.hadoop.hbase.CellComparator;<a name="line.38"></a>
-<span class="sourceLineNo">039</span>import org.apache.hadoop.hbase.HConstants;<a name="line.39"></a>
-<span class="sourceLineNo">040</span>import org.apache.hadoop.hbase.PrivateCellUtil;<a name="line.40"></a>
-<span class="sourceLineNo">041</span>import org.apache.hadoop.hbase.RegionLocations;<a name="line.41"></a>
-<span class="sourceLineNo">042</span>import org.apache.hadoop.hbase.ServerName;<a name="line.42"></a>
-<span class="sourceLineNo">043</span>import org.apache.hadoop.hbase.TableName;<a name="line.43"></a>
-<span class="sourceLineNo">044</span>import org.apache.hadoop.hbase.client.metrics.ScanMetrics;<a name="line.44"></a>
-<span class="sourceLineNo">045</span>import org.apache.hadoop.hbase.ipc.HBaseRpcController;<a name="line.45"></a>
-<span class="sourceLineNo">046</span>import org.apache.hadoop.hbase.security.User;<a name="line.46"></a>
-<span class="sourceLineNo">047</span>import org.apache.hadoop.hbase.security.UserProvider;<a name="line.47"></a>
-<span class="sourceLineNo">048</span>import org.apache.hadoop.hbase.util.Bytes;<a name="line.48"></a>
-<span class="sourceLineNo">049</span>import org.apache.hadoop.hbase.util.ReflectionUtils;<a name="line.49"></a>
-<span class="sourceLineNo">050</span>import org.apache.hadoop.ipc.RemoteException;<a name="line.50"></a>
-<span class="sourceLineNo">051</span>import org.apache.hadoop.net.DNS;<a name="line.51"></a>
-<span class="sourceLineNo">052</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.52"></a>
-<span class="sourceLineNo">053</span>import org.slf4j.Logger;<a name="line.53"></a>
-<span class="sourceLineNo">054</span>import org.slf4j.LoggerFactory;<a name="line.54"></a>
-<span class="sourceLineNo">055</span><a name="line.55"></a>
-<span class="sourceLineNo">056</span>import org.apache.hbase.thirdparty.com.google.common.annotations.VisibleForTesting;<a name="line.56"></a>
-<span class="sourceLineNo">057</span>import org.apache.hbase.thirdparty.com.google.common.base.Preconditions;<a name="line.57"></a>
-<span class="sourceLineNo">058</span>import org.apache.hbase.thirdparty.com.google.protobuf.ServiceException;<a name="line.58"></a>
-<span class="sourceLineNo">059</span>import org.apache.hbase.thirdparty.io.netty.util.Timer;<a name="line.59"></a>
-<span class="sourceLineNo">060</span><a name="line.60"></a>
-<span class="sourceLineNo">061</span>import org.apache.hadoop.hbase.shaded.protobuf.ResponseConverter;<a name="line.61"></a>
-<span class="sourceLineNo">062</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.AdminService;<a name="line.62"></a>
-<span class="sourceLineNo">063</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService;<a name="line.63"></a>
-<span class="sourceLineNo">064</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ScanResponse;<a name="line.64"></a>
-<span class="sourceLineNo">065</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService;<a name="line.65"></a>
-<span class="sourceLineNo">066</span><a name="line.66"></a>
-<span class="sourceLineNo">067</span>/**<a name="line.67"></a>
-<span class="sourceLineNo">068</span> * Utility used by client connections.<a name="line.68"></a>
-<span class="sourceLineNo">069</span> */<a name="line.69"></a>
-<span class="sourceLineNo">070</span>@InterfaceAudience.Private<a name="line.70"></a>
-<span class="sourceLineNo">071</span>public final class ConnectionUtils {<a name="line.71"></a>
-<span class="sourceLineNo">072</span><a name="line.72"></a>
-<span class="sourceLineNo">073</span>  private static final Logger LOG = LoggerFactory.getLogger(ConnectionUtils.class);<a name="line.73"></a>
-<span class="sourceLineNo">074</span><a name="line.74"></a>
-<span class="sourceLineNo">075</span>  private ConnectionUtils() {<a name="line.75"></a>
-<span class="sourceLineNo">076</span>  }<a name="line.76"></a>
+<span class="sourceLineNo">035</span>import java.util.concurrent.atomic.AtomicReference;<a name="line.35"></a>
+<span class="sourceLineNo">036</span>import java.util.function.Function;<a name="line.36"></a>
+<span class="sourceLineNo">037</span>import java.util.function.Predicate;<a name="line.37"></a>
+<span class="sourceLineNo">038</span>import java.util.function.Supplier;<a name="line.38"></a>
+<span class="sourceLineNo">039</span>import org.apache.hadoop.conf.Configuration;<a name="line.39"></a>
+<span class="sourceLineNo">040</span>import org.apache.hadoop.hbase.Cell;<a name="line.40"></a>
+<span class="sourceLineNo">041</span>import org.apache.hadoop.hbase.CellComparator;<a name="line.41"></a>
+<span class="sourceLineNo">042</span>import org.apache.hadoop.hbase.HConstants;<a name="line.42"></a>
+<span class="sourceLineNo">043</span>import org.apache.hadoop.hbase.PrivateCellUtil;<a name="line.43"></a>
+<span class="sourceLineNo">044</span>import org.apache.hadoop.hbase.RegionLocations;<a name="line.44"></a>
+<span class="sourceLineNo">045</span>import org.apache.hadoop.hbase.ServerName;<a name="line.45"></a>
+<span class="sourceLineNo">046</span>import org.apache.hadoop.hbase.TableName;<a name="line.46"></a>
+<span class="sourceLineNo">047</span>import org.apache.hadoop.hbase.client.metrics.ScanMetrics;<a name="line.47"></a>
+<span class="sourceLineNo">048</span>import org.apache.hadoop.hbase.ipc.HBaseRpcController;<a name="line.48"></a>
+<span class="sourceLineNo">049</span>import org.apache.hadoop.hbase.security.User;<a name="line.49"></a>
+<span class="sourceLineNo">050</span>import org.apache.hadoop.hbase.security.UserProvider;<a name="line.50"></a>
+<span class="sourceLineNo">051</span>import org.apache.hadoop.hbase.util.Bytes;<a name="line.51"></a>
+<span class="sourceLineNo">052</span>import org.apache.hadoop.hbase.util.ReflectionUtils;<a name="line.52"></a>
+<span class="sourceLineNo">053</span>import org.apache.hadoop.ipc.RemoteException;<a name="line.53"></a>
+<span class="sourceLineNo">054</span>import org.apache.hadoop.net.DNS;<a name="line.54"></a>
+<span class="sourceLineNo">055</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.55"></a>
+<span class="sourceLineNo">056</span>import org.slf4j.Logger;<a name="line.56"></a>
+<span class="sourceLineNo">057</span>import org.slf4j.LoggerFactory;<a name="line.57"></a>
+<span class="sourceLineNo">058</span><a name="line.58"></a>
+<span class="sourceLineNo">059</span>import org.apache.hbase.thirdparty.com.google.common.annotations.VisibleForTesting;<a name="line.59"></a>
+<span class="sourceLineNo">060</span>import org.apache.hbase.thirdparty.com.google.common.base.Preconditions;<a name="line.60"></a>
+<span class="sourceLineNo">061</span>import org.apache.hbase.thirdparty.com.google.protobuf.ServiceException;<a name="line.61"></a>
+<span class="sourceLineNo">062</span>import org.apache.hbase.thirdparty.io.netty.util.Timer;<a name="line.62"></a>
+<span class="sourceLineNo">063</span><a name="line.63"></a>
+<span class="sourceLineNo">064</span>import org.apache.hadoop.hbase.shaded.protobuf.ResponseConverter;<a name="line.64"></a>
+<span class="sourceLineNo">065</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.AdminService;<a name="line.65"></a>
+<span class="sourceLineNo">066</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService;<a name="line.66"></a>
+<span class="sourceLineNo">067</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ScanResponse;<a name="line.67"></a>
+<span class="sourceLineNo">068</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService;<a name="line.68"></a>
+<span class="sourceLineNo">069</span><a name="line.69"></a>
+<span class="sourceLineNo">070</span>/**<a name="line.70"></a>
+<span class="sourceLineNo">071</span> * Utility used by client connections.<a name="line.71"></a>
+<span class="sourceLineNo">072</span> */<a name="line.72"></a>
+<span class="sourceLineNo">073</span>@InterfaceAudience.Private<a name="line.73"></a>
+<span class="sourceLineNo">074</span>public final class ConnectionUtils {<a name="line.74"></a>
+<span class="sourceLineNo">075</span><a name="line.75"></a>
+<span class="sourceLineNo">076</span>  private static final Logger LOG = LoggerFactory.getLogger(ConnectionUtils.class);<a name="line.76"></a>
 <span class="sourceLineNo">077</span><a name="line.77"></a>
-<span class="sourceLineNo">078</span>  /**<a name="line.78"></a>
-<span class="sourceLineNo">079</span>   * Calculate pause time. Built on {@link HConstants#RETRY_BACKOFF}.<a name="line.79"></a>
-<span class="sourceLineNo">080</span>   * @param pause time to pause<a name="line.80"></a>
-<span class="sourceLineNo">081</span>   * @param tries amount of tries<a name="line.81"></a>
-<span class="sourceLineNo">082</span>   * @return How long to wait after &lt;code&gt;tries&lt;/code&gt; retries<a name="line.82"></a>
-<span class="sourceLineNo">083</span>   */<a name="line.83"></a>
-<span class="sourceLineNo">084</span>  public static long getPauseTime(final long pause, final int tries) {<a name="line.84"></a>
-<span class="sourceLineNo">085</span>    int ntries = tries;<a name="line.85"></a>
-<span class="sourceLineNo">086</span>    if (ntries &gt;= HConstants.RETRY_BACKOFF.length) {<a name="line.86"></a>
-<span class="sourceLineNo">087</span>      ntries = HConstants.RETRY_BACKOFF.length - 1;<a name="line.87"></a>
-<span class="sourceLineNo">088</span>    }<a name="line.88"></a>
-<span class="sourceLineNo">089</span>    if (ntries &lt; 0) {<a name="line.89"></a>
-<span class="sourceLineNo">090</span>      ntries = 0;<a name="line.90"></a>
+<span class="sourceLineNo">078</span>  private ConnectionUtils() {<a name="line.78"></a>
+<span class="sourceLineNo">079</span>  }<a name="line.79"></a>
+<span class="sourceLineNo">080</span><a name="line.80"></a>
+<span class="sourceLineNo">081</span>  /**<a name="line.81"></a>
+<span class="sourceLineNo">082</span>   * Calculate pause time. Built on {@link HConstants#RETRY_BACKOFF}.<a name="line.82"></a>
+<span class="sourceLineNo">083</span>   * @param pause time to pause<a name="line.83"></a>
+<span class="sourceLineNo">084</span>   * @param tries amount of tries<a name="line.84"></a>
+<span class="sourceLineNo">085</span>   * @return How long to wait after &lt;code&gt;tries&lt;/code&gt; retries<a name="line.85"></a>
+<span class="sourceLineNo">086</span>   */<a name="line.86"></a>
+<span class="sourceLineNo">087</span>  public static long getPauseTime(final long pause, final int tries) {<a name="line.87"></a>
+<span class="sourceLineNo">088</span>    int ntries = tries;<a name="line.88"></a>
+<span class="sourceLineNo">089</span>    if (ntries &gt;= HConstants.RETRY_BACKOFF.length) {<a name="line.89"></a>
+<span class="sourceLineNo">090</span>      ntries = HConstants.RETRY_BACKOFF.length - 1;<a name="line.90"></a>
 <span class="sourceLineNo">091</span>    }<a name="line.91"></a>
-<span class="sourceLineNo">092</span><a name="line.92"></a>
-<span class="sourceLineNo">093</span>    long normalPause = pause * HConstants.RETRY_BACKOFF[ntries];<a name="line.93"></a>
-<span class="sourceLineNo">094</span>    // 1% possible jitter<a name="line.94"></a>
-<span class="sourceLineNo">095</span>    long jitter = (long) (normalPause * ThreadLocalRandom.current().nextFloat() * 0.01f);<a name="line.95"></a>
-<span class="sourceLineNo">096</span>    return normalPause + jitter;<a name="line.96"></a>
-<span class="sourceLineNo">097</span>  }<a name="line.97"></a>
-<span class="sourceLineNo">098</span><a name="line.98"></a>
-<span class="sourceLineNo">099</span>  /**<a name="line.99"></a>
-<span class="sourceLineNo">100</span>   * @param conn The connection for which to replace the generator.<a name="line.100"></a>
-<span class="sourceLineNo">101</span>   * @param cnm Replaces the nonce generator used, for testing.<a name="line.101"></a>
-<span class="sourceLineNo">102</span>   * @return old nonce generator.<a name="line.102"></a>
-<span class="sourceLineNo">103</span>   */<a name="line.103"></a>
-<span class="sourceLineNo">104</span>  public static NonceGenerator injectNonceGeneratorForTesting(ClusterConnection conn,<a name="line.104"></a>
-<span class="sourceLineNo">105</span>      NonceGenerator cnm) {<a name="line.105"></a>
-<span class="sourceLineNo">106</span>    return ConnectionImplementation.injectNonceGeneratorForTesting(conn, cnm);<a name="line.106"></a>
-<span class="sourceLineNo">107</span>  }<a name="line.107"></a>
-<span class="sourceLineNo">108</span><a name="line.108"></a>
-<span class="sourceLineNo">109</span>  /**<a name="line.109"></a>
-<span class="sourceLineNo">110</span>   * Changes the configuration to set the number of retries needed when using Connection internally,<a name="line.110"></a>
-<span class="sourceLineNo">111</span>   * e.g. for updating catalog tables, etc. Call this method before we create any Connections.<a name="line.111"></a>
-<span class="sourceLineNo">112</span>   * @param c The Configuration instance to set the retries into.<a name="line.112"></a>
-<span class="sourceLineNo">113</span>   * @param log Used to log what we set in here.<a name="line.113"></a>
-<span class="sourceLineNo">114</span>   */<a name="line.114"></a>
-<span class="sourceLineNo">115</span>  public static void setServerSideHConnectionRetriesConfig(final Configuration c, final String sn,<a name="line.115"></a>
-<span class="sourceLineNo">116</span>      final Logger log) {<a name="line.116"></a>
-<span class="sourceLineNo">117</span>    // TODO: Fix this. Not all connections from server side should have 10 times the retries.<a name="line.117"></a>
-<span class="sourceLineNo">118</span>    int hcRetries = c.getInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER,<a name="line.118"></a>
-<span class="sourceLineNo">119</span>      HConstants.DEFAULT_HBASE_CLIENT_RETRIES_NUMBER);<a name="line.119"></a>
-<span class="sourceLineNo">120</span>    // Go big. Multiply by 10. If we can't get to meta after this many retries<a name="line.120"></a>
-<span class="sourceLineNo">121</span>    // then something seriously wrong.<a name="line.121"></a>
-<span class="sourceLineNo">122</span>    int serversideMultiplier = c.getInt(HConstants.HBASE_CLIENT_SERVERSIDE_RETRIES_MULTIPLIER,<a name="line.122"></a>
-<span class="sourceLineNo">123</span>      HConstants.DEFAULT_HBASE_CLIENT_SERVERSIDE_RETRIES_MULTIPLIER);<a name="line.123"></a>
-<span class="sourceLineNo">124</span>    int retries = hcRetries * serversideMultiplier;<a name="line.124"></a>
-<span class="sourceLineNo">125</span>    c.setInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER, retries);<a name="line.125"></a>
-<span class="sourceLineNo">126</span>    log.info(sn + " server-side Connection retries=" + retries);<a name="line.126"></a>
-<span class="sourceLineNo">127</span>  }<a name="line.127"></a>
-<span class="sourceLineNo">128</span><a name="line.128"></a>
-<span class="sourceLineNo">129</span>  /**<a name="line.129"></a>
-<span class="sourceLineNo">130</span>   * A ClusterConnection that will short-circuit RPC making direct invocations against the localhost<a name="line.130"></a>
-<span class="sourceLineNo">131</span>   * if the invocation target is 'this' server; save on network and protobuf invocations.<a name="line.131"></a>
-<span class="sourceLineNo">132</span>   */<a name="line.132"></a>
-<span class="sourceLineNo">133</span>  // TODO This has to still do PB marshalling/unmarshalling stuff. Check how/whether we can avoid.<a name="line.133"></a>
-<span class="sourceLineNo">134</span>  @VisibleForTesting // Class is visible so can assert we are short-circuiting when expected.<a name="line.134"></a>
-<span class="sourceLineNo">135</span>  public static class ShortCircuitingClusterConnection extends ConnectionImplementation {<a name="line.135"></a>
-<span class="sourceLineNo">136</span>    private final ServerName serverName;<a name="line.136"></a>
-<span class="sourceLineNo">137</span>    private final AdminService.BlockingInterface localHostAdmin;<a name="line.137"></a>
-<span class="sourceLineNo">138</span>    private final ClientService.BlockingInterface localHostClient;<a name="line.138"></a>
-<span class="sourceLineNo">139</span><a name="line.139"></a>
-<span class="sourceLineNo">140</span>    private ShortCircuitingClusterConnection(Configuration conf, ExecutorService pool, User user,<a name="line.140"></a>
-<span class="sourceLineNo">141</span>        ServerName serverName, AdminService.BlockingInterface admin,<a name="line.141"></a>
-<span class="sourceLineNo">142</span>        ClientService.BlockingInterface client) throws IOException {<a name="line.142"></a>
-<span class="sourceLineNo">143</span>      super(conf, pool, user);<a name="line.143"></a>
-<span class="sourceLineNo">144</span>      this.serverName = serverName;<a name="line.144"></a>
-<span class="sourceLineNo">145</span>      this.localHostAdmin = admin;<a name="line.145"></a>
-<span class="sourceLineNo">146</span>      this.localHostClient = client;<a name="line.146"></a>
-<span class="sourceLineNo">147</span>    }<a name="line.147"></a>
-<span class="sourceLineNo">148</span><a name="line.148"></a>
-<span class="sourceLineNo">149</span>    @Override<a name="line.149"></a>
-<span class="sourceLineNo">150</span>    public AdminService.BlockingInterface getAdmin(ServerName sn) throws IOException {<a name="line.150"></a>
-<span class="sourceLineNo">151</span>      return serverName.equals(sn) ? this.localHostAdmin : super.getAdmin(sn);<a name="line.151"></a>
-<span class="sourceLineNo">152</span>    }<a name="line.152"></a>
-<span class="sourceLineNo">153</span><a name="line.153"></a>
-<span class="sourceLineNo">154</span>    @Override<a name="line.154"></a>
-<span class="sourceLineNo">155</span>    public ClientService.BlockingInterface getClient(ServerName sn) throws IOException {<a name="line.155"></a>
-<span class="sourceLineNo">156</span>      return serverName.equals(sn) ? this.localHostClient : super.getClient(sn);<a name="line.156"></a>
-<span class="sourceLineNo">157</span>    }<a name="line.157"></a>
-<span class="sourceLineNo">158</span><a name="line.158"></a>
-<span class="sourceLineNo">159</span>    @Override<a name="line.159"></a>
-<span class="sourceLineNo">160</span>    public MasterKeepAliveConnection getMaster() throws IOException {<a name="line.160"></a>
-<span class="sourceLineNo">161</span>      if (this.localHostClient instanceof MasterService.BlockingInterface) {<a name="line.161"></a>
-<span class="sourceLineNo">162</span>        return new ShortCircuitMasterConnection(<a name="line.162"></a>
-<span class="sourceLineNo">163</span>          (MasterService.BlockingInterface) this.localHostClient);<a name="line.163"></a>
-<span class="sourceLineNo">164</span>      }<a name="line.164"></a>
-<span class="sourceLineNo">165</span>      return super.getMaster();<a name="line.165"></a>
-<span class="sourceLineNo">166</span>    }<a name="line.166"></a>
-<span class="sourceLineNo">167</span>  }<a name="line.167"></a>
-<span class="sourceLineNo">168</span><a name="line.168"></a>
-<span class="sourceLineNo">169</span>  /**<a name="line.169"></a>
-<span class="sourceLineNo">170</span>   * Creates a short-circuit connection that can bypass the RPC layer (serialization,<a name="line.170"></a>
-<span class="sourceLineNo">171</span>   * deserialization, networking, etc..) when talking to a local server.<a name="line.171"></a>
-<span class="sourceLineNo">172</span>   * @param conf the current configuration<a name="line.172"></a>
-<span class="sourceLineNo">173</span>   * @param pool the thread pool to use for batch operations<a name="line.173"></a>
-<span class="sourceLineNo">174</span>   * @param user the user the connection is for<a name="line.174"></a>
-<span class="sourceLineNo">175</span>   * @param serverName the local server name<a name="line.175"></a>
-<span class="sourceLineNo">176</span>   * @param admin the admin interface of the local server<a name="line.176"></a>
-<span class="sourceLineNo">177</span>   * @param client the client interface of the local server<a name="line.177"></a>
-<span class="sourceLineNo">178</span>   * @return an short-circuit connection.<a name="line.178"></a>
-<span class="sourceLineNo">179</span>   * @throws IOException if IO failure occurred<a name="line.179"></a>
-<span class="sourceLineNo">180</span>   */<a name="line.180"></a>
-<span class="sourceLineNo">181</span>  public static ClusterConnection createShortCircuitConnection(final Configuration conf,<a name="line.181"></a>
-<span class="sourceLineNo">182</span>      ExecutorService pool, User user, final ServerName serverName,<a name="line.182"></a>
-<span class="sourceLineNo">183</span>      final AdminService.BlockingInterface admin, final ClientService.BlockingInterface client)<a name="line.183"></a>
-<span class="sourceLineNo">184</span>      throws IOException {<a name="line.184"></a>
-<span class="sourceLineNo">185</span>    if (user == null) {<a name="line.185"></a>
-<span class="sourceLineNo">186</span>      user = UserProvider.instantiate(conf).getCurrent();<a name="line.186"></a>
-<span class="sourceLineNo">187</span>    }<a name="line.187"></a>
-<span class="sourceLineNo">188</span>    return new ShortCircuitingClusterConnection(conf, pool, user, serverName, admin, client);<a name="line.188"></a>
-<span class="sourceLineNo">189</span>  }<a name="line.189"></a>
-<span class="sourceLineNo">190</span><a name="line.190"></a>
-<span class="sourceLineNo">191</span>  /**<a name="line.191"></a>
-<span class="sourceLineNo">192</span>   * Setup the connection class, so that it will not depend on master being online. Used for testing<a name="line.192"></a>
-<span class="sourceLineNo">193</span>   * @param conf configuration to set<a name="line.193"></a>
-<span class="sourceLineNo">194</span>   */<a name="line.194"></a>
-<span class="sourceLineNo">195</span>  @VisibleForTesting<a name="line.195"></a>
-<span class="sourceLineNo">196</span>  public static void setupMasterlessConnection(Configuration conf) {<a name="line.196"></a>
-<span class="sourceLineNo">197</span>    conf.set(ClusterConnection.HBASE_CLIENT_CONNECTION_IMPL, MasterlessConnection.class.getName());<a name="line.197"></a>
-<span class="sourceLineNo">198</span>  }<a name="line.198"></a>
-<span class="sourceLineNo">199</span><a name="line.199"></a>
-<span class="sourceLineNo">200</span>  /**<a name="line.200"></a>
-<span class="sourceLineNo">201</span>   * Some tests shut down the master. But table availability is a master RPC which is performed on<a name="line.201"></a>
-<span class="sourceLineNo">202</span>   * region re-lookups.<a name="line.202"></a>
-<span class="sourceLineNo">203</span>   */<a name="line.203"></a>
-<span class="sourceLineNo">204</span>  static class MasterlessConnection extends ConnectionImplementation {<a name="line.204"></a>
-<span class="sourceLineNo">205</span>    MasterlessConnection(Configuration conf, ExecutorService pool, User user) throws IOException {<a name="line.205"></a>
-<span class="sourceLineNo">206</span>      super(conf, pool, user);<a name="line.206"></a>
-<span class="sourceLineNo">207</span>    }<a name="line.207"></a>
-<span class="sourceLineNo">208</span><a name="line.208"></a>
-<span class="sourceLineNo">209</span>    @Override<a name="line.209"></a>
-<span class="sourceLineNo">210</span>    public boolean isTableDisabled(TableName tableName) throws IOException {<a name="line.210"></a>
-<span class="sourceLineNo">211</span>      // treat all tables as enabled<a name="line.211"></a>
-<span class="sourceLineNo">212</span>      return false;<a name="line.212"></a>
-<span class="sourceLineNo">213</span>    }<a name="line.213"></a>
-<span class="sourceLineNo">214</span>  }<a name="line.214"></a>
-<span class="sourceLineNo">215</span><a name="line.215"></a>
-<span class="sourceLineNo">216</span>  /**<a name="line.216"></a>
-<span class="sourceLineNo">217</span>   * Return retires + 1. The returned value will be in range [1, Integer.MAX_VALUE].<a name="line.217"></a>
-<span class="sourceLineNo">218</span>   */<a name="line.218"></a>
-<span class="sourceLineNo">219</span>  static int retries2Attempts(int retries) {<a name="line.219"></a>
-<span class="sourceLineNo">220</span>    return Math.max(1, retries == Integer.MAX_VALUE ? Integer.MAX_VALUE : retries + 1);<a name="line.220"></a>
-<span class="sourceLineNo">221</span>  }<a name="line.221"></a>
-<span class="sourceLineNo">222</span><a name="line.222"></a>
-<span class="sourceLineNo">223</span>  /**<a name="line.223"></a>
-<span class="sourceLineNo">224</span>   * Get a unique key for the rpc stub to the given server.<a name="line.224"></a>
-<span class="sourceLineNo">225</span>   */<a name="line.225"></a>
-<span class="sourceLineNo">226</span>  static String getStubKey(String serviceName, ServerName serverName, boolean hostnameCanChange) {<a name="line.226"></a>
-<span class="sourceLineNo">227</span>    // Sometimes, servers go down and they come back up with the same hostname but a different<a name="line.227"></a>
-<span class="sourceLineNo">228</span>    // IP address. Force a resolution of the rsHostname by trying to instantiate an<a name="line.228"></a>
-<span class="sourceLineNo">229</span>    // InetSocketAddress, and this way we will rightfully get a new stubKey.<a name="line.229"></a>
-<span class="sourceLineNo">230</span>    // Also, include the hostname in the key so as to take care of those cases where the<a name="line.230"></a>
-<span class="sourceLineNo">231</span>    // DNS name is different but IP address remains the same.<a name="line.231"></a>
-<span class="sourceLineNo">232</span>    String hostname = serverName.getHostname();<a name="line.232"></a>
-<span class="sourceLineNo">233</span>    int port = serverName.getPort();<a name="line.233"></a>
-<span class="sourceLineNo">234</span>    if (hostnameCanChange) {<a name="line.234"></a>
-<span class="sourceLineNo">235</span>      try {<a name="line.235"></a>
-<span class="sourceLineNo">236</span>        InetAddress ip = InetAddress.getByName(hostname);<a name="line.236"></a>
-<span class="sourceLineNo">237</span>        return serviceName + "@" + hostname + "-" + ip.getHostAddress() + ":" + port;<a name="line.237"></a>
-<span class="sourceLineNo">238</span>      } catch (UnknownHostException e) {<a name="line.238"></a>
-<span class="sourceLineNo">239</span>        LOG.warn("Can not resolve " + hostname + ", please check your network", e);<a name="line.239"></a>
-<span class="sourceLineNo">240</span>      }<a name="line.240"></a>
-<span class="sourceLineNo">241</span>    }<a name="line.241"></a>
-<span class="sourceLineNo">242</span>    return serviceName + "@" + hostname + ":" + port;<a name="line.242"></a>
-<span class="sourceLineNo">243</span>  }<a name="line.243"></a>
-<span class="sourceLineNo">244</span><a name="line.244"></a>
-<span class="sourceLineNo">245</span>  static void checkHasFamilies(Mutation mutation) {<a name="line.245"></a>
-<span class="sourceLineNo">246</span>    Preconditions.checkArgument(mutation.numFamilies() &gt; 0,<a name="line.246"></a>
-<span class="sourceLineNo">247</span>      "Invalid arguments to %s, zero columns specified", mutation.toString());<a name="line.247"></a>
-<span class="sourceLineNo">248</span>  }<a name="line.248"></a>
-<span class="sourceLineNo">249</span><a name="line.249"></a>
-<span class="sourceLineNo">250</span>  /** Dummy nonce generator for disabled nonces. */<a name="line.250"></a>
-<span class="sourceLineNo">251</span>  static final NonceGenerator NO_NONCE_GENERATOR = new NonceGenerator() {<a name="line.251"></a>
+<span class="sourceLineNo">092</span>    if (ntries &lt; 0) {<a name="line.92"></a>
+<span class="sourceLineNo">093</span>      ntries = 0;<a name="line.93"></a>
+<span class="sourceLineNo">094</span>    }<a name="line.94"></a>
+<span class="sourceLineNo">095</span><a name="line.95"></a>
+<span class="sourceLineNo">096</span>    long normalPause = pause * HConstants.RETRY_BACKOFF[ntries];<a name="line.96"></a>
+<span class="sourceLineNo">097</span>    // 1% possible jitter<a name="line.97"></a>
+<span class="sourceLineNo">098</span>    long jitter = (long) (normalPause * ThreadLocalRandom.current().nextFloat() * 0.01f);<a name="line.98"></a>
+<span class="sourceLineNo">099</span>    return normalPause + jitter;<a name="line.99"></a>
+<span class="sourceLineNo">100</span>  }<a name="line.100"></a>
+<span class="sourceLineNo">101</span><a name="line.101"></a>
+<span class="sourceLineNo">102</span>  /**<a name="line.102"></a>
+<span class="sourceLineNo">103</span>   * @param conn The connection for which to replace the generator.<a name="line.103"></a>
+<span class="sourceLineNo">104</span>   * @param cnm Replaces the nonce generator used, for testing.<a name="line.104"></a>
+<span class="sourceLineNo">105</span>   * @return old nonce generator.<a name="line.105"></a>
+<span class="sourceLineNo">106</span>   */<a name="line.106"></a>
+<span class="sourceLineNo">107</span>  public static NonceGenerator injectNonceGeneratorForTesting(ClusterConnection conn,<a name="line.107"></a>
+<span class="sourceLineNo">108</span>      NonceGenerator cnm) {<a name="line.108"></a>
+<span class="sourceLineNo">109</span>    return ConnectionImplementation.injectNonceGeneratorForTesting(conn, cnm);<a name="line.109"></a>
+<span class="sourceLineNo">110</span>  }<a name="line.110"></a>
+<span class="sourceLineNo">111</span><a name="line.111"></a>
+<span class="sourceLineNo">112</span>  /**<a name="line.112"></a>
+<span class="sourceLineNo">113</span>   * Changes the configuration to set the number of retries needed when using Connection internally,<a name="line.113"></a>
+<span class="sourceLineNo">114</span>   * e.g. for updating catalog tables, etc. Call this method before we create any Connections.<a name="line.114"></a>
+<span class="sourceLineNo">115</span>   * @param c The Configuration instance to set the retries into.<a name="line.115"></a>
+<span class="sourceLineNo">116</span>   * @param log Used to log what we set in here.<a name="line.116"></a>
+<span class="sourceLineNo">117</span>   */<a name="line.117"></a>
+<span class="sourceLineNo">118</span>  public static void setServerSideHConnectionRetriesConfig(final Configuration c, final String sn,<a name="line.118"></a>
+<span class="sourceLineNo">119</span>      final Logger log) {<a name="line.119"></a>
+<span class="sourceLineNo">120</span>    // TODO: Fix this. Not all connections from server side should have 10 times the retries.<a name="line.120"></a>
+<span class="sourceLineNo">121</span>    int hcRetries = c.getInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER,<a name="line.121"></a>
+<span class="sourceLineNo">122</span>      HConstants.DEFAULT_HBASE_CLIENT_RETRIES_NUMBER);<a name="line.122"></a>
+<span class="sourceLineNo">123</span>    // Go big. Multiply by 10. If we can't get to meta after this many retries<a name="line.123"></a>
+<span class="sourceLineNo">124</span>    // then something seriously wrong.<a name="line.124"></a>
+<span class="sourceLineNo">125</span>    int serversideMultiplier = c.getInt(HConstants.HBASE_CLIENT_SERVERSIDE_RETRIES_MULTIPLIER,<a name="line.125"></a>
+<span class="sourceLineNo">126</span>      HConstants.DEFAULT_HBASE_CLIENT_SERVERSIDE_RETRIES_MULTIPLIER);<a name="line.126"></a>
+<span class="sourceLineNo">127</span>    int retries = hcRetries * serversideMultiplier;<a name="line.127"></a>
+<span class="sourceLineNo">128</span>    c.setInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER, retries);<a name="line.128"></a>
+<span class="sourceLineNo">129</span>    log.info(sn + " server-side Connection retries=" + retries);<a name="line.129"></a>
+<span class="sourceLineNo">130</span>  }<a name="line.130"></a>
+<span class="sourceLineNo">131</span><a name="line.131"></a>
+<span class="sourceLineNo">132</span>  /**<a name="line.132"></a>
+<span class="sourceLineNo">133</span>   * A ClusterConnection that will short-circuit RPC making direct invocations against the localhost<a name="line.133"></a>
+<span class="sourceLineNo">134</span>   * if the invocation target is 'this' server; save on network and protobuf invocations.<a name="line.134"></a>
+<span class="sourceLineNo">135</span>   */<a name="line.135"></a>
+<span class="sourceLineNo">136</span>  // TODO This has to still do PB marshalling/unmarshalling stuff. Check how/whether we can avoid.<a name="line.136"></a>
+<span class="sourceLineNo">137</span>  @VisibleForTesting // Class is visible so can assert we are short-circuiting when expected.<a name="line.137"></a>
+<span class="sourceLineNo">138</span>  public static class ShortCircuitingClusterConnection extends ConnectionImplementation {<a name="line.138"></a>
+<span class="sourceLineNo">139</span>    private final ServerName serverName;<a name="line.139"></a>
+<span class="sourceLineNo">140</span>    private final AdminService.BlockingInterface localHostAdmin;<a name="line.140"></a>
+<span class="sourceLineNo">141</span>    private final ClientService.BlockingInterface localHostClient;<a name="line.141"></a>
+<span class="sourceLineNo">142</span><a name="line.142"></a>
+<span class="sourceLineNo">143</span>    private ShortCircuitingClusterConnection(Configuration conf, ExecutorService pool, User user,<a name="line.143"></a>
+<span class="sourceLineNo">144</span>        ServerName serverName, AdminService.BlockingInterface admin,<a name="line.144"></a>
+<span class="sourceLineNo">145</span>        ClientService.BlockingInterface client) throws IOException {<a name="line.145"></a>
+<span class="sourceLineNo">146</span>      super(conf, pool, user);<a name="line.146"></a>
+<span class="sourceLineNo">147</span>      this.serverName = serverName;<a name="line.147"></a>
+<span class="sourceLineNo">148</span>      this.localHostAdmin = admin;<a name="line.148"></a>
+<span class="sourceLineNo">149</span>      this.localHostClient = client;<a name="line.149"></a>
+<span class="sourceLineNo">150</span>    }<a name="line.150"></a>
+<span class="sourceLineNo">151</span><a name="line.151"></a>
+<span class="sourceLineNo">152</span>    @Override<a name="line.152"></a>
+<span class="sourceLineNo">153</span>    public AdminService.BlockingInterface getAdmin(ServerName sn) throws IOException {<a name="line.153"></a>
+<span class="sourceLineNo">154</span>      return serverName.equals(sn) ? this.localHostAdmin : super.getAdmin(sn);<a name="line.154"></a>
+<span class="sourceLineNo">155</span>    }<a name="line.155"></a>
+<span class="sourceLineNo">156</span><a name="line.156"></a>
+<span class="sourceLineNo">157</span>    @Override<a name="line.157"></a>
+<span class="sourceLineNo">158</span>    public ClientService.BlockingInterface getClient(ServerName sn) throws IOException {<a name="line.158"></a>
+<span class="sourceLineNo">159</span>      return serverName.equals(sn) ? this.localHostClient : super.getClient(sn);<a name="line.159"></a>
+<span class="sourceLineNo">160</span>    }<a name="line.160"></a>
+<span class="sourceLineNo">161</span><a name="line.161"></a>
+<span class="sourceLineNo">162</span>    @Override<a name="line.162"></a>
+<span class="sourceLineNo">163</span>    public MasterKeepAliveConnection getMaster() throws IOException {<a name="line.163"></a>
+<span class="sourceLineNo">164</span>      if (this.localHostClient instanceof MasterService.BlockingInterface) {<a name="line.164"></a>
+<span class="sourceLineNo">165</span>        return new ShortCircuitMasterConnection(<a name="line.165"></a>
+<span class="sourceLineNo">166</span>          (MasterService.BlockingInterface) this.localHostClient);<a name="line.166"></a>
+<span class="sourceLineNo">167</span>      }<a name="line.167"></a>
+<span class="sourceLineNo">168</span>      return super.getMaster();<a name="line.168"></a>
+<span class="sourceLineNo">169</span>    }<a name="line.169"></a>
+<span class="sourceLineNo">170</span>  }<a name="line.170"></a>
+<span class="sourceLineNo">171</span><a name="line.171"></a>
+<span class="sourceLineNo">172</span>  /**<a name="line.172"></a>
+<span class="sourceLineNo">173</span>   * Creates a short-circuit connection that can bypass the RPC layer (serialization,<a name="line.173"></a>
+<span class="sourceLineNo">174</span>   * deserialization, networking, etc..) when talking to a local server.<a name="line.174"></a>
+<span class="sourceLineNo">175</span>   * @param conf the current configuration<a name="line.175"></a>
+<span class="sourceLineNo">176</span>   * @param pool the thread pool to use for batch operations<a name="line.176"></a>
+<span class="sourceLineNo">177</span>   * @param user the user the connection is for<a name="line.177"></a>
+<span class="sourceLineNo">178</span>   * @param serverName the local server name<a name="line.178"></a>
+<span class="sourceLineNo">179</span>   * @param admin the admin interface of the local server<a name="line.179"></a>
+<span class="sourceLineNo">180</span>   * @param client the client interface of the local server<a name="line.180"></a>
+<span class="sourceLineNo">181</span>   * @return an short-circuit connection.<a name="line.181"></a>
+<span class="sourceLineNo">182</span>   * @throws IOException if IO failure occurred<a name="line.182"></a>
+<span class="sourceLineNo">183</span>   */<a name="line.183"></a>
+<span class="sourceLineNo">184</span>  public static ClusterConnection createShortCircuitConnection(final Configuration conf,<a name="line.184"></a>
+<span class="sourceLineNo">185</span>      ExecutorService pool, User user, final ServerName serverName,<a name="line.185"></a>
+<span class="sourceLineNo">186</span>      final AdminService.BlockingInterface admin, final ClientService.BlockingInterface client)<a name="line.186"></a>
+<span class="sourceLineNo">187</span>      throws IOException {<a name="line.187"></a>
+<span class="sourceLineNo">188</span>    if (user == null) {<a name="line.188"></a>
+<span class="sourceLineNo">189</span>      user = UserProvider.instantiate(conf).getCurrent();<a name="line.189"></a>
+<span class="sourceLineNo">190</span>    }<a name="line.190"></a>
+<span class="sourceLineNo">191</span>    return new ShortCircuitingClusterConnection(conf, pool, user, serverName, admin, client);<a name="line.191"></a>
+<span class="sourceLineNo">192</span>  }<a name="line.192"></a>
+<span class="sourceLineNo">193</span><a name="line.193"></a>
+<span class="sourceLineNo">194</span>  /**<a name="line.194"></a>
+<span class="sourceLineNo">195</span>   * Setup the connection class, so that it will not depend on master being online. Used for testing<a name="line.195"></a>
+<span class="sourceLineNo">196</span>   * @param conf configuration to set<a name="line.196"></a>
+<span class="sourceLineNo">197</span>   */<a name="line.197"></a>
+<span class="sourceLineNo">198</span>  @VisibleForTesting<a name="line.198"></a>
+<span class="sourceLineNo">199</span>  public static void setupMasterlessConnection(Configuration conf) {<a name="line.199"></a>
+<span class="sourceLineNo">200</span>    conf.set(ClusterConnection.HBASE_CLIENT_CONNECTION_IMPL, MasterlessConnection.class.getName());<a name="line.200"></a>
+<span class="sourceLineNo">201</span>  }<a name="line.201"></a>
+<span class="sourceLineNo">202</span><a name="line.202"></a>
+<span class="sourceLineNo">203</span>  /**<a name="line.203"></a>
+<span class="sourceLineNo">204</span>   * Some tests shut down the master. But table availability is a master RPC which is performed on<a name="line.204"></a>
+<span class="sourceLineNo">205</span>   * region re-lookups.<a name="line.205"></a>
+<span class="sourceLineNo">206</span>   */<a name="line.206"></a>
+<span class="sourceLineNo">207</span>  static class MasterlessConnection extends ConnectionImplementation {<a name="line.207"></a>
+<span class="sourceLineNo">208</span>    MasterlessConnection(Configuration conf, ExecutorService pool, User user) throws IOException {<a name="line.208"></a>
+<span class="sourceLineNo">209</span>      super(conf, pool, user);<a name="line.209"></a>
+<span class="sourceLineNo">210</span>    }<a name="line.210"></a>
+<span class="sourceLineNo">211</span><a name="line.211"></a>
+<span class="sourceLineNo">212</span>    @Override<a name="line.212"></a>
+<span class="sourceLineNo">213</span>    public boolean isTableDisabled(TableName tableName) throws IOException {<a name="line.213"></a>
+<span class="sourceLineNo">214</span>      // treat all tables as enabled<a name="line.214"></a>
+<span class="sourceLineNo">215</span>      return false;<a name="line.215"></a>
+<span class="sourceLineNo">216</span>    }<a name="line.216"></a>
+<span class="sourceLineNo">217</span>  }<a name="line.217"></a>
+<span class="sourceLineNo">218</span><a name="line.218"></a>
+<span class="sourceLineNo">219</span>  /**<a name="line.219"></a>
+<span class="sourceLineNo">220</span>   * Return retires + 1. The returned value will be in range [1, Integer.MAX_VALUE].<a name="line.220"></a>
+<span class="sourceLineNo">221</span>   */<a name="line.221"></a>
+<span class="sourceLineNo">222</span>  static int retries2Attempts(int retries) {<a name="line.222"></a>
+<span class="sourceLineNo">223</span>    return Math.max(1, retries == Integer.MAX_VALUE ? Integer.MAX_VALUE : retries + 1);<a name="line.223"></a>
+<span class="sourceLineNo">224</span>  }<a name="line.224"></a>
+<span class="sourceLineNo">225</span><a name="line.225"></a>
+<span class="sourceLineNo">226</span>  /**<a name="line.226"></a>
+<span class="sourceLineNo">227</span>   * Get a unique key for the rpc stub to the given server.<a name="line.227"></a>
+<span class="sourceLineNo">228</span>   */<a name="line.228"></a>
+<span class="sourceLineNo">229</span>  static String getStubKey(String serviceName, ServerName serverName, boolean hostnameCanChange) {<a name="line.229"></a>
+<span class="sourceLineNo">230</span>    // Sometimes, servers go down and they come back up with the same hostname but a different<a name="line.230"></a>
+<span class="sourceLineNo">231</span>    // IP address. Force a resolution of the rsHostname by trying to instantiate an<a name="line.231"></a>
+<span class="sourceLineNo">232</span>    // InetSocketAddress, and this way we will rightfully get a new stubKey.<a name="line.232"></a>
+<span class="sourceLineNo">233</span>    // Also, include the hostname in the key so as to take care of those cases where the<a name="line.233"></a>
+<span class="sourceLineNo">234</span>    // DNS name is different but IP address remains the same.<a name="line.234"></a>
+<span class="sourceLineNo">235</span>    String hostname = serverName.getHostname();<a name="line.235"></a>
+<span class="sourceLineNo">236</span>    int port = serverName.getPort();<a name="line.236"></a>
+<span class="sourceLineNo">237</span>    if (hostnameCanChange) {<a name="line.237"></a>
+<span class="sourceLineNo">238</span>      try {<a name="line.238"></a>
+<span class="sourceLineNo">239</span>        InetAddress ip = InetAddress.getByName(hostname);<a name="line.239"></a>
+<span class="sourceLineNo">240</span>        return serviceName + "@" + hostname + "-" + ip.getHostAddress() + ":" + port;<a name="line.240"></a>
+<span class="sourceLineNo">241</span>      } catch (UnknownHostException e) {<a name="line.241"></a>
+<span class="sourceLineNo">242</span>        LOG.warn("Can not resolve " + hostname + ", please check your network", e);<a name="line.242"></a>
+<span class="sourceLineNo">243</span>      }<a name="line.243"></a>
+<span class="sourceLineNo">244</span>    }<a name="line.244"></a>
+<span class="sourceLineNo">245</span>    return serviceName + "@" + hostname + ":" + port;<a name="line.245"></a>
+<span class="sourceLineNo">246</span>  }<a name="line.246"></a>
+<span class="sourceLineNo">247</span><a name="line.247"></a>
+<span class="sourceLineNo">248</span>  static void checkHasFamilies(Mutation mutation) {<a name="line.248"></a>
+<span class="sourceLineNo">249</span>    Preconditions.checkArgument(mutation.numFamilies() &gt; 0,<a name="line.249"></a>
+<span class="sourceLineNo">250</span>      "Invalid arguments to %s, zero columns specified", mutation.toString());<a name="line.250"></a>
+<span class="sourceLineNo">251</span>  }<a name="line.251"></a>
 <span class="sourceLineNo">252</span><a name="line.252"></a>
-<span class="sourceLineNo">253</span>    @Override<a name="line.253"></a>
-<span class="sourceLineNo">254</span>    public long newNonce() {<a name="line.254"></a>
-<span class="sourceLineNo">255</span>      return HConstants.NO_NONCE;<a name="line.255"></a>
-<span class="sourceLineNo">256</span>    }<a name="line.256"></a>
-<span class="sourceLineNo">257</span><a name="line.257"></a>
-<span class="sourceLineNo">258</span>    @Override<a name="line.258"></a>
-<span class="sourceLineNo">259</span>    public long getNonceGroup() {<a name="line.259"></a>
-<span class="sourceLineNo">260</span>      return HConstants.NO_NONCE;<a name="line.260"></a>
-<span class="sourceLineNo">261</span>    }<a name="line.261"></a>
-<span class="sourceLineNo">262</span>  };<a name="line.262"></a>
-<span class="sourceLineNo">263</span><a name="line.263"></a>
-<span class="sourceLineNo">264</span>  // A byte array in which all elements are the max byte, and it is used to<a name="line.264"></a>
-<span class="sourceLineNo">265</span>  // construct closest front row<a name="line.265"></a>
-<span class="sourceLineNo">266</span>  static final byte[] MAX_BYTE_ARRAY = Bytes.createMaxByteArray(9);<a name="line.266"></a>
-<span class="sourceLineNo">267</span><a name="line.267"></a>
-<span class="sourceLineNo">268</span>  /**<a name="line.268"></a>
-<span class="sourceLineNo">269</span>   * Create the closest row after the specified row<a name="line.269"></a>
-<span class="sourceLineNo">270</span>   */<a name="line.270"></a>
-<span class="sourceLineNo">271</span>  static byte[] createClosestRowAfter(byte[] row) {<a name="line.271"></a>
-<span class="sourceLineNo">272</span>    return Arrays.copyOf(row, row.length + 1);<a name="line.272"></a>
-<span class="sourceLineNo">273</span>  }<a name="line.273"></a>
-<span class="sourceLineNo">274</span><a name="line.274"></a>
-<span class="sourceLineNo">275</span>  /**<a name="line.275"></a>
-<span class="sourceLineNo">276</span>   * Create a row before the specified row and very close to the specified row.<a name="line.276"></a>
-<span class="sourceLineNo">277</span>   */<a name="line.277"></a>
-<span class="sourceLineNo">278</span>  static byte[] createCloseRowBefore(byte[] row) {<a name="line.278"></a>
-<span class="sourceLineNo">279</span>    if (row.length == 0) {<a name="line.279"></a>
-<span class="sourceLineNo">280</span>      return MAX_BYTE_ARRAY;<a name="line.280"></a>
-<span class="sourceLineNo">281</span>    }<a name="line.281"></a>
-<span class="sourceLineNo">282</span>    if (row[row.length - 1] == 0) {<a name="line.282"></a>
-<span class="sourceLineNo">283</span>      return Arrays.copyOf(row, row.length - 1);<a name="line.283"></a>
-<span class="sourceLineNo">284</span>    } else {<a name="line.284"></a>
-<span class="sourceLineNo">285</span>      byte[] nextRow = new byte[row.length + MAX_BYTE_ARRAY.length];<a name="line.285"></a>
-<span class="sourceLineNo">286</span>      System.arraycopy(row, 0, nextRow, 0, row.length - 1);<a name="line.286"></a>
-<span class="sourceLineNo">287</span>      nextRow[row.length - 1] = (byte) ((row[row.length - 1] &amp; 0xFF) - 1);<a name="line.287"></a>
-<span class="sourceLineNo">288</span>      System.arraycopy(MAX_BYTE_ARRAY, 0, nextRow, row.length, MAX_BYTE_ARRAY.length);<a name="line.288"></a>
-<span class="sourceLineNo">289</span>      return nextRow;<a name="line.289"></a>
-<span class="sourceLineNo">290</span>    }<a name="line.290"></a>
-<span class="sourceLineNo">291</span>  }<a name="line.291"></a>
-<span class="sourceLineNo">292</span><a name="line.292"></a>
-<span class="sourceLineNo">293</span>  static boolean isEmptyStartRow(byte[] row) {<a name="line.293"></a>
-<span class="sourceLineNo">294</span>    return Bytes.equals(row, EMPTY_START_ROW);<a name="line.294"></a>
-<span class="sourceLineNo">295</span>  }<a name="line.295"></a>
-<span class="sourceLineNo">296</span><a name="line.296"></a>
-<span class="sourceLineNo">297</span>  static boolean isEmptyStopRow(byte[] row) {<a name="line.297"></a>
-<span class="sourceLineNo">298</span>    return Bytes.equals(row, EMPTY_END_ROW);<a name="line.298"></a>
-<span class="sourceLineNo">299</span>  }<a name="line.299"></a>
-<span class="sourceLineNo">300</span><a name="line.300"></a>
-<span class="sourceLineNo">301</span>  static void resetController(HBaseRpcController controller, long timeoutNs, int priority) {<a name="line.301"></a>
-<span class="sourceLineNo">302</span>    controller.reset();<a name="line.302"></a>
-<span class="sourceLineNo">303</span>    if (timeoutNs &gt;= 0) {<a name="line.303"></a>
-<span class="sourceLineNo">304</span>      controller.setCallTimeout(<a name="line.304"></a>
-<span class="sourceLineNo">305</span>        (int) Math.min(Integer.MAX_VALUE, TimeUnit.NANOSECONDS.toMillis(timeoutNs)));<a name="line.305"></a>
-<span class="sourceLineNo">306</span>    }<a name="line.306"></a>
-<span class="sourceLineNo">307</span>    controller.setPriority(priority);<a name="line.307"></a>
-<span class="sourceLineNo">308</span>  }<a name="line.308"></a>
-<span class="sourceLineNo">309</span><a name="line.309"></a>
-<span class="sourceLineNo">310</span>  static Throwable translateException(Throwable t) {<a name="line.310"></a>
-<span class="sourceLineNo">311</span>    if (t instanceof UndeclaredThrowableException &amp;&amp; t.getCause() != null) {<a name="line.311"></a>
-<span class="sourceLineNo">312</span>      t = t.getCause();<a name="line.312"></a>
-<span class="sourceLineNo">313</span>    }<a name="line.313"></a>
-<span class="sourceLineNo">314</span>    if (t instanceof RemoteException) {<a name="line.314"></a>
-<span class="sourceLineNo">315</span>      t = ((RemoteException) t).unwrapRemoteException();<a name="line.315"></a>
+<span class="sourceLineNo">253</span>  /** Dummy nonce generator for disabled nonces. */<a name="line.253"></a>
+<span class="sourceLineNo">254</span>  static final NonceGenerator NO_NONCE_GENERATOR = new NonceGenerator() {<a name="line.254"></a>
+<span class="sourceLineNo">255</span><a name="line.255"></a>
+<span class="sourceLineNo">256</span>    @Override<a name="line.256"></a>
+<span class="sourceLineNo">257</span>    public long newNonce() {<a name="line.257"></a>
+<span class="sourceLineNo">258</span>      return HConstants.NO_NONCE;<a name="line.258"></a>
+<span class="sourceLineNo">259</span>    }<a name="line.259"></a>
+<span class="sourceLineNo">260</span><a name="line.260"></a>
+<span class="sourceLineNo">261</span>    @Override<a name="line.261"></a>
+<span class="sourceLineNo">262</span>    public long getNonceGroup() {<a name="line.262"></a>
+<span class="sourceLineNo">263</span>      return HConstants.NO_NONCE;<a name="line.263"></a>
+<span class="sourceLineNo">264</span>    }<a name="line.264"></a>
+<span class="sourceLineNo">265</span>  };<a name="line.265"></a>
+<span class="sourceLineNo">266</span><a name="line.266"></a>
+<span class="sourceLineNo">267</span>  // A byte array in which all elements are the max byte, and it is used to<a name="line.267"></a>
+<span class="sourceLineNo">268</span>  // construct closest front row<a name="line.268"></a>
+<span class="sourceLineNo">269</span>  static final byte[] MAX_BYTE_ARRAY = Bytes.createMaxByteArray(9);<a name="line.269"></a>
+<span class="sourceLineNo">270</span><a name="line.270"></a>
+<span class="sourceLineNo">271</span>  /**<a name="line.271"></a>
+<span class="sourceLineNo">272</span>   * Create the closest row after the specified row<a name="line.272"></a>
+<span class="sourceLineNo">273</span>   */<a name="line.273"></a>
+<span class="sourceLineNo">274</span>  static byte[] createClosestRowAfter(byte[] row) {<a name="line.274"></a>
+<span class="sourceLineNo">275</span>    return Arrays.copyOf(row, row.length + 1);<a name="line.275"></a>
+<span class="sourceLineNo">276</span>  }<a name="line.276"></a>
+<span class="sourceLineNo">277</span><a name="line.277"></a>
+<span class="sourceLineNo">278</span>  /**<a name="line.278"></a>
+<span class="sourceLineNo">279</span>   * Create a row before the specified row and very close to the specified row.<a name="line.279"></a>
+<span class="sourceLineNo">280</span>   */<a name="line.280"></a>
+<span class="sourceLineNo">281</span>  static byte[] createCloseRowBefore(byte[] row) {<a name="line.281"></a>
+<span class="sourceLineNo">282</span>    if (row.length == 0) {<a name="line.282"></a>
+<span class="sourceLineNo">283</span>      return MAX_BYTE_ARRAY;<a name="line.283"></a>
+<span class="sourceLineNo">284</span>    }<a name="line.284"></a>
+<span class="sourceLineNo">285</span>    if (row[row.length - 1] == 0) {<a name="line.285"></a>
+<span class="sourceLineNo">286</span>      return Arrays.copyOf(row, row.length - 1);<a name="line.286"></a>
+<span class="sourceLineNo">287</span>    } else {<a name="line.287"></a>
+<span class="sourceLineNo">288</span>      byte[] nextRow = new byte[row.length + MAX_BYTE_ARRAY.length];<a name="line.288"></a>
+<span class="sourceLineNo">289</span>      System.arraycopy(row, 0, nextRow, 0, row.length - 1);<a name="line.289"></a>
+<span class="sourceLineNo">290</span>      nextRow[row.length - 1] = (byte) ((row[row.length - 1] &amp; 0xFF) - 1);<a name="line.290"></a>
+<span class="sourceLineNo">291</span>      System.arraycopy(MAX_BYTE_ARRAY, 0, nextRow, row.length, MAX_BYTE_ARRAY.length);<a name="line.291"></a>
+<span class="sourceLineNo">292</span>      return nextRow;<a name="line.292"></a>
+<span class="sourceLineNo">293</span>    }<a name="line.293"></a>
+<span class="sourceLineNo">294</span>  }<a name="line.294"></a>
+<span class="sourceLineNo">295</span><a name="line.295"></a>
+<span class="sourceLineNo">296</span>  static boolean isEmptyStartRow(byte[] row) {<a name="line.296"></a>
+<span class="sourceLineNo">297</span>    return Bytes.equals(row, EMPTY_START_ROW);<a name="line.297"></a>
+<span class="sourceLineNo">298</span>  }<a name="line.298"></a>
+<span class="sourceLineNo">299</span><a name="line.299"></a>
+<span class="sourceLineNo">300</span>  static boolean isEmptyStopRow(byte[] row) {<a name="line.300"></a>
+<span class="sourceLineNo">301</span>    return Bytes.equals(row, EMPTY_END_ROW);<a name="line.301"></a>
+<span class="sourceLineNo">302</span>  }<a name="line.302"></a>
+<span class="sourceLineNo">303</span><a name="line.303"></a>
+<span class="sourceLineNo">304</span>  static void resetController(HBaseRpcController controller, long timeoutNs, int priority) {<a name="line.304"></a>
+<span class="sourceLineNo">305</span>    controller.reset();<a name="line.305"></a>
+<span class="sourceLineNo">306</span>    if (timeoutNs &gt;= 0) {<a name="line.306"></a>
+<span class="sourceLineNo">307</span>      controller.setCallTimeout(<a name="line.307"></a>
+<span class="sourceLineNo">308</span>        (int) Math.min(Integer.MAX_VALUE, TimeUnit.NANOSECONDS.toMillis(timeoutNs)));<a name="line.308"></a>
+<span class="sourceLineNo">309</span>    }<a name="line.309"></a>
+<span class="sourceLineNo">310</span>    controller.setPriority(priority);<a name="line.310"></a>
+<span class="sourceLineNo">311</span>  }<a name="line.311"></a>
+<span class="sourceLineNo">312</span><a name="line.312"></a>
+<span class="sourceLineNo">313</span>  static Throwable translateException(Throwable t) {<a name="line.313"></a>
+<span class="sourceLineNo">314</span>    if (t instanceof UndeclaredThrowableException &amp;&amp; t.getCause() != null) {<a name="line.314"></a>
+<span class="sourceLineNo">315</span>      t = t.getCause();<a name="line.315"></a>
 <span class="sourceLineNo">316</span>    }<a name="line.316"></a>
-<span class="sourceLineNo">317</span>    if (t instanceof ServiceException &amp;&amp; t.getCause() != null) {<a name="line.317"></a>
-<span class="sourceLineNo">318</span>      t = translateException(t.getCause());<a name="line.318"></a>
+<span class="sourceLineNo">317</span>    if (t instanceof RemoteException) {<a name="line.317"></a>
+<span class="sourceLineNo">318</span>      t = ((RemoteException) t).unwrapRemoteException();<a name="line.318"></a>
 <span class="sourceLineNo">319</span>    }<a name="line.319"></a>
-<span class="sourceLineNo">320</span>    return t;<a name="line.320"></a>
-<span class="sourceLineNo">321</span>  }<a name="line.321"></a>
-<span class="sourceLineNo">322</span><a name="line.322"></a>
-<span class="sourceLineNo">323</span>  static long calcEstimatedSize(Result rs) {<a name="line.323"></a>
-<span class="sourceLineNo">324</span>    long estimatedHeapSizeOfResult = 0;<a name="line.324"></a>
-<span class="sourceLineNo">325</span>    // We don't make Iterator here<a name="line.325"></a>
-<span class="sourceLineNo">326</span>    for (Cell cell : rs.rawCells()) {<a name="line.326"></a>
-<span class="sourceLineNo">327</span>      estimatedHeapSizeOfResult += cell.heapSize();<a name="line.327"></a>
-<span class="sourceLineNo">328</span>    }<a name="line.328"></a>
-<span class="sourceLineNo">329</span>    return estimatedHeapSizeOfResult;<a name="line.329"></a>
-<span class="sourceLineNo">330</span>  }<a name="line.330"></a>
-<span class="sourceLineNo">331</span><a name="line.331"></a>
-<span class="sourceLineNo">332</span>  static Result filterCells(Result result, Cell keepCellsAfter) {<a name="line.332"></a>
-<span class="sourceLineNo">333</span>    if (keepCellsAfter == null) {<a name="line.333"></a>
-<span class="sourceLineNo">334</span>      // do not need to filter<a name="line.334"></a>
-<span class="sourceLineNo">335</span>      return result;<a name="line.335"></a>
-<span class="sourceLineNo">336</span>    }<a name="line.336"></a>
-<span class="sourceLineNo">337</span>    // not the same row<a name="line.337"></a>
-<span class="sourceLineNo">338</span>    if (!PrivateCellUtil.matchingRows(keepCellsAfter, result.getRow(), 0, result.getRow().length)) {<a name="line.338"></a>
-<span class="sourceLineNo">339</span>      return result;<a name="line.339"></a>
-<span class="sourceLineNo">340</span>    }<a name="line.340"></a>
-<span class="sourceLineNo">341</span>    Cell[] rawCells = result.rawCells();<a name="line.341"></a>
-<span class="sourceLineNo">342</span>    int index = Arrays.binarySearch(rawCells, keepCellsAfter,<a name="line.342"></a>
-<span class="sourceLineNo">343</span>      CellComparator.getInstance()::compareWithoutRow);<a name="line.343"></a>
-<span class="sourceLineNo">344</span>    if (index &lt; 0) {<a name="line.344"></a>
-<span class="sourceLineNo">345</span>      index = -index - 1;<a name="line.345"></a>
-<span class="sourceLineNo">346</span>    } else {<a name="line.346"></a>
-<span class="sourceLineNo">347</span>      index++;<a name="line.347"></a>
-<span class="sourceLineNo">348</span>    }<a name="line.348"></a>
-<span class="sourceLineNo">349</span>    if (index == 0) {<a name="line.349"></a>
-<span class="sourceLineNo">350</span>      return result;<a name="line.350"></a>
+<span class="sourceLineNo">320</span>    if (t instanceof ServiceException &amp;&amp; t.getCause() != null) {<a name="line.320"></a>
+<span class="sourceLineNo">321</span>      t = translateException(t.getCause());<a name="line.321"></a>
+<span class="sourceLineNo">322</span>    }<a name="line.322"></a>
+<span class="sourceLineNo">323</span>    return t;<a name="line.323"></a>
+<span class="sourceLineNo">324</span>  }<a name="line.324"></a>
+<span class="sourceLineNo">325</span><a name="line.325"></a>
+<span class="sourceLineNo">326</span>  static long calcEstimatedSize(Result rs) {<a name="line.326"></a>
+<span class="sourceLineNo">327</span>    long estimatedHeapSizeOfResult = 0;<a name="line.327"></a>
+<span class="sourceLineNo">328</span>    // We don't make Iterator here<a name="line.328"></a>
+<span class="sourceLineNo">329</span>    for (Cell cell : rs.rawCells()) {<a name="line.329"></a>
+<span class="sourceLineNo">330</span>      estimatedHeapSizeOfResult += cell.heapSize();<a name="line.330"></a>
+<span class="sourceLineNo">331</span>    }<a name="line.331"></a>
+<span class="sourceLineNo">332</span>    return estimatedHeapSizeOfResult;<a name="line.332"></a>
+<span class="sourceLineNo">333</span>  }<a name="line.333"></a>
+<span class="sourceLineNo">334</span><a name="line.334"></a>
+<span class="sourceLineNo">335</span>  static Result filterCells(Result result, Cell keepCellsAfter) {<a name="line.335"></a>
+<span class="sourceLineNo">336</span>    if (keepCellsAfter == null) {<a name="line.336"></a>
+<span class="sourceLineNo">337</span>      // do not need to filter<a name="line.337"></a>
+<span class="sourceLineNo">338</span>      return result;<a name="line.338"></a>
+<span class="sourceLineNo">339</span>    }<a name="line.339"></a>
+<span class="sourceLineNo">340</span>    // not the same row<a name="line.340"></a>
+<span class="sourceLineNo">341</span>    if (!PrivateCellUtil.matchingRows(keepCellsAfter, result.getRow(), 0, result.getRow().length)) {<a name="line.341"></a>
+<span class="sourceLineNo">342</span>      return result;<a name="line.342"></a>
+<span class="sourceLineNo">343</span>    }<a name="line.343"></a>
+<span class="sourceLineNo">344</span>    Cell[] rawCells = result.rawCells();<a name="line.344"></a>
+<span class="sourceLineNo">345</span>    int index = Arrays.binarySearch(rawCells, keepCellsAfter,<a name="line.345"></a>
+<span class="sourceLineNo">346</span>      CellComparator.getInstance()::compareWithoutRow);<a name="line.346"></a>
+<span class="sourceLineNo">347</span>    if (index &lt; 0) {<a name="line.347"></a>
+<span class="sourceLineNo">348</span>      index = -index - 1;<a name="line.348"></a>
+<span class="sourceLineNo">349</span>    } else {<a name="line.349"></a>
+<span class="sourceLineNo">350</span>      index++;<a name="line.350"></a>
 <span class="sourceLineNo">351</span>    }<a name="line.351"></a>
-<span class="sourceLineNo">352</span>    if (index == rawCells.length) {<a name="line.352"></a>
-<span class="sourceLineNo">353</span>      return null;<a name="line.353"></a>
+<span class="sourceLineNo">352</span>    if (index == 0) {<a name="line.352"></a>
+<span class="sourceLineNo">353</span>      return result;<a name="line.353"></a>
 <span class="sourceLineNo">354</span>    }<a name="line.354"></a>
-<span class="sourceLineNo">355</span>    return Result.create(Arrays.copyOfRange(rawCells, index, rawCells.length), null,<a name="line.355"></a>
-<span class="sourceLineNo">356</span>      result.isStale(), result.mayHaveMoreCellsInRow());<a name="line.356"></a>
-<span class="sourceLineNo">357</span>  }<a name="line.357"></a>
-<span class="sourceLineNo">358</span><a name="line.358"></a>
-<span class="sourceLineNo">359</span>  // Add a delta to avoid timeout immediately after a retry sleeping.<a name="line.359"></a>
-<span class="sourceLineNo">360</span>  static final long SLEEP_DELTA_NS = TimeUnit.MILLISECONDS.toNanos(1);<a name="line.360"></a>
+<span class="sourceLineNo">355</span>    if (index == rawCells.length) {<a name="line.355"></a>
+<span class="sourceLineNo">356</span>      return null;<a name="line.356"></a>
+<span class="sourceLineNo">357</span>    }<a name="line.357"></a>
+<span class="sourceLineNo">358</span>    return Result.create(Arrays.copyOfRange(rawCells, index, rawCells.length), null,<a name="line.358"></a>
+<span class="sourceLineNo">359</span>      result.isStale(), result.mayHaveMoreCellsInRow());<a name="line.359"></a>
+<span class="sourceLineNo">360</span>  }<a name="line.360"></a>
 <span class="sourceLineNo">361</span><a name="line.361"></a>
-<span class="sourceLineNo">362</span>  static Get toCheckExistenceOnly(Get get) {<a name="line.362"></a>
-<span class="sourceLineNo">363</span>    if (get.isCheckExistenceOnly()) {<a name="line.363"></a>
-<span class="sourceLineNo">364</span>      return get;<a name="line.364"></a>
-<span class="sourceLineNo">365</span>    }<a name="line.365"></a>
-<span class="sourceLineNo">366</span>    return ReflectionUtils.newInstance(get.getClass(), get).setCheckExistenceOnly(true);<a name="line.366"></a>
-<span class="sourceLineNo">367</span>  }<a name="line.367"></a>
-<span class="sourceLineNo">368</span><a name="line.368"></a>
-<span class="sourceLineNo">369</span>  static List&lt;Get&gt; toCheckExistenceOnly(List&lt;Get&gt; gets) {<a name="line.369"></a>
-<span class="sourceLineNo">370</span>    return gets.stream().map(ConnectionUtils::toCheckExistenceOnly).collect(toList());<a name="line.370"></a>
-<span class="sourceLineNo">371</span>  }<a name="line.371"></a>
-<span class="sourceLineNo">372</span><a name="line.372"></a>
-<span class="sourceLineNo">373</span>  static RegionLocateType getLocateType(Scan scan) {<a name="line.373"></a>
-<span class="sourceLineNo">374</span>    if (scan.isReversed()) {<a name="line.374"></a>
-<span class="sourceLineNo">375</span>      if (isEmptyStartRow(scan.getStartRow())) {<a name="line.375"></a>
-<span class="sourceLineNo">376</span>        return RegionLocateType.BEFORE;<a name="line.376"></a>
-<span class="sourceLineNo">377</span>      } else {<a name="line.377"></a>
-<span class="sourceLineNo">378</span>        return scan.includeStartRow() ? RegionLocateType.CURRENT : RegionLocateType.BEFORE;<a name="line.378"></a>
-<span class="sourceLineNo">379</span>      }<a name="line.379"></a>
-<span class="sourceLineNo">380</span>    } else {<a name="line.380"></a>
-<span class="sourceLineNo">381</span>      return scan.includeStartRow() ? RegionLocateType.CURRENT : RegionLocateType.AFTER;<a name="line.381"></a>
-<span class="sourceLineNo">382</span>    }<a name="line.382"></a>
-<span class="sourceLineNo">383</span>  }<a name="line.383"></a>
-<span class="sourceLineNo">384</span><a name="line.384"></a>
-<span class="sourceLineNo">385</span>  static boolean noMoreResultsForScan(Scan scan, RegionInfo info) {<a name="line.385"></a>
-<span class="sourceLineNo">386</span>    if (isEmptyStopRow(info.getEndKey())) {<a name="line.386"></a>
-<span class="sourceLineNo">387</span>      return true;<a name="line.387"></a>
-<span class="sourceLineNo">388</span>    }<a name="line.388"></a>
-<span class="sourceLineNo">389</span>    if (isEmptyStopRow(scan.getStopRow())) {<a name="line.389"></a>
-<span class="sourceLineNo">390</span>      return false;<a name="line.390"></a>
+<span class="sourceLineNo">362</span>  // Add a delta to avoid timeout immediately after a retry sleeping.<a name="line.362"></a>
+<span class="sourceLineNo">363</span>  static final long SLEEP_DELTA_NS = TimeUnit.MILLISECONDS.toNanos(1);<a name="line.363"></a>
+<span class="sourceLineNo">364</span><a name="line.364"></a>
+<span class="sourceLineNo">365</span>  static Get toCheckExistenceOnly(Get get) {<a name="line.365"></a>
+<span class="sourceLineNo">366</span>    if (get.isCheckExistenceOnly()) {<a name="line.366"></a>
+<span class="sourceLineNo">367</span>      return get;<a name="line.367"></a>
+<span class="sourceLineNo">368</span>    }<a name="line.368"></a>
+<span class="sourceLineNo">369</span>    return ReflectionUtils.newInstance(get.getClass(), get).setCheckExistenceOnly(true);<a name="line.369"></a>
+<span class="sourceLineNo">370</span>  }<a name="line.370"></a>
+<span class="sourceLineNo">371</span><a name="line.371"></a>
+<span class="sourceLineNo">372</span>  static List&lt;Get&gt; toCheckExistenceOnly(List&lt;Get&gt; gets) {<a name="line.372"></a>
+<span class="sourceLineNo">373</span>    return gets.stream().map(ConnectionUtils::toCheckExistenceOnly).collect(toList());<a name="line.373"></a>
+<span class="sourceLineNo">374</span>  }<a name="line.374"></a>
+<span class="sourceLineNo">375</span><a name="line.375"></a>
+<span class="sourceLineNo">376</span>  static RegionLocateType getLocateType(Scan scan) {<a name="line.376"></a>
+<span class="sourceLineNo">377</span>    if (scan.isReversed()) {<a name="line.377"></a>
+<span class="sourceLineNo">378</span>      if (isEmptyStartRow(scan.getStartRow())) {<a name="line.378"></a>
+<span class="sourceLineNo">379</span>        return RegionLocateType.BEFORE;<a name="line.379"></a>
+<span class="sourceLineNo">380</span>      } else {<a name="line.380"></a>
+<span class="sourceLineNo">381</span>        return scan.includeStartRow() ? RegionLocateType.CURRENT : RegionLocateType.BEFORE;<a name="line.381"></a>
+<span class="sourceLineNo">382</span>      }<a name="line.382"></a>
+<span class="sourceLineNo">383</span>    } else {<a name="line.383"></a>
+<span class="sourceLineNo">384</span>      return scan.includeStartRow() ? RegionLocateType.CURRENT : RegionLocateType.AFTER;<a name="line.384"></a>
+<span class="sourceLineNo">385</span>    }<a name="line.385"></a>
+<span class="sourceLineNo">386</span>  }<a name="line.386"></a>
+<span class="sourceLineNo">387</span><a name="line.387"></a>
+<span class="sourceLineNo">388</span>  static boolean noMoreResultsForScan(Scan scan, RegionInfo info) {<a name="line.388"></a>
+<span class="sourceLineNo">389</span>    if (isEmptyStopRow(info.getEndKey())) {<a name="line.389"></a>
+<span class="sourceLineNo">390</span>      return true;<a name="line.390"></a>
 <span class="sourceLineNo">391</span>    }<a name="line.391"></a>
-<span class="sourceLineNo">392</span>    int c = Bytes.compareTo(info.getEndKey(), scan.getStopRow());<a name="line.392"></a>
-<span class="sourceLineNo">393</span>    // 1. if our stop row is less than the endKey of the region<a name="line.393"></a>
-<span class="sourceLineNo">394</span>    // 2. if our stop row is equal to the endKey of the region and we do not include the stop row<a name="line.394"></a>
-<span class="sourceLineNo">395</span>    // for scan.<a name="line.395"></a>
-<span class="sourceLineNo">396</span>    return c &gt; 0 || (c == 0 &amp;&amp; !scan.includeStopRow());<a name="line.396"></a>
-<span class="sourceLineNo">397</span>  }<a name="line.397"></a>
-<span class="sourceLineNo">398</span><a name="line.398"></a>
-<span class="sourceLineNo">399</span>  static boolean noMoreResultsForReverseScan(Scan scan, RegionInfo info) {<a name="line.399"></a>
-<span class="sourceLineNo">400</span>    if (isEmptyStartRow(info.getStartKey())) {<a name="line.400"></a>
-<span class="sourceLineNo">401</span>      return true;<a name="line.401"></a>
-<span class="sourceLineNo">402</span>    }<a name="line.402"></a>
-<span class="sourceLineNo">403</span>    if (isEmptyStopRow(scan.getStopRow())) {<a name="line.403"></a>
-<span class="sourceLineNo">404</span>      return false;<a name="line.404"></a>
+<span class="sourceLineNo">392</span>    if (isEmptyStopRow(scan.getStopRow())) {<a name="line.392"></a>
+<span class="sourceLineNo">393</span>      return false;<a name="line.393"></a>
+<span class="sourceLineNo">394</span>    }<a name="line.394"></a>
+<span class="sourceLineNo">395</span>    int c = Bytes.compareTo(info.getEndKey(), scan.getStopRow());<a name="line.395"></a>
+<span class="sourceLineNo">396</span>    // 1. if our stop row is less than the endKey of the region<a name="line.396"></a>
+<span class="sourceLineNo">397</span>    // 2. if our stop row is equal to the endKey of the region and we do not include the stop row<a name="line.397"></a>
+<span class="sourceLineNo">398</span>    // for scan.<a name="line.398"></a>
+<span class="sourceLineNo">399</span>    return c &gt; 0 || (c == 0 &amp;&amp; !scan.includeStopRow());<a name="line.399"></a>
+<span class="sourceLineNo">400</span>  }<a name="line.400"></a>
+<span class="sourceLineNo">401</span><a name="line.401"></a>
+<span class="sourceLineNo">402</span>  static boolean noMoreResultsForReverseScan(Scan scan, RegionInfo info) {<a name="line.402"></a>
+<span class="sourceLineNo">403</span>    if (isEmptyStartRow(info.getStartKey())) {<a name="line.403"></a>
+<span class="sourceLineNo">404</span>      return true;<a name="line.404"></a>
 <span class="sourceLineNo">405</span>    }<a name="line.405"></a>
-<span class="sourceLineNo">406</span>    // no need to test the inclusive of the stop row as the start key of a region is included in<a name="line.406"></a>
-<span class="sourceLineNo">407</span>    // the region.<a name="line.407"></a>
-<span class="sourceLineNo">408</span>    return Bytes.compareTo(info.getStartKey(), scan.getStopRow()) &lt;= 0;<a name="line.408"></a>
-<span class="sourceLineNo">409</span>  }<a name="line.409"></a>
-<span class="sourceLineNo">410</span><a name="line.410"></a>
-<span class="sourceLineNo">411</span>  static &lt;T&gt; CompletableFuture&lt;List&lt;T&gt;&gt; allOf(List&lt;CompletableFuture&lt;T&gt;&gt; futures) {<a name="line.411"></a>
-<span class="sourceLineNo">412</span>    return CompletableFuture.allOf(futures.toArray(new CompletableFuture[0]))<a name="line.412"></a>
-<span class="sourceLineNo">413</span>      .thenApply(v -&gt; futures.stream().map(f -&gt; f.getNow(null)).collect(toList()));<a name="line.413"></a>
-<span class="sourceLineNo">414</span>  }<a name="line.414"></a>
-<span class="sourceLineNo">415</span><a name="line.415"></a>
-<span class="sourceLineNo">416</span>  public static ScanResultCache createScanResultCache(Scan scan) {<a name="line.416"></a>
-<span class="sourceLineNo">417</span>    if (scan.getAllowPartialResults()) {<a name="line.417"></a>
-<span class="sourceLineNo">418</span>      return new AllowPartialScanResultCache();<a name="line.418"></a>
-<span class="sourceLineNo">419</span>    } else if (scan.getBatch() &gt; 0) {<a name="line.419"></a>
-<span class="sourceLineNo">420</span>      return new BatchScanResultCache(scan.getBatch());<a name="line.420"></a>
-<span class="sourceLineNo">421</span>    } else {<a name="line.421"></a>
-<span class="sourceLineNo">422</span>      return new CompleteScanResultCache();<a name="line.422"></a>
-<span class="sourceLineNo">423</span>    }<a name="line.423"></a>
-<span class="sourceLineNo">424</span>  }<a name="line.424"></a>
-<span class="sourceLineNo">425</span><a name="line.425"></a>
-<span class="sourceLineNo">426</span>  private static final String MY_ADDRESS = getMyAddress();<a name="line.426"></a>
-<span class="sourceLineNo">427</span><a name="line.427"></a>
-<span class="sourceLineNo">428</span>  private static String getMyAddress() {<a name="line.428"></a>
-<span class="sourceLineNo">429</span>    try {<a name="line.429"></a>
-<span class="sourceLineNo">430</span>      return DNS.getDefaultHost("default", "default");<a name="line.430"></a>
-<span class="sourceLineNo">431</span>    } catch (UnknownHostException uhe) {<a name="line.431"></a>
-<span class="sourceLineNo">432</span>      LOG.error("cannot determine my address", uhe);<a name="line.432"></a>
-<span class="sourceLineNo">433</span>      return null;<a name="line.433"></a>
-<span class="sourceLineNo">434</span>    }<a name="line.434"></a>
-<span class="sourceLineNo">435</span>  }<a name="line.435"></a>
-<span class="sourceLineNo">436</span><a name="line.436"></a>
-<span class="sourceLineNo">437</span>  static boolean isRemote(String host) {<a name="line.437"></a>
-<span class="sourceLineNo">438</span>    return !host.equalsIgnoreCase(MY_ADDRESS);<a name="line.438"></a>
-<span class="sourceLineNo">439</span>  }<a name="line.439"></a>
-<span class="sourceLineNo">440</span><a name="line.440"></a>
-<span class="sourceLineNo">441</span>  static void incRPCCallsMetrics(ScanMetrics scanMetrics, boolean isRegionServerRemote) {<a name="line.441"></a>
-<span class="sourceLineNo">442</span>    if (scanMetrics == null) {<a name="line.442"></a>
-<span class="sourceLineNo">443</span>      return;<a name="line.443"></a>
-<span class="sourceLineNo">444</span>    }<a name="line.444"></a>
-<span class="sourceLineNo">445</span>    scanMetrics.countOfRPCcalls.incrementAndGet();<a name="line.445"></a>
-<span class="sourceLineNo">446</span>    if (isRegionServerRemote) {<a name="line.446"></a>
-<span class="sourceLineNo">447</span>      scanMetrics.countOfRemoteRPCcalls.incrementAndGet();<a name="line.447"></a>
-<span class="sourceLineNo">448</span>    }<a name="line.448"></a>
-<span class="sourceLineNo">449</span>  }<a name="line.449"></a>
-<span class="sourceLineNo">450</span><a name="line.450"></a>
-<span class="sourceLineNo">451</span>  static void incRPCRetriesMetrics(ScanMetrics scanMetrics, boolean isRegionServerRemote) {<a name="line.451"></a>
-<span class="sourceLineNo">452</span>    if (scanMetrics == null) {<a name="line.452"></a>
-<span class="sourceLineNo">453</span>      return;<a name="line.453"></a>
-<span class="sourceLineNo">454</span>    }<a name="line.454"></a>
-<span class="sourceLineNo">455</span>    scanMetrics.countOfRPCRetries.incrementAndGet();<a name="line.455"></a>
-<span class="sourceLineNo">456</span>    if (isRegionServerRemote) {<a name="line.456"></a>
-<span class="sourceLineNo">457</span>      scanMetrics.countOfRemoteRPCRetries.incrementAndGet();<a name="line.457"></a>
-<span class="sourceLineNo">458</span>    }<a name="line.458"></a>
-<span class="sourceLineNo">459</span>  }<a name="line.459"></a>
-<span class="sourceLineNo">460</span><a name="line.460"></a>
-<span class="sourceLineNo">461</span>  static void updateResultsMetrics(ScanMetrics scanMetrics, Result[] rrs,<a name="line.461"></a>
-<span class="sourceLineNo">462</span>      boolean isRegionServerRemote) {<a name="line.462"></a>
-<span class="sourceLineNo">463</span>    if (scanMetrics == null || rrs == null || rrs.length == 0) {<a name="line.463"></a>
-<span class="sourceLineNo">464</span>      return;<a name="line.464"></a>
-<span class="sourceLineNo">465</span>    }<a name="line.465"></a>
-<span class="sourceLineNo">466</span>    long resultSize = 0;<a name="line.466"></a>
-<span class="sourceLineNo">467</span>    for (Result rr : rrs) {<a name="line.467"></a>
-<span class="sourceLineNo">468</span>      for (Cell cell : rr.rawCells()) {<a name="line.468"></a>
-<span class="sourceLineNo">469</span>        resultSize += PrivateCellUtil.estimatedSerializedSizeOf(cell);<a name="line.469"></a>
-<span class="sourceLineNo">470</span>      }<a name="line.470"></a>
-<span class="sourceLineNo">471</span>    }<a name="line.471"></a>
-<span class="sourceLineNo">472</span>    scanMetrics.countOfBytesInResults.addAndGet(resultSize);<a name="line.472"></a>
-<span class="sourceLineNo">473</span>    if (isRegionServerRemote) {<a name="line.473"></a>
-<span class="sourceLineNo">474</span>      scanMetrics.countOfBytesInRemoteResults.addAndGet(resultSize);<a name="line.474"></a>
-<span class="sourceLineNo">475</span>    }<a name="line.475"></a>
-<span class="sourceLineNo">476</span>  }<a name="line.476"></a>
-<span class="sourceLineNo">477</span><a name="line.477"></a>
-<span class="sourceLineNo">478</span>  /**<a name="line.478"></a>
-<span class="sourceLineNo">479</span>   * Use the scan metrics returned by the server to add to the identically named counters in the<a name="line.479"></a>
-<span class="sourceLineNo">480</span>   * client side metrics. If a counter does not exist with the same name as the server side metric,<a name="line.480"></a>
-<span class="sourceLineNo">481</span>   * the attempt to increase the counter will fail.<a name="line.481"></a>
-<span class="sourceLineNo">482</span>   */<a name="line.482"></a>
-<span class="sourceLineNo">483</span>  static void updateServerSideMetrics(ScanMetrics scanMetrics, ScanResponse response) {<a name="line.483"></a>
-<span class="sourceLineNo">484</span>    if (scanMetrics == null || response == null || !response.hasScanMetrics()) {<a name="line.484"></a>
-<span class="sourceLineNo">485</span>      return;<a name="line.485"></a>
-<span class="sourceLineNo">486</span>    }<a name="line.486"></a>
-<span class="sourceLineNo">487</span>    ResponseConverter.getScanMetrics(response).forEach(scanMetrics::addToCounter);<a name="line.487"></a>
-<span class="sourceLineNo">488</span>  }<a name="line.488"></a>
-<span class="sourceLineNo">489</span><a name="line.489"></a>
-<span class="sourceLineNo">490</span>  static void incRegionCountMetrics(ScanMetrics scanMetrics) {<a name="line.490"></a>
-<span class="sourceLineNo">491</span>    if (scanMetrics == null) {<a name="line.491"></a>
-<span class="sourceLineNo">492</span>      return;<a name="line.492"></a>
-<span class="sourceLineNo">493</span>    }<a name="line.493"></a>
-<span class="sourceLineNo">494</span>    scanMetrics.countOfRegions.incrementAndGet();<a name="line.494"></a>
-<span class="sourceLineNo">495</span>  }<a name="line.495"></a>
-<span class="sourceLineNo">496</span><a name="line.496"></a>
-<span class="sourceLineNo">497</span>  /**<a name="line.497"></a>
-<span class="sourceLineNo">498</span>   * Connect the two futures, if the src future is done, then mark the dst future as done. And if<a name="line.498"></a>
-<span class="sourceLineNo">499</span>   * the dst future is done, then cancel the src future. This is used for timeline consistent read.<a name="line.499"></a>
-<span class="sourceLineNo">500</span>   */<a name="line.500"></a>
-<span class="sourceLineNo">501</span>  private static &lt;T&gt; void connect(CompletableFuture&lt;T&gt; srcFuture, CompletableFuture&lt;T&gt; dstFuture) {<a name="line.501"></a>
-<span class="sourceLineNo">502</span>    addListener(srcFuture, (r, e) -&gt; {<a name="line.502"></a>
-<span class="sourceLineNo">503</span>      if (e != null) {<a name="line.503"></a>
-<span class="sourceLineNo">504</span>        dstFuture.completeExceptionally(e);<a name="line.504"></a>
-<span class="sourceLineNo">505</span>      } else {<a name="line.505"></a>
-<span class="sourceLineNo">506</span>        dstFuture.complete(r);<a name="line.506"></a>
-<span class="sourceLineNo">507</span>      }<a name="line.507"></a>
-<span class="sourceLineNo">508</span>    });<a name="line.508"></a>
-<span class="sourceLineNo">509</span>    // The cancellation may be a dummy one as the dstFuture may be completed by this srcFuture.<a name="line.509"></a>
-<span class="sourceLineNo">510</span>    // Notice that this is a bit tricky, as the execution chain maybe 'complete src -&gt; complete dst<a name="line.510"></a>
-<span class="sourceLineNo">511</span>    // -&gt; cancel src', for now it seems to be fine, as the will use CAS to set the result first in<a name="line.511"></a>
-<span class="sourceLineNo">512</span>    // CompletableFuture. If later this causes problems, we could use whenCompleteAsync to break the<a name="line.512"></a>
-<span class="sourceLineNo">513</span>    // tie.<a name="line.513"></a>
-<span class="sourceLineNo">514</span>    addListener(dstFuture, (r, e) -&gt; srcFuture.cancel(false));<a name="line.514"></a>
-<span class="sourceLineNo">515</span>  }<a name="line.515"></a>
-<span class="sourceLineNo">516</span><a name="line.516"></a>
-<span class="sourceLineNo">517</span>  private static &lt;T&gt; void sendRequestsToSecondaryReplicas(<a name="line.517"></a>
-<span class="sourceLineNo">518</span>      Function&lt;Integer, CompletableFuture&lt;T&gt;&gt; requestReplica, RegionLocations locs,<a name="line.518"></a>
-<span class="sourceLineNo">519</span>      CompletableFuture&lt;T&gt; future) {<a name="line.519"></a>
-<span class="sourceLineNo">520</span>    if (future.isDone()) {<a name="line.520"></a>
-<span class="sourceLineNo">521</span>      // do not send requests to secondary replicas if the future is done, i.e, the primary request<a name="line.521"></a>
-<span class="sourceLineNo">522</span>      // has already been finished.<a name="line.522"></a>
-<span class="sourceLineNo">523</span>      return;<a name="line.523"></a>
-<span class="sourceLineNo">524</span>    }<a name="line.524"></a>
-<span class="sourceLineNo">525</span>    for (int replicaId = 1, n = locs.size(); replicaId &lt; n; replicaId++) {<a name="line.525"></a>
-<span class="sourceLineNo">526</span>      CompletableFuture&lt;T&gt; secondaryFuture = requestReplica.apply(replicaId);<a name="line.526"></a>
-<span class="sourceLineNo">527</span>      connect(secondaryFuture, future);<a name="line.527"></a>
-<span class="sourceLineNo">528</span>    }<a name="line.528"></a>
-<span class="sourceLineNo">529</span>  }<a name="line.529"></a>
-<span class="sourceLineNo">530</span><a name="line.530"></a>
-<span class="sourceLineNo">531</span>  static &lt;T&gt; CompletableFuture&lt;T&gt; timelineConsistentRead(AsyncRegionLocator locator,<a name="line.531"></a>
-<span class="sourceLineNo">532</span>      TableName tableName, Query query, byte[] row, RegionLocateType locateType,<a name="line.532"></a>
-<span class="sourceLineNo">533</span>      Function&lt;Integer, CompletableFuture&lt;T&gt;&gt; requestReplica, long rpcTimeoutNs,<a name="line.533"></a>
-<span class="sourceLineNo">534</span>      long primaryCallTimeoutNs, Timer retryTimer) {<a name="line.534"></a>
-<span class="sourceLineNo">535</span>    if (query.getConsistency() == Consistency.STRONG) {<a name="line.535"></a>
-<span class="sourceLineNo">536</span>      return requestReplica.apply(RegionReplicaUtil.DEFAULT_REPLICA_ID);<a name="line.536"></a>
-<span class="sourceLineNo">537</span>    }<a name="line.537"></a>
-<span class="sourceLineNo">538</span>    // user specifies a replica id explicitly, just send request to the specific replica<a name="line.538"></a>
-<span class="sourceLineNo">539</span>    if (query.getReplicaId() &gt;= 0) {<a name="line.539"></a>
-<span class="sourceLineNo">540</span>      return requestReplica.apply(query.getReplicaId());<a name="line.540"></a>
-<span class="sourceLineNo">541</span>    }<a name="line.541"></a>
-<span class="sourceLineNo">542</span>    // Timeline consistent read, where we may send requests to other region replicas<a name="line.542"></a>
-<span class="sourceLineNo">543</span>    CompletableFuture&lt;T&gt; primaryFuture = requestReplica.apply(RegionReplicaUtil.DEFAULT_REPLICA_ID);<a name="line.543"></a>
-<span class="sourceLineNo">544</span>    CompletableFuture&lt;T&gt; future = new CompletableFuture&lt;&gt;();<a name="line.544"></a>
-<span class="sourceLineNo">545</span>    connect(primaryFuture, future);<a name="line.545"></a>
-<span class="sourceLineNo">546</span>    long startNs = System.nanoTime();<a name="line.546"></a>
-<span class="sourceLineNo">547</span>    // after the getRegionLocations, all the locations for the replicas of this region should have<a name="line.547"></a>
-<span class="sourceLineNo">548</span>    // been cached, so it is not big deal to locate them again when actually sending requests to<a name="line.548"></a>
-<span class="sourceLineNo">549</span>    // these replicas.<a name="line.549"></a>
-<span class="sourceLineNo">550</span>    addListener(locator.getRegionLocations(tableName, row, locateType, false, rpcTimeoutNs),<a name="line.550"></a>
-<span class="sourceLineNo">551</span>      (locs, error) -&gt; {<a name="line.551"></a>
-<span class="sourceLineNo">552</span>        if (error != null) {<a name="line.552"></a>
-<span class="sourceLineNo">553</span>          LOG.warn(<a name="line.553"></a>
-<span class="sourceLineNo">554</span>            "Failed to locate all the replicas for table={}, row='{}', locateType={}" +<a name="line.554"></a>
-<span class="sourceLineNo">555</span>              " give up timeline consistent read",<a name="line.555"></a>
-<span class="sourceLineNo">556</span>            tableName, Bytes.toStringBinary(row), locateType, error);<a name="line.556"></a>
-<span class="sourceLineNo">557</span>          return;<a name="line.557"></a>
-<span class="sourceLineNo">558</span>        }<a name="line.558"></a>
-<span class="sourceLineNo">559</span>        if (locs.size() &lt;= 1) {<a name="line.559"></a>
-<span class="sourceLineNo">560</span>          LOG.warn(<a name="line.560"></a>
-<span class="sourceLineNo">561</span>            "There are no secondary replicas for region {}, give up timeline consistent read",<a name="line.561"></a>
-<span class="sourceLineNo">562</span>            locs.getDefaultRegionLocation().getRegion());<a name="line.562"></a>
-<span class="sourceLineNo">563</span>          return;<a name="line.563"></a>
-<span class="sourceLineNo">564</span>        }<a name="line.564"></a>
-<span class="sourceLineNo">565</span>        long delayNs = primaryCallTimeoutNs - (System.nanoTime() - startNs);<a name="line.565"></a>
-<span class="sourceLineNo">566</span>        if (delayNs &lt;= 0) {<a name="line.566"></a>
-<span class="sourceLineNo">567</span>          sendRequestsToSecondaryReplicas(requestReplica, locs, future);<a name="line.567"></a>
-<span class="sourceLineNo">568</span>        } else {<a name="line.568"></a>
-<span class="sourceLineNo">569</span>          retryTimer.newTimeout(<a name="line.569"></a>
-<span class="sourceLineNo">570</span>            timeout -&gt; sendRequestsToSecondaryReplicas(requestReplica, locs, future), delayNs,<a name="line.570"></a>
-<span class="sourceLineNo">571</span>            TimeUnit.NANOSECONDS);<a name="line.571"></a>
-<span class="sourceLineNo">572</span>        }<a name="line.572"></a>
-<span class="sourceLineNo">573</span>      });<a name="line.573"></a>
-<span class="sourceLineNo">574</span>    return future;<a name="line.574"></a>
-<span class="sourceLineNo">575</span>  }<a name="line.575"></a>
-<span class="sourceLineNo">576</span><a name="line.576"></a>
-<span class="sourceLineNo">577</span>  // validate for well-formedness<a name="line.577"></a>
-<span class="sourceLineNo">578</span>  static void validatePut(Put put, int maxKeyValueSize) throws IllegalArgumentException {<a name="line.578"></a>
-<span class="sourceLineNo">579</span>    if (put.isEmpty()) {<a name="line.579"></a>
-<span class="sourceLineNo">580</span>      throw new IllegalArgumentException("No columns to insert");<a name="line.580"></a>
-<span class="sourceLineNo">581</span>    }<a name="line.581"></a>
-<span class="sourceLineNo">582</span>    if (maxKeyValueSize &gt; 0) {<a name="line.582"></a>
-<span class="sourceLineNo">583</span>      for (List&lt;Cell&gt; list : put.getFamilyCellMap().values()) {<a name="line.583"></a>
-<span class="sourceLineNo">584</span>        for (Cell cell : list) {<a name="line.584"></a>
-<span class="sourceLineNo">585</span>          if (cell.getSerializedSize() &gt; maxKeyValueSize) {<a name="line.585"></a>
-<span class="sourceLineNo">586</span>            throw new IllegalArgumentException("KeyValue size too large");<a name="line.586"></a>
-<span class="sourceLineNo">587</span>          }<a name="line.587"></a>
-<span class="sourceLineNo">588</span>        }<a name="line.588"></a>
-<span class="sourceLineNo">589</span>      }<a name="line.589"></a>
-<span class="sourceLineNo">590</span>    }<a name="line.590"></a>
-<span class="sourceLineNo">591</span>  }<a name="line.591"></a>
-<span class="sourceLineNo">592</span><a name="line.592"></a>
-<span class="sourceLineNo">593</span>  /**<a name="line.593"></a>
-<span class="sourceLineNo">594</span>   * Select the priority for the rpc call.<a name="line.594"></a>
-<span class="sourceLineNo">595</span>   * &lt;p/&gt;<a name="line.595"></a>
-<span class="sourceLineNo">596</span>   * The rules are:<a name="line.596"></a>
-<span class="sourceLineNo">597</span>   * &lt;ol&gt;<a name="line.597"></a>
-<span class="sourceLineNo">598</span>   * &lt;li&gt;If user set a priority explicitly, then just use it.&lt;/li&gt;<a name="line.598"></a>
-<span class="sourceLineNo">599</span>   * &lt;li&gt;For system table, use {@link HConstants#SYSTEMTABLE_QOS}.&lt;/li&gt;<a name="line.599"></a>
-<span class="sourceLineNo">600</span>   * &lt;li&gt;For other tables, use {@link HConstants#NORMAL_QOS}.&lt;/li&gt;<a name="line.600"></a>
-<span class="sourceLineNo">601</span>   * &lt;/ol&gt;<a name="line.601"></a>
-<span class="sourceLineNo">602</span>   * @param priority the priority set by user, can be {@link HConstants#PRIORITY_UNSET}.<a name="line.602"></a>
-<span class="sourceLineNo">603</span>   * @param tableName the table we operate on<a name="line.603"></a>
-<span class="sourceLineNo">604</span>   */<a name="line.604"></a>
-<span class="sourceLineNo">605</span>  static int calcPriority(int priority, TableName tableName) {<a name="line.605"></a>
-<span class="sourceLineNo">606</span>    if (priority != HConstants.PRIORITY_UNSET) {<a name="line.606"></a>
-<span class="sourceLineNo">607</span>      return priority;<a name="line.607"></a>
-<span class="sourceLineNo">608</span>    } else {<a name="line.608"></a>
-<span class="sourceLineNo">609</span>      return getPriority(tableName);<a name="line.609"></a>
-<span class="sourceLineNo">610</span>    }<a name="line.610"></a>
-<span class="sourceLineNo">611</span>  }<a name="line.611"></a>
-<span class="sourceLineNo">612</span><a name="line.612"></a>
-<span class="sourceLineNo">613</span>  static int getPriority(TableName tableName) {<a name="line.613"></a>
-<span class="sourceLineNo">614</span>    if (tableName.isSystemTable()) {<a name="line.614"></a>
-<span class="sourceLineNo">615</span>      return HConstants.SYSTEMTABLE_QOS;<a name="line.615"></a>
-<span class="sourceLineNo">616</span>    } else {<a name="line.616"></a>
-<span class="sourceLineNo">617</span>      return HConstants.NORMAL_QOS;<a name="line.617"></a>
-<span class="sourceLineNo">618</span>    }<a name="line.618"></a>
-<span class="sourceLineNo">619</span>  }<a name="line.619"></a>
-<span class="sourceLineNo">620</span>}<a name="line.620"></a>
+<span class="sourceLineNo">406</span>    if (isEmptyStopRow(scan.getStopRow())) {<a name="line.406"></a>
+<span class="sourceLineNo">407</span>      return false;<a name="line.407"></a>
+<span class="sourceLineNo">408</span>    }<a name="line.408"></a>
+<span class="sourceLineNo">409</span>    // no need to test the inclusive of the stop row as the start key of a region is included in<a name="line.409"></a>
+<span class="sourceLineNo">410</span>    // the region.<a name="line.410"></a>
+<span class="sourceLineNo">411</span>    return Bytes.compareTo(info.getStartKey(), scan.getStopRow()) &lt;= 0;<a name="line.411"></a>
+<span class="sourceLineNo">412</span>  }<a name="line.412"></a>
+<span class="sourceLineNo">413</span><a name="line.413"></a>
+<span class="sourceLineNo">414</span>  static &lt;T&gt; CompletableFuture&lt;List&lt;T&gt;&gt; allOf(List&lt;CompletableFuture&lt;T&gt;&gt; futures) {<a name="line.414"></a>
+<span class="sourceLineNo">415</span>    return CompletableFuture.allOf(futures.toArray(new CompletableFuture[0]))<a name="line.415"></a>
+<span class="sourceLineNo">416</span>      .thenApply(v -&gt; futures.stream().map(f -&gt; f.getNow(null)).collect(toList()));<a name="line.416"></a>
+<span class="sourceLineNo">417</span>  }<a name="line.417"></a>
+<span class="sourceLineNo">418</span><a name="line.418"></a>
+<span class="sourceLineNo">419</span>  public static ScanResultCache createScanResultCache(Scan scan) {<a name="line.419"></a>
+<span class="sourceLineNo">420</span>    if (scan.getAllowPartialResults()) {<a name="line.420"></a>
+<span class="sourceLineNo">421</span>      return new AllowPartialScanResultCache();<a name="line.421"></a>
+<span class="sourceLineNo">422</span>    } else if (scan.getBatch() &gt; 0) {<a name="line.422"></a>
+<span class="sourceLineNo">423</span>      return new BatchScanResultCache(scan.getBatch());<a name="line.423"></a>
+<span class="sourceLineNo">424</span>    } else {<a name="line.424"></a>
+<span class="sourceLineNo">425</span>      return new CompleteScanResultCache();<a name="line.425"></a>
+<span class="sourceLineNo">426</span>    }<a name="line.426"></a>
+<span class="sourceLineNo">427</span>  }<a name="line.427"></a>
+<span class="sourceLineNo">428</span><a name="line.428"></a>
+<span class="sourceLineNo">429</span>  private static final String MY_ADDRESS = getMyAddress();<a name="line.429"></a>
+<span class="sourceLineNo">430</span><a name="line.430"></a>
+<span class="sourceLineNo">431</span>  private static String getMyAddress() {<a name="line.431"></a>
+<span class="sourceLineNo">432</span>    try {<a name="line.432"></a>
+<span class="sourceLineNo">433</span>      return DNS.getDefaultHost("default", "default");<a name="line.433"></a>
+<span class="sourceLineNo">434</span>    } catch (UnknownHostException uhe) {<a name="line.434"></a>
+<span class="sourceLineNo">435</span>      LOG.error("cannot determine my address", uhe);<a name="line.435"></a>
+<span class="sourceLineNo">436</span>      return null;<a name="line.436"></a>
+<span class="sourceLineNo">437</span>    }<a name="line.437"></a>
+<span class="sourceLineNo">438</span>  }<a name="line.438"></a>
+<span class="sourceLineNo">439</span><a name="line.439"></a>
+<span class="sourceLineNo">440</span>  static boolean isRemote(String host) {<a name="line.440"></a>
+<span class="sourceLineNo">441</span>    return !host.equalsIgnoreCase(MY_ADDRESS);<a name="line.441"></a>
+<span class="sourceLineNo">442</span>  }<a name="line.442"></a>
+<span class="sourceLineNo">443</span><a name="line.443"></a>
+<span class="sourceLineNo">444</span>  static void incRPCCallsMetrics(ScanMetrics scanMetrics, boolean isRegionServerRemote) {<a name="line.444"></a>
+<span class="sourceLineNo">445</span>    if (scanMetrics == null) {<a name="line.445"></a>
+<span class="sourceLineNo">446</span>      return;<a name="line.446"></a>
+<span class="sourceLineNo">447</span>    }<a name="line.447"></a>
+<span class="sourceLineNo">448</span>    scanMetrics.countOfRPCcalls.incrementAndGet();<a name="line.448"></a>
+<span class="sourceLineNo">449</span>    if (isRegionServerRemote) {<a name="line.449"></a>
+<span class="sourceLineNo">450</span>      scanMetrics.countOfRemoteRPCcalls.incrementAndGet();<a name="line.450"></a>
+<span class="sourceLineNo">451</span>    }<a name="line.451"></a>
+<span class="sourceLineNo">452</span>  }<a name="line.452"></a>
+<span class="sourceLineNo">453</span><a name="line.453"></a>
+<span class="sourceLineNo">454</span>  static void incRPCRetriesMetrics(ScanMetrics scanMetrics, boolean isRegionServerRemote) {<a name="line.454"></a>
+<span class="sourceLineNo">455</span>    if (scanMetrics == null) {<a name="line.455"></a>
+<span class="sourceLineNo">456</span>      return;<a name="line.456"></a>
+<span class="sourceLineNo">457</span>    }<a name="line.457"></a>
+<span class="sourceLineNo">458</span>    scanMetrics.countOfRPCRetries.incrementAndGet();<a name="line.458"></a>
+<span class="sourceLineNo">459</span>    if (isRegionServerRemote) {<a name="line.459"></a>
+<span class="sourceLineNo">460</span>      scanMetrics.countOfRemoteRPCRetries.incrementAndGet();<a name="line.460"></a>
+<span class="sourceLineNo">461</span>    }<a name="line.461"></a>
+<span class="sourceLineNo">462</span>  }<a name="line.462"></a>
+<span class="sourceLineNo">463</span><a name="line.463"></a>
+<span class="sourceLineNo">464</span>  static void updateResultsMetrics(ScanMetrics scanMetrics, Result[] rrs,<a name="line.464"></a>
+<span class="sourceLineNo">465</span>      boolean isRegionServerRemote) {<a name="line.465"></a>
+<span class="sourceLineNo">466</span>    if (scanMetrics == null || rrs == null || rrs.length == 0) {<a name="line.466"></a>
+<span class="sourceLineNo">467</span>      return;<a name="line.467"></a>
+<span class="sourceLineNo">468</span>    }<a name="line.468"></a>
+<span class="sourceLineNo">469</span>    long resultSize = 0;<a name="line.469"></a>
+<span class="sourceLineNo">470</span>    for (Result rr : rrs) {<a name="line.470"></a>
+<span class="sourceLineNo">471</span>      for (Cell cell : rr.rawCells()) {<a name="line.471"></a>
+<span class="sourceLineNo">472</span>        resultSize += PrivateCellUtil.estimatedSerializedSizeOf(cell);<a name="line.472"></a>
+<span class="sourceLineNo">473</span>      }<a name="line.473"></a>
+<span class="sourceLineNo">474</span>    }<a name="line.474"></a>
+<span class="sourceLineNo">475</span>    scanMetrics.countOfBytesInResults.addAndGet(resultSize);<a name="line.475"></a>
+<span class="sourceLineNo">476</span>    if (isRegionServerRemote) {<a name="line.476"></a>
+<span class="sourceLineNo">477</span>      scanMetrics.countOfBytesInRemoteResults.addAndGet(resultSize);<a name="line.477"></a>
+<span class="sourceLineNo">478</span>    }<a name="line.478"></a>
+<span class="sourceLineNo">479</span>  }<a name="line.479"></a>
+<span class="sourceLineNo">480</span><a name="line.480"></a>
+<span class="sourceLineNo">481</span>  /**<a name="line.481"></a>
+<span class="sourceLineNo">482</span>   * Use the scan metrics returned by the server to add to the identically named counters in the<a name="line.482"></a>
+<span class="sourceLineNo">483</span>   * client side metrics. If a counter does not exist with the same name as the server side metric,<a name="line.483"></a>
+<span class="sourceLineNo">484</span>   * the attempt to increase the counter will fail.<a name="line.484"></a>
+<span class="sourceLineNo">485</span>   */<a name="line.485"></a>
+<span class="sourceLineNo">486</span>  static void updateServerSideMetrics(ScanMetrics scanMetrics, ScanResponse response) {<a name="line.486"></a>
+<span class="sourceLineNo">487</span>    if (scanMetrics == null || response == null || !response.hasScanMetrics()) {<a name="line.487"></a>
+<span class="sourceLineNo">488</span>      return;<a name="line.488"></a>
+<span class="sourceLineNo">489</span>    }<a name="line.489"></a>
+<span class="sourceLineNo">490</span>    ResponseConverter.getScanMetrics(response).forEach(scanMetrics::addToCounter);<a name="line.490"></a>
+<span class="sourceLineNo">491</span>  }<a name="line.491"></a>
+<span class="sourceLineNo">492</span><a name="line.492"></a>
+<span class="sourceLineNo">493</span>  static void incRegionCountMetrics(ScanMetrics scanMetrics) {<a name="line.493"></a>
+<span class="sourceLineNo">494</span>    if (scanMetrics == null) {<a name="line.494"></a>
+<span class="sourceLineNo">495</span>      return;<a name="line.495"></a>
+<span class="sourceLineNo">496</span>    }<a name="line.496"></a>
+<span class="sourceLineNo">497</span>    scanMetrics.countOfRegions.incrementAndGet();<a name="line.497"></a>
+<span class="sourceLineNo">498</span>  }<a name="line.498"></a>
+<span class="sourceLineNo">499</span><a name="line.499"></a>
+<span class="sourceLineNo">500</span>  /**<a name="line.500"></a>
+<span class="sourceLineNo">501</span>   * Connect the two futures, if the src future is done, then mark the dst future as done. And if<a name="line.501"></a>
+<span class="sourceLineNo">502</span>   * the dst future is done, then cancel the src future. This is used for timeline consistent read.<a name="line.502"></a>
+<span class="sourceLineNo">503</span>   */<a name="line.503"></a>
+<span class="sourceLineNo">504</span>  private static &lt;T&gt; void connect(CompletableFuture&lt;T&gt; srcFuture, CompletableFuture&lt;T&gt; dstFuture) {<a name="line.504"></a>
+<span class="sourceLineNo">505</span>    addListener(srcFuture, (r, e) -&gt; {<a name="line.505"></a>
+<span class="sourceLineNo">506</span>      if (e != null) {<a name="line.506"></a>
+<span class="sourceLineNo">507</span>        dstFuture.completeExceptionally(e);<a name="line.507"></a>
+<span class="sourceLineNo">508</span>      } else {<a name="line.508"></a>
+<span class="sourceLineNo">509</span>        dstFuture.complete(r);<a name="line.509"></a>
+<span class="sourceLineNo">510</span>      }<a name="line.510"></a>
+<span class="sourceLineNo">511</span>    });<a name="line.511"></a>
+<span class="sourceLineNo">512</span>    // The cancellation may be a dummy one as the dstFuture may be completed by this srcFuture.<a name="line.512"></a>
+<span class="sourceLineNo">513</span>    // Notice that this is a bit tricky, as the execution chain maybe 'complete src -&gt; complete dst<a name="line.513"></a>
+<span class="sourceLineNo">514</span>    // -&gt; cancel src', for now it seems to be fine, as the will use CAS to set the result first in<a name="line.514"></a>
+<span class="sourceLineNo">515</span>    // CompletableFuture. If later this causes problems, we could use whenCompleteAsync to break the<a name="line.515"></a>
+<span class="sourceLineNo">516</span>    // tie.<a name="line.516"></a>
+<span class="sourceLineNo">517</span>    addListener(dstFuture, (r, e) -&gt; srcFuture.cancel(false));<a name="line.517"></a>
+<span class="sourceLineNo">518</span>  }<a name="line.518"></a>
+<span class="sourceLineNo">519</span><a name="line.519"></a>
+<span class="sourceLineNo">520</span>  private static &lt;T&gt; void sendRequestsToSecondaryReplicas(<a name="line.520"></a>
+<span class="sourceLineNo">521</span>      Function&lt;Integer, CompletableFuture&lt;T&gt;&gt; requestReplica, RegionLocations locs,<a name="line.521"></a>
+<span class="sourceLineNo">522</span>      CompletableFuture&lt;T&gt; future) {<a name="line.522"></a>
+<span class="sourceLineNo">523</span>    if (future.isDone()) {<a name="line.523"></a>
+<span class="sourceLineNo">524</span>      // do not send requests to secondary replicas if the future is done, i.e, the primary request<a name="line.524"></a>
+<span class="sourceLineNo">525</span>      // has already been finished.<a name="line.525"></a>
+<span class="sourceLineNo">526</span>      return;<a name="line.526"></a>
+<span class="sourceLineNo">527</span>    }<a name="line.527"></a>
+<span class="sourceLineNo">528</span>    for (int replicaId = 1, n = locs.size(); replicaId &lt; n; replicaId++) {<a name="line.528"></a>
+<span class="sourceLineNo">529</span>      CompletableFuture&lt;T&gt; secondaryFuture = requestReplica.apply(replicaId);<a name="line.529"></a>
+<span class="sourceLineNo">530</span>      connect(secondaryFuture, future);<a name="line.530"></a>
+<span class="sourceLineNo">531</span>    }<a name="line.531"></a>
+<span class="sourceLineNo">532</span>  }<a name="line.532"></a>
+<span class="sourceLineNo">533</span><a name="line.533"></a>
+<span class="sourceLineNo">534</span>  static &lt;T&gt; CompletableFuture&lt;T&gt; timelineConsistentRead(AsyncRegionLocator locator,<a name="line.534"></a>
+<span class="sourceLineNo">535</span>      TableName tableName, Query query, byte[] row, RegionLocateType locateType,<a name="line.535"></a>
+<span class="sourceLineNo">536</span>      Function&lt;Integer, CompletableFuture&lt;T&gt;&gt; requestReplica, long rpcTimeoutNs,<a name="line.536"></a>
+<span class="sourceLineNo">537</span>      long primaryCallTimeoutNs, Timer retryTimer) {<a name="line.537"></a>
+<span class="sourceLineNo">538</span>    if (query.getConsistency() == Consistency.STRONG) {<a name="line.538"></a>
+<span class="sourceLineNo">539</span>      return requestReplica.apply(RegionReplicaUtil.DEFAULT_REPLICA_ID);<a name="line.539"></a>
+<span class="sourceLineNo">540</span>    }<a name="line.540"></a>
+<span class="sourceLineNo">541</span>    // user specifies a replica id explicitly, just send request to the specific replica<a name="line.541"></a>
+<span class="sourceLineNo">542</span>    if (query.getReplicaId() &gt;= 0) {<a name="line.542"></a>
+<span class="sourceLineNo">543</span>      return requestReplica.apply(query.getReplicaId());<a name="line.543"></a>
+<span class="sourceLineNo">544</span>    }<a name="line.544"></a>
+<span class="sourceLineNo">545</span>    // Timeline consistent read, where we may send requests to other region replicas<a name="line.545"></a>
+<span class="sourceLineNo">546</span>    CompletableFuture&lt;T&gt; primaryFuture = requestReplica.apply(RegionReplicaUtil.DEFAULT_REPLICA_ID);<a name="line.546"></a>
+<span class="sourceLineNo">547</span>    CompletableFuture&lt;T&gt; future = new CompletableFuture&lt;&gt;();<a name="line.547"></a>
+<span class="sourceLineNo">548</span>    connect(primaryFuture, future);<a name="line.548"></a>
+<span class="sourceLineNo">549</span>    long startNs = System.nanoTime();<a name="line.549"></a>
+<span class="sourceLineNo">550</span>    // after the getRegionLocations, all the locations for the replicas of this region should have<a name="line.550"></a>
+<span class="sourceLineNo">551</span>    // been cached, so it is not big deal to locate them again when actually sending requests to<a name="line.551"></a>
+<span class="sourceLineNo">552</span>    // these replicas.<a name="line.552"></a>
+<span class="sourceLineNo">553</span>    addListener(locator.getRegionLocations(tableName, row, locateType, false, rpcTimeoutNs),<a name="line.553"></a>
+<span class="sourceLineNo">554</span>      (locs, error) -&gt; {<a name="line.554"></a>
+<span class="sourceLineNo">555</span>        if (error != null) {<a name="line.555"></a>
+<span class="sourceLineNo">556</span>          LOG.warn(<a name="line.556"></a>
+<span class="sourceLineNo">557</span>            "Failed to locate all the replicas for table={}, row='{}', locateType={}" +<a name="line.557"></a>
+<span class="sourceLineNo">558</span>              " give up timeline consistent read",<a name="line.558"></a>
+<span class="sourceLineNo">559</span>            tableName, Bytes.toStringBinary(row), locateType, error);<a name="line.559"></a>
+<span class="sourceLineNo">560</span>          return;<a name="line.560"></a>
+<span class="sourceLineNo">561</span>        }<a name="line.561"></a>
+<span class="sourceLineNo">562</span>        if (locs.size() &lt;= 1) {<a name="line.562"></a>
+<span class="sourceLineNo">563</span>          LOG.warn(<a name="line.563"></a>
+<span class="sourceLineNo">564</span>            "There are no secondary replicas for region {}, give up timeline consistent read",<a name="line.564"></a>
+<span class="sourceLineNo">565</span>            locs.getDefaultRegionLocation().getRegion());<a name="line.565"></a>
+<span class="sourceLineNo">566</span>          return;<a name="line.566"></a>
+<span class="sourceLineNo">567</span>        }<a name="line.567"></a>
+<span class="sourceLineNo">568</span>        long delayNs = primaryCallTimeoutNs - (System.nanoTime() - startNs);<a name="line.568"></a>
+<span class="sourceLineNo">569</span>        if (delayNs &lt;= 0) {<a name="line.569"></a>
+<span class="sourceLineNo">570</span>          sendRequestsToSecondaryReplicas(requestReplica, locs, future);<a name="line.570"></a>
+<span class="sourceLineNo">571</span>        } else {<a name="line.571"></a>
+<span class="sourceLineNo">572</span>          retryTimer.newTimeout(<a name="line.572"></a>
+<span class="sourceLineNo">573</span>            timeout -&gt; sendRequestsToSecondaryReplicas(requestReplica, locs, future), delayNs,<a name="line.573"></a>
+<span class="sourceLineNo">574</span>            TimeUnit.NANOSECONDS);<a name="line.574"></a>
+<span class="sourceLineNo">575</span>        }<a name="line.575"></a>
+<span class="sourceLineNo">576</span>      });<a name="line.576"></a>
+<span class="sourceLineNo">577</span>    return future;<a name="line.577"></a>
+<span class="sourceLineNo">578</span>  }<a name="line.578"></a>
+<span class="sourceLineNo">579</span><a name="line.579"></a>
+<span class="sourceLineNo">580</span>  // validate for well-formedness<a name="line.580"></a>
+<span class="sourceLineNo">581</span>  static void validatePut(Put put, int maxKeyValueSize) throws IllegalArgumentException {<a name="line.581"></a>
+<span class="sourceLineNo">582</span>    if (put.isEmpty()) {<a name="line.582"></a>
+<span class="sourceLineNo">583</span>      throw new IllegalArgumentException("No columns to insert");<a name="line.583"></a>
+<span class="sourceLineNo">584</span>    }<a name="line.584"></a>
+<span class="sourceLineNo">585</span>    if (maxKeyValueSize &gt; 0) {<a name="line.585"></a>
+<span class="sourceLineNo">586</span>      for (List&lt;Cell&gt; list : put.getFamilyCellMap().values()) {<a name="line.586"></a>
+<span class="sourceLineNo">587</span>        for (Cell cell : list) {<a name="line.587"></a>
+<span class="sourceLineNo">588</span>          if (cell.getSerializedSize() &gt; maxKeyValueSize) {<a name="line.588"></a>
+<span class="sourceLineNo">589</span>            throw new IllegalArgumentException("KeyValue size too large");<a name="line.589"></a>
+<span class="sourceLineNo">590</span>          }<a name="line.590"></a>
+<span class="sourceLineNo">591</span>        }<a name="line.591"></a>
+<span class="sourceLineNo">592</span>      }<a name="line.592"></a>
+<span class="sourceLineNo">593</span>    }<a name="line.593"></a>
+<span class="sourceLineNo">594</span>  }<a name="line.594"></a>
+<span class="sourceLineNo">595</span><a name="line.595"></a>
+<span class="sourceLineNo">596</span>  /**<a name="line.596"></a>
+<span class="sourceLineNo">597</span>   * Select the priority for the rpc call.<a name="line.597"></a>
+<span class="sourceLineNo">598</span>   * &lt;p/&gt;<a name="line.598"></a>
+<span class="sourceLineNo">599</span>   * The rules are:<a name="line.599"></a>
+<span class="sourceLineNo">600</span>   * &lt;ol&gt;<a name="line.600"></a>
+<span class="sourceLineNo">601</span>   * &lt;li&gt;If user set a priority explicitly, then just use it.&lt;/li&gt;<a name="line.601"></a>
+<span class="sourceLineNo">602</span>   * &lt;li&gt;For system table, use {@link HConstants#SYSTEMTABLE_QOS}.&lt;/li&gt;<a name="line.602"></a>
+<span class="sourceLineNo">603</span>   * &lt;li&gt;For other tables, use {@link HConstants#NORMAL_QOS}.&lt;/li&gt;<a name="line.603"></a>
+<span class="sourceLineNo">604</span>   * &lt;/ol&gt;<a name="line.604"></a>
+<span class="sourceLineNo">605</span>   * @param priority the priority set by user, can be {@link HConstants#PRIORITY_UNSET}.<a name="line.605"></a>
+<span class="sourceLineNo">606</span>   * @param tableName the table we operate on<a name="line.606"></a>
+<span class="sourceLineNo">607</span>   */<a name="line.607"></a>
+<span class="sourceLineNo">608</span>  static int calcPriority(int priority, TableName tableName) {<a name="line.608"></a>
+<span class="sourceLineNo">609</span>    if (priority != HConstants.PRIORITY_UNSET) {<a name="line.609"></a>
+<span class="sourceLineNo">610</span>      return priority;<a name="line.610"></a>
+<span class="sourceLineNo">611</span>    } else {<a name="line.611"></a>
+<span class="sourceLineNo">612</span>      return getPriority(tableName);<a name="line.612"></a>
+<span class="sourceLineNo">613</span>    }<a name="line.613"></a>
+<span class="sourceLineNo">614</span>  }<a name="line.614"></a>
+<span class="sourceLineNo">615</span><a name="line.615"></a>
+<span class="sourceLineNo">616</span>  static int getPriority(TableName tableName) {<a name="line.616"></a>
+<span class="sourceLineNo">617</span>    if (tableName.isSystemTable()) {<a name="line.617"></a>
+<span class="sourceLineNo">618</span>      return HConstants.SYSTEMTABLE_QOS;<a name="line.618"></a>
+<span class="sourceLineNo">619</span>    } else {<a name="line.619"></a>
+<span class="sourceLineNo">620</span>      return HConstants.NORMAL_QOS;<a name="line.620"></a>
+<span class="sourceLineNo">621</span>    }<a name="line.621"></a>
+<span class="sourceLineNo">622</span>  }<a name="line.622"></a>
+<span class="sourceLineNo">623</span><a name="line.623"></a>
+<span class="sourceLineNo">624</span>  static &lt;T&gt; CompletableFuture&lt;T&gt; getOrFetch(AtomicReference&lt;T&gt; cacheRef,<a name="line.624"></a>
+<span class="sourceLineNo">625</span>      AtomicReference&lt;CompletableFuture&lt;T&gt;&gt; futureRef, boolean reload,<a name="line.625"></a>
+<span class="sourceLineNo">626</span>      Supplier&lt;CompletableFuture&lt;T&gt;&gt; fetch, Predicate&lt;T&gt; validator, String type) {<a name="line.626"></a>
+<span class="sourceLineNo">627</span>    for (;;) {<a name="line.627"></a>
+<span class="sourceLineNo">628</span>      if (!reload) {<a name="line.628"></a>
+<span class="sourceLineNo">629</span>        T value = cacheRef.get();<a name="line.629"></a>
+<span class="sourceLineNo">630</span>        if (value != null &amp;&amp; validator.test(value)) {<a name="line.630"></a>
+<span class="sourceLineNo">631</span>          return CompletableFuture.completedFuture(value);<a name="line.631"></a>
+<span class="sourceLineNo">632</span>        }<a name="line.632"></a>
+<span class="sourceLineNo">633</span>      }<a name="line.633"></a>
+<span class="sourceLineNo">634</span>      LOG.trace("{} cache is null, try fetching from registry", type);<a name="line.634"></a>
+<span class="sourceLineNo">635</span>      if (futureRef.compareAndSet(null, new CompletableFuture&lt;&gt;())) {<a name="line.635"></a>
+<span class="sourceLineNo">636</span>        LOG.debug("Start fetching{} from registry", type);<a name="line.636"></a>
+<span class="sourceLineNo">637</span>        CompletableFuture&lt;T&gt; future = futureRef.get();<a name="line.637"></a>
+<span class="sourceLineNo">638</span>        addListener(fetch.get(), (value, error) -&gt; {<a name="line.638"></a>
+<span class="sourceLineNo">639</span>          if (error != null) {<a name="line.639"></a>
+<span class="sourceLineNo">640</span>            LOG.debug("Failed to fetch {} from registry", type, error);<a name="line.640"></a>
+<span class="sourceLineNo">641</span>            futureRef.getAndSet(null).completeExceptionally(error);<a name="line.641"></a>
+<span class="sourceLineNo">642</span>            return;<a name="line.642"></a>
+<span class="sourceLineNo">643</span>          }<a name="line.643"></a>
+<span class="sourceLineNo">644</span>          LOG.debug("The fetched {} is {}", type, value);<a name="line.644"></a>
+<span class="sourceLineNo">645</span>          // Here we update cache before reset future, so it is possible that someone can get a<a name="line.645"></a>
+<span class="sourceLineNo">646</span>          // stale value. Consider this:<a name="line.646"></a>
+<span class="sourceLineNo">647</span>          // 1. update cacheRef<a name="line.647"></a>
+<span class="sourceLineNo">648</span>          // 2. someone clears the cache and relocates again<a name="line.648"></a>
+<span class="sourceLineNo">649</span>          // 3. the futureRef is not null so the old future is used.<a name="line.649"></a>
+<span class="sourceLineNo">650</span>          // 4. we clear futureRef and complete the future in it with the value being<a name="line.650"></a>
+<span class="sourceLineNo">651</span>          // cleared in step 2.<a name="line.651"></a>
+<span class="sourceLineNo">652</span>          // But we do not think it is a big deal as it rarely happens, and even if it happens, the<a name="line.652"></a>
+<span class="sourceLineNo">653</span>          // caller will retry again later, no correctness problems.<a name="line.653"></a>
+<span class="sourceLineNo">654</span>          cacheRef.set(value);<a name="line.654"></a>
+<span class="sourceLineNo">655</span>          futureRef.set(null);<a name="line.655"></a>
+<span class="sourceLineNo">656</span>          future.complete(value);<a name="line.656"></a>
+<span class="sourceLineNo">657</span>        });<a name="line.657"></a>
+<span class="sourceLineNo">658</span>        return future;<a name="line.658"></a>
+<span class="sourceLineNo">659</span>      } else {<a name="line.659"></a>
+<span class="sourceLineNo">660</span>        CompletableFuture&lt;T&gt; future = futureRef.get();<a name="line.660"></a>
+<span class="sourceLineNo">661</span>        if (future != null) {<a name="line.661"></a>
+<span class="sourceLineNo">662</span>          return future;<a name="line.662"></a>
+<span class="sourceLineNo">663</span>        }<a name="line.663"></a>
+<span class="sourceLineNo">664</span>      }<a name="line.664"></a>
+<span class="sourceLineNo">665</span>    }<a name="line.665"></a>
+<span class="sourceLineNo">666</span>  }<a name="line.666"></a>
+<span class="sourceLineNo">667</span>}<a name="line.667"></a>
 
 
 
diff --git a/downloads.html b/downloads.html
index 3dddc06..ef570b2 100644
--- a/downloads.html
+++ b/downloads.html
@@ -348,7 +348,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2019
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-03-30</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-04-01</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/export_control.html b/export_control.html
index 352d899..1bdbd1e 100644
--- a/export_control.html
+++ b/export_control.html
@@ -187,7 +187,7 @@ for more details.</p>
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2019
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-03-30</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-04-01</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/index.html b/index.html
index 579d727..10123df 100644
--- a/index.html
+++ b/index.html
@@ -267,7 +267,7 @@ Apache HBase is an open-source, distributed, versioned, non-relational database
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2019
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-03-30</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-04-01</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/issue-management.html b/issue-management.html
index fe1b3ae..63e0d9e 100644
--- a/issue-management.html
+++ b/issue-management.html
@@ -159,7 +159,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2019
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-03-30</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-04-01</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/licenses.html b/licenses.html
index fdbc944..cff23d4 100644
--- a/licenses.html
+++ b/licenses.html
@@ -362,7 +362,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2019
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-03-30</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-04-01</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/mailing-lists.html b/mailing-lists.html
index 3205f5a..4399ef7 100644
--- a/mailing-lists.html
+++ b/mailing-lists.html
@@ -212,7 +212,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2019
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-03-30</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-04-01</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/metrics.html b/metrics.html
index 4f4dc9b..05bfe4c 100644
--- a/metrics.html
+++ b/metrics.html
@@ -315,7 +315,7 @@ export HBASE_REGIONSERVER_OPTS=&quot;$HBASE_JMX_OPTS -Dcom.sun.management.jmxrem
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2019
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-03-30</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-04-01</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/old_news.html b/old_news.html
index 9bee815..b960cc9 100644
--- a/old_news.html
+++ b/old_news.html
@@ -296,7 +296,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2019
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-03-30</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-04-01</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/plugin-management.html b/plugin-management.html
index 63714de..f0ea417 100644
--- a/plugin-management.html
+++ b/plugin-management.html
@@ -319,7 +319,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2019
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-03-30</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-04-01</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/plugins.html b/plugins.html
index f63f3ac..fbe82f9 100644
--- a/plugins.html
+++ b/plugins.html
@@ -238,7 +238,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2019
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-03-30</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-04-01</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/poweredbyhbase.html b/poweredbyhbase.html
index 9abcb75..c9e0741 100644
--- a/poweredbyhbase.html
+++ b/poweredbyhbase.html
@@ -625,7 +625,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2019
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-03-30</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-04-01</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/project-info.html b/project-info.html
index 733a71d..9ae7772 100644
--- a/project-info.html
+++ b/project-info.html
@@ -203,7 +203,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2019
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-03-30</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-04-01</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/project-reports.html b/project-reports.html
index 51e3c5b..f5f8f81 100644
--- a/project-reports.html
+++ b/project-reports.html
@@ -176,7 +176,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2019
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-03-30</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-04-01</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/pseudo-distributed.html b/pseudo-distributed.html
index 12da5b2..1654ec6 100644
--- a/pseudo-distributed.html
+++ b/pseudo-distributed.html
@@ -164,7 +164,7 @@ Running Apache HBase (TM) in pseudo-distributed mode
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2019
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-03-30</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-04-01</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/replication.html b/replication.html
index e23b7b1..00feb3f 100644
--- a/replication.html
+++ b/replication.html
@@ -159,7 +159,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2019
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-03-30</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-04-01</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/resources.html b/resources.html
index 62fec70..f8a6bd0 100644
--- a/resources.html
+++ b/resources.html
@@ -187,7 +187,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2019
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-03-30</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-04-01</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/scm.html b/scm.html
index 5d4e37d..8e56552 100644
--- a/scm.html
+++ b/scm.html
@@ -170,7 +170,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2019
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-03-30</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-04-01</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/sponsors.html b/sponsors.html
index 847b9a1..286b345 100644
--- a/sponsors.html
+++ b/sponsors.html
@@ -189,7 +189,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2019
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-03-30</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-04-01</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/summary.html b/summary.html
index 699a98e..dc57cb8 100644
--- a/summary.html
+++ b/summary.html
@@ -202,7 +202,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2019
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-03-30</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-04-01</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/supportingprojects.html b/supportingprojects.html
index 36d9b3b..2d20008 100644
--- a/supportingprojects.html
+++ b/supportingprojects.html
@@ -376,7 +376,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2019
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-03-30</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-04-01</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/team.html b/team.html
index 3f276fd..fabc9a1 100644
--- a/team.html
+++ b/team.html
@@ -643,7 +643,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2019
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-03-30</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2019-04-01</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/testdevapidocs/allclasses-frame.html b/testdevapidocs/allclasses-frame.html
index ba73404..8c35316 100644
--- a/testdevapidocs/allclasses-frame.html
+++ b/testdevapidocs/allclasses-frame.html
@@ -624,6 +624,7 @@
 <li><a href="org/apache/hadoop/hbase/client/TestAsyncAdminBuilder.TestMaxRetriesCoprocessor.html" title="class in org.apache.hadoop.hbase.client" target="classFrame">TestAsyncAdminBuilder.TestMaxRetriesCoprocessor</a></li>
 <li><a href="org/apache/hadoop/hbase/client/TestAsyncAdminBuilder.TestOperationTimeoutCoprocessor.html" title="class in org.apache.hadoop.hbase.client" target="classFrame">TestAsyncAdminBuilder.TestOperationTimeoutCoprocessor</a></li>
 <li><a href="org/apache/hadoop/hbase/client/TestAsyncAdminBuilder.TestRpcTimeoutCoprocessor.html" title="class in org.apache.hadoop.hbase.client" target="classFrame">TestAsyncAdminBuilder.TestRpcTimeoutCoprocessor</a></li>
+<li><a href="org/apache/hadoop/hbase/client/TestAsyncAdminMasterSwitch.html" title="class in org.apache.hadoop.hbase.client" target="classFrame">TestAsyncAdminMasterSwitch</a></li>
 <li><a href="org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html" title="class in org.apache.hadoop.hbase.client" target="classFrame">TestAsyncAdminRpcPriority</a></li>
 <li><a href="org/apache/hadoop/hbase/client/TestAsyncAggregationClient.html" title="class in org.apache.hadoop.hbase.client" target="classFrame">TestAsyncAggregationClient</a></li>
 <li><a href="org/apache/hadoop/hbase/client/TestAsyncBufferMutator.html" title="class in org.apache.hadoop.hbase.client" target="classFrame">TestAsyncBufferMutator</a></li>
diff --git a/testdevapidocs/allclasses-noframe.html b/testdevapidocs/allclasses-noframe.html
index 2b99773..7a6f104 100644
--- a/testdevapidocs/allclasses-noframe.html
+++ b/testdevapidocs/allclasses-noframe.html
@@ -624,6 +624,7 @@
 <li><a href="org/apache/hadoop/hbase/client/TestAsyncAdminBuilder.TestMaxRetriesCoprocessor.html" title="class in org.apache.hadoop.hbase.client">TestAsyncAdminBuilder.TestMaxRetriesCoprocessor</a></li>
 <li><a href="org/apache/hadoop/hbase/client/TestAsyncAdminBuilder.TestOperationTimeoutCoprocessor.html" title="class in org.apache.hadoop.hbase.client">TestAsyncAdminBuilder.TestOperationTimeoutCoprocessor</a></li>
 <li><a href="org/apache/hadoop/hbase/client/TestAsyncAdminBuilder.TestRpcTimeoutCoprocessor.html" title="class in org.apache.hadoop.hbase.client">TestAsyncAdminBuilder.TestRpcTimeoutCoprocessor</a></li>
+<li><a href="org/apache/hadoop/hbase/client/TestAsyncAdminMasterSwitch.html" title="class in org.apache.hadoop.hbase.client">TestAsyncAdminMasterSwitch</a></li>
 <li><a href="org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html" title="class in org.apache.hadoop.hbase.client">TestAsyncAdminRpcPriority</a></li>
 <li><a href="org/apache/hadoop/hbase/client/TestAsyncAggregationClient.html" title="class in org.apache.hadoop.hbase.client">TestAsyncAggregationClient</a></li>
 <li><a href="org/apache/hadoop/hbase/client/TestAsyncBufferMutator.html" title="class in org.apache.hadoop.hbase.client">TestAsyncBufferMutator</a></li>
diff --git a/testdevapidocs/index-all.html b/testdevapidocs/index-all.html
index 4a023d2..b6a9eb7 100644
--- a/testdevapidocs/index-all.html
+++ b/testdevapidocs/index-all.html
@@ -4427,6 +4427,8 @@
 <dd>&nbsp;</dd>
 <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/client/TestAsyncAdminBuilder.html#CLASS_RULE">CLASS_RULE</a></span> - Static variable in class org.apache.hadoop.hbase.client.<a href="org/apache/hadoop/hbase/client/TestAsyncAdminBuilder.html" title="class in org.apache.hadoop.hbase.client">TestAsyncAdminBuilder</a></dt>
 <dd>&nbsp;</dd>
+<dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/client/TestAsyncAdminMasterSwitch.html#CLASS_RULE">CLASS_RULE</a></span> - Static variable in class org.apache.hadoop.hbase.client.<a href="org/apache/hadoop/hbase/client/TestAsyncAdminMasterSwitch.html" title="class in org.apache.hadoop.hbase.client">TestAsyncAdminMasterSwitch</a></dt>
+<dd>&nbsp;</dd>
 <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html#CLASS_RULE">CLASS_RULE</a></span> - Static variable in class org.apache.hadoop.hbase.client.<a href="org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html" title="class in org.apache.hadoop.hbase.client">TestAsyncAdminRpcPriority</a></dt>
 <dd>&nbsp;</dd>
 <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/client/TestAsyncAggregationClient.html#CLASS_RULE">CLASS_RULE</a></span> - Static variable in class org.apache.hadoop.hbase.client.<a href="org/apache/hadoop/hbase/client/TestAsyncAggregationClient.html" title="class in org.apache.hadoop.hbase.client">TestAsyncAggregationClient</a></dt>
@@ -47638,6 +47640,12 @@
 <dd>&nbsp;</dd>
 <dt><a href="org/apache/hadoop/hbase/client/TestAsyncAdminBuilder.TestRpcTimeoutCoprocessor.html" title="class in org.apache.hadoop.hbase.client"><span class="typeNameLink">TestAsyncAdminBuilder.TestRpcTimeoutCoprocessor</span></a> - Class in <a href="org/apache/hadoop/hbase/client/package-summary.html">org.apache.hadoop.hbase.client</a></dt>
 <dd>&nbsp;</dd>
+<dt><a href="org/apache/hadoop/hbase/client/TestAsyncAdminMasterSwitch.html" title="class in org.apache.hadoop.hbase.client"><span class="typeNameLink">TestAsyncAdminMasterSwitch</span></a> - Class in <a href="org/apache/hadoop/hbase/client/package-summary.html">org.apache.hadoop.hbase.client</a></dt>
+<dd>
+<div class="block">Testcase for HBASE-22135.</div>
+</dd>
+<dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/client/TestAsyncAdminMasterSwitch.html#TestAsyncAdminMasterSwitch--">TestAsyncAdminMasterSwitch()</a></span> - Constructor for class org.apache.hadoop.hbase.client.<a href="org/apache/hadoop/hbase/client/TestAsyncAdminMasterSwitch.html" title="class in org.apache.hadoop.hbase.client">TestAsyncAdminMasterSwitch</a></dt>
+<dd>&nbsp;</dd>
 <dt><a href="org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html" title="class in org.apache.hadoop.hbase.client"><span class="typeNameLink">TestAsyncAdminRpcPriority</span></a> - Class in <a href="org/apache/hadoop/hbase/client/package-summary.html">org.apache.hadoop.hbase.client</a></dt>
 <dd>
 <div class="block">Confirm that we will set the priority in <code>HBaseRpcController</code> for several admin operations.</div>
@@ -66686,6 +66694,8 @@
 <dd>&nbsp;</dd>
 <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/util/TestLossyCounting.html#testSweep2--">testSweep2()</a></span> - Method in class org.apache.hadoop.hbase.util.<a href="org/apache/hadoop/hbase/util/TestLossyCounting.html" title="class in org.apache.hadoop.hbase.util">TestLossyCounting</a></dt>
 <dd>&nbsp;</dd>
+<dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/client/TestAsyncAdminMasterSwitch.html#testSwitch--">testSwitch()</a></span> - Method in class org.apache.hadoop.hbase.client.<a href="org/apache/hadoop/hbase/client/TestAsyncAdminMasterSwitch.html" title="class in org.apache.hadoop.hbase.client">TestAsyncAdminMasterSwitch</a></dt>
+<dd>&nbsp;</dd>
 <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/client/TestAsyncQuotaAdminApi.html#testSwitchExceedThrottleQuota--">testSwitchExceedThrottleQuota()</a></span> - Method in class org.apache.hadoop.hbase.client.<a href="org/apache/hadoop/hbase/client/TestAsyncQuotaAdminApi.html" title="class in org.apache.hadoop.hbase.client">TestAsyncQuotaAdminApi</a></dt>
 <dd>&nbsp;</dd>
 <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/quotas/TestQuotaAdmin.html#testSwitchExceedThrottleQuota--">testSwitchExceedThrottleQuota()</a></span> - Method in class org.apache.hadoop.hbase.quotas.<a href="org/apache/hadoop/hbase/quotas/TestQuotaAdmin.html" title="class in org.apache.hadoop.hbase.quotas">TestQuotaAdmin</a></dt>
diff --git a/testdevapidocs/org/apache/hadoop/hbase/class-use/HBaseClassTestRule.html b/testdevapidocs/org/apache/hadoop/hbase/class-use/HBaseClassTestRule.html
index 3c537bb..08427ef 100644
--- a/testdevapidocs/org/apache/hadoop/hbase/class-use/HBaseClassTestRule.html
+++ b/testdevapidocs/org/apache/hadoop/hbase/class-use/HBaseClassTestRule.html
@@ -1367,426 +1367,430 @@
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestAsyncTableAdminApi2.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableAdminApi2.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestAsyncAdminMasterSwitch.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminMasterSwitch.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestAsyncQuotaAdminApi.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncQuotaAdminApi.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestAsyncTableAdminApi2.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableAdminApi2.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestAsyncMetaRegionLocator.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncMetaRegionLocator.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestAsyncQuotaAdminApi.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncQuotaAdminApi.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestAsyncTableNoncedRetry.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableNoncedRetry.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestAsyncMetaRegionLocator.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncMetaRegionLocator.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestRegionLocationCaching.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestRegionLocationCaching.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestAsyncTableNoncedRetry.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableNoncedRetry.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestConnectionUtils.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestConnectionUtils.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestRegionLocationCaching.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestRegionLocationCaching.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestMobCloneSnapshotFromClientCloneLinksAfterDelete.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestMobCloneSnapshotFromClientCloneLinksAfterDelete.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestConnectionUtils.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestConnectionUtils.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestAsyncTableScanMetrics.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableScanMetrics.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestMobCloneSnapshotFromClientCloneLinksAfterDelete.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestMobCloneSnapshotFromClientCloneLinksAfterDelete.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestFromClientSideScanExcpetionWithCoprocessor.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestFromClientSideScanExcpetionWithCoprocessor.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestAsyncTableScanMetrics.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableScanMetrics.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestMobCloneSnapshotFromClientError.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestMobCloneSnapshotFromClientError.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestFromClientSideScanExcpetionWithCoprocessor.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestFromClientSideScanExcpetionWithCoprocessor.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestRestoreSnapshotFromClientSchemaChange.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestRestoreSnapshotFromClientSchemaChange.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestMobCloneSnapshotFromClientError.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestMobCloneSnapshotFromClientError.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestAsyncDecommissionAdminApi.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncDecommissionAdminApi.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestRestoreSnapshotFromClientSchemaChange.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestRestoreSnapshotFromClientSchemaChange.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestMetaCache.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestMetaCache.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestAsyncDecommissionAdminApi.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncDecommissionAdminApi.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestClientScannerRPCTimeout.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestClientScannerRPCTimeout.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestMetaCache.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestMetaCache.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestAsyncReplicationAdminApiWithClusters.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncReplicationAdminApiWithClusters.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestClientScannerRPCTimeout.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestClientScannerRPCTimeout.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestCIPutOperationTimeout.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestCIPutOperationTimeout.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestAsyncReplicationAdminApiWithClusters.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncReplicationAdminApiWithClusters.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestRestoreSnapshotFromClientAfterTruncate.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestRestoreSnapshotFromClientAfterTruncate.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestCIPutOperationTimeout.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestCIPutOperationTimeout.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestAsyncClusterAdminApi.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncClusterAdminApi.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestRestoreSnapshotFromClientAfterTruncate.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestRestoreSnapshotFromClientAfterTruncate.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestScannersFromClientSide.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestScannersFromClientSide.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestAsyncClusterAdminApi.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncClusterAdminApi.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestMobSnapshotCloneIndependence.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestMobSnapshotCloneIndependence.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestScannersFromClientSide.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestScannersFromClientSide.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestCloneSnapshotFromClientNormal.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestCloneSnapshotFromClientNormal.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestMobSnapshotCloneIndependence.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestMobSnapshotCloneIndependence.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestUpdateConfiguration.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestUpdateConfiguration.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestCloneSnapshotFromClientNormal.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestCloneSnapshotFromClientNormal.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestRegionLocator.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestRegionLocator.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestUpdateConfiguration.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestUpdateConfiguration.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestAdmin1.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAdmin1.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestRegionLocator.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestRegionLocator.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestCIIncrementRpcTimeout.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestCIIncrementRpcTimeout.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestAdmin1.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAdmin1.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestIllegalTableDescriptor.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestIllegalTableDescriptor.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestCIIncrementRpcTimeout.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestCIIncrementRpcTimeout.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestGetScanPartialResult.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestGetScanPartialResult.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestIllegalTableDescriptor.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestIllegalTableDescriptor.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestShortCircuitConnection.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestShortCircuitConnection.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestGetScanPartialResult.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestGetScanPartialResult.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestResultFromCoprocessor.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestResultFromCoprocessor.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestShortCircuitConnection.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestShortCircuitConnection.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestCIDeleteOperationTimeout.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestCIDeleteOperationTimeout.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestResultFromCoprocessor.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestResultFromCoprocessor.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestSnapshotTemporaryDirectoryWithRegionReplicas.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestSnapshotTemporaryDirectoryWithRegionReplicas.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestCIDeleteOperationTimeout.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestCIDeleteOperationTimeout.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestAsyncTableGetMultiThreadedWithEagerCompaction.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableGetMultiThreadedWithEagerCompaction.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestSnapshotTemporaryDirectoryWithRegionReplicas.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestSnapshotTemporaryDirectoryWithRegionReplicas.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestAsyncAccessControlAdminApi.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAccessControlAdminApi.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestAsyncTableGetMultiThreadedWithEagerCompaction.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableGetMultiThreadedWithEagerCompaction.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestPutWithDelete.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestPutWithDelete.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestAsyncAccessControlAdminApi.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAccessControlAdminApi.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestEnableTable.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestEnableTable.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestPutWithDelete.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestPutWithDelete.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestLeaseRenewal.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestLeaseRenewal.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestEnableTable.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestEnableTable.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestReplicaWithCluster.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestReplicaWithCluster.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestLeaseRenewal.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestLeaseRenewal.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestCloneSnapshotFromClientAfterSplittingRegion.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestCloneSnapshotFromClientAfterSplittingRegion.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestReplicaWithCluster.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestReplicaWithCluster.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestMobRestoreSnapshotFromClientSchemaChange.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestMobRestoreSnapshotFromClientSchemaChange.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestCloneSnapshotFromClientAfterSplittingRegion.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestCloneSnapshotFromClientAfterSplittingRegion.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestAsyncRegionAdminApi2.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi2.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestMobRestoreSnapshotFromClientSchemaChange.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestMobRestoreSnapshotFromClientSchemaChange.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestAsyncTableRegionReplicasScan.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableRegionReplicasScan.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestAsyncRegionAdminApi2.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi2.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestTableFavoredNodes.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestTableFavoredNodes.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestAsyncTableRegionReplicasScan.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableRegionReplicasScan.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestMobSnapshotFromClient.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestMobSnapshotFromClient.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestTableFavoredNodes.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestTableFavoredNodes.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestFromClientSideNoCodec.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestFromClientSideNoCodec.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestMobSnapshotFromClient.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestMobSnapshotFromClient.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestFromClientSideWithCoprocessor.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestFromClientSideWithCoprocessor.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestFromClientSideNoCodec.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestFromClientSideNoCodec.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestAsyncTableLocatePrefetch.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableLocatePrefetch.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestFromClientSideWithCoprocessor.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestFromClientSideWithCoprocessor.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestMalformedCellFromClient.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestMalformedCellFromClient.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestAsyncTableLocatePrefetch.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableLocatePrefetch.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestAsyncTableGetMultiThreadedWithBasicCompaction.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableGetMultiThreadedWithBasicCompaction.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestMalformedCellFromClient.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestMalformedCellFromClient.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestRestoreSnapshotFromClientClone.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestRestoreSnapshotFromClientClone.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestAsyncTableGetMultiThreadedWithBasicCompaction.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableGetMultiThreadedWithBasicCompaction.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestTimestampsFilter.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestTimestampsFilter.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestRestoreSnapshotFromClientClone.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestRestoreSnapshotFromClientClone.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestAsyncTableRegionReplicasGet.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableRegionReplicasGet.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestTimestampsFilter.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestTimestampsFilter.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestAsyncTableScanner.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableScanner.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestAsyncTableRegionReplicasGet.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableRegionReplicasGet.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestAsyncTableScanRenewLease.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableScanRenewLease.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestAsyncTableScanner.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableScanner.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestMobRestoreSnapshotFromClientSimple.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestMobRestoreSnapshotFromClientSimple.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestAsyncTableScanRenewLease.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableScanRenewLease.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestAsyncNonMetaRegionLocator.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncNonMetaRegionLocator.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestMobRestoreSnapshotFromClientSimple.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestMobRestoreSnapshotFromClientSimple.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestMobRestoreSnapshotFromClientAfterTruncate.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestMobRestoreSnapshotFromClientAfterTruncate.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestAsyncNonMetaRegionLocator.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncNonMetaRegionLocator.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestSmallReversedScanner.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestSmallReversedScanner.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestMobRestoreSnapshotFromClientAfterTruncate.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestMobRestoreSnapshotFromClientAfterTruncate.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestSnapshotWithAcl.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestSnapshotWithAcl.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestSmallReversedScanner.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestSmallReversedScanner.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestSnapshotFromClientWithRegionReplicas.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestSnapshotFromClientWithRegionReplicas.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestSnapshotWithAcl.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestSnapshotWithAcl.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestSizeFailures.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestSizeFailures.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestSnapshotFromClientWithRegionReplicas.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestSnapshotFromClientWithRegionReplicas.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestScannerTimeout.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestScannerTimeout.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestSizeFailures.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestSizeFailures.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestAsyncTableScan.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableScan.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestScannerTimeout.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestScannerTimeout.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestCheckAndMutate.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestCheckAndMutate.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestAsyncTableScan.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableScan.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestServerBusyException.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestServerBusyException.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestCheckAndMutate.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestCheckAndMutate.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestAsyncTableBatchRetryImmediately.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableBatchRetryImmediately.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestServerBusyException.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestServerBusyException.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestSplitOrMergeAtTableLevel.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestSplitOrMergeAtTableLevel.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestAsyncTableBatchRetryImmediately.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableBatchRetryImmediately.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestSnapshotDFSTemporaryDirectory.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestSnapshotDFSTemporaryDirectory.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestSplitOrMergeAtTableLevel.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestSplitOrMergeAtTableLevel.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestMetaWithReplicas.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestMetaWithReplicas.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestSnapshotDFSTemporaryDirectory.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestSnapshotDFSTemporaryDirectory.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestClientOperationInterrupt.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestClientOperationInterrupt.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestMetaWithReplicas.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestMetaWithReplicas.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestRestoreSnapshotFromClientAfterSplittingRegions.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestRestoreSnapshotFromClientAfterSplittingRegions.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestClientOperationInterrupt.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestClientOperationInterrupt.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestAsyncTableAdminApi3.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableAdminApi3.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestRestoreSnapshotFromClientAfterSplittingRegions.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestRestoreSnapshotFromClientAfterSplittingRegions.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestAsyncTableLocateRegionForDeletedTable.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableLocateRegionForDeletedTable.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestAsyncTableAdminApi3.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableAdminApi3.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestMultiParallel.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestMultiParallel.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestAsyncTableLocateRegionForDeletedTable.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableLocateRegionForDeletedTable.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestSplitOrMergeStatus.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestSplitOrMergeStatus.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestMultiParallel.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestMultiParallel.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestAsyncNonMetaRegionLocatorConcurrenyLimit.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncNonMetaRegionLocatorConcurrenyLimit.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestSplitOrMergeStatus.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestSplitOrMergeStatus.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestSnapshotWithAclAsyncAdmin.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestSnapshotWithAclAsyncAdmin.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestAsyncNonMetaRegionLocatorConcurrenyLimit.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncNonMetaRegionLocatorConcurrenyLimit.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestAsyncAdminBuilder.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminBuilder.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestSnapshotWithAclAsyncAdmin.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestSnapshotWithAclAsyncAdmin.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestIntraRowPagination.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestIntraRowPagination.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestAsyncAdminBuilder.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminBuilder.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestHBaseAdminNoCluster.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestHBaseAdminNoCluster.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestIntraRowPagination.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestIntraRowPagination.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestBatchScanResultCache.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestBatchScanResultCache.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestHBaseAdminNoCluster.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestHBaseAdminNoCluster.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestAsyncBufferMutator.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncBufferMutator.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestBatchScanResultCache.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestBatchScanResultCache.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestTableSnapshotScanner.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestTableSnapshotScanner.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestAsyncBufferMutator.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncBufferMutator.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestGetScanColumnsWithNewVersionBehavior.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestGetScanColumnsWithNewVersionBehavior.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestTableSnapshotScanner.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestTableSnapshotScanner.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestRestoreSnapshotFromClientSimple.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestRestoreSnapshotFromClientSimple.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestGetScanColumnsWithNewVersionBehavior.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestGetScanColumnsWithNewVersionBehavior.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestIncrementsFromClientSide.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestIncrementsFromClientSide.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestRestoreSnapshotFromClientSimple.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestRestoreSnapshotFromClientSimple.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestAsyncRegionLocator.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncRegionLocator.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestIncrementsFromClientSide.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestIncrementsFromClientSide.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestResultSizeEstimation.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestResultSizeEstimation.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestAsyncRegionLocator.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncRegionLocator.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestMultipleTimestamps.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestMultipleTimestamps.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestResultSizeEstimation.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestResultSizeEstimation.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestFastFail.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestFastFail.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestMultipleTimestamps.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestMultipleTimestamps.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestResultScannerCursor.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestResultScannerCursor.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestFastFail.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestFastFail.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestAvoidCellReferencesIntoShippedBlocks.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAvoidCellReferencesIntoShippedBlocks.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestResultScannerCursor.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestResultScannerCursor.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestCloneSnapshotFromClientError.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestCloneSnapshotFromClientError.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestAvoidCellReferencesIntoShippedBlocks.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAvoidCellReferencesIntoShippedBlocks.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestAsyncResultScannerCursor.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncResultScannerCursor.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestCloneSnapshotFromClientError.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestCloneSnapshotFromClientError.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestSnapshotMetadata.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestSnapshotMetadata.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestAsyncResultScannerCursor.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncResultScannerCursor.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestAsyncTableScannerCloseWhileSuspending.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableScannerCloseWhileSuspending.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestSnapshotMetadata.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestSnapshotMetadata.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestMultiRespectsLimits.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestMultiRespectsLimits.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestAsyncTableScannerCloseWhileSuspending.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableScannerCloseWhileSuspending.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestClientPushback.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestClientPushback.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestMultiRespectsLimits.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestMultiRespectsLimits.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestShell.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestShell.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestClientPushback.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestClientPushback.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestShellNoCluster.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestShellNoCluster.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestShell.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestShell.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestAdminShell.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAdminShell.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestShellNoCluster.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestShellNoCluster.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestQuotasShell.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestQuotasShell.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestAdminShell.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAdminShell.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestAdminShell2.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAdminShell2.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestQuotasShell.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestQuotasShell.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestReplicationShell.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestReplicationShell.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestAdminShell2.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAdminShell2.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestTableShell.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestTableShell.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestReplicationShell.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestReplicationShell.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><span class="typeNameLabel">TestRpcControllerFactory.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestRpcControllerFactory.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+<td class="colLast"><span class="typeNameLabel">TestTableShell.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestTableShell.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
+<td class="colLast"><span class="typeNameLabel">TestRpcControllerFactory.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestRpcControllerFactory.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
+</tr>
+<tr class="altColor">
+<td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
 <td class="colLast"><span class="typeNameLabel">TestAsyncAggregationClient.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAggregationClient.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 </tbody>
diff --git a/testdevapidocs/org/apache/hadoop/hbase/client/TestAsyncAdminBase.html b/testdevapidocs/org/apache/hadoop/hbase/client/TestAsyncAdminBase.html
index ec96563..982e839 100644
--- a/testdevapidocs/org/apache/hadoop/hbase/client/TestAsyncAdminBase.html
+++ b/testdevapidocs/org/apache/hadoop/hbase/client/TestAsyncAdminBase.html
@@ -109,7 +109,7 @@ var activeTableTab = "activeTableTab";
 <li class="blockList">
 <dl>
 <dt>Direct Known Subclasses:</dt>
-<dd><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAccessControlAdminApi.html" title="class in org.apache.hadoop.hbase.client">TestAsyncAccessControlAdminApi</a>, <a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncClusterAdminApi.html" title="class in org.apache.hadoop.hbase.client">TestAsyncClusterAdminApi</a>, <a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncClusterAdminApi2.html" title="class in org.apache.hadoop.hbase.client">TestAsyncClus [...]
+<dd><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAccessControlAdminApi.html" title="class in org.apache.hadoop.hbase.client">TestAsyncAccessControlAdminApi</a>, <a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminMasterSwitch.html" title="class in org.apache.hadoop.hbase.client">TestAsyncAdminMasterSwitch</a>, <a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncClusterAdminApi.html" title="class in org.apache.hadoop.hbase.client">TestAsyncC [...]
 </dl>
 <hr>
 <br>
@@ -493,7 +493,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>createTableWithDefaultConf</h4>
-<pre>protected&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncAdminBase.html#line.121">createTableWithDefaultConf</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName)
+<pre>protected&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncAdminBase.html#line.124">createTableWithDefaultConf</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName)
                                    throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
 <dl>
 <dt><span class="throwsLabel">Throws:</span></dt>
@@ -507,7 +507,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>createTableWithDefaultConf</h4>
-<pre>protected&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncAdminBase.html#line.125">createTableWithDefaultConf</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
+<pre>protected&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncAdminBase.html#line.128">createTableWithDefaultConf</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
                                           int&nbsp;regionReplication)
                                    throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
 <dl>
@@ -522,7 +522,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>createTableWithDefaultConf</h4>
-<pre>protected&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncAdminBase.html#line.130">createTableWithDefaultConf</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
+<pre>protected&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncAdminBase.html#line.133">createTableWithDefaultConf</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
                                           byte[][]&nbsp;splitKeys)
                                    throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
 <dl>
@@ -537,7 +537,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>createTableWithDefaultConf</h4>
-<pre>protected&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncAdminBase.html#line.135">createTableWithDefaultConf</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
+<pre>protected&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncAdminBase.html#line.138">createTableWithDefaultConf</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
                                           int&nbsp;regionReplication,
                                           byte[][]&nbsp;splitKeys)
                                    throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
@@ -553,7 +553,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>createTableWithDefaultConf</h4>
-<pre>protected&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncAdminBase.html#line.140">createTableWithDefaultConf</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
+<pre>protected&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncAdminBase.html#line.143">createTableWithDefaultConf</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
                                           byte[][]&nbsp;splitKeys,
                                           byte[]...&nbsp;families)
                                    throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
@@ -569,7 +569,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockListLast">
 <li class="blockList">
 <h4>createTableWithDefaultConf</h4>
-<pre>protected&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncAdminBase.html#line.145">createTableWithDefaultConf</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
+<pre>protected&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncAdminBase.html#line.148">createTableWithDefaultConf</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
                                           int&nbsp;regionReplication,
                                           byte[][]&nbsp;splitKeys,
                                           byte[]...&nbsp;families)
diff --git a/testdevapidocs/org/apache/hadoop/hbase/client/TestAsyncAdminBuilder.TestRpcTimeoutCoprocessor.html b/testdevapidocs/org/apache/hadoop/hbase/client/TestAsyncAdminBuilder.TestRpcTimeoutCoprocessor.html
index d3f2f80..29ee2e4 100644
--- a/testdevapidocs/org/apache/hadoop/hbase/client/TestAsyncAdminBuilder.TestRpcTimeoutCoprocessor.html
+++ b/testdevapidocs/org/apache/hadoop/hbase/client/TestAsyncAdminBuilder.TestRpcTimeoutCoprocessor.html
@@ -50,7 +50,7 @@ var activeTableTab = "activeTableTab";
 <div class="subNav">
 <ul class="navList">
 <li><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminBuilder.TestOperationTimeoutCoprocessor.html" title="class in org.apache.hadoop.hbase.client"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
-<li><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html" title="class in org.apache.hadoop.hbase.client"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
+<li><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminMasterSwitch.html" title="class in org.apache.hadoop.hbase.client"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
 </ul>
 <ul class="navList">
 <li><a href="../../../../../index.html?org/apache/hadoop/hbase/client/TestAsyncAdminBuilder.TestRpcTimeoutCoprocessor.html" target="_top">Frames</a></li>
@@ -306,7 +306,7 @@ implements org.apache.hadoop.hbase.coprocessor.MasterCoprocessor, org.apache.had
 <div class="subNav">
 <ul class="navList">
 <li><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminBuilder.TestOperationTimeoutCoprocessor.html" title="class in org.apache.hadoop.hbase.client"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
-<li><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html" title="class in org.apache.hadoop.hbase.client"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
+<li><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminMasterSwitch.html" title="class in org.apache.hadoop.hbase.client"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
 </ul>
 <ul class="navList">
 <li><a href="../../../../../index.html?org/apache/hadoop/hbase/client/TestAsyncAdminBuilder.TestRpcTimeoutCoprocessor.html" target="_top">Frames</a></li>
diff --git a/testdevapidocs/org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html b/testdevapidocs/org/apache/hadoop/hbase/client/TestAsyncAdminMasterSwitch.html
similarity index 55%
copy from testdevapidocs/org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html
copy to testdevapidocs/org/apache/hadoop/hbase/client/TestAsyncAdminMasterSwitch.html
index 7ee560d..e9522ad 100644
--- a/testdevapidocs/org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html
+++ b/testdevapidocs/org/apache/hadoop/hbase/client/TestAsyncAdminMasterSwitch.html
@@ -4,7 +4,7 @@
 <head>
 <!-- Generated by javadoc -->
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-<title>TestAsyncAdminRpcPriority (Apache HBase 3.0.0-SNAPSHOT Test API)</title>
+<title>TestAsyncAdminMasterSwitch (Apache HBase 3.0.0-SNAPSHOT Test API)</title>
 <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
 <script type="text/javascript" src="../../../../../script.js"></script>
 </head>
@@ -12,13 +12,13 @@
 <script type="text/javascript"><!--
     try {
         if (location.href.indexOf('is-external=true') == -1) {
-            parent.document.title="TestAsyncAdminRpcPriority (Apache HBase 3.0.0-SNAPSHOT Test API)";
+            parent.document.title="TestAsyncAdminMasterSwitch (Apache HBase 3.0.0-SNAPSHOT Test API)";
         }
     }
     catch(err) {
     }
 //-->
-var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10};
+var methods = {"i0":10};
 var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
 var altColor = "altColor";
 var rowColor = "rowColor";
@@ -40,7 +40,7 @@ var activeTableTab = "activeTableTab";
 <li><a href="../../../../../overview-summary.html">Overview</a></li>
 <li><a href="package-summary.html">Package</a></li>
 <li class="navBarCell1Rev">Class</li>
-<li><a href="class-use/TestAsyncAdminRpcPriority.html">Use</a></li>
+<li><a href="class-use/TestAsyncAdminMasterSwitch.html">Use</a></li>
 <li><a href="package-tree.html">Tree</a></li>
 <li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
 <li><a href="../../../../../index-all.html">Index</a></li>
@@ -50,11 +50,11 @@ var activeTableTab = "activeTableTab";
 <div class="subNav">
 <ul class="navList">
 <li><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminBuilder.TestRpcTimeoutCoprocessor.html" title="class in org.apache.hadoop.hbase.client"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
-<li><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAggregationClient.html" title="class in org.apache.hadoop.hbase.client"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
+<li><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html" title="class in org.apache.hadoop.hbase.client"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
 </ul>
 <ul class="navList">
-<li><a href="../../../../../index.html?org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html" target="_top">Frames</a></li>
-<li><a href="TestAsyncAdminRpcPriority.html" target="_top">No&nbsp;Frames</a></li>
+<li><a href="../../../../../index.html?org/apache/hadoop/hbase/client/TestAsyncAdminMasterSwitch.html" target="_top">Frames</a></li>
+<li><a href="TestAsyncAdminMasterSwitch.html" target="_top">No&nbsp;Frames</a></li>
 </ul>
 <ul class="navList" id="allclasses_navbar_top">
 <li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
@@ -93,14 +93,19 @@ var activeTableTab = "activeTableTab";
 <!-- ======== START OF CLASS DATA ======== -->
 <div class="header">
 <div class="subTitle">org.apache.hadoop.hbase.client</div>
-<h2 title="Class TestAsyncAdminRpcPriority" class="title">Class TestAsyncAdminRpcPriority</h2>
+<h2 title="Class TestAsyncAdminMasterSwitch" class="title">Class TestAsyncAdminMasterSwitch</h2>
 </div>
 <div class="contentContainer">
 <ul class="inheritance">
 <li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
 <li>
 <ul class="inheritance">
-<li>org.apache.hadoop.hbase.client.TestAsyncAdminRpcPriority</li>
+<li><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminBase.html" title="class in org.apache.hadoop.hbase.client">org.apache.hadoop.hbase.client.TestAsyncAdminBase</a></li>
+<li>
+<ul class="inheritance">
+<li>org.apache.hadoop.hbase.client.TestAsyncAdminMasterSwitch</li>
+</ul>
+</li>
 </ul>
 </li>
 </ul>
@@ -109,9 +114,9 @@ var activeTableTab = "activeTableTab";
 <li class="blockList">
 <hr>
 <br>
-<pre>public class <a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html#line.72">TestAsyncAdminRpcPriority</a>
-extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
-<div class="block">Confirm that we will set the priority in <code>HBaseRpcController</code> for several admin operations.</div>
+<pre>public class <a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncAdminMasterSwitch.html#line.40">TestAsyncAdminMasterSwitch</a>
+extends <a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminBase.html" title="class in org.apache.hadoop.hbase.client">TestAsyncAdminBase</a></pre>
+<div class="block">Testcase for HBASE-22135.</div>
 </li>
 </ul>
 </div>
@@ -131,30 +136,17 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <th class="colLast" scope="col">Field and Description</th>
 </tr>
 <tr class="altColor">
-<td class="colFirst"><code>private org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.AdminService.Interface</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html#adminStub">adminStub</a></span></code>&nbsp;</td>
-</tr>
-<tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a></code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
-</tr>
-<tr class="altColor">
-<td class="colFirst"><code>private static org.apache.hadoop.conf.Configuration</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html#CONF">CONF</a></span></code>&nbsp;</td>
-</tr>
-<tr class="rowColor">
-<td class="colFirst"><code>private org.apache.hadoop.hbase.client.AsyncConnection</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html#conn">conn</a></span></code>&nbsp;</td>
-</tr>
-<tr class="altColor">
-<td class="colFirst"><code>private org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService.Interface</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html#masterStub">masterStub</a></span></code>&nbsp;</td>
-</tr>
-<tr class="rowColor">
-<td class="colFirst"><code>org.junit.rules.TestName</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html#name">name</a></span></code>&nbsp;</td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminMasterSwitch.html#CLASS_RULE">CLASS_RULE</a></span></code>&nbsp;</td>
 </tr>
 </table>
+<ul class="blockList">
+<li class="blockList"><a name="fields.inherited.from.class.org.apache.hadoop.hbase.client.TestAsyncAdminBase">
+<!--   -->
+</a>
+<h3>Fields inherited from class&nbsp;org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminBase.html" title="class in org.apache.hadoop.hbase.client">TestAsyncAdminBase</a></h3>
+<code><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminBase.html#admin">admin</a>, <a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminBase.html#ASYNC_CONN">ASYNC_CONN</a>, <a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminBase.html#FAMILY">FAMILY</a>, <a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminBase.html#FAMILY_0">FAMILY_0</a>, <a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminBase.html#F [...]
+</ul>
 </li>
 </ul>
 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
@@ -169,7 +161,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <th class="colOne" scope="col">Constructor and Description</th>
 </tr>
 <tr class="altColor">
-<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html#TestAsyncAdminRpcPriority--">TestAsyncAdminRpcPriority</a></span>()</code>&nbsp;</td>
+<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminMasterSwitch.html#TestAsyncAdminMasterSwitch--">TestAsyncAdminMasterSwitch</a></span>()</code>&nbsp;</td>
 </tr>
 </table>
 </li>
@@ -187,39 +179,18 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <th class="colLast" scope="col">Method and Description</th>
 </tr>
 <tr id="i0" class="altColor">
-<td class="colFirst"><code>private org.apache.hadoop.hbase.ipc.HBaseRpcController</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html#assertPriority-int-">assertPriority</a></span>(int&nbsp;priority)</code>&nbsp;</td>
-</tr>
-<tr id="i1" class="rowColor">
-<td class="colFirst"><code>void</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html#setUp--">setUp</a></span>()</code>&nbsp;</td>
-</tr>
-<tr id="i2" class="altColor">
-<td class="colFirst"><code>void</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html#testCreateMetaTable--">testCreateMetaTable</a></span>()</code>&nbsp;</td>
-</tr>
-<tr id="i3" class="rowColor">
-<td class="colFirst"><code>void</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html#testCreateNormalTable--">testCreateNormalTable</a></span>()</code>&nbsp;</td>
-</tr>
-<tr id="i4" class="altColor">
-<td class="colFirst"><code>void</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html#testCreateSystemTable--">testCreateSystemTable</a></span>()</code>&nbsp;</td>
-</tr>
-<tr id="i5" class="rowColor">
-<td class="colFirst"><code>void</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html#testShutdown--">testShutdown</a></span>()</code>&nbsp;</td>
-</tr>
-<tr id="i6" class="altColor">
-<td class="colFirst"><code>void</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html#testStopMaster--">testStopMaster</a></span>()</code>&nbsp;</td>
-</tr>
-<tr id="i7" class="rowColor">
 <td class="colFirst"><code>void</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html#testStopRegionServer--">testStopRegionServer</a></span>()</code>&nbsp;</td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminMasterSwitch.html#testSwitch--">testSwitch</a></span>()</code>&nbsp;</td>
 </tr>
 </table>
 <ul class="blockList">
+<li class="blockList"><a name="methods.inherited.from.class.org.apache.hadoop.hbase.client.TestAsyncAdminBase">
+<!--   -->
+</a>
+<h3>Methods inherited from class&nbsp;org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminBase.html" title="class in org.apache.hadoop.hbase.client">TestAsyncAdminBase</a></h3>
+<code><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminBase.html#createTableWithDefaultConf-org.apache.hadoop.hbase.TableName-">createTableWithDefaultConf</a>, <a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminBase.html#createTableWithDefaultConf-org.apache.hadoop.hbase.TableName-byte:A:A-">createTableWithDefaultConf</a>, <a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminBase.html#createTableWithDefaultConf-org.apache.hadoop.hbase [...]
+</ul>
+<ul class="blockList">
 <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
 <!--   -->
 </a>
@@ -243,55 +214,10 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <a name="CLASS_RULE">
 <!--   -->
 </a>
-<ul class="blockList">
-<li class="blockList">
-<h4>CLASS_RULE</h4>
-<pre>public static final&nbsp;<a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html#line.75">CLASS_RULE</a></pre>
-</li>
-</ul>
-<a name="CONF">
-<!--   -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>CONF</h4>
-<pre>private static&nbsp;org.apache.hadoop.conf.Configuration <a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html#line.78">CONF</a></pre>
-</li>
-</ul>
-<a name="masterStub">
-<!--   -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>masterStub</h4>
-<pre>private&nbsp;org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.MasterService.Interface <a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html#line.80">masterStub</a></pre>
-</li>
-</ul>
-<a name="adminStub">
-<!--   -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>adminStub</h4>
-<pre>private&nbsp;org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.AdminService.Interface <a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html#line.82">adminStub</a></pre>
-</li>
-</ul>
-<a name="conn">
-<!--   -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>conn</h4>
-<pre>private&nbsp;org.apache.hadoop.hbase.client.AsyncConnection <a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html#line.84">conn</a></pre>
-</li>
-</ul>
-<a name="name">
-<!--   -->
-</a>
 <ul class="blockListLast">
 <li class="blockList">
-<h4>name</h4>
-<pre>public&nbsp;org.junit.rules.TestName <a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html#line.87">name</a></pre>
+<h4>CLASS_RULE</h4>
+<pre>public static final&nbsp;<a href="../../../../../org/apache/hadoop/hbase/HBaseClassTestRule.html" title="class in org.apache.hadoop.hbase">HBaseClassTestRule</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncAdminMasterSwitch.html#line.43">CLASS_RULE</a></pre>
 </li>
 </ul>
 </li>
@@ -302,13 +228,13 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <!--   -->
 </a>
 <h3>Constructor Detail</h3>
-<a name="TestAsyncAdminRpcPriority--">
+<a name="TestAsyncAdminMasterSwitch--">
 <!--   -->
 </a>
 <ul class="blockListLast">
 <li class="blockList">
-<h4>TestAsyncAdminRpcPriority</h4>
-<pre>public&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html#line.72">TestAsyncAdminRpcPriority</a>()</pre>
+<h4>TestAsyncAdminMasterSwitch</h4>
+<pre>public&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncAdminMasterSwitch.html#line.40">TestAsyncAdminMasterSwitch</a>()</pre>
 </li>
 </ul>
 </li>
@@ -319,83 +245,22 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <!--   -->
 </a>
 <h3>Method Detail</h3>
-<a name="setUp--">
+<a name="testSwitch--">
 <!--   -->
 </a>
-<ul class="blockList">
+<ul class="blockListLast">
 <li class="blockList">
-<h4>setUp</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html#line.90">setUp</a>()
-           throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
+<h4>testSwitch</h4>
+<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncAdminMasterSwitch.html#line.47">testSwitch</a>()
+                throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>,
+                       <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a></pre>
 <dl>
 <dt><span class="throwsLabel">Throws:</span></dt>
 <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
+<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a></code></dd>
 </dl>
 </li>
 </ul>
-<a name="assertPriority-int-">
-<!--   -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>assertPriority</h4>
-<pre>private&nbsp;org.apache.hadoop.hbase.ipc.HBaseRpcController&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html#line.160">assertPriority</a>(int&nbsp;priority)</pre>
-</li>
-</ul>
-<a name="testCreateNormalTable--">
-<!--   -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>testCreateNormalTable</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html#line.171">testCreateNormalTable</a>()</pre>
-</li>
-</ul>
-<a name="testCreateSystemTable--">
-<!--   -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>testCreateSystemTable</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html#line.183">testCreateSystemTable</a>()</pre>
-</li>
-</ul>
-<a name="testCreateMetaTable--">
-<!--   -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>testCreateMetaTable</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html#line.196">testCreateMetaTable</a>()</pre>
-</li>
-</ul>
-<a name="testShutdown--">
-<!--   -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>testShutdown</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html#line.204">testShutdown</a>()</pre>
-</li>
-</ul>
-<a name="testStopMaster--">
-<!--   -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>testStopMaster</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html#line.211">testStopMaster</a>()</pre>
-</li>
-</ul>
-<a name="testStopRegionServer--">
-<!--   -->
-</a>
-<ul class="blockListLast">
-<li class="blockList">
-<h4>testStopRegionServer</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html#line.218">testStopRegionServer</a>()</pre>
-</li>
-</ul>
 </li>
 </ul>
 </li>
@@ -415,7 +280,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <li><a href="../../../../../overview-summary.html">Overview</a></li>
 <li><a href="package-summary.html">Package</a></li>
 <li class="navBarCell1Rev">Class</li>
-<li><a href="class-use/TestAsyncAdminRpcPriority.html">Use</a></li>
+<li><a href="class-use/TestAsyncAdminMasterSwitch.html">Use</a></li>
 <li><a href="package-tree.html">Tree</a></li>
 <li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
 <li><a href="../../../../../index-all.html">Index</a></li>
@@ -425,11 +290,11 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <div class="subNav">
 <ul class="navList">
 <li><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminBuilder.TestRpcTimeoutCoprocessor.html" title="class in org.apache.hadoop.hbase.client"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
-<li><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAggregationClient.html" title="class in org.apache.hadoop.hbase.client"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
+<li><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html" title="class in org.apache.hadoop.hbase.client"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
 </ul>
 <ul class="navList">
-<li><a href="../../../../../index.html?org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html" target="_top">Frames</a></li>
-<li><a href="TestAsyncAdminRpcPriority.html" target="_top">No&nbsp;Frames</a></li>
+<li><a href="../../../../../index.html?org/apache/hadoop/hbase/client/TestAsyncAdminMasterSwitch.html" target="_top">Frames</a></li>
+<li><a href="TestAsyncAdminMasterSwitch.html" target="_top">No&nbsp;Frames</a></li>
 </ul>
 <ul class="navList" id="allclasses_navbar_bottom">
 <li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
diff --git a/testdevapidocs/org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html b/testdevapidocs/org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html
index 7ee560d..ee5f9da 100644
--- a/testdevapidocs/org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html
+++ b/testdevapidocs/org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html
@@ -49,7 +49,7 @@ var activeTableTab = "activeTableTab";
 </div>
 <div class="subNav">
 <ul class="navList">
-<li><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminBuilder.TestRpcTimeoutCoprocessor.html" title="class in org.apache.hadoop.hbase.client"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
+<li><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminMasterSwitch.html" title="class in org.apache.hadoop.hbase.client"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
 <li><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAggregationClient.html" title="class in org.apache.hadoop.hbase.client"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
 </ul>
 <ul class="navList">
@@ -424,7 +424,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 </div>
 <div class="subNav">
 <ul class="navList">
-<li><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminBuilder.TestRpcTimeoutCoprocessor.html" title="class in org.apache.hadoop.hbase.client"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
+<li><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminMasterSwitch.html" title="class in org.apache.hadoop.hbase.client"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
 <li><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAggregationClient.html" title="class in org.apache.hadoop.hbase.client"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
 </ul>
 <ul class="navList">
diff --git a/testdevapidocs/org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi.html b/testdevapidocs/org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi.html
index a2c24dc..3bfa7f2 100644
--- a/testdevapidocs/org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi.html
+++ b/testdevapidocs/org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi.html
@@ -408,7 +408,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminBas
 <ul class="blockList">
 <li class="blockList">
 <h4>testFlushTableAndRegion</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi.html#line.203">testFlushTableAndRegion</a>()
+<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi.html#line.198">testFlushTableAndRegion</a>()
                              throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
 <dl>
 <dt><span class="throwsLabel">Throws:</span></dt>
@@ -422,7 +422,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminBas
 <ul class="blockList">
 <li class="blockList">
 <h4>waitUntilMobCompactionFinished</h4>
-<pre>private&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi.html#line.243">waitUntilMobCompactionFinished</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName)
+<pre>private&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi.html#line.238">waitUntilMobCompactionFinished</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName)
                                      throws <a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ExecutionException.html?is-external=true" title="class or interface in java.util.concurrent">ExecutionException</a>,
                                             <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a></pre>
 <dl>
@@ -438,7 +438,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminBas
 <ul class="blockList">
 <li class="blockList">
 <h4>testCompactMob</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi.html#line.258">testCompactMob</a>()
+<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi.html#line.253">testCompactMob</a>()
                     throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
 <dl>
 <dt><span class="throwsLabel">Throws:</span></dt>
@@ -452,7 +452,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminBas
 <ul class="blockList">
 <li class="blockList">
 <h4>testCompactRegionServer</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi.html#line.280">testCompactRegionServer</a>()
+<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi.html#line.275">testCompactRegionServer</a>()
                              throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
 <dl>
 <dt><span class="throwsLabel">Throws:</span></dt>
@@ -466,7 +466,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminBas
 <ul class="blockList">
 <li class="blockList">
 <h4>testCompactionSwitchStates</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi.html#line.310">testCompactionSwitchStates</a>()
+<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi.html#line.305">testCompactionSwitchStates</a>()
                                 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
 <dl>
 <dt><span class="throwsLabel">Throws:</span></dt>
@@ -480,7 +480,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminBas
 <ul class="blockList">
 <li class="blockList">
 <h4>testCompact</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi.html#line.346">testCompact</a>()
+<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi.html#line.341">testCompact</a>()
                  throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
 <dl>
 <dt><span class="throwsLabel">Throws:</span></dt>
@@ -494,7 +494,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminBas
 <ul class="blockList">
 <li class="blockList">
 <h4>compactionTest</h4>
-<pre>private&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi.html#line.353">compactionTest</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
+<pre>private&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi.html#line.348">compactionTest</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
                             int&nbsp;flushes,
                             org.apache.hadoop.hbase.client.CompactionState&nbsp;expectedState,
                             boolean&nbsp;singleFamily)
@@ -511,7 +511,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminBas
 <ul class="blockList">
 <li class="blockList">
 <h4>testNonExistentTableCompaction</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi.html#line.432">testNonExistentTableCompaction</a>()</pre>
+<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi.html#line.427">testNonExistentTableCompaction</a>()</pre>
 </li>
 </ul>
 <a name="testNonExistentTableCompaction-org.apache.hadoop.hbase.client.CompactionState-">
@@ -520,7 +520,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminBas
 <ul class="blockList">
 <li class="blockList">
 <h4>testNonExistentTableCompaction</h4>
-<pre>private&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi.html#line.437">testNonExistentTableCompaction</a>(org.apache.hadoop.hbase.client.CompactionState&nbsp;compactionState)</pre>
+<pre>private&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi.html#line.432">testNonExistentTableCompaction</a>(org.apache.hadoop.hbase.client.CompactionState&nbsp;compactionState)</pre>
 </li>
 </ul>
 <a name="countStoreFilesInFamily-java.util.List-byte:A-">
@@ -529,7 +529,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminBas
 <ul class="blockList">
 <li class="blockList">
 <h4>countStoreFilesInFamily</h4>
-<pre>private static&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi.html#line.451">countStoreFilesInFamily</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;org.apache.hadoop.hbase.regionserver.Region&gt;&nbsp;regions,
+<pre>private static&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi.html#line.446">countStoreFilesInFamily</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;org.apache.hadoop.hbase.regionserver.Region&gt;&nbsp;regions,
                                            byte[]&nbsp;family)</pre>
 </li>
 </ul>
@@ -539,7 +539,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminBas
 <ul class="blockList">
 <li class="blockList">
 <h4>countStoreFilesInFamilies</h4>
-<pre>private static&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi.html#line.455">countStoreFilesInFamilies</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;org.apache.hadoop.hbase.regionserver.Region&gt;&nbsp;regions,
+<pre>private static&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi.html#line.450">countStoreFilesInFamilies</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;org.apache.hadoop.hbase.regionserver.Region&gt;&nbsp;regions,
                                              byte[][]&nbsp;families)</pre>
 </li>
 </ul>
@@ -549,7 +549,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminBas
 <ul class="blockList">
 <li class="blockList">
 <h4>loadData</h4>
-<pre>static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi.html#line.463">loadData</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
+<pre>static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi.html#line.458">loadData</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
                      byte[][]&nbsp;families,
                      int&nbsp;rows)
               throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
@@ -565,7 +565,7 @@ extends <a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminBas
 <ul class="blockListLast">
 <li class="blockList">
 <h4>loadData</h4>
-<pre>static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi.html#line.468">loadData</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
+<pre>static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi.html#line.463">loadData</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
                      byte[][]&nbsp;families,
                      int&nbsp;rows,
                      int&nbsp;flushes)
diff --git a/testdevapidocs/org/apache/hadoop/hbase/client/class-use/TestAsyncAdminBase.html b/testdevapidocs/org/apache/hadoop/hbase/client/class-use/TestAsyncAdminBase.html
index f22e46d..55c796d 100644
--- a/testdevapidocs/org/apache/hadoop/hbase/client/class-use/TestAsyncAdminBase.html
+++ b/testdevapidocs/org/apache/hadoop/hbase/client/class-use/TestAsyncAdminBase.html
@@ -112,85 +112,91 @@
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>class&nbsp;</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/client/TestAsyncClusterAdminApi.html" title="class in org.apache.hadoop.hbase.client">TestAsyncClusterAdminApi</a></span></code>&nbsp;</td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminMasterSwitch.html" title="class in org.apache.hadoop.hbase.client">TestAsyncAdminMasterSwitch</a></span></code>
+<div class="block">Testcase for HBASE-22135.</div>
+</td>
 </tr>
 <tr class="altColor">
 <td class="colFirst"><code>class&nbsp;</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/client/TestAsyncClusterAdminApi.html" title="class in org.apache.hadoop.hbase.client">TestAsyncClusterAdminApi</a></span></code>&nbsp;</td>
+</tr>
+<tr class="rowColor">
+<td class="colFirst"><code>class&nbsp;</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/client/TestAsyncClusterAdminApi2.html" title="class in org.apache.hadoop.hbase.client">TestAsyncClusterAdminApi2</a></span></code>
 <div class="block">Only used to test stopMaster/stopRegionServer/shutdown methods.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><code>class&nbsp;</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/client/TestAsyncDecommissionAdminApi.html" title="class in org.apache.hadoop.hbase.client">TestAsyncDecommissionAdminApi</a></span></code>&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><code>class&nbsp;</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/client/TestAsyncNamespaceAdminApi.html" title="class in org.apache.hadoop.hbase.client">TestAsyncNamespaceAdminApi</a></span></code>
 <div class="block">Class to test asynchronous namespace admin operations.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><code>class&nbsp;</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/client/TestAsyncProcedureAdminApi.html" title="class in org.apache.hadoop.hbase.client">TestAsyncProcedureAdminApi</a></span></code>
 <div class="block">Class to test asynchronous procedure admin operations.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><code>class&nbsp;</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/client/TestAsyncQuotaAdminApi.html" title="class in org.apache.hadoop.hbase.client">TestAsyncQuotaAdminApi</a></span></code>&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><code>class&nbsp;</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi.html" title="class in org.apache.hadoop.hbase.client">TestAsyncRegionAdminApi</a></span></code>
 <div class="block">Class to test asynchronous region admin operations.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><code>class&nbsp;</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi2.html" title="class in org.apache.hadoop.hbase.client">TestAsyncRegionAdminApi2</a></span></code>
 <div class="block">Class to test asynchronous region admin operations.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><code>class&nbsp;</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/client/TestAsyncRegionAdminApiWithRegionReplicas.html" title="class in org.apache.hadoop.hbase.client">TestAsyncRegionAdminApiWithRegionReplicas</a></span></code>&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><code>class&nbsp;</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/client/TestAsyncReplicationAdminApi.html" title="class in org.apache.hadoop.hbase.client">TestAsyncReplicationAdminApi</a></span></code>
 <div class="block">Class to test asynchronous replication admin operations.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><code>class&nbsp;</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/client/TestAsyncReplicationAdminApiWithClusters.html" title="class in org.apache.hadoop.hbase.client">TestAsyncReplicationAdminApiWithClusters</a></span></code>
 <div class="block">Class to test asynchronous replication admin operations when more than 1 cluster</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><code>class&nbsp;</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/client/TestAsyncSnapshotAdminApi.html" title="class in org.apache.hadoop.hbase.client">TestAsyncSnapshotAdminApi</a></span></code>&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><code>class&nbsp;</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/client/TestAsyncTableAdminApi.html" title="class in org.apache.hadoop.hbase.client">TestAsyncTableAdminApi</a></span></code>
 <div class="block">Class to test asynchronous table admin operations.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><code>class&nbsp;</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/client/TestAsyncTableAdminApi2.html" title="class in org.apache.hadoop.hbase.client">TestAsyncTableAdminApi2</a></span></code>
 <div class="block">Class to test asynchronous table admin operations</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><code>class&nbsp;</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/client/TestAsyncTableAdminApi3.html" title="class in org.apache.hadoop.hbase.client">TestAsyncTableAdminApi3</a></span></code>
 <div class="block">Class to test asynchronous table admin operations.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><code>class&nbsp;</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/client/TestAsyncToolAdminApi.html" title="class in org.apache.hadoop.hbase.client">TestAsyncToolAdminApi</a></span></code>
 <div class="block">Test the admin operations for Balancer, Normalizer, CleanerChore, and CatalogJanitor.</div>
diff --git a/testdevapidocs/org/apache/hadoop/hbase/client/class-use/TestAsyncAdminMasterSwitch.html b/testdevapidocs/org/apache/hadoop/hbase/client/class-use/TestAsyncAdminMasterSwitch.html
new file mode 100644
index 0000000..5467e8c
--- /dev/null
+++ b/testdevapidocs/org/apache/hadoop/hbase/client/class-use/TestAsyncAdminMasterSwitch.html
@@ -0,0 +1,125 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!-- NewPage -->
+<html lang="en">
+<head>
+<!-- Generated by javadoc -->
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>Uses of Class org.apache.hadoop.hbase.client.TestAsyncAdminMasterSwitch (Apache HBase 3.0.0-SNAPSHOT Test API)</title>
+<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
+<script type="text/javascript" src="../../../../../../script.js"></script>
+</head>
+<body>
+<script type="text/javascript"><!--
+    try {
+        if (location.href.indexOf('is-external=true') == -1) {
+            parent.document.title="Uses of Class org.apache.hadoop.hbase.client.TestAsyncAdminMasterSwitch (Apache HBase 3.0.0-SNAPSHOT Test API)";
+        }
+    }
+    catch(err) {
+    }
+//-->
+</script>
+<noscript>
+<div>JavaScript is disabled on your browser.</div>
+</noscript>
+<!-- ========= START OF TOP NAVBAR ======= -->
+<div class="topNav"><a name="navbar.top">
+<!--   -->
+</a>
+<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
+<a name="navbar.top.firstrow">
+<!--   -->
+</a>
+<ul class="navList" title="Navigation">
+<li><a href="../../../../../../overview-summary.html">Overview</a></li>
+<li><a href="../package-summary.html">Package</a></li>
+<li><a href="../../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminMasterSwitch.html" title="class in org.apache.hadoop.hbase.client">Class</a></li>
+<li class="navBarCell1Rev">Use</li>
+<li><a href="../../../../../../overview-tree.html">Tree</a></li>
+<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
+<li><a href="../../../../../../index-all.html">Index</a></li>
+<li><a href="../../../../../../help-doc.html">Help</a></li>
+</ul>
+</div>
+<div class="subNav">
+<ul class="navList">
+<li>Prev</li>
+<li>Next</li>
+</ul>
+<ul class="navList">
+<li><a href="../../../../../../index.html?org/apache/hadoop/hbase/client/class-use/TestAsyncAdminMasterSwitch.html" target="_top">Frames</a></li>
+<li><a href="TestAsyncAdminMasterSwitch.html" target="_top">No&nbsp;Frames</a></li>
+</ul>
+<ul class="navList" id="allclasses_navbar_top">
+<li><a href="../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
+</ul>
+<div>
+<script type="text/javascript"><!--
+  allClassesLink = document.getElementById("allclasses_navbar_top");
+  if(window==top) {
+    allClassesLink.style.display = "block";
+  }
+  else {
+    allClassesLink.style.display = "none";
+  }
+  //-->
+</script>
+</div>
+<a name="skip.navbar.top">
+<!--   -->
+</a></div>
+<!-- ========= END OF TOP NAVBAR ========= -->
+<div class="header">
+<h2 title="Uses of Class org.apache.hadoop.hbase.client.TestAsyncAdminMasterSwitch" class="title">Uses of Class<br>org.apache.hadoop.hbase.client.TestAsyncAdminMasterSwitch</h2>
+</div>
+<div class="classUseContainer">No usage of org.apache.hadoop.hbase.client.TestAsyncAdminMasterSwitch</div>
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<div class="bottomNav"><a name="navbar.bottom">
+<!--   -->
+</a>
+<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
+<a name="navbar.bottom.firstrow">
+<!--   -->
+</a>
+<ul class="navList" title="Navigation">
+<li><a href="../../../../../../overview-summary.html">Overview</a></li>
+<li><a href="../package-summary.html">Package</a></li>
+<li><a href="../../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminMasterSwitch.html" title="class in org.apache.hadoop.hbase.client">Class</a></li>
+<li class="navBarCell1Rev">Use</li>
+<li><a href="../../../../../../overview-tree.html">Tree</a></li>
+<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
+<li><a href="../../../../../../index-all.html">Index</a></li>
+<li><a href="../../../../../../help-doc.html">Help</a></li>
+</ul>
+</div>
+<div class="subNav">
+<ul class="navList">
+<li>Prev</li>
+<li>Next</li>
+</ul>
+<ul class="navList">
+<li><a href="../../../../../../index.html?org/apache/hadoop/hbase/client/class-use/TestAsyncAdminMasterSwitch.html" target="_top">Frames</a></li>
+<li><a href="TestAsyncAdminMasterSwitch.html" target="_top">No&nbsp;Frames</a></li>
+</ul>
+<ul class="navList" id="allclasses_navbar_bottom">
+<li><a href="../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
+</ul>
+<div>
+<script type="text/javascript"><!--
+  allClassesLink = document.getElementById("allclasses_navbar_bottom");
+  if(window==top) {
+    allClassesLink.style.display = "block";
+  }
+  else {
+    allClassesLink.style.display = "none";
+  }
+  //-->
+</script>
+</div>
+<a name="skip.navbar.bottom">
+<!--   -->
+</a></div>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+<p class="legalCopy"><small>Copyright &#169; 2007&#x2013;2019 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
+</body>
+</html>
diff --git a/testdevapidocs/org/apache/hadoop/hbase/client/package-frame.html b/testdevapidocs/org/apache/hadoop/hbase/client/package-frame.html
index 14892a6..b2170a7 100644
--- a/testdevapidocs/org/apache/hadoop/hbase/client/package-frame.html
+++ b/testdevapidocs/org/apache/hadoop/hbase/client/package-frame.html
@@ -68,6 +68,7 @@
 <li><a href="TestAsyncAdminBuilder.TestMaxRetriesCoprocessor.html" title="class in org.apache.hadoop.hbase.client" target="classFrame">TestAsyncAdminBuilder.TestMaxRetriesCoprocessor</a></li>
 <li><a href="TestAsyncAdminBuilder.TestOperationTimeoutCoprocessor.html" title="class in org.apache.hadoop.hbase.client" target="classFrame">TestAsyncAdminBuilder.TestOperationTimeoutCoprocessor</a></li>
 <li><a href="TestAsyncAdminBuilder.TestRpcTimeoutCoprocessor.html" title="class in org.apache.hadoop.hbase.client" target="classFrame">TestAsyncAdminBuilder.TestRpcTimeoutCoprocessor</a></li>
+<li><a href="TestAsyncAdminMasterSwitch.html" title="class in org.apache.hadoop.hbase.client" target="classFrame">TestAsyncAdminMasterSwitch</a></li>
 <li><a href="TestAsyncAdminRpcPriority.html" title="class in org.apache.hadoop.hbase.client" target="classFrame">TestAsyncAdminRpcPriority</a></li>
 <li><a href="TestAsyncAggregationClient.html" title="class in org.apache.hadoop.hbase.client" target="classFrame">TestAsyncAggregationClient</a></li>
 <li><a href="TestAsyncBufferMutator.html" title="class in org.apache.hadoop.hbase.client" target="classFrame">TestAsyncBufferMutator</a></li>
diff --git a/testdevapidocs/org/apache/hadoop/hbase/client/package-summary.html b/testdevapidocs/org/apache/hadoop/hbase/client/package-summary.html
index 03782a0..5742427 100644
--- a/testdevapidocs/org/apache/hadoop/hbase/client/package-summary.html
+++ b/testdevapidocs/org/apache/hadoop/hbase/client/package-summary.html
@@ -333,1163 +333,1169 @@
 <td class="colLast">&nbsp;</td>
 </tr>
 <tr class="altColor">
+<td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminMasterSwitch.html" title="class in org.apache.hadoop.hbase.client">TestAsyncAdminMasterSwitch</a></td>
+<td class="colLast">
+<div class="block">Testcase for HBASE-22135.</div>
+</td>
+</tr>
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminRpcPriority.html" title="class in org.apache.hadoop.hbase.client">TestAsyncAdminRpcPriority</a></td>
 <td class="colLast">
 <div class="block">Confirm that we will set the priority in <code>HBaseRpcController</code> for several admin operations.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAggregationClient.html" title="class in org.apache.hadoop.hbase.client">TestAsyncAggregationClient</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncBufferMutator.html" title="class in org.apache.hadoop.hbase.client">TestAsyncBufferMutator</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncBufferMutator.AsyncBufferMutatorForTest.html" title="class in org.apache.hadoop.hbase.client">TestAsyncBufferMutator.AsyncBufferMutatorForTest</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncClusterAdminApi.html" title="class in org.apache.hadoop.hbase.client">TestAsyncClusterAdminApi</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncClusterAdminApi2.html" title="class in org.apache.hadoop.hbase.client">TestAsyncClusterAdminApi2</a></td>
 <td class="colLast">
 <div class="block">Only used to test stopMaster/stopRegionServer/shutdown methods.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncDecommissionAdminApi.html" title="class in org.apache.hadoop.hbase.client">TestAsyncDecommissionAdminApi</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncMetaRegionLocator.html" title="class in org.apache.hadoop.hbase.client">TestAsyncMetaRegionLocator</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncMetaRegionLocatorFailFast.html" title="class in org.apache.hadoop.hbase.client">TestAsyncMetaRegionLocatorFailFast</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncMetaRegionLocatorFailFast.FaultyAsyncRegistry.html" title="class in org.apache.hadoop.hbase.client">TestAsyncMetaRegionLocatorFailFast.FaultyAsyncRegistry</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncNamespaceAdminApi.html" title="class in org.apache.hadoop.hbase.client">TestAsyncNamespaceAdminApi</a></td>
 <td class="colLast">
 <div class="block">Class to test asynchronous namespace admin operations.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncNonMetaRegionLocator.html" title="class in org.apache.hadoop.hbase.client">TestAsyncNonMetaRegionLocator</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncNonMetaRegionLocatorConcurrenyLimit.html" title="class in org.apache.hadoop.hbase.client">TestAsyncNonMetaRegionLocatorConcurrenyLimit</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncNonMetaRegionLocatorConcurrenyLimit.CountingRegionObserver.html" title="class in org.apache.hadoop.hbase.client">TestAsyncNonMetaRegionLocatorConcurrenyLimit.CountingRegionObserver</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncProcedureAdminApi.html" title="class in org.apache.hadoop.hbase.client">TestAsyncProcedureAdminApi</a></td>
 <td class="colLast">
 <div class="block">Class to test asynchronous procedure admin operations.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncProcess.html" title="class in org.apache.hadoop.hbase.client">TestAsyncProcess</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncProcess.AsyncProcessForThrowableCheck.html" title="class in org.apache.hadoop.hbase.client">TestAsyncProcess.AsyncProcessForThrowableCheck</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncProcess.AsyncProcessWithFailure.html" title="class in org.apache.hadoop.hbase.client">TestAsyncProcess.AsyncProcessWithFailure</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncProcess.CallerWithFailure.html" title="class in org.apache.hadoop.hbase.client">TestAsyncProcess.CallerWithFailure</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncProcess.CountingThreadFactory.html" title="class in org.apache.hadoop.hbase.client">TestAsyncProcess.CountingThreadFactory</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncProcess.MyAsyncProcess.html" title="class in org.apache.hadoop.hbase.client">TestAsyncProcess.MyAsyncProcess</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncProcess.MyAsyncProcessWithReplicas.html" title="class in org.apache.hadoop.hbase.client">TestAsyncProcess.MyAsyncProcessWithReplicas</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncProcess.MyAsyncRequestFutureImpl.html" title="class in org.apache.hadoop.hbase.client">TestAsyncProcess.MyAsyncRequestFutureImpl</a>&lt;Res&gt;</td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncProcess.MyClientBackoffPolicy.html" title="class in org.apache.hadoop.hbase.client">TestAsyncProcess.MyClientBackoffPolicy</a></td>
 <td class="colLast">
 <div class="block">Make the backoff time always different on each call.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncProcess.MyConnectionImpl.html" title="class in org.apache.hadoop.hbase.client">TestAsyncProcess.MyConnectionImpl</a></td>
 <td class="colLast">
 <div class="block">Returns our async process.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncProcess.MyConnectionImpl.TestRegistry.html" title="class in org.apache.hadoop.hbase.client">TestAsyncProcess.MyConnectionImpl.TestRegistry</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncProcess.MyConnectionImpl2.html" title="class in org.apache.hadoop.hbase.client">TestAsyncProcess.MyConnectionImpl2</a></td>
 <td class="colLast">
 <div class="block">Returns our async process.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncProcess.MyThreadPoolExecutor.html" title="class in org.apache.hadoop.hbase.client">TestAsyncProcess.MyThreadPoolExecutor</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncProcessWithRegionException.html" title="class in org.apache.hadoop.hbase.client">TestAsyncProcessWithRegionException</a></td>
 <td class="colLast">
 <div class="block">The purpose of this test is to make sure the region exception won't corrupt the results
  of batch.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncProcessWithRegionException.MyAsyncProcess.html" title="class in org.apache.hadoop.hbase.client">TestAsyncProcessWithRegionException.MyAsyncProcess</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncQuotaAdminApi.html" title="class in org.apache.hadoop.hbase.client">TestAsyncQuotaAdminApi</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi.html" title="class in org.apache.hadoop.hbase.client">TestAsyncRegionAdminApi</a></td>
 <td class="colLast">
 <div class="block">Class to test asynchronous region admin operations.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi2.html" title="class in org.apache.hadoop.hbase.client">TestAsyncRegionAdminApi2</a></td>
 <td class="colLast">
 <div class="block">Class to test asynchronous region admin operations.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncRegionAdminApiWithRegionReplicas.html" title="class in org.apache.hadoop.hbase.client">TestAsyncRegionAdminApiWithRegionReplicas</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncRegionLocator.html" title="class in org.apache.hadoop.hbase.client">TestAsyncRegionLocator</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncRegionLocator.SleepRegionObserver.html" title="class in org.apache.hadoop.hbase.client">TestAsyncRegionLocator.SleepRegionObserver</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncRegistryLeak.html" title="class in org.apache.hadoop.hbase.client">TestAsyncRegistryLeak</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncRegistryLeak.AsyncRegistryForTest.html" title="class in org.apache.hadoop.hbase.client">TestAsyncRegistryLeak.AsyncRegistryForTest</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncReplicationAdminApi.html" title="class in org.apache.hadoop.hbase.client">TestAsyncReplicationAdminApi</a></td>
 <td class="colLast">
 <div class="block">Class to test asynchronous replication admin operations.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncReplicationAdminApiWithClusters.html" title="class in org.apache.hadoop.hbase.client">TestAsyncReplicationAdminApiWithClusters</a></td>
 <td class="colLast">
 <div class="block">Class to test asynchronous replication admin operations when more than 1 cluster</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncResultScannerCursor.html" title="class in org.apache.hadoop.hbase.client">TestAsyncResultScannerCursor</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncSingleRequestRpcRetryingCaller.html" title="class in org.apache.hadoop.hbase.client">TestAsyncSingleRequestRpcRetryingCaller</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncSnapshotAdminApi.html" title="class in org.apache.hadoop.hbase.client">TestAsyncSnapshotAdminApi</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTable.html" title="class in org.apache.hadoop.hbase.client">TestAsyncTable</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableAdminApi.html" title="class in org.apache.hadoop.hbase.client">TestAsyncTableAdminApi</a></td>
 <td class="colLast">
 <div class="block">Class to test asynchronous table admin operations.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableAdminApi2.html" title="class in org.apache.hadoop.hbase.client">TestAsyncTableAdminApi2</a></td>
 <td class="colLast">
 <div class="block">Class to test asynchronous table admin operations</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableAdminApi3.html" title="class in org.apache.hadoop.hbase.client">TestAsyncTableAdminApi3</a></td>
 <td class="colLast">
 <div class="block">Class to test asynchronous table admin operations.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableBatch.html" title="class in org.apache.hadoop.hbase.client">TestAsyncTableBatch</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableBatch.ErrorInjectObserver.html" title="class in org.apache.hadoop.hbase.client">TestAsyncTableBatch.ErrorInjectObserver</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableBatchRetryImmediately.html" title="class in org.apache.hadoop.hbase.client">TestAsyncTableBatchRetryImmediately</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableGetMultiThreaded.html" title="class in org.apache.hadoop.hbase.client">TestAsyncTableGetMultiThreaded</a></td>
 <td class="colLast">
 <div class="block">Will split the table, and move region randomly when testing.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableGetMultiThreadedWithBasicCompaction.html" title="class in org.apache.hadoop.hbase.client">TestAsyncTableGetMultiThreadedWithBasicCompaction</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableGetMultiThreadedWithEagerCompaction.html" title="class in org.apache.hadoop.hbase.client">TestAsyncTableGetMultiThreadedWithEagerCompaction</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableLocatePrefetch.html" title="class in org.apache.hadoop.hbase.client">TestAsyncTableLocatePrefetch</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableLocateRegionForDeletedTable.html" title="class in org.apache.hadoop.hbase.client">TestAsyncTableLocateRegionForDeletedTable</a></td>
 <td class="colLast">
 <div class="block">Fix an infinite loop in <code>AsyncNonMetaRegionLocator</code>, see the comments on HBASE-21943 for
  more details.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableNoncedRetry.html" title="class in org.apache.hadoop.hbase.client">TestAsyncTableNoncedRetry</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableNoncedRetry.SleepOnceCP.html" title="class in org.apache.hadoop.hbase.client">TestAsyncTableNoncedRetry.SleepOnceCP</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableRegionLocator.html" title="class in org.apache.hadoop.hbase.client">TestAsyncTableRegionLocator</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableRegionReplicasGet.html" title="class in org.apache.hadoop.hbase.client">TestAsyncTableRegionReplicasGet</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableRegionReplicasScan.html" title="class in org.apache.hadoop.hbase.client">TestAsyncTableRegionReplicasScan</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableRpcPriority.html" title="class in org.apache.hadoop.hbase.client">TestAsyncTableRpcPriority</a></td>
 <td class="colLast">
 <div class="block">Confirm that we will set the priority in <code>HBaseRpcController</code> for several table operations.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableScan.html" title="class in org.apache.hadoop.hbase.client">TestAsyncTableScan</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableScanAll.html" title="class in org.apache.hadoop.hbase.client">TestAsyncTableScanAll</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableScanException.html" title="class in org.apache.hadoop.hbase.client">TestAsyncTableScanException</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableScanException.ErrorCP.html" title="class in org.apache.hadoop.hbase.client">TestAsyncTableScanException.ErrorCP</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableScanMetrics.html" title="class in org.apache.hadoop.hbase.client">TestAsyncTableScanMetrics</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableScanner.html" title="class in org.apache.hadoop.hbase.client">TestAsyncTableScanner</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableScannerCloseWhileSuspending.html" title="class in org.apache.hadoop.hbase.client">TestAsyncTableScannerCloseWhileSuspending</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableScanRenewLease.html" title="class in org.apache.hadoop.hbase.client">TestAsyncTableScanRenewLease</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncTableScanRenewLease.RenewLeaseConsumer.html" title="class in org.apache.hadoop.hbase.client">TestAsyncTableScanRenewLease.RenewLeaseConsumer</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncToolAdminApi.html" title="class in org.apache.hadoop.hbase.client">TestAsyncToolAdminApi</a></td>
 <td class="colLast">
 <div class="block">Test the admin operations for Balancer, Normalizer, CleanerChore, and CatalogJanitor.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAttributes.html" title="class in org.apache.hadoop.hbase.client">TestAttributes</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAvoidCellReferencesIntoShippedBlocks.html" title="class in org.apache.hadoop.hbase.client">TestAvoidCellReferencesIntoShippedBlocks</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAvoidCellReferencesIntoShippedBlocks.CompactorInternalScanner.html" title="class in org.apache.hadoop.hbase.client">TestAvoidCellReferencesIntoShippedBlocks.CompactorInternalScanner</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAvoidCellReferencesIntoShippedBlocks.CompactorRegionObserver.html" title="class in org.apache.hadoop.hbase.client">TestAvoidCellReferencesIntoShippedBlocks.CompactorRegionObserver</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestAvoidCellReferencesIntoShippedBlocks.ScannerThread.html" title="class in org.apache.hadoop.hbase.client">TestAvoidCellReferencesIntoShippedBlocks.ScannerThread</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestBatchScanResultCache.html" title="class in org.apache.hadoop.hbase.client">TestBatchScanResultCache</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestBlockEvictionFromClient.html" title="class in org.apache.hadoop.hbase.client">TestBlockEvictionFromClient</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestBlockEvictionFromClient.CustomInnerRegionObserver.html" title="class in org.apache.hadoop.hbase.client">TestBlockEvictionFromClient.CustomInnerRegionObserver</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestBlockEvictionFromClient.CustomInnerRegionObserverWrapper.html" title="class in org.apache.hadoop.hbase.client">TestBlockEvictionFromClient.CustomInnerRegionObserverWrapper</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestBlockEvictionFromClient.CustomScanner.html" title="class in org.apache.hadoop.hbase.client">TestBlockEvictionFromClient.CustomScanner</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestBlockEvictionFromClient.GetThread.html" title="class in org.apache.hadoop.hbase.client">TestBlockEvictionFromClient.GetThread</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestBlockEvictionFromClient.MultiGetThread.html" title="class in org.apache.hadoop.hbase.client">TestBlockEvictionFromClient.MultiGetThread</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestBlockEvictionFromClient.ScanThread.html" title="class in org.apache.hadoop.hbase.client">TestBlockEvictionFromClient.ScanThread</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestBufferedMutator.html" title="class in org.apache.hadoop.hbase.client">TestBufferedMutator</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestBufferedMutator.MyBufferedMutator.html" title="class in org.apache.hadoop.hbase.client">TestBufferedMutator.MyBufferedMutator</a></td>
 <td class="colLast">
 <div class="block">My BufferedMutator.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestBufferedMutatorParams.html" title="class in org.apache.hadoop.hbase.client">TestBufferedMutatorParams</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestBufferedMutatorParams.MockExceptionListener.html" title="class in org.apache.hadoop.hbase.client">TestBufferedMutatorParams.MockExceptionListener</a></td>
 <td class="colLast">
 <div class="block">Just to create an instance, this doesn't actually function.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestCheckAndMutate.html" title="class in org.apache.hadoop.hbase.client">TestCheckAndMutate</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestCIBadHostname.html" title="class in org.apache.hadoop.hbase.client">TestCIBadHostname</a></td>
 <td class="colLast">
 <div class="block">Tests that we fail fast when hostname resolution is not working and do not cache
  unresolved InetSocketAddresses.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestCIDeleteOperationTimeout.html" title="class in org.apache.hadoop.hbase.client">TestCIDeleteOperationTimeout</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestCIDeleteRpcTimeout.html" title="class in org.apache.hadoop.hbase.client">TestCIDeleteRpcTimeout</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestCIGetOperationTimeout.html" title="class in org.apache.hadoop.hbase.client">TestCIGetOperationTimeout</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestCIGetRpcTimeout.html" title="class in org.apache.hadoop.hbase.client">TestCIGetRpcTimeout</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestCIIncrementRpcTimeout.html" title="class in org.apache.hadoop.hbase.client">TestCIIncrementRpcTimeout</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestCIPutOperationTimeout.html" title="class in org.apache.hadoop.hbase.client">TestCIPutOperationTimeout</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestCIPutRpcTimeout.html" title="class in org.apache.hadoop.hbase.client">TestCIPutRpcTimeout</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestCISleep.html" title="class in org.apache.hadoop.hbase.client">TestCISleep</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestClientExponentialBackoff.html" title="class in org.apache.hadoop.hbase.client">TestClientExponentialBackoff</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestClientNoCluster.html" title="class in org.apache.hadoop.hbase.client">TestClientNoCluster</a></td>
 <td class="colLast">
 <div class="block">Test client behavior w/o setting up a cluster.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestClientNoCluster.FakeServer.html" title="class in org.apache.hadoop.hbase.client">TestClientNoCluster.FakeServer</a></td>
 <td class="colLast">
 <div class="block">Fake 'server'.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestClientNoCluster.ManyServersManyRegionsConnection.html" title="class in org.apache.hadoop.hbase.client">TestClientNoCluster.ManyServersManyRegionsConnection</a></td>
 <td class="colLast">
 <div class="block">Fake many regionservers and many regions on a connection implementation.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestClientNoCluster.MetaRowsComparator.html" title="class in org.apache.hadoop.hbase.client">TestClientNoCluster.MetaRowsComparator</a></td>
 <td class="colLast">
 <div class="block">Comparator for meta row keys.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestClientNoCluster.RegionServerStoppedOnScannerOpenConnection.html" title="class in org.apache.hadoop.hbase.client">TestClientNoCluster.RegionServerStoppedOnScannerOpenConnection</a></td>
 <td class="colLast">
 <div class="block">Override to shutdown going to zookeeper for cluster id and meta location.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestClientNoCluster.RpcTimeoutConnection.html" title="class in org.apache.hadoop.hbase.client">TestClientNoCluster.RpcTimeoutConnection</a></td>
 <td class="colLast">
 <div class="block">Override to check we are setting rpc timeout right.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestClientNoCluster.SimpleRegistry.html" title="class in org.apache.hadoop.hbase.client">TestClientNoCluster.SimpleRegistry</a></td>
 <td class="colLast">
 <div class="block">Simple cluster registry inserted in place of our usual zookeeper based one.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestClientOperationInterrupt.html" title="class in org.apache.hadoop.hbase.client">TestClientOperationInterrupt</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestClientOperationInterrupt.TestCoprocessor.html" title="class in org.apache.hadoop.hbase.client">TestClientOperationInterrupt.TestCoprocessor</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestClientPushback.html" title="class in org.apache.hadoop.hbase.client">TestClientPushback</a></td>
 <td class="colLast">
 <div class="block">Test that we can actually send and use region metrics to slowdown client writes</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestClientScanner.html" title="class in org.apache.hadoop.hbase.client">TestClientScanner</a></td>
 <td class="colLast">
 <div class="block">Test the ClientScanner.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestClientScanner.MockClientScanner.html" title="class in org.apache.hadoop.hbase.client">TestClientScanner.MockClientScanner</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestClientScanner.MockRpcRetryingCallerFactory.html" title="class in org.apache.hadoop.hbase.client">TestClientScanner.MockRpcRetryingCallerFactory</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestClientScannerRPCTimeout.html" title="class in org.apache.hadoop.hbase.client">TestClientScannerRPCTimeout</a></td>
 <td class="colLast">
 <div class="block">Test the scenario where a HRegionServer#scan() call, while scanning, timeout at client side and
  getting retried.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestClientScannerRPCTimeout.RegionServerWithScanTimeout.html" title="class in org.apache.hadoop.hbase.client">TestClientScannerRPCTimeout.RegionServerWithScanTimeout</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestClientScannerRPCTimeout.RSRpcServicesWithScanTimeout.html" title="class in org.apache.hadoop.hbase.client">TestClientScannerRPCTimeout.RSRpcServicesWithScanTimeout</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestClientTimeouts.html" title="class in org.apache.hadoop.hbase.client">TestClientTimeouts</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestClientTimeouts.RandomTimeoutBlockingRpcChannel.html" title="class in org.apache.hadoop.hbase.client">TestClientTimeouts.RandomTimeoutBlockingRpcChannel</a></td>
 <td class="colLast">
 <div class="block">Blocking rpc channel that goes via hbase rpc.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestClientTimeouts.RandomTimeoutRpcClient.html" title="class in org.apache.hadoop.hbase.client">TestClientTimeouts.RandomTimeoutRpcClient</a></td>
 <td class="colLast">
 <div class="block">Rpc Channel implementation with RandomTimeoutBlockingRpcChannel</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestCloneSnapshotFromClientAfterSplittingRegion.html" title="class in org.apache.hadoop.hbase.client">TestCloneSnapshotFromClientAfterSplittingRegion</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestCloneSnapshotFromClientCloneLinksAfterDelete.html" title="class in org.apache.hadoop.hbase.client">TestCloneSnapshotFromClientCloneLinksAfterDelete</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestCloneSnapshotFromClientError.html" title="class in org.apache.hadoop.hbase.client">TestCloneSnapshotFromClientError</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestCloneSnapshotFromClientNormal.html" title="class in org.apache.hadoop.hbase.client">TestCloneSnapshotFromClientNormal</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestColumnFamilyDescriptorBuilder.html" title="class in org.apache.hadoop.hbase.client">TestColumnFamilyDescriptorBuilder</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestColumnFamilyDescriptorLowerCaseEnum.html" title="class in org.apache.hadoop.hbase.client">TestColumnFamilyDescriptorLowerCaseEnum</a></td>
 <td class="colLast">
 <div class="block">Testcase for HBASE-21732.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestCompleteResultScanResultCache.html" title="class in org.apache.hadoop.hbase.client">TestCompleteResultScanResultCache</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestConnectionImplementation.html" title="class in org.apache.hadoop.hbase.client">TestConnectionImplementation</a></td>
 <td class="colLast">
 <div class="block">This class is for testing HBaseConnectionManager features</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestConnectionImplementation.BlockingFilter.html" title="class in org.apache.hadoop.hbase.client">TestConnectionImplementation.BlockingFilter</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestConnectionUtils.html" title="class in org.apache.hadoop.hbase.client">TestConnectionUtils</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestCoprocessorDescriptor.html" title="class in org.apache.hadoop.hbase.client">TestCoprocessorDescriptor</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestDelayingRunner.html" title="class in org.apache.hadoop.hbase.client">TestDelayingRunner</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestDeleteTimeStamp.html" title="class in org.apache.hadoop.hbase.client">TestDeleteTimeStamp</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestDropTimeoutRequest.html" title="class in org.apache.hadoop.hbase.client">TestDropTimeoutRequest</a></td>
 <td class="colLast">
 <div class="block">Test a drop timeout request.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestDropTimeoutRequest.SleepLongerAtFirstCoprocessor.html" title="class in org.apache.hadoop.hbase.client">TestDropTimeoutRequest.SleepLongerAtFirstCoprocessor</a></td>
 <td class="colLast">
 <div class="block">Coprocessor that sleeps a while the first time you do a Get</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestEnableTable.html" title="class in org.apache.hadoop.hbase.client">TestEnableTable</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestEnableTable.MasterSyncObserver.html" title="class in org.apache.hadoop.hbase.client">TestEnableTable.MasterSyncObserver</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestFastFail.html" title="class in org.apache.hadoop.hbase.client">TestFastFail</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestFastFail.CallQueueTooBigPffeInterceptor.html" title="class in org.apache.hadoop.hbase.client">TestFastFail.CallQueueTooBigPffeInterceptor</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestFastFail.MyPreemptiveFastFailInterceptor.html" title="class in org.apache.hadoop.hbase.client">TestFastFail.MyPreemptiveFastFailInterceptor</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestFlushFromClient.html" title="class in org.apache.hadoop.hbase.client">TestFlushFromClient</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestFromClientSide.html" title="class in org.apache.hadoop.hbase.client">TestFromClientSide</a></td>
 <td class="colLast">
 <div class="block">Run tests that use the HBase clients; <code>Table</code>.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestFromClientSide3.html" title="class in org.apache.hadoop.hbase.client">TestFromClientSide3</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestFromClientSide3.WaitingForMultiMutationsObserver.html" title="class in org.apache.hadoop.hbase.client">TestFromClientSide3.WaitingForMultiMutationsObserver</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestFromClientSide3.WaitingForScanObserver.html" title="class in org.apache.hadoop.hbase.client">TestFromClientSide3.WaitingForScanObserver</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestFromClientSideNoCodec.html" title="class in org.apache.hadoop.hbase.client">TestFromClientSideNoCodec</a></td>
 <td class="colLast">
 <div class="block">Do some ops and prove that client and server can work w/o codecs; that we can pb all the time.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestFromClientSideScanExcpetion.html" title="class in org.apache.hadoop.hbase.client">TestFromClientSideScanExcpetion</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestFromClientSideScanExcpetion.MyHRegion.html" title="class in org.apache.hadoop.hbase.client">TestFromClientSideScanExcpetion.MyHRegion</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestFromClientSideScanExcpetion.MyHStore.html" title="class in org.apache.hadoop.hbase.client">TestFromClientSideScanExcpetion.MyHStore</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestFromClientSideScanExcpetion.MyStoreScanner.html" title="class in org.apache.hadoop.hbase.client">TestFromClientSideScanExcpetion.MyStoreScanner</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestFromClientSideScanExcpetionWithCoprocessor.html" title="class in org.apache.hadoop.hbase.client">TestFromClientSideScanExcpetionWithCoprocessor</a></td>
 <td class="colLast">
 <div class="block">Test all client operations with a coprocessor that just implements the default flush/compact/scan
  policy.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestFromClientSideWithCoprocessor.html" title="class in org.apache.hadoop.hbase.client">TestFromClientSideWithCoprocessor</a></td>
 <td class="colLast">
 <div class="block">Test all client operations with a coprocessor that just implements the default flush/compact/scan
  policy.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestGet.html" title="class in org.apache.hadoop.hbase.client">TestGet</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestGetProcedureResult.html" title="class in org.apache.hadoop.hbase.client">TestGetProcedureResult</a></td>
 <td class="colLast">
 <div class="block">Testcase for HBASE-19608.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestGetProcedureResult.DummyProcedure.html" title="class in org.apache.hadoop.hbase.client">TestGetProcedureResult.DummyProcedure</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestGetScanColumnsWithNewVersionBehavior.html" title="class in org.apache.hadoop.hbase.client">TestGetScanColumnsWithNewVersionBehavior</a></td>
 <td class="colLast">
 <div class="block">Testcase for HBASE-21032, where use the wrong readType from a Scan instance which is actually a
  get scan and cause returning only 1 cell per rpc call.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestGetScanPartialResult.html" title="class in org.apache.hadoop.hbase.client">TestGetScanPartialResult</a></td>
 <td class="colLast">
 <div class="block">Testcase for HBASE-21032, where use the wrong readType from a Scan instance which is actually a
  get scan and cause returning only 1 cell per rpc call.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestHBaseAdminNoCluster.html" title="class in org.apache.hadoop.hbase.client">TestHBaseAdminNoCluster</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestHbck.html" title="class in org.apache.hadoop.hbase.client">TestHbck</a></td>
 <td class="colLast">
 <div class="block">Class to test HBaseHbck.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestHbck.SuspendProcedure.html" title="class in org.apache.hadoop.hbase.client">TestHbck.SuspendProcedure</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestIllegalTableDescriptor.html" title="class in org.apache.hadoop.hbase.client">TestIllegalTableDescriptor</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestImmutableHColumnDescriptor.html" title="class in org.apache.hadoop.hbase.client">TestImmutableHColumnDescriptor</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestImmutableHRegionInfo.html" title="class in org.apache.hadoop.hbase.client">TestImmutableHRegionInfo</a></td>
 <td class="colLast">
 <div class="block">Test ImmutableHRegionInfo</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestImmutableHTableDescriptor.html" title="class in org.apache.hadoop.hbase.client">TestImmutableHTableDescriptor</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestIncrement.html" title="class in org.apache.hadoop.hbase.client">TestIncrement</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestIncrementFromClientSideWithCoprocessor.html" title="class in org.apache.hadoop.hbase.client">TestIncrementFromClientSideWithCoprocessor</a></td>
 <td class="colLast">
 <div class="block">Test all <code>Increment</code> client operations with a coprocessor that
  just implements the default flush/compact/scan policy.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestIncrementsFromClientSide.html" title="class in org.apache.hadoop.hbase.client">TestIncrementsFromClientSide</a></td>
 <td class="colLast">
 <div class="block">Run Increment tests that use the HBase clients; <code>HTable</code>.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestInterfaceAlign.html" title="class in org.apache.hadoop.hbase.client">TestInterfaceAlign</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestIntraRowPagination.html" title="class in org.apache.hadoop.hbase.client">TestIntraRowPagination</a></td>
 <td class="colLast">
 <div class="block">Test scan/get offset and limit settings within one row through HRegion API.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestInvalidMutationDurabilityException.html" title="class in org.apache.hadoop.hbase.client">TestInvalidMutationDurabilityException</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestLeaseRenewal.html" title="class in org.apache.hadoop.hbase.client">TestLeaseRenewal</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestLimitedScanWithFilter.html" title="class in org.apache.hadoop.hbase.client">TestLimitedScanWithFilter</a></td>
 <td class="colLast">
 <div class="block">With filter we may stop at a middle of row and think that we still have more cells for the
  current row but actually all the remaining cells will be filtered out by the filter.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestMalformedCellFromClient.html" title="class in org.apache.hadoop.hbase.client">TestMalformedCellFromClient</a></td>
 <td class="colLast">
 <div class="block">The purpose of this test is to ensure whether rs deals with the malformed cells correctly.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestMetaCache.html" title="class in org.apache.hadoop.hbase.client">TestMetaCache</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestMetaCache.CallQueueTooBigExceptionInjector.html" title="class in org.apache.hadoop.hbase.client">TestMetaCache.CallQueueTooBigExceptionInjector</a></td>
 <td class="colLast">
 <div class="block">Throws CallQueueTooBigException for all gets.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestMetaCache.ExceptionInjector.html" title="class in org.apache.hadoop.hbase.client">TestMetaCache.ExceptionInjector</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestMetaCache.FakeRSRpcServices.html" title="class in org.apache.hadoop.hbase.client">TestMetaCache.FakeRSRpcServices</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestMetaCache.RegionServerWithFakeRpcServices.html" title="class in org.apache.hadoop.hbase.client">TestMetaCache.RegionServerWithFakeRpcServices</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestMetaCache.RoundRobinExceptionInjector.html" title="class in org.apache.hadoop.hbase.client">TestMetaCache.RoundRobinExceptionInjector</a></td>
 <td class="colLast">
 <div class="block">Rotates through the possible cache clearing and non-cache clearing exceptions
  for requests.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestMetaWithReplicas.html" title="class in org.apache.hadoop.hbase.client">TestMetaWithReplicas</a></td>
 <td class="colLast">
 <div class="block">Tests the scenarios where replicas are enabled for the meta table</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestMetricsConnection.html" title="class in org.apache.hadoop.hbase.client">TestMetricsConnection</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestMobCloneSnapshotFromClientAfterSplittingRegion.html" title="class in org.apache.hadoop.hbase.client">TestMobCloneSnapshotFromClientAfterSplittingRegion</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestMobCloneSnapshotFromClientCloneLinksAfterDelete.html" title="class in org.apache.hadoop.hbase.client">TestMobCloneSnapshotFromClientCloneLinksAfterDelete</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestMobCloneSnapshotFromClientCloneLinksAfterDelete.DelayFlushCoprocessor.html" title="class in org.apache.hadoop.hbase.client">TestMobCloneSnapshotFromClientCloneLinksAfterDelete.DelayFlushCoprocessor</a></td>
 <td class="colLast">
 <div class="block">This coprocessor is used to delay the flush.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestMobCloneSnapshotFromClientError.html" title="class in org.apache.hadoop.hbase.client">TestMobCloneSnapshotFromClientError</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestMobCloneSnapshotFromClientNormal.html" title="class in org.apache.hadoop.hbase.client">TestMobCloneSnapshotFromClientNormal</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestMobRestoreSnapshotFromClientAfterSplittingRegions.html" title="class in org.apache.hadoop.hbase.client">TestMobRestoreSnapshotFromClientAfterSplittingRegions</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestMobRestoreSnapshotFromClientAfterTruncate.html" title="class in org.apache.hadoop.hbase.client">TestMobRestoreSnapshotFromClientAfterTruncate</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestMobRestoreSnapshotFromClientClone.html" title="class in org.apache.hadoop.hbase.client">TestMobRestoreSnapshotFromClientClone</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestMobRestoreSnapshotFromClientGetCompactionState.html" title="class in org.apache.hadoop.hbase.client">TestMobRestoreSnapshotFromClientGetCompactionState</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestMobRestoreSnapshotFromClientSchemaChange.html" title="class in org.apache.hadoop.hbase.client">TestMobRestoreSnapshotFromClientSchemaChange</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestMobRestoreSnapshotFromClientSimple.html" title="class in org.apache.hadoop.hbase.client">TestMobRestoreSnapshotFromClientSimple</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestMobSnapshotCloneIndependence.html" title="class in org.apache.hadoop.hbase.client">TestMobSnapshotCloneIndependence</a></td>
 <td class="colLast">
 <div class="block">Test to verify that the cloned table is independent of the table from which it was cloned</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestMobSnapshotFromClient.html" title="class in org.apache.hadoop.hbase.client">TestMobSnapshotFromClient</a></td>
 <td class="colLast">
 <div class="block">Test create/using/deleting snapshots from the client</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestMultiActionMetricsFromClient.html" title="class in org.apache.hadoop.hbase.client">TestMultiActionMetricsFromClient</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestMultiParallel.html" title="class in org.apache.hadoop.hbase.client">TestMultiParallel</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestMultiParallel.MyMasterObserver.html" title="class in org.apache.hadoop.hbase.client">TestMultiParallel.MyMasterObserver</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestMultipleTimestamps.html" title="class in org.apache.hadoop.hbase.client">TestMultipleTimestamps</a></td>
 <td class="colLast">
 <div class="block">Run tests related to <code>TimestampsFilter</code> using HBase client APIs.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestMultiRespectsLimits.html" title="class in org.apache.hadoop.hbase.client">TestMultiRespectsLimits</a></td>
 <td class="colLast">
 <div class="block">This test sets the multi size WAAAAAY low and then checks to make sure that gets will still make
  progress.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestMutation.html" title="class in org.apache.hadoop.hbase.client">TestMutation</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestMvccConsistentScanner.html" title="class in org.apache.hadoop.hbase.client">TestMvccConsistentScanner</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestOperation.html" title="class in org.apache.hadoop.hbase.client">TestOperation</a></td>
 <td class="colLast">
 <div class="block">Run tests that use the functionality of the Operation superclass for
  Puts, Gets, Deletes, Scans, and MultiPuts.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestProcedureFuture.html" title="class in org.apache.hadoop.hbase.client">TestProcedureFuture</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestProcedureFuture.TestFuture.html" title="class in org.apache.hadoop.hbase.client">TestProcedureFuture.TestFuture</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestPutDeleteEtcCellIteration.html" title="class in org.apache.hadoop.hbase.client">TestPutDeleteEtcCellIteration</a></td>
 <td class="colLast">
 <div class="block">Test that I can Iterate Client Actions that hold Cells (Get does not have Cells).</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestPutDotHas.html" title="class in org.apache.hadoop.hbase.client">TestPutDotHas</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestPutWithDelete.html" title="class in org.apache.hadoop.hbase.client">TestPutWithDelete</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestPutWriteToWal.html" title="class in org.apache.hadoop.hbase.client">TestPutWriteToWal</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestQuotasShell.html" title="class in org.apache.hadoop.hbase.client">TestQuotasShell</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestRawAsyncScanCursor.html" title="class in org.apache.hadoop.hbase.client">TestRawAsyncScanCursor</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestRawAsyncTableLimitedScanWithFilter.html" title="class in org.apache.hadoop.hbase.client">TestRawAsyncTableLimitedScanWithFilter</a></td>
 <td class="colLast">
 <div class="block">With filter we may stop at a middle of row and think that we still have more cells for the
  current row but actually all the remaining cells will be filtered out by the filter.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestRawAsyncTablePartialScan.html" title="class in org.apache.hadoop.hbase.client">TestRawAsyncTablePartialScan</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestRawAsyncTableScan.html" title="class in org.apache.hadoop.hbase.client">TestRawAsyncTableScan</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestRegionInfoDisplay.html" title="class in org.apache.hadoop.hbase.client">TestRegionInfoDisplay</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestRegionLocationCaching.html" title="class in org.apache.hadoop.hbase.client">TestRegionLocationCaching</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestRegionLocator.html" title="class in org.apache.hadoop.hbase.client">TestRegionLocator</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestReplicasClient.html" title="class in org.apache.hadoop.hbase.client">TestReplicasClient</a></td>
 <td class="colLast">
 <div class="block">Tests for region replicas.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestReplicasClient.SlowMeCopro.html" title="class in org.apache.hadoop.hbase.client">TestReplicasClient.SlowMeCopro</a></td>
 <td class="colLast">
 <div class="block">This copro is used to synchronize the tests.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestReplicationShell.html" title="class in org.apache.hadoop.hbase.client">TestReplicationShell</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestReplicaWithCluster.html" title="class in org.apache.hadoop.hbase.client">TestReplicaWithCluster</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestReplicaWithCluster.RegionServerHostingPrimayMetaRegionSlowOrStopCopro.html" title="class in org.apache.hadoop.hbase.client">TestReplicaWithCluster.RegionServerHostingPrimayMetaRegionSlowOrStopCopro</a></td>
 <td class="colLast">
 <div class="block">This copro is used to slow down the primary meta region scan a bit</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestReplicaWithCluster.RegionServerStoppedCopro.html" title="class in org.apache.hadoop.hbase.client">TestReplicaWithCluster.RegionServerStoppedCopro</a></td>
 <td class="colLast">
 <div class="block">This copro is used to simulate region server down exception for Get and Scan</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestReplicaWithCluster.SlowMeCopro.html" title="class in org.apache.hadoop.hbase.client">TestReplicaWithCluster.SlowMeCopro</a></td>
 <td class="colLast">
 <div class="block">This copro is used to synchronize the tests.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestRestoreSnapshotFromClientAfterSplittingRegions.html" title="class in org.apache.hadoop.hbase.client">TestRestoreSnapshotFromClientAfterSplittingRegions</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestRestoreSnapshotFromClientAfterTruncate.html" title="class in org.apache.hadoop.hbase.client">TestRestoreSnapshotFromClientAfterTruncate</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestRestoreSnapshotFromClientClone.html" title="class in org.apache.hadoop.hbase.client">TestRestoreSnapshotFromClientClone</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestRestoreSnapshotFromClientGetCompactionState.html" title="class in org.apache.hadoop.hbase.client">TestRestoreSnapshotFromClientGetCompactionState</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestRestoreSnapshotFromClientSchemaChange.html" title="class in org.apache.hadoop.hbase.client">TestRestoreSnapshotFromClientSchemaChange</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestRestoreSnapshotFromClientSimple.html" title="class in org.apache.hadoop.hbase.client">TestRestoreSnapshotFromClientSimple</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestResult.html" title="class in org.apache.hadoop.hbase.client">TestResult</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestResultFromCoprocessor.html" title="class in org.apache.hadoop.hbase.client">TestResultFromCoprocessor</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestResultFromCoprocessor.MyObserver.html" title="class in org.apache.hadoop.hbase.client">TestResultFromCoprocessor.MyObserver</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestResultScannerCursor.html" title="class in org.apache.hadoop.hbase.client">TestResultScannerCursor</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestResultSizeEstimation.html" title="class in org.apache.hadoop.hbase.client">TestResultSizeEstimation</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestRetriesExhaustedWithDetailsException.html" title="class in org.apache.hadoop.hbase.client">TestRetriesExhaustedWithDetailsException</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestReversedScannerCallable.html" title="class in org.apache.hadoop.hbase.client">TestReversedScannerCallable</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestRowComparator.html" title="class in org.apache.hadoop.hbase.client">TestRowComparator</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestRpcControllerFactory.html" title="class in org.apache.hadoop.hbase.client">TestRpcControllerFactory</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestRpcControllerFactory.CountingRpcController.html" title="class in org.apache.hadoop.hbase.client">TestRpcControllerFactory.CountingRpcController</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestRpcControllerFactory.StaticRpcControllerFactory.html" title="class in org.apache.hadoop.hbase.client">TestRpcControllerFactory.StaticRpcControllerFactory</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestScan.html" title="class in org.apache.hadoop.hbase.client">TestScan</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestScannersFromClientSide.html" title="class in org.apache.hadoop.hbase.client">TestScannersFromClientSide</a></td>
 <td class="colLast">
 <div class="block">A client-side test, mostly testing scanners with various parameters.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestScannersFromClientSide2.html" title="class in org.apache.hadoop.hbase.client">TestScannersFromClientSide2</a></td>
 <td class="colLast">
 <div class="block">Testcase for newly added feature in HBASE-17143, such as startRow and stopRow
  inclusive/exclusive, limit for rows, etc.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestScannerTimeout.html" title="class in org.apache.hadoop.hbase.client">TestScannerTimeout</a></td>
 <td class="colLast">
 <div class="block">Test various scanner timeout issues.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestScanWithoutFetchingData.html" title="class in org.apache.hadoop.hbase.client">TestScanWithoutFetchingData</a></td>
 <td class="colLast">
 <div class="block">Testcase to make sure that we do not close scanners if ScanRequest.numberOfRows is zero.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestSeparateClientZKCluster.html" title="class in org.apache.hadoop.hbase.client">TestSeparateClientZKCluster</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestServerBusyException.html" title="class in org.apache.hadoop.hbase.client">TestServerBusyException</a></td>
 <td class="colLast">
 <div class="block">This class is for testing HBaseConnectionManager ServerBusyException.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestServerBusyException.SleepCoprocessor.html" title="class in org.apache.hadoop.hbase.client">TestServerBusyException.SleepCoprocessor</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestServerBusyException.SleepLongerAtFirstCoprocessor.html" title="class in org.apache.hadoop.hbase.client">TestServerBusyException.SleepLongerAtFirstCoprocessor</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestServerBusyException.TestGetThread.html" title="class in org.apache.hadoop.hbase.client">TestServerBusyException.TestGetThread</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestServerBusyException.TestPutThread.html" title="class in org.apache.hadoop.hbase.client">TestServerBusyException.TestPutThread</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestServerLoadDurability.html" title="class in org.apache.hadoop.hbase.client">TestServerLoadDurability</a></td>
 <td class="colLast">
 <div class="block">HBASE-19496 noticed that the RegionLoad/ServerLoad may be corrupted if rpc server
@@ -1497,137 +1503,137 @@
  invoke HMaster to iterate all stored server/region loads.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestShell.html" title="class in org.apache.hadoop.hbase.client">TestShell</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestShellNoCluster.html" title="class in org.apache.hadoop.hbase.client">TestShellNoCluster</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestShortCircuitConnection.html" title="class in org.apache.hadoop.hbase.client">TestShortCircuitConnection</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestSimpleRequestController.html" title="class in org.apache.hadoop.hbase.client">TestSimpleRequestController</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestSizeFailures.html" title="class in org.apache.hadoop.hbase.client">TestSizeFailures</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestSmallReversedScanner.html" title="class in org.apache.hadoop.hbase.client">TestSmallReversedScanner</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestSnapshotCloneIndependence.html" title="class in org.apache.hadoop.hbase.client">TestSnapshotCloneIndependence</a></td>
 <td class="colLast">
 <div class="block">Test to verify that the cloned table is independent of the table from which it was cloned</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestSnapshotDFSTemporaryDirectory.html" title="class in org.apache.hadoop.hbase.client">TestSnapshotDFSTemporaryDirectory</a></td>
 <td class="colLast">
 <div class="block">This class tests that the use of a temporary snapshot directory supports snapshot functionality
  while the temporary directory is on the same file system as the root directory</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestSnapshotFromAdmin.html" title="class in org.apache.hadoop.hbase.client">TestSnapshotFromAdmin</a></td>
 <td class="colLast">
 <div class="block">Test snapshot logic from the client</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestSnapshotFromClient.html" title="class in org.apache.hadoop.hbase.client">TestSnapshotFromClient</a></td>
 <td class="colLast">
 <div class="block">Test create/using/deleting snapshots from the client</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestSnapshotFromClientWithRegionReplicas.html" title="class in org.apache.hadoop.hbase.client">TestSnapshotFromClientWithRegionReplicas</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestSnapshotMetadata.html" title="class in org.apache.hadoop.hbase.client">TestSnapshotMetadata</a></td>
 <td class="colLast">
 <div class="block">Test class to verify that metadata is consistent before and after a snapshot attempt.</div>
 </td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestSnapshotTemporaryDirectory.html" title="class in org.apache.hadoop.hbase.client">TestSnapshotTemporaryDirectory</a></td>
 <td class="colLast">
 <div class="block">This class tests that the use of a temporary snapshot directory supports snapshot functionality
  while the temporary directory is on a different file system than the root directory</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestSnapshotTemporaryDirectoryWithRegionReplicas.html" title="class in org.apache.hadoop.hbase.client">TestSnapshotTemporaryDirectoryWithRegionReplicas</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestSnapshotWithAcl.html" title="class in org.apache.hadoop.hbase.client">TestSnapshotWithAcl</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestSnapshotWithAclAsyncAdmin.html" title="class in org.apache.hadoop.hbase.client">TestSnapshotWithAclAsyncAdmin</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestSplitOrMergeAtTableLevel.html" title="class in org.apache.hadoop.hbase.client">TestSplitOrMergeAtTableLevel</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestSplitOrMergeStatus.html" title="class in org.apache.hadoop.hbase.client">TestSplitOrMergeStatus</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestTableDescriptorBuilder.html" title="class in org.apache.hadoop.hbase.client">TestTableDescriptorBuilder</a></td>
 <td class="colLast">
 <div class="block">Test setting values in the descriptor</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestTableDescriptorUtils.html" title="class in org.apache.hadoop.hbase.client">TestTableDescriptorUtils</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestTableFavoredNodes.html" title="class in org.apache.hadoop.hbase.client">TestTableFavoredNodes</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestTableOperationException.html" title="class in org.apache.hadoop.hbase.client">TestTableOperationException</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestTableOperationException.ThrowDoNotRetryIOExceptionCoprocessor.html" title="class in org.apache.hadoop.hbase.client">TestTableOperationException.ThrowDoNotRetryIOExceptionCoprocessor</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestTableOperationException.ThrowIOExceptionCoprocessor.html" title="class in org.apache.hadoop.hbase.client">TestTableOperationException.ThrowIOExceptionCoprocessor</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestTableShell.html" title="class in org.apache.hadoop.hbase.client">TestTableShell</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestTableSnapshotScanner.html" title="class in org.apache.hadoop.hbase.client">TestTableSnapshotScanner</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestTimestampsFilter.html" title="class in org.apache.hadoop.hbase.client">TestTimestampsFilter</a></td>
 <td class="colLast">
 <div class="block">Run tests related to <code>TimestampsFilter</code> using HBase client APIs.</div>
 </td>
 </tr>
-<tr class="altColor">
+<tr class="rowColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestUpdateConfiguration.html" title="class in org.apache.hadoop.hbase.client">TestUpdateConfiguration</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
-<tr class="rowColor">
+<tr class="altColor">
 <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/client/TestZKAsyncRegistry.html" title="class in org.apache.hadoop.hbase.client">TestZKAsyncRegistry</a></td>
 <td class="colLast">&nbsp;</td>
 </tr>
diff --git a/testdevapidocs/org/apache/hadoop/hbase/client/package-tree.html b/testdevapidocs/org/apache/hadoop/hbase/client/package-tree.html
index 0181134..2ea959e 100644
--- a/testdevapidocs/org/apache/hadoop/hbase/client/package-tree.html
+++ b/testdevapidocs/org/apache/hadoop/hbase/client/package-tree.html
@@ -391,6 +391,7 @@
 <li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminBase.html" title="class in org.apache.hadoop.hbase.client"><span class="typeNameLink">TestAsyncAdminBase</span></a>
 <ul>
 <li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAccessControlAdminApi.html" title="class in org.apache.hadoop.hbase.client"><span class="typeNameLink">TestAsyncAccessControlAdminApi</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncAdminMasterSwitch.html" title="class in org.apache.hadoop.hbase.client"><span class="typeNameLink">TestAsyncAdminMasterSwitch</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncClusterAdminApi.html" title="class in org.apache.hadoop.hbase.client"><span class="typeNameLink">TestAsyncClusterAdminApi</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncClusterAdminApi2.html" title="class in org.apache.hadoop.hbase.client"><span class="typeNameLink">TestAsyncClusterAdminApi2</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/TestAsyncDecommissionAdminApi.html" title="class in org.apache.hadoop.hbase.client"><span class="typeNameLink">TestAsyncDecommissionAdminApi</span></a></li>
diff --git a/testdevapidocs/org/apache/hadoop/hbase/io/hfile/package-tree.html b/testdevapidocs/org/apache/hadoop/hbase/io/hfile/package-tree.html
index f9b0ab1..95e74d8 100644
--- a/testdevapidocs/org/apache/hadoop/hbase/io/hfile/package-tree.html
+++ b/testdevapidocs/org/apache/hadoop/hbase/io/hfile/package-tree.html
@@ -158,8 +158,8 @@
... 1091 lines suppressed ...