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 2020/05/10 14:46:10 UTC
[hbase-site] branch asf-site updated: Published site at
34a74534fe43a708146b00799ae12b2873a93d2b.
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 9ab7a63 Published site at 34a74534fe43a708146b00799ae12b2873a93d2b.
9ab7a63 is described below
commit 9ab7a635fa67c82d7e615f840fc2347393988564
Author: jenkins <bu...@apache.org>
AuthorDate: Sun May 10 14:46:01 2020 +0000
Published site at 34a74534fe43a708146b00799ae12b2873a93d2b.
---
acid-semantics.html | 2 +-
apache_hbase_reference_guide.pdf | 4 +-
book.html | 2 +-
bulk-loads.html | 2 +-
checkstyle-aggregate.html | 10 +-
coc.html | 2 +-
dependencies.html | 2 +-
dependency-convergence.html | 2 +-
dependency-info.html | 2 +-
dependency-management.html | 2 +-
devapidocs/constant-values.html | 4 +-
.../src-html/org/apache/hadoop/hbase/Version.html | 4 +-
downloads.html | 2 +-
export_control.html | 2 +-
index.html | 2 +-
issue-tracking.html | 2 +-
mail-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 +-
project-summary.html | 2 +-
pseudo-distributed.html | 2 +-
replication.html | 2 +-
resources.html | 2 +-
source-repository.html | 2 +-
sponsors.html | 2 +-
supportingprojects.html | 2 +-
team-list.html | 2 +-
.../hadoop/hbase/master/TestMasterShutdown.html | 20 +-
.../hadoop/hbase/master/TestMasterShutdown.html | 391 +++++++++++----------
34 files changed, 261 insertions(+), 228 deletions(-)
diff --git a/acid-semantics.html b/acid-semantics.html
index 8fd1984..e169a3e 100644
--- a/acid-semantics.html
+++ b/acid-semantics.html
@@ -467,7 +467,7 @@
<div class="row">
<p>Copyright ©2007–2020
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-09</li>
+All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-10</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 60ac052..1f4adeb 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.rc.2, based on Prawn 2.2.2)
/Producer (Apache HBase Team)
-/ModDate (D:20200509143239+00'00')
-/CreationDate (D:20200509144340+00'00')
+/ModDate (D:20200510143142+00'00')
+/CreationDate (D:20200510144318+00'00')
>>
endobj
2 0 obj
diff --git a/book.html b/book.html
index f835abb..5d27666 100644
--- a/book.html
+++ b/book.html
@@ -45276,7 +45276,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 2020-05-09 14:32:39 UTC
+Last updated 2020-05-10 14:31:42 UTC
</div>
</div>
<script type="text/x-mathjax-config">
diff --git a/bulk-loads.html b/bulk-loads.html
index d1abe3d..e79f482 100644
--- a/bulk-loads.html
+++ b/bulk-loads.html
@@ -172,7 +172,7 @@
<div class="row">
<p>Copyright ©2007–2020
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-09</li>
+All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-10</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 94121ae..942e600 100644
--- a/checkstyle-aggregate.html
+++ b/checkstyle-aggregate.html
@@ -7354,7 +7354,7 @@
<tr class="b">
<td>annotation</td>
<td><a class="externalLink" href="http://checkstyle.sourceforge.net/config_annotation.html#MissingDeprecated">MissingDeprecated</a></td>
-<td>10</td>
+<td>9</td>
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td></tr>
<tr class="a">
<td>blocks</td>
@@ -7453,7 +7453,7 @@
<td><a class="externalLink" href="http://checkstyle.sourceforge.net/config_javadoc.html#JavadocTagContinuationIndentation">JavadocTagContinuationIndentation</a>
<ul>
<li>offset: <tt>"2"</tt></li></ul></td>
-<td>584</td>
+<td>585</td>
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td></tr>
<tr class="a">
<td></td>
@@ -8489,8 +8489,8 @@
<td>600</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
-<td>annotation</td>
-<td>MissingDeprecated</td>
+<td>javadoc</td>
+<td>JavadocTagContinuationIndentation</td>
<td>Javadoc comment at column 33 has parse error. Details: no viable alternative at input '<Map.Entry<' while parsing HTML_ELEMENT</td>
<td>642</td></tr>
<tr class="b">
@@ -79271,7 +79271,7 @@
<div class="row">
<p>Copyright ©2007–2020
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-09</li>
+All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-10</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/coc.html b/coc.html
index 6dd73d6..0d85d71 100644
--- a/coc.html
+++ b/coc.html
@@ -241,7 +241,7 @@ email to <a class="externalLink" href="mailto:private@hbase.apache.org">the priv
<div class="row">
<p>Copyright ©2007–2020
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-09</li>
+All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-10</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 847bc79..5c5b4d3 100644
--- a/dependencies.html
+++ b/dependencies.html
@@ -313,7 +313,7 @@
<div class="row">
<p>Copyright ©2007–2020
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-09</li>
+All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-10</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 cd1f87e..d8abf3c 100644
--- a/dependency-convergence.html
+++ b/dependency-convergence.html
@@ -788,7 +788,7 @@
<div class="row">
<p>Copyright ©2007–2020
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-09</li>
+All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-10</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 6c500f8..04561c9 100644
--- a/dependency-info.html
+++ b/dependency-info.html
@@ -194,7 +194,7 @@
<div class="row">
<p>Copyright ©2007–2020
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-09</li>
+All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-10</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 705b2ac..4e46b8e 100644
--- a/dependency-management.html
+++ b/dependency-management.html
@@ -1068,7 +1068,7 @@
<div class="row">
<p>Copyright ©2007–2020
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-09</li>
+All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-10</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 aa05f8c..238ae29 100644
--- a/devapidocs/constant-values.html
+++ b/devapidocs/constant-values.html
@@ -4137,14 +4137,14 @@
<!-- -->
</a><code>public static final <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 May 9 14:39:54 UTC 2020"</code></td>
+<td class="colLast"><code>"Sun May 10 14:39:25 UTC 2020"</code></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a name="org.apache.hadoop.hbase.Version.revision">
<!-- -->
</a><code>public static final <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#revision">revision</a></code></td>
-<td class="colLast"><code>"2774510e2bd70968a76a9f77df51ce987453aeba"</code></td>
+<td class="colLast"><code>"34a74534fe43a708146b00799ae12b2873a93d2b"</code></td>
</tr>
<tr class="altColor">
<td class="colFirst"><a name="org.apache.hadoop.hbase.Version.srcChecksum">
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/Version.html b/devapidocs/src-html/org/apache/hadoop/hbase/Version.html
index bf59d1d..c921153 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> justification="Intentional; to be modified in test")<a name="line.10"></a>
<span class="sourceLineNo">011</span>public class Version {<a name="line.11"></a>
<span class="sourceLineNo">012</span> public static final String version = new String("3.0.0-SNAPSHOT");<a name="line.12"></a>
-<span class="sourceLineNo">013</span> public static final String revision = "2774510e2bd70968a76a9f77df51ce987453aeba";<a name="line.13"></a>
+<span class="sourceLineNo">013</span> public static final String revision = "34a74534fe43a708146b00799ae12b2873a93d2b";<a name="line.13"></a>
<span class="sourceLineNo">014</span> public static final String user = "jenkins";<a name="line.14"></a>
-<span class="sourceLineNo">015</span> public static final String date = "Sat May 9 14:39:54 UTC 2020";<a name="line.15"></a>
+<span class="sourceLineNo">015</span> public static final String date = "Sun May 10 14:39:25 UTC 2020";<a name="line.15"></a>
<span class="sourceLineNo">016</span> public static final String url = "git://jenkins-websites-he-de.apache.org/home/jenkins/jenkins-slave/workspace/hbase_generate_website/hbase";<a name="line.16"></a>
<span class="sourceLineNo">017</span> public static final String srcChecksum = "(stdin)=";<a name="line.17"></a>
<span class="sourceLineNo">018</span>}<a name="line.18"></a>
diff --git a/downloads.html b/downloads.html
index bc1844f..d47fe8d 100644
--- a/downloads.html
+++ b/downloads.html
@@ -434,7 +434,7 @@
<div class="row">
<p>Copyright ©2007–2020
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-09</li>
+All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-10</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 200b73e..083480b 100644
--- a/export_control.html
+++ b/export_control.html
@@ -197,7 +197,7 @@ for more details.</p>
<div class="row">
<p>Copyright ©2007–2020
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-09</li>
+All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-10</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 edf3053..5e6b228 100644
--- a/index.html
+++ b/index.html
@@ -275,7 +275,7 @@
<div class="row">
<p>Copyright ©2007–2020
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-09</li>
+All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-10</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-tracking.html b/issue-tracking.html
index 3afc0ea..aff1be1 100644
--- a/issue-tracking.html
+++ b/issue-tracking.html
@@ -169,7 +169,7 @@
<div class="row">
<p>Copyright ©2007–2020
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-09</li>
+All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-10</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/mail-lists.html b/mail-lists.html
index 61841b6..9334f79 100644
--- a/mail-lists.html
+++ b/mail-lists.html
@@ -229,7 +229,7 @@
<div class="row">
<p>Copyright ©2007–2020
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-09</li>
+All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-10</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 38b9376..38a1d88 100644
--- a/metrics.html
+++ b/metrics.html
@@ -325,7 +325,7 @@ export HBASE_REGIONSERVER_OPTS="$HBASE_JMX_OPTS -Dcom.sun.management.jmxrem
<div class="row">
<p>Copyright ©2007–2020
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-09</li>
+All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-10</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 2ed3cfc..b132784 100644
--- a/old_news.html
+++ b/old_news.html
@@ -316,7 +316,7 @@
<div class="row">
<p>Copyright ©2007–2020
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-09</li>
+All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-10</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 1640ab2..9e94a27 100644
--- a/plugin-management.html
+++ b/plugin-management.html
@@ -321,7 +321,7 @@
<div class="row">
<p>Copyright ©2007–2020
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-09</li>
+All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-10</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 a58aa60..3da7526 100644
--- a/plugins.html
+++ b/plugins.html
@@ -248,7 +248,7 @@
<div class="row">
<p>Copyright ©2007–2020
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-09</li>
+All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-10</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 5303c3e..749675d 100644
--- a/poweredbyhbase.html
+++ b/poweredbyhbase.html
@@ -650,7 +650,7 @@
<div class="row">
<p>Copyright ©2007–2020
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-09</li>
+All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-10</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 f67f40d..0af4fd0 100644
--- a/project-info.html
+++ b/project-info.html
@@ -210,7 +210,7 @@
<div class="row">
<p>Copyright ©2007–2020
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-09</li>
+All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-10</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 85de7f6..cbbd294 100644
--- a/project-reports.html
+++ b/project-reports.html
@@ -186,7 +186,7 @@
<div class="row">
<p>Copyright ©2007–2020
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-09</li>
+All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-10</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-summary.html b/project-summary.html
index 58e14a8..4d0b003 100644
--- a/project-summary.html
+++ b/project-summary.html
@@ -212,7 +212,7 @@
<div class="row">
<p>Copyright ©2007–2020
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-09</li>
+All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-10</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 f99b6d7..127da1a 100644
--- a/pseudo-distributed.html
+++ b/pseudo-distributed.html
@@ -174,7 +174,7 @@ Running Apache HBase (TM) in pseudo-distributed mode
<div class="row">
<p>Copyright ©2007–2020
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-09</li>
+All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-10</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 44c85f1..3221848 100644
--- a/replication.html
+++ b/replication.html
@@ -169,7 +169,7 @@
<div class="row">
<p>Copyright ©2007–2020
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-09</li>
+All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-10</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 5a11efb..9ff446f 100644
--- a/resources.html
+++ b/resources.html
@@ -197,7 +197,7 @@
<div class="row">
<p>Copyright ©2007–2020
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-09</li>
+All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-10</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/source-repository.html b/source-repository.html
index 5049e4d..046c7b4 100644
--- a/source-repository.html
+++ b/source-repository.html
@@ -180,7 +180,7 @@
<div class="row">
<p>Copyright ©2007–2020
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-09</li>
+All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-10</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 c8d3864..fe0a0c1 100644
--- a/sponsors.html
+++ b/sponsors.html
@@ -199,7 +199,7 @@
<div class="row">
<p>Copyright ©2007–2020
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-09</li>
+All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-10</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 6937bb4..6a5cd45 100644
--- a/supportingprojects.html
+++ b/supportingprojects.html
@@ -390,7 +390,7 @@
<div class="row">
<p>Copyright ©2007–2020
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-09</li>
+All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-10</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-list.html b/team-list.html
index ee7a895..586f139 100644
--- a/team-list.html
+++ b/team-list.html
@@ -701,7 +701,7 @@
<div class="row">
<p>Copyright ©2007–2020
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-09</li>
+All rights reserved. <li id="publishDate" class="pull-right">Last Published: 2020-05-10</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/org/apache/hadoop/hbase/master/TestMasterShutdown.html b/testdevapidocs/org/apache/hadoop/hbase/master/TestMasterShutdown.html
index c7a5885..dceb6ab 100644
--- a/testdevapidocs/org/apache/hadoop/hbase/master/TestMasterShutdown.html
+++ b/testdevapidocs/org/apache/hadoop/hbase/master/TestMasterShutdown.html
@@ -109,7 +109,7 @@ var activeTableTab = "activeTableTab";
<li class="blockList">
<hr>
<br>
-<pre>public class <a href="../../../../../src-html/org/apache/hadoop/hbase/master/TestMasterShutdown.html#line.48">TestMasterShutdown</a>
+<pre>public class <a href="../../../../../src-html/org/apache/hadoop/hbase/master/TestMasterShutdown.html#line.52">TestMasterShutdown</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>
</li>
</ul>
@@ -233,7 +233,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 org.slf4j.Logger <a href="../../../../../src-html/org/apache/hadoop/hbase/master/TestMasterShutdown.html#line.49">LOG</a></pre>
+<pre>private static final org.slf4j.Logger <a href="../../../../../src-html/org/apache/hadoop/hbase/master/TestMasterShutdown.html#line.53">LOG</a></pre>
</li>
</ul>
<a name="CLASS_RULE">
@@ -242,7 +242,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
<ul class="blockList">
<li class="blockList">
<h4>CLASS_RULE</h4>
-<pre>public static final <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/master/TestMasterShutdown.html#line.52">CLASS_RULE</a></pre>
+<pre>public static final <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/master/TestMasterShutdown.html#line.56">CLASS_RULE</a></pre>
</li>
</ul>
<a name="htu">
@@ -251,7 +251,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
<ul class="blockListLast">
<li class="blockList">
<h4>htu</h4>
-<pre>private <a href="../../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html" title="class in org.apache.hadoop.hbase">HBaseTestingUtility</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/master/TestMasterShutdown.html#line.55">htu</a></pre>
+<pre>private <a href="../../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html" title="class in org.apache.hadoop.hbase">HBaseTestingUtility</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/master/TestMasterShutdown.html#line.59">htu</a></pre>
</li>
</ul>
</li>
@@ -268,7 +268,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
<ul class="blockListLast">
<li class="blockList">
<h4>TestMasterShutdown</h4>
-<pre>public <a href="../../../../../src-html/org/apache/hadoop/hbase/master/TestMasterShutdown.html#line.48">TestMasterShutdown</a>()</pre>
+<pre>public <a href="../../../../../src-html/org/apache/hadoop/hbase/master/TestMasterShutdown.html#line.52">TestMasterShutdown</a>()</pre>
</li>
</ul>
</li>
@@ -285,7 +285,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
<ul class="blockList">
<li class="blockList">
<h4>shutdownCluster</h4>
-<pre>public void <a href="../../../../../src-html/org/apache/hadoop/hbase/master/TestMasterShutdown.html#line.58">shutdownCluster</a>()
+<pre>public void <a href="../../../../../src-html/org/apache/hadoop/hbase/master/TestMasterShutdown.html#line.62">shutdownCluster</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>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
@@ -299,7 +299,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
<ul class="blockList">
<li class="blockList">
<h4>testMasterShutdown</h4>
-<pre>public void <a href="../../../../../src-html/org/apache/hadoop/hbase/master/TestMasterShutdown.html#line.74">testMasterShutdown</a>()
+<pre>public void <a href="../../../../../src-html/org/apache/hadoop/hbase/master/TestMasterShutdown.html#line.78">testMasterShutdown</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>
<div class="block">Simple test of shutdown.
<p>
@@ -317,7 +317,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
<ul class="blockList">
<li class="blockList">
<h4>testMasterShutdownBeforeStartingAnyRegionServer</h4>
-<pre>public void <a href="../../../../../src-html/org/apache/hadoop/hbase/master/TestMasterShutdown.html#line.127">testMasterShutdownBeforeStartingAnyRegionServer</a>()
+<pre>public void <a href="../../../../../src-html/org/apache/hadoop/hbase/master/TestMasterShutdown.html#line.131">testMasterShutdownBeforeStartingAnyRegionServer</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>
<div class="block">This test appears to be an intentional race between a thread that issues a shutdown RPC to the
master, while the master is concurrently realizing it cannot initialize because there are no
@@ -335,7 +335,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
<ul class="blockList">
<li class="blockList">
<h4>createMasterShutdownBeforeStartingAnyRegionServerConfiguration</h4>
-<pre>private static org.apache.hadoop.conf.Configuration <a href="../../../../../src-html/org/apache/hadoop/hbase/master/TestMasterShutdown.html#line.183">createMasterShutdownBeforeStartingAnyRegionServerConfiguration</a>()</pre>
+<pre>private static org.apache.hadoop.conf.Configuration <a href="../../../../../src-html/org/apache/hadoop/hbase/master/TestMasterShutdown.html#line.216">createMasterShutdownBeforeStartingAnyRegionServerConfiguration</a>()</pre>
<div class="block">Create a cluster configuration suitable for
<a href="../../../../../org/apache/hadoop/hbase/master/TestMasterShutdown.html#testMasterShutdownBeforeStartingAnyRegionServer--"><code>testMasterShutdownBeforeStartingAnyRegionServer()</code></a>.</div>
</li>
@@ -346,7 +346,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
<ul class="blockListLast">
<li class="blockList">
<h4>createResponsiveZkConfig</h4>
-<pre>private static org.apache.hadoop.conf.Configuration <a href="../../../../../src-html/org/apache/hadoop/hbase/master/TestMasterShutdown.html#line.200">createResponsiveZkConfig</a>(org.apache.hadoop.conf.Configuration baseConf)</pre>
+<pre>private static org.apache.hadoop.conf.Configuration <a href="../../../../../src-html/org/apache/hadoop/hbase/master/TestMasterShutdown.html#line.233">createResponsiveZkConfig</a>(org.apache.hadoop.conf.Configuration baseConf)</pre>
<div class="block">Create a new <code>Configuration</code> based on <code>baseConf</code> that has ZooKeeper connection
settings tuned very aggressively. The resulting client is used within a retry loop, so there's
no value in having the client itself do the retries. We want to iterate on the base
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/master/TestMasterShutdown.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/master/TestMasterShutdown.html
index a758c31..1e1eb3a 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/master/TestMasterShutdown.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/master/TestMasterShutdown.html
@@ -29,189 +29,222 @@
<span class="sourceLineNo">021</span>import static org.junit.Assert.assertNotEquals;<a name="line.21"></a>
<span class="sourceLineNo">022</span>import static org.junit.Assert.assertNotNull;<a name="line.22"></a>
<span class="sourceLineNo">023</span>import java.io.IOException;<a name="line.23"></a>
-<span class="sourceLineNo">024</span>import java.util.List;<a name="line.24"></a>
-<span class="sourceLineNo">025</span>import java.util.concurrent.TimeUnit;<a name="line.25"></a>
-<span class="sourceLineNo">026</span>import org.apache.hadoop.conf.Configuration;<a name="line.26"></a>
-<span class="sourceLineNo">027</span>import org.apache.hadoop.hbase.ClusterMetrics;<a name="line.27"></a>
-<span class="sourceLineNo">028</span>import org.apache.hadoop.hbase.HBaseClassTestRule;<a name="line.28"></a>
-<span class="sourceLineNo">029</span>import org.apache.hadoop.hbase.HBaseConfiguration;<a name="line.29"></a>
-<span class="sourceLineNo">030</span>import org.apache.hadoop.hbase.HBaseTestingUtility;<a name="line.30"></a>
-<span class="sourceLineNo">031</span>import org.apache.hadoop.hbase.LocalHBaseCluster;<a name="line.31"></a>
-<span class="sourceLineNo">032</span>import org.apache.hadoop.hbase.MiniHBaseCluster;<a name="line.32"></a>
-<span class="sourceLineNo">033</span>import org.apache.hadoop.hbase.StartMiniClusterOption;<a name="line.33"></a>
-<span class="sourceLineNo">034</span>import org.apache.hadoop.hbase.Waiter;<a name="line.34"></a>
-<span class="sourceLineNo">035</span>import org.apache.hadoop.hbase.testclassification.LargeTests;<a name="line.35"></a>
-<span class="sourceLineNo">036</span>import org.apache.hadoop.hbase.testclassification.MasterTests;<a name="line.36"></a>
-<span class="sourceLineNo">037</span>import org.apache.hadoop.hbase.util.JVMClusterUtil.MasterThread;<a name="line.37"></a>
-<span class="sourceLineNo">038</span>import org.apache.hadoop.hbase.zookeeper.ReadOnlyZKClient;<a name="line.38"></a>
-<span class="sourceLineNo">039</span>import org.junit.Before;<a name="line.39"></a>
-<span class="sourceLineNo">040</span>import org.junit.ClassRule;<a name="line.40"></a>
-<span class="sourceLineNo">041</span>import org.junit.Test;<a name="line.41"></a>
-<span class="sourceLineNo">042</span>import org.junit.experimental.categories.Category;<a name="line.42"></a>
-<span class="sourceLineNo">043</span>import org.slf4j.Logger;<a name="line.43"></a>
-<span class="sourceLineNo">044</span>import org.slf4j.LoggerFactory;<a name="line.44"></a>
-<span class="sourceLineNo">045</span>import org.apache.hbase.thirdparty.org.apache.commons.collections4.CollectionUtils;<a name="line.45"></a>
-<span class="sourceLineNo">046</span><a name="line.46"></a>
-<span class="sourceLineNo">047</span>@Category({MasterTests.class, LargeTests.class})<a name="line.47"></a>
-<span class="sourceLineNo">048</span>public class TestMasterShutdown {<a name="line.48"></a>
-<span class="sourceLineNo">049</span> private static final Logger LOG = LoggerFactory.getLogger(TestMasterShutdown.class);<a name="line.49"></a>
+<span class="sourceLineNo">024</span>import java.time.Duration;<a name="line.24"></a>
+<span class="sourceLineNo">025</span>import java.util.List;<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.CompletionException;<a name="line.27"></a>
+<span class="sourceLineNo">028</span>import java.util.concurrent.TimeUnit;<a name="line.28"></a>
+<span class="sourceLineNo">029</span>import org.apache.hadoop.conf.Configuration;<a name="line.29"></a>
+<span class="sourceLineNo">030</span>import org.apache.hadoop.hbase.ClusterMetrics;<a name="line.30"></a>
+<span class="sourceLineNo">031</span>import org.apache.hadoop.hbase.HBaseClassTestRule;<a name="line.31"></a>
+<span class="sourceLineNo">032</span>import org.apache.hadoop.hbase.HBaseConfiguration;<a name="line.32"></a>
+<span class="sourceLineNo">033</span>import org.apache.hadoop.hbase.HBaseTestingUtility;<a name="line.33"></a>
+<span class="sourceLineNo">034</span>import org.apache.hadoop.hbase.LocalHBaseCluster;<a name="line.34"></a>
+<span class="sourceLineNo">035</span>import org.apache.hadoop.hbase.MiniHBaseCluster;<a name="line.35"></a>
+<span class="sourceLineNo">036</span>import org.apache.hadoop.hbase.StartMiniClusterOption;<a name="line.36"></a>
+<span class="sourceLineNo">037</span>import org.apache.hadoop.hbase.client.AsyncConnection;<a name="line.37"></a>
+<span class="sourceLineNo">038</span>import org.apache.hadoop.hbase.client.ConnectionFactory;<a name="line.38"></a>
+<span class="sourceLineNo">039</span>import org.apache.hadoop.hbase.testclassification.LargeTests;<a name="line.39"></a>
+<span class="sourceLineNo">040</span>import org.apache.hadoop.hbase.testclassification.MasterTests;<a name="line.40"></a>
+<span class="sourceLineNo">041</span>import org.apache.hadoop.hbase.util.JVMClusterUtil.MasterThread;<a name="line.41"></a>
+<span class="sourceLineNo">042</span>import org.apache.hadoop.hbase.zookeeper.ReadOnlyZKClient;<a name="line.42"></a>
+<span class="sourceLineNo">043</span>import org.junit.Before;<a name="line.43"></a>
+<span class="sourceLineNo">044</span>import org.junit.ClassRule;<a name="line.44"></a>
+<span class="sourceLineNo">045</span>import org.junit.Test;<a name="line.45"></a>
+<span class="sourceLineNo">046</span>import org.junit.experimental.categories.Category;<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>import org.apache.hbase.thirdparty.org.apache.commons.collections4.CollectionUtils;<a name="line.49"></a>
<span class="sourceLineNo">050</span><a name="line.50"></a>
-<span class="sourceLineNo">051</span> @ClassRule<a name="line.51"></a>
-<span class="sourceLineNo">052</span> public static final HBaseClassTestRule CLASS_RULE =<a name="line.52"></a>
-<span class="sourceLineNo">053</span> HBaseClassTestRule.forClass(TestMasterShutdown.class);<a name="line.53"></a>
+<span class="sourceLineNo">051</span>@Category({MasterTests.class, LargeTests.class})<a name="line.51"></a>
+<span class="sourceLineNo">052</span>public class TestMasterShutdown {<a name="line.52"></a>
+<span class="sourceLineNo">053</span> private static final Logger LOG = LoggerFactory.getLogger(TestMasterShutdown.class);<a name="line.53"></a>
<span class="sourceLineNo">054</span><a name="line.54"></a>
-<span class="sourceLineNo">055</span> private HBaseTestingUtility htu;<a name="line.55"></a>
-<span class="sourceLineNo">056</span><a name="line.56"></a>
-<span class="sourceLineNo">057</span> @Before<a name="line.57"></a>
-<span class="sourceLineNo">058</span> public void shutdownCluster() throws IOException {<a name="line.58"></a>
-<span class="sourceLineNo">059</span> if (htu != null) {<a name="line.59"></a>
-<span class="sourceLineNo">060</span> // an extra check in case the test cluster was not terminated after HBaseClassTestRule's<a name="line.60"></a>
-<span class="sourceLineNo">061</span> // Timeout interrupted the test thread.<a name="line.61"></a>
-<span class="sourceLineNo">062</span> LOG.warn("found non-null TestingUtility -- previous test did not terminate cleanly.");<a name="line.62"></a>
-<span class="sourceLineNo">063</span> htu.shutdownMiniCluster();<a name="line.63"></a>
-<span class="sourceLineNo">064</span> }<a name="line.64"></a>
-<span class="sourceLineNo">065</span> }<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> * Simple test of shutdown.<a name="line.68"></a>
-<span class="sourceLineNo">069</span> * <p><a name="line.69"></a>
-<span class="sourceLineNo">070</span> * Starts with three masters. Tells the active master to shutdown the cluster.<a name="line.70"></a>
-<span class="sourceLineNo">071</span> * Verifies that all masters are properly shutdown.<a name="line.71"></a>
-<span class="sourceLineNo">072</span> */<a name="line.72"></a>
-<span class="sourceLineNo">073</span> @Test<a name="line.73"></a>
-<span class="sourceLineNo">074</span> public void testMasterShutdown() throws Exception {<a name="line.74"></a>
-<span class="sourceLineNo">075</span> // Create config to use for this cluster<a name="line.75"></a>
-<span class="sourceLineNo">076</span> Configuration conf = HBaseConfiguration.create();<a name="line.76"></a>
-<span class="sourceLineNo">077</span><a name="line.77"></a>
-<span class="sourceLineNo">078</span> // Start the cluster<a name="line.78"></a>
-<span class="sourceLineNo">079</span> try {<a name="line.79"></a>
-<span class="sourceLineNo">080</span> htu = new HBaseTestingUtility(conf);<a name="line.80"></a>
-<span class="sourceLineNo">081</span> StartMiniClusterOption option = StartMiniClusterOption.builder()<a name="line.81"></a>
-<span class="sourceLineNo">082</span> .numMasters(3)<a name="line.82"></a>
-<span class="sourceLineNo">083</span> .numRegionServers(1)<a name="line.83"></a>
-<span class="sourceLineNo">084</span> .numDataNodes(1)<a name="line.84"></a>
-<span class="sourceLineNo">085</span> .build();<a name="line.85"></a>
-<span class="sourceLineNo">086</span> final MiniHBaseCluster cluster = htu.startMiniCluster(option);<a name="line.86"></a>
-<span class="sourceLineNo">087</span><a name="line.87"></a>
-<span class="sourceLineNo">088</span> // wait for all master thread to spawn and start their run loop.<a name="line.88"></a>
-<span class="sourceLineNo">089</span> final long thirtySeconds = TimeUnit.SECONDS.toMillis(30);<a name="line.89"></a>
-<span class="sourceLineNo">090</span> final long oneSecond = TimeUnit.SECONDS.toMillis(1);<a name="line.90"></a>
-<span class="sourceLineNo">091</span> assertNotEquals(-1, htu.waitFor(thirtySeconds, oneSecond, () -> {<a name="line.91"></a>
-<span class="sourceLineNo">092</span> final List<MasterThread> masterThreads = cluster.getMasterThreads();<a name="line.92"></a>
-<span class="sourceLineNo">093</span> return masterThreads != null<a name="line.93"></a>
-<span class="sourceLineNo">094</span> && masterThreads.size() >= 3<a name="line.94"></a>
-<span class="sourceLineNo">095</span> && masterThreads.stream().allMatch(Thread::isAlive);<a name="line.95"></a>
-<span class="sourceLineNo">096</span> }));<a name="line.96"></a>
-<span class="sourceLineNo">097</span><a name="line.97"></a>
-<span class="sourceLineNo">098</span> // find the active master<a name="line.98"></a>
-<span class="sourceLineNo">099</span> final HMaster active = cluster.getMaster();<a name="line.99"></a>
-<span class="sourceLineNo">100</span> assertNotNull(active);<a name="line.100"></a>
+<span class="sourceLineNo">055</span> @ClassRule<a name="line.55"></a>
+<span class="sourceLineNo">056</span> public static final HBaseClassTestRule CLASS_RULE =<a name="line.56"></a>
+<span class="sourceLineNo">057</span> HBaseClassTestRule.forClass(TestMasterShutdown.class);<a name="line.57"></a>
+<span class="sourceLineNo">058</span><a name="line.58"></a>
+<span class="sourceLineNo">059</span> private HBaseTestingUtility htu;<a name="line.59"></a>
+<span class="sourceLineNo">060</span><a name="line.60"></a>
+<span class="sourceLineNo">061</span> @Before<a name="line.61"></a>
+<span class="sourceLineNo">062</span> public void shutdownCluster() throws IOException {<a name="line.62"></a>
+<span class="sourceLineNo">063</span> if (htu != null) {<a name="line.63"></a>
+<span class="sourceLineNo">064</span> // an extra check in case the test cluster was not terminated after HBaseClassTestRule's<a name="line.64"></a>
+<span class="sourceLineNo">065</span> // Timeout interrupted the test thread.<a name="line.65"></a>
+<span class="sourceLineNo">066</span> LOG.warn("found non-null TestingUtility -- previous test did not terminate cleanly.");<a name="line.66"></a>
+<span class="sourceLineNo">067</span> htu.shutdownMiniCluster();<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">072</span> * Simple test of shutdown.<a name="line.72"></a>
+<span class="sourceLineNo">073</span> * <p><a name="line.73"></a>
+<span class="sourceLineNo">074</span> * Starts with three masters. Tells the active master to shutdown the cluster.<a name="line.74"></a>
+<span class="sourceLineNo">075</span> * Verifies that all masters are properly shutdown.<a name="line.75"></a>
+<span class="sourceLineNo">076</span> */<a name="line.76"></a>
+<span class="sourceLineNo">077</span> @Test<a name="line.77"></a>
+<span class="sourceLineNo">078</span> public void testMasterShutdown() throws Exception {<a name="line.78"></a>
+<span class="sourceLineNo">079</span> // Create config to use for this cluster<a name="line.79"></a>
+<span class="sourceLineNo">080</span> Configuration conf = HBaseConfiguration.create();<a name="line.80"></a>
+<span class="sourceLineNo">081</span><a name="line.81"></a>
+<span class="sourceLineNo">082</span> // Start the cluster<a name="line.82"></a>
+<span class="sourceLineNo">083</span> try {<a name="line.83"></a>
+<span class="sourceLineNo">084</span> htu = new HBaseTestingUtility(conf);<a name="line.84"></a>
+<span class="sourceLineNo">085</span> StartMiniClusterOption option = StartMiniClusterOption.builder()<a name="line.85"></a>
+<span class="sourceLineNo">086</span> .numMasters(3)<a name="line.86"></a>
+<span class="sourceLineNo">087</span> .numRegionServers(1)<a name="line.87"></a>
+<span class="sourceLineNo">088</span> .numDataNodes(1)<a name="line.88"></a>
+<span class="sourceLineNo">089</span> .build();<a name="line.89"></a>
+<span class="sourceLineNo">090</span> final MiniHBaseCluster cluster = htu.startMiniCluster(option);<a name="line.90"></a>
+<span class="sourceLineNo">091</span><a name="line.91"></a>
+<span class="sourceLineNo">092</span> // wait for all master thread to spawn and start their run loop.<a name="line.92"></a>
+<span class="sourceLineNo">093</span> final long thirtySeconds = TimeUnit.SECONDS.toMillis(30);<a name="line.93"></a>
+<span class="sourceLineNo">094</span> final long oneSecond = TimeUnit.SECONDS.toMillis(1);<a name="line.94"></a>
+<span class="sourceLineNo">095</span> assertNotEquals(-1, htu.waitFor(thirtySeconds, oneSecond, () -> {<a name="line.95"></a>
+<span class="sourceLineNo">096</span> final List<MasterThread> masterThreads = cluster.getMasterThreads();<a name="line.96"></a>
+<span class="sourceLineNo">097</span> return masterThreads != null<a name="line.97"></a>
+<span class="sourceLineNo">098</span> && masterThreads.size() >= 3<a name="line.98"></a>
+<span class="sourceLineNo">099</span> && masterThreads.stream().allMatch(Thread::isAlive);<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> // make sure the other two are backup masters<a name="line.102"></a>
-<span class="sourceLineNo">103</span> ClusterMetrics status = active.getClusterMetrics();<a name="line.103"></a>
-<span class="sourceLineNo">104</span> assertEquals(2, status.getBackupMasterNames().size());<a name="line.104"></a>
+<span class="sourceLineNo">102</span> // find the active master<a name="line.102"></a>
+<span class="sourceLineNo">103</span> final HMaster active = cluster.getMaster();<a name="line.103"></a>
+<span class="sourceLineNo">104</span> assertNotNull(active);<a name="line.104"></a>
<span class="sourceLineNo">105</span><a name="line.105"></a>
-<span class="sourceLineNo">106</span> // tell the active master to shutdown the cluster<a name="line.106"></a>
-<span class="sourceLineNo">107</span> active.shutdown();<a name="line.107"></a>
-<span class="sourceLineNo">108</span> assertNotEquals(-1, htu.waitFor(thirtySeconds, oneSecond,<a name="line.108"></a>
-<span class="sourceLineNo">109</span> () -> CollectionUtils.isEmpty(cluster.getLiveMasterThreads())));<a name="line.109"></a>
-<span class="sourceLineNo">110</span> assertNotEquals(-1, htu.waitFor(thirtySeconds, oneSecond,<a name="line.110"></a>
-<span class="sourceLineNo">111</span> () -> CollectionUtils.isEmpty(cluster.getLiveRegionServerThreads())));<a name="line.111"></a>
-<span class="sourceLineNo">112</span> } finally {<a name="line.112"></a>
-<span class="sourceLineNo">113</span> if (htu != null) {<a name="line.113"></a>
-<span class="sourceLineNo">114</span> htu.shutdownMiniCluster();<a name="line.114"></a>
-<span class="sourceLineNo">115</span> htu = null;<a name="line.115"></a>
-<span class="sourceLineNo">116</span> }<a name="line.116"></a>
-<span class="sourceLineNo">117</span> }<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> /**<a name="line.120"></a>
-<span class="sourceLineNo">121</span> * This test appears to be an intentional race between a thread that issues a shutdown RPC to the<a name="line.121"></a>
-<span class="sourceLineNo">122</span> * master, while the master is concurrently realizing it cannot initialize because there are no<a name="line.122"></a>
-<span class="sourceLineNo">123</span> * region servers available to it. The expected behavior is that master initialization is<a name="line.123"></a>
-<span class="sourceLineNo">124</span> * interruptable via said shutdown RPC.<a name="line.124"></a>
-<span class="sourceLineNo">125</span> */<a name="line.125"></a>
-<span class="sourceLineNo">126</span> @Test<a name="line.126"></a>
-<span class="sourceLineNo">127</span> public void testMasterShutdownBeforeStartingAnyRegionServer() throws Exception {<a name="line.127"></a>
-<span class="sourceLineNo">128</span> LocalHBaseCluster hbaseCluster = null;<a name="line.128"></a>
-<span class="sourceLineNo">129</span> try {<a name="line.129"></a>
-<span class="sourceLineNo">130</span> htu = new HBaseTestingUtility(<a name="line.130"></a>
-<span class="sourceLineNo">131</span> createMasterShutdownBeforeStartingAnyRegionServerConfiguration());<a name="line.131"></a>
-<span class="sourceLineNo">132</span><a name="line.132"></a>
-<span class="sourceLineNo">133</span> // configure a cluster with<a name="line.133"></a>
-<span class="sourceLineNo">134</span> final StartMiniClusterOption options = StartMiniClusterOption.builder()<a name="line.134"></a>
-<span class="sourceLineNo">135</span> .numDataNodes(1)<a name="line.135"></a>
-<span class="sourceLineNo">136</span> .numMasters(1)<a name="line.136"></a>
-<span class="sourceLineNo">137</span> .numRegionServers(0)<a name="line.137"></a>
-<span class="sourceLineNo">138</span> .masterClass(HMaster.class)<a name="line.138"></a>
-<span class="sourceLineNo">139</span> .rsClass(MiniHBaseCluster.MiniHBaseClusterRegionServer.class)<a name="line.139"></a>
-<span class="sourceLineNo">140</span> .createRootDir(true)<a name="line.140"></a>
-<span class="sourceLineNo">141</span> .build();<a name="line.141"></a>
-<span class="sourceLineNo">142</span><a name="line.142"></a>
-<span class="sourceLineNo">143</span> // Can't simply `htu.startMiniCluster(options)` because that method waits for the master to<a name="line.143"></a>
-<span class="sourceLineNo">144</span> // start completely. However, this test's premise is that a partially started master should<a name="line.144"></a>
-<span class="sourceLineNo">145</span> // still respond to a shutdown RPC. So instead, we manage each component lifecycle<a name="line.145"></a>
-<span class="sourceLineNo">146</span> // independently.<a name="line.146"></a>
-<span class="sourceLineNo">147</span> // I think it's not worth refactoring HTU's helper methods just for this class.<a name="line.147"></a>
-<span class="sourceLineNo">148</span> htu.startMiniDFSCluster(options.getNumDataNodes());<a name="line.148"></a>
-<span class="sourceLineNo">149</span> htu.startMiniZKCluster(options.getNumZkServers());<a name="line.149"></a>
-<span class="sourceLineNo">150</span> htu.createRootDir();<a name="line.150"></a>
-<span class="sourceLineNo">151</span> hbaseCluster = new LocalHBaseCluster(htu.getConfiguration(), options.getNumMasters(),<a name="line.151"></a>
-<span class="sourceLineNo">152</span> options.getNumRegionServers(), options.getMasterClass(), options.getRsClass());<a name="line.152"></a>
-<span class="sourceLineNo">153</span> final MasterThread masterThread = hbaseCluster.getMasters().get(0);<a name="line.153"></a>
-<span class="sourceLineNo">154</span> masterThread.start();<a name="line.154"></a>
-<span class="sourceLineNo">155</span> // Switching to master registry exacerbated a race in the master bootstrap that can result<a name="line.155"></a>
-<span class="sourceLineNo">156</span> // in a lost shutdown command (HBASE-8422, HBASE-23836). The race is essentially because<a name="line.156"></a>
-<span class="sourceLineNo">157</span> // the server manager in HMaster is not initialized by the time shutdown() RPC (below) is<a name="line.157"></a>
-<span class="sourceLineNo">158</span> // made to the master. The suspected reason as to why it was uncommon before HBASE-18095<a name="line.158"></a>
-<span class="sourceLineNo">159</span> // is because the connection creation with ZK registry is so slow that by then the server<a name="line.159"></a>
-<span class="sourceLineNo">160</span> // manager is usually init'ed in time for the RPC to be made. For now, adding an explicit<a name="line.160"></a>
-<span class="sourceLineNo">161</span> // wait() in the test, waiting for the server manager to become available.<a name="line.161"></a>
-<span class="sourceLineNo">162</span> final long timeout = TimeUnit.MINUTES.toMillis(10);<a name="line.162"></a>
-<span class="sourceLineNo">163</span> assertNotEquals("Timeout waiting for server manager to become available.",<a name="line.163"></a>
-<span class="sourceLineNo">164</span> -1, Waiter.waitFor(htu.getConfiguration(), timeout,<a name="line.164"></a>
-<span class="sourceLineNo">165</span> () -> masterThread.getMaster().getServerManager() != null));<a name="line.165"></a>
-<span class="sourceLineNo">166</span> htu.getConnection().getAdmin().shutdown();<a name="line.166"></a>
-<span class="sourceLineNo">167</span> masterThread.join();<a name="line.167"></a>
-<span class="sourceLineNo">168</span> } finally {<a name="line.168"></a>
-<span class="sourceLineNo">169</span> if (hbaseCluster != null) {<a name="line.169"></a>
-<span class="sourceLineNo">170</span> hbaseCluster.shutdown();<a name="line.170"></a>
-<span class="sourceLineNo">171</span> }<a name="line.171"></a>
-<span class="sourceLineNo">172</span> if (htu != null) {<a name="line.172"></a>
-<span class="sourceLineNo">173</span> htu.shutdownMiniCluster();<a name="line.173"></a>
-<span class="sourceLineNo">174</span> htu = null;<a name="line.174"></a>
-<span class="sourceLineNo">175</span> }<a name="line.175"></a>
-<span class="sourceLineNo">176</span> }<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> /**<a name="line.179"></a>
-<span class="sourceLineNo">180</span> * Create a cluster configuration suitable for<a name="line.180"></a>
-<span class="sourceLineNo">181</span> * {@link #testMasterShutdownBeforeStartingAnyRegionServer()}.<a name="line.181"></a>
-<span class="sourceLineNo">182</span> */<a name="line.182"></a>
-<span class="sourceLineNo">183</span> private static Configuration createMasterShutdownBeforeStartingAnyRegionServerConfiguration() {<a name="line.183"></a>
-<span class="sourceLineNo">184</span> final Configuration conf = HBaseConfiguration.create();<a name="line.184"></a>
-<span class="sourceLineNo">185</span> // make sure the master will wait forever in the absence of a RS.<a name="line.185"></a>
-<span class="sourceLineNo">186</span> conf.setInt(ServerManager.WAIT_ON_REGIONSERVERS_MINTOSTART, 1);<a name="line.186"></a>
-<span class="sourceLineNo">187</span> // don't need a long write pipeline for this test.<a name="line.187"></a>
-<span class="sourceLineNo">188</span> conf.setInt("dfs.replication", 1);<a name="line.188"></a>
-<span class="sourceLineNo">189</span> return conf;<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> /**<a name="line.192"></a>
-<span class="sourceLineNo">193</span> * Create a new {@link Configuration} based on {@code baseConf} that has ZooKeeper connection<a name="line.193"></a>
-<span class="sourceLineNo">194</span> * settings tuned very aggressively. The resulting client is used within a retry loop, so there's<a name="line.194"></a>
-<span class="sourceLineNo">195</span> * no value in having the client itself do the retries. We want to iterate on the base<a name="line.195"></a>
-<span class="sourceLineNo">196</span> * configuration because we're waiting for the mini-cluster to start and set it's ZK client port.<a name="line.196"></a>
-<span class="sourceLineNo">197</span> *<a name="line.197"></a>
-<span class="sourceLineNo">198</span> * @return a new, configured {@link Configuration} instance.<a name="line.198"></a>
-<span class="sourceLineNo">199</span> */<a name="line.199"></a>
-<span class="sourceLineNo">200</span> private static Configuration createResponsiveZkConfig(final Configuration baseConf) {<a name="line.200"></a>
-<span class="sourceLineNo">201</span> final Configuration conf = HBaseConfiguration.create(baseConf);<a name="line.201"></a>
-<span class="sourceLineNo">202</span> conf.setInt(ReadOnlyZKClient.RECOVERY_RETRY, 3);<a name="line.202"></a>
-<span class="sourceLineNo">203</span> conf.setInt(ReadOnlyZKClient.RECOVERY_RETRY_INTERVAL_MILLIS, 100);<a name="line.203"></a>
-<span class="sourceLineNo">204</span> return conf;<a name="line.204"></a>
-<span class="sourceLineNo">205</span> }<a name="line.205"></a>
-<span class="sourceLineNo">206</span>}<a name="line.206"></a>
+<span class="sourceLineNo">106</span> // make sure the other two are backup masters<a name="line.106"></a>
+<span class="sourceLineNo">107</span> ClusterMetrics status = active.getClusterMetrics();<a name="line.107"></a>
+<span class="sourceLineNo">108</span> assertEquals(2, status.getBackupMasterNames().size());<a name="line.108"></a>
+<span class="sourceLineNo">109</span><a name="line.109"></a>
+<span class="sourceLineNo">110</span> // tell the active master to shutdown the cluster<a name="line.110"></a>
+<span class="sourceLineNo">111</span> active.shutdown();<a name="line.111"></a>
+<span class="sourceLineNo">112</span> assertNotEquals(-1, htu.waitFor(thirtySeconds, oneSecond,<a name="line.112"></a>
+<span class="sourceLineNo">113</span> () -> CollectionUtils.isEmpty(cluster.getLiveMasterThreads())));<a name="line.113"></a>
+<span class="sourceLineNo">114</span> assertNotEquals(-1, htu.waitFor(thirtySeconds, oneSecond,<a name="line.114"></a>
+<span class="sourceLineNo">115</span> () -> CollectionUtils.isEmpty(cluster.getLiveRegionServerThreads())));<a name="line.115"></a>
+<span class="sourceLineNo">116</span> } finally {<a name="line.116"></a>
+<span class="sourceLineNo">117</span> if (htu != null) {<a name="line.117"></a>
+<span class="sourceLineNo">118</span> htu.shutdownMiniCluster();<a name="line.118"></a>
+<span class="sourceLineNo">119</span> htu = null;<a name="line.119"></a>
+<span class="sourceLineNo">120</span> }<a name="line.120"></a>
+<span class="sourceLineNo">121</span> }<a name="line.121"></a>
+<span class="sourceLineNo">122</span> }<a name="line.122"></a>
+<span class="sourceLineNo">123</span><a name="line.123"></a>
+<span class="sourceLineNo">124</span> /**<a name="line.124"></a>
+<span class="sourceLineNo">125</span> * This test appears to be an intentional race between a thread that issues a shutdown RPC to the<a name="line.125"></a>
+<span class="sourceLineNo">126</span> * master, while the master is concurrently realizing it cannot initialize because there are no<a name="line.126"></a>
+<span class="sourceLineNo">127</span> * region servers available to it. The expected behavior is that master initialization is<a name="line.127"></a>
+<span class="sourceLineNo">128</span> * interruptable via said shutdown RPC.<a name="line.128"></a>
+<span class="sourceLineNo">129</span> */<a name="line.129"></a>
+<span class="sourceLineNo">130</span> @Test<a name="line.130"></a>
+<span class="sourceLineNo">131</span> public void testMasterShutdownBeforeStartingAnyRegionServer() throws Exception {<a name="line.131"></a>
+<span class="sourceLineNo">132</span> LocalHBaseCluster hbaseCluster = null;<a name="line.132"></a>
+<span class="sourceLineNo">133</span> try {<a name="line.133"></a>
+<span class="sourceLineNo">134</span> htu = new HBaseTestingUtility(<a name="line.134"></a>
+<span class="sourceLineNo">135</span> createMasterShutdownBeforeStartingAnyRegionServerConfiguration());<a name="line.135"></a>
+<span class="sourceLineNo">136</span> htu.getConfiguration().setInt("hbase.client.retries.number", 3);<a name="line.136"></a>
+<span class="sourceLineNo">137</span><a name="line.137"></a>
+<span class="sourceLineNo">138</span> // configure a cluster with<a name="line.138"></a>
+<span class="sourceLineNo">139</span> final StartMiniClusterOption options = StartMiniClusterOption.builder()<a name="line.139"></a>
+<span class="sourceLineNo">140</span> .numDataNodes(1)<a name="line.140"></a>
+<span class="sourceLineNo">141</span> .numMasters(1)<a name="line.141"></a>
+<span class="sourceLineNo">142</span> .numRegionServers(0)<a name="line.142"></a>
+<span class="sourceLineNo">143</span> .masterClass(HMaster.class)<a name="line.143"></a>
+<span class="sourceLineNo">144</span> .rsClass(MiniHBaseCluster.MiniHBaseClusterRegionServer.class)<a name="line.144"></a>
+<span class="sourceLineNo">145</span> .createRootDir(true)<a name="line.145"></a>
+<span class="sourceLineNo">146</span> .build();<a name="line.146"></a>
+<span class="sourceLineNo">147</span><a name="line.147"></a>
+<span class="sourceLineNo">148</span> // Can't simply `htu.startMiniCluster(options)` because that method waits for the master to<a name="line.148"></a>
+<span class="sourceLineNo">149</span> // start completely. However, this test's premise is that a partially started master should<a name="line.149"></a>
+<span class="sourceLineNo">150</span> // still respond to a shutdown RPC. So instead, we manage each component lifecycle<a name="line.150"></a>
+<span class="sourceLineNo">151</span> // independently.<a name="line.151"></a>
+<span class="sourceLineNo">152</span> // I think it's not worth refactoring HTU's helper methods just for this class.<a name="line.152"></a>
+<span class="sourceLineNo">153</span> htu.startMiniDFSCluster(options.getNumDataNodes());<a name="line.153"></a>
+<span class="sourceLineNo">154</span> htu.startMiniZKCluster(options.getNumZkServers());<a name="line.154"></a>
+<span class="sourceLineNo">155</span> htu.createRootDir();<a name="line.155"></a>
+<span class="sourceLineNo">156</span> hbaseCluster = new LocalHBaseCluster(htu.getConfiguration(), options.getNumMasters(),<a name="line.156"></a>
+<span class="sourceLineNo">157</span> options.getNumRegionServers(), options.getMasterClass(), options.getRsClass());<a name="line.157"></a>
+<span class="sourceLineNo">158</span> final MasterThread masterThread = hbaseCluster.getMasters().get(0);<a name="line.158"></a>
+<span class="sourceLineNo">159</span><a name="line.159"></a>
+<span class="sourceLineNo">160</span> masterThread.start();<a name="line.160"></a>
+<span class="sourceLineNo">161</span> final CompletableFuture<Void> shutdownFuture = CompletableFuture.runAsync(() -> {<a name="line.161"></a>
+<span class="sourceLineNo">162</span> // Switching to master registry exacerbated a race in the master bootstrap that can result<a name="line.162"></a>
+<span class="sourceLineNo">163</span> // in a lost shutdown command (HBASE-8422, HBASE-23836). The race is essentially because<a name="line.163"></a>
+<span class="sourceLineNo">164</span> // the server manager in HMaster is not initialized by the time shutdown() RPC (below) is<a name="line.164"></a>
+<span class="sourceLineNo">165</span> // made to the master. The suspected reason as to why it was uncommon before HBASE-18095<a name="line.165"></a>
+<span class="sourceLineNo">166</span> // is because the connection creation with ZK registry is so slow that by then the server<a name="line.166"></a>
+<span class="sourceLineNo">167</span> // manager is usually init'ed in time for the RPC to be made. For now, adding an explicit<a name="line.167"></a>
+<span class="sourceLineNo">168</span> // wait() in the test, waiting for the server manager to become available.<a name="line.168"></a>
+<span class="sourceLineNo">169</span> final long timeout = TimeUnit.MINUTES.toMillis(10);<a name="line.169"></a>
+<span class="sourceLineNo">170</span> assertNotEquals("timeout waiting for server manager to become available.", -1,<a name="line.170"></a>
+<span class="sourceLineNo">171</span> htu.waitFor(timeout, () -> masterThread.getMaster().getServerManager() != null));<a name="line.171"></a>
+<span class="sourceLineNo">172</span><a name="line.172"></a>
+<span class="sourceLineNo">173</span> // Master has come up far enough that we can terminate it without creating a zombie.<a name="line.173"></a>
+<span class="sourceLineNo">174</span> final long result = htu.waitFor(timeout, 1000, () -> {<a name="line.174"></a>
+<span class="sourceLineNo">175</span> final Configuration conf = createResponsiveZkConfig(htu.getConfiguration());<a name="line.175"></a>
+<span class="sourceLineNo">176</span> LOG.debug("Attempting to establish connection.");<a name="line.176"></a>
+<span class="sourceLineNo">177</span> final CompletableFuture<AsyncConnection> connFuture =<a name="line.177"></a>
+<span class="sourceLineNo">178</span> ConnectionFactory.createAsyncConnection(conf);<a name="line.178"></a>
+<span class="sourceLineNo">179</span> try (final AsyncConnection conn = connFuture.join()) {<a name="line.179"></a>
+<span class="sourceLineNo">180</span> LOG.info("Sending shutdown RPC.");<a name="line.180"></a>
+<span class="sourceLineNo">181</span> try {<a name="line.181"></a>
+<span class="sourceLineNo">182</span> conn.getAdmin().shutdown().join();<a name="line.182"></a>
+<span class="sourceLineNo">183</span> LOG.info("Shutdown RPC sent.");<a name="line.183"></a>
+<span class="sourceLineNo">184</span> return true;<a name="line.184"></a>
+<span class="sourceLineNo">185</span> } catch (CompletionException e) {<a name="line.185"></a>
+<span class="sourceLineNo">186</span> LOG.error("Failure sending shutdown RPC.");<a name="line.186"></a>
+<span class="sourceLineNo">187</span> }<a name="line.187"></a>
+<span class="sourceLineNo">188</span> } catch (IOException|CompletionException e) {<a name="line.188"></a>
+<span class="sourceLineNo">189</span> LOG.error("Failed to establish connection.");<a name="line.189"></a>
+<span class="sourceLineNo">190</span> } catch (Throwable e) {<a name="line.190"></a>
+<span class="sourceLineNo">191</span> LOG.error("Something unexpected happened.", e);<a name="line.191"></a>
+<span class="sourceLineNo">192</span> }<a name="line.192"></a>
+<span class="sourceLineNo">193</span> return false;<a name="line.193"></a>
+<span class="sourceLineNo">194</span> });<a name="line.194"></a>
+<span class="sourceLineNo">195</span> assertNotEquals("Failed to issue shutdown RPC after " + Duration.ofMillis(timeout),<a name="line.195"></a>
+<span class="sourceLineNo">196</span> -1, result);<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> shutdownFuture.join();<a name="line.199"></a>
+<span class="sourceLineNo">200</span> masterThread.join();<a name="line.200"></a>
+<span class="sourceLineNo">201</span> } finally {<a name="line.201"></a>
+<span class="sourceLineNo">202</span> if (hbaseCluster != null) {<a name="line.202"></a>
+<span class="sourceLineNo">203</span> hbaseCluster.shutdown();<a name="line.203"></a>
+<span class="sourceLineNo">204</span> }<a name="line.204"></a>
+<span class="sourceLineNo">205</span> if (htu != null) {<a name="line.205"></a>
+<span class="sourceLineNo">206</span> htu.shutdownMiniCluster();<a name="line.206"></a>
+<span class="sourceLineNo">207</span> htu = null;<a name="line.207"></a>
+<span class="sourceLineNo">208</span> }<a name="line.208"></a>
+<span class="sourceLineNo">209</span> }<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> /**<a name="line.212"></a>
+<span class="sourceLineNo">213</span> * Create a cluster configuration suitable for<a name="line.213"></a>
+<span class="sourceLineNo">214</span> * {@link #testMasterShutdownBeforeStartingAnyRegionServer()}.<a name="line.214"></a>
+<span class="sourceLineNo">215</span> */<a name="line.215"></a>
+<span class="sourceLineNo">216</span> private static Configuration createMasterShutdownBeforeStartingAnyRegionServerConfiguration() {<a name="line.216"></a>
+<span class="sourceLineNo">217</span> final Configuration conf = HBaseConfiguration.create();<a name="line.217"></a>
+<span class="sourceLineNo">218</span> // make sure the master will wait forever in the absence of a RS.<a name="line.218"></a>
+<span class="sourceLineNo">219</span> conf.setInt(ServerManager.WAIT_ON_REGIONSERVERS_MINTOSTART, 1);<a name="line.219"></a>
+<span class="sourceLineNo">220</span> // don't need a long write pipeline for this test.<a name="line.220"></a>
+<span class="sourceLineNo">221</span> conf.setInt("dfs.replication", 1);<a name="line.221"></a>
+<span class="sourceLineNo">222</span> return conf;<a name="line.222"></a>
+<span class="sourceLineNo">223</span> }<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> * Create a new {@link Configuration} based on {@code baseConf} that has ZooKeeper connection<a name="line.226"></a>
+<span class="sourceLineNo">227</span> * settings tuned very aggressively. The resulting client is used within a retry loop, so there's<a name="line.227"></a>
+<span class="sourceLineNo">228</span> * no value in having the client itself do the retries. We want to iterate on the base<a name="line.228"></a>
+<span class="sourceLineNo">229</span> * configuration because we're waiting for the mini-cluster to start and set it's ZK client port.<a name="line.229"></a>
+<span class="sourceLineNo">230</span> *<a name="line.230"></a>
+<span class="sourceLineNo">231</span> * @return a new, configured {@link Configuration} instance.<a name="line.231"></a>
+<span class="sourceLineNo">232</span> */<a name="line.232"></a>
+<span class="sourceLineNo">233</span> private static Configuration createResponsiveZkConfig(final Configuration baseConf) {<a name="line.233"></a>
+<span class="sourceLineNo">234</span> final Configuration conf = HBaseConfiguration.create(baseConf);<a name="line.234"></a>
+<span class="sourceLineNo">235</span> conf.setInt(ReadOnlyZKClient.RECOVERY_RETRY, 3);<a name="line.235"></a>
+<span class="sourceLineNo">236</span> conf.setInt(ReadOnlyZKClient.RECOVERY_RETRY_INTERVAL_MILLIS, 100);<a name="line.236"></a>
+<span class="sourceLineNo">237</span> return conf;<a name="line.237"></a>
+<span class="sourceLineNo">238</span> }<a name="line.238"></a>
+<span class="sourceLineNo">239</span>}<a name="line.239"></a>