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/02/15 14:44:06 UTC

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

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 93e3fec  Published site at 0e966388981ab24e38294659b8822cf1351ca5bc.
93e3fec is described below

commit 93e3fec8f75818732c2ecb29ceb7a52d9252a9b7
Author: jenkins <bu...@apache.org>
AuthorDate: Sat Feb 15 14:43:37 2020 +0000

    Published site at 0e966388981ab24e38294659b8822cf1351ca5bc.
---
 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/snapshot/TestExportSnapshot.html  |  18 +-
 .../TestExportSnapshot.RegionPredicate.html        | 341 ++++++++++-----------
 .../hadoop/hbase/snapshot/TestExportSnapshot.html  | 341 ++++++++++-----------
 35 files changed, 386 insertions(+), 392 deletions(-)

diff --git a/acid-semantics.html b/acid-semantics.html
index efdb159..44abd97 100644
--- a/acid-semantics.html
+++ b/acid-semantics.html
@@ -467,7 +467,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2020
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-14</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-15</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 8ac4151..71849a0 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:20200214143025+00'00')
-/CreationDate (D:20200214144041+00'00')
+/ModDate (D:20200215143023+00'00')
+/CreationDate (D:20200215144052+00'00')
 >>
 endobj
 2 0 obj
diff --git a/book.html b/book.html
index 762d631..b043e8b 100644
--- a/book.html
+++ b/book.html
@@ -44472,7 +44472,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-02-14 14:30:25 UTC
+Last updated 2020-02-15 14:30:23 UTC
 </div>
 </div>
 </body>
diff --git a/bulk-loads.html b/bulk-loads.html
index 7b5842a..260c9a8 100644
--- a/bulk-loads.html
+++ b/bulk-loads.html
@@ -172,7 +172,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2020
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-14</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-15</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 49d69e0..61e700e 100644
--- a/checkstyle-aggregate.html
+++ b/checkstyle-aggregate.html
@@ -74970,25 +74970,25 @@
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
-<td>227</td></tr>
+<td>226</td></tr>
 <tr class="b">
 <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>324</td></tr>
+<td>321</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>blocks</td>
 <td>EmptyBlock</td>
 <td>Must have at least one statement.</td>
-<td>329</td></tr>
+<td>326</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'object def rcurly' has incorrect indentation level 4, expected level should be one of the following: 6, 8.</td>
-<td>342</td></tr></table></div>
+<td>339</td></tr></table></div>
 <div class="section">
 <h3 id="org.apache.hadoop.hbase.snapshot.TestExportSnapshotV1NoCluster.java">org/apache/hadoop/hbase/snapshot/TestExportSnapshotV1NoCluster.java</h3>
 <table border="0" class="table table-striped">
@@ -83754,7 +83754,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2020
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-14</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-15</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 ec39bf7..6c989a1 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 &copy;2007&#x2013;2020
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-14</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-15</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 50f9106..4351979 100644
--- a/dependencies.html
+++ b/dependencies.html
@@ -313,7 +313,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2020
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-14</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-15</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 27f19a0..043c51a 100644
--- a/dependency-convergence.html
+++ b/dependency-convergence.html
@@ -558,7 +558,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2020
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-14</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-15</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 c76e5ca..2ba3a70 100644
--- a/dependency-info.html
+++ b/dependency-info.html
@@ -194,7 +194,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2020
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-14</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-15</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 e0f0529..1df0f41 100644
--- a/dependency-management.html
+++ b/dependency-management.html
@@ -928,7 +928,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2020
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-14</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-15</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 068f140..3471040 100644
--- a/devapidocs/constant-values.html
+++ b/devapidocs/constant-values.html
@@ -4109,14 +4109,14 @@
 <!--   -->
 </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>"Fri Feb 14 14:37:25 UTC 2020"</code></td>
+<td class="colLast"><code>"Sat Feb 15 14:37:16 UTC 2020"</code></td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><a name="org.apache.hadoop.hbase.Version.revision">
 <!--   -->
 </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#revision">revision</a></code></td>
-<td class="colLast"><code>"5f61df479260598ea8f7856b4abc2541c27ed5db"</code></td>
+<td class="colLast"><code>"0e966388981ab24e38294659b8822cf1351ca5bc"</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 b23aafe..3b1f334 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 = "5f61df479260598ea8f7856b4abc2541c27ed5db";<a name="line.13"></a>
+<span class="sourceLineNo">013</span>  public static final String revision = "0e966388981ab24e38294659b8822cf1351ca5bc";<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 = "Fri Feb 14 14:37:25 UTC 2020";<a name="line.15"></a>
+<span class="sourceLineNo">015</span>  public static final String date = "Sat Feb 15 14:37:16 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 959cef7..0fd87f8 100644
--- a/downloads.html
+++ b/downloads.html
@@ -465,7 +465,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2020
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-14</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-15</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 4a176e5..781b770 100644
--- a/export_control.html
+++ b/export_control.html
@@ -197,7 +197,7 @@ for more details.</p>
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2020
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-14</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-15</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 a25e47c..d67d53d 100644
--- a/index.html
+++ b/index.html
@@ -275,7 +275,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2020
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-14</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-15</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 cf39720..2c4d75f 100644
--- a/issue-tracking.html
+++ b/issue-tracking.html
@@ -169,7 +169,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2020
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-14</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-15</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 565863d..9aea901 100644
--- a/mail-lists.html
+++ b/mail-lists.html
@@ -229,7 +229,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2020
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-14</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-15</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 75466b1..bff767e 100644
--- a/metrics.html
+++ b/metrics.html
@@ -325,7 +325,7 @@ export HBASE_REGIONSERVER_OPTS=&quot;$HBASE_JMX_OPTS -Dcom.sun.management.jmxrem
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2020
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-14</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-15</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 ff185f2..64d0fdc 100644
--- a/old_news.html
+++ b/old_news.html
@@ -316,7 +316,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2020
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-14</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-15</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 de1c34a..0c57489 100644
--- a/plugin-management.html
+++ b/plugin-management.html
@@ -321,7 +321,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2020
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-14</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-15</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 3fa0adc..0113da2 100644
--- a/plugins.html
+++ b/plugins.html
@@ -248,7 +248,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2020
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-14</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-15</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 76f9f9c..ed282c8 100644
--- a/poweredbyhbase.html
+++ b/poweredbyhbase.html
@@ -650,7 +650,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2020
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-14</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-15</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 df9d839..a703bc2 100644
--- a/project-info.html
+++ b/project-info.html
@@ -210,7 +210,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2020
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-14</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-15</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 98f4ffd..a37c1ac 100644
--- a/project-reports.html
+++ b/project-reports.html
@@ -186,7 +186,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2020
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-14</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-15</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 2285b0e..8ae7dc9 100644
--- a/project-summary.html
+++ b/project-summary.html
@@ -212,7 +212,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2020
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-14</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-15</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 d783071..eb4dc29 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 &copy;2007&#x2013;2020
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-14</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-15</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 b23473f..657e4c7 100644
--- a/replication.html
+++ b/replication.html
@@ -169,7 +169,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2020
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-14</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-15</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 64c26b7..12bd9de 100644
--- a/resources.html
+++ b/resources.html
@@ -197,7 +197,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2020
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-14</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-15</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 1572ddc..c14ecd6 100644
--- a/source-repository.html
+++ b/source-repository.html
@@ -180,7 +180,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2020
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-14</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-15</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 5f9f4dc..3e2d851 100644
--- a/sponsors.html
+++ b/sponsors.html
@@ -199,7 +199,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2020
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-14</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-15</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 013eeaf..de81e10 100644
--- a/supportingprojects.html
+++ b/supportingprojects.html
@@ -390,7 +390,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2020
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-14</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-15</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 0fbee35..38987dc 100644
--- a/team-list.html
+++ b/team-list.html
@@ -701,7 +701,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2020
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-14</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2020-02-15</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/snapshot/TestExportSnapshot.html b/testdevapidocs/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.html
index f0d580c..7f4776b 100644
--- a/testdevapidocs/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.html
+++ b/testdevapidocs/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.html
@@ -724,7 +724,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>testExportRetry</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.html#line.267">testExportRetry</a>()
+<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.html#line.264">testExportRetry</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">Check that ExportSnapshot will succeed if something fails but the retry succeed.</div>
 <dl>
@@ -739,7 +739,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>testExportFailure</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.html#line.283">testExportFailure</a>()
+<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.html#line.280">testExportFailure</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">Check that ExportSnapshot will fail if we inject failure more times than MR will retry.</div>
 <dl>
@@ -754,7 +754,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>verifySnapshotDir</h4>
-<pre>protected static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.html#line.298">verifySnapshotDir</a>(org.apache.hadoop.fs.FileSystem&nbsp;fs1,
+<pre>protected static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.html#line.295">verifySnapshotDir</a>(org.apache.hadoop.fs.FileSystem&nbsp;fs1,
                                         org.apache.hadoop.fs.Path&nbsp;root1,
                                         org.apache.hadoop.fs.FileSystem&nbsp;fs2,
                                         org.apache.hadoop.fs.Path&nbsp;root2)
@@ -771,7 +771,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>verifySnapshot</h4>
-<pre>protected&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</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>&gt;&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.html#line.303">verifySnapshot</a>(org.apache.hadoop.fs.FileSystem&nbsp;fs,
+<pre>protected&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</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>&gt;&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.html#line.300">verifySnapshot</a>(org.apache.hadoop.fs.FileSystem&nbsp;fs,
                                      org.apache.hadoop.fs.Path&nbsp;rootDir,
                                      org.apache.hadoop.hbase.TableName&nbsp;tableName,
                                      <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;snapshotName)
@@ -788,7 +788,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>verifySnapshot</h4>
-<pre>protected static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</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>&gt;&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.html#line.312">verifySnapshot</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
+<pre>protected static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</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>&gt;&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.html#line.309">verifySnapshot</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
                                             org.apache.hadoop.fs.FileSystem&nbsp;fs,
                                             org.apache.hadoop.fs.Path&nbsp;rootDir,
                                             org.apache.hadoop.hbase.TableName&nbsp;tableName,
@@ -807,7 +807,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>listFiles</h4>
-<pre>private static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</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>&gt;&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.html#line.351">listFiles</a>(org.apache.hadoop.fs.FileSystem&nbsp;fs,
+<pre>private static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</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>&gt;&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.html#line.348">listFiles</a>(org.apache.hadoop.fs.FileSystem&nbsp;fs,
                                      org.apache.hadoop.fs.Path&nbsp;root,
                                      org.apache.hadoop.fs.Path&nbsp;dir)
                               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>
@@ -823,7 +823,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>getHdfsDestinationDir</h4>
-<pre>private&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.html#line.370">getHdfsDestinationDir</a>()</pre>
+<pre>private&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.html#line.367">getHdfsDestinationDir</a>()</pre>
 </li>
 </ul>
 <a name="getLocalDestinationDir--">
@@ -832,7 +832,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>getLocalDestinationDir</h4>
-<pre>private&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.html#line.377">getLocalDestinationDir</a>()</pre>
+<pre>private&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.html#line.374">getLocalDestinationDir</a>()</pre>
 </li>
 </ul>
 <a name="removeExportDir-org.apache.hadoop.fs.Path-">
@@ -841,7 +841,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockListLast">
 <li class="blockList">
 <h4>removeExportDir</h4>
-<pre>private static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.html#line.383">removeExportDir</a>(org.apache.hadoop.fs.Path&nbsp;path)
+<pre>private static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.html#line.380">removeExportDir</a>(org.apache.hadoop.fs.Path&nbsp;path)
                              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>
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.RegionPredicate.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.RegionPredicate.html
index 44ca83c..b3f6c4f 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.RegionPredicate.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.RegionPredicate.html
@@ -221,178 +221,175 @@
 <span class="sourceLineNo">213</span>      final RegionPredicate bypassregionPredicate, boolean success) throws Exception {<a name="line.213"></a>
 <span class="sourceLineNo">214</span>    URI hdfsUri = FileSystem.get(conf).getUri();<a name="line.214"></a>
 <span class="sourceLineNo">215</span>    FileSystem fs = FileSystem.get(copyDir.toUri(), conf);<a name="line.215"></a>
-<span class="sourceLineNo">216</span>    copyDir = copyDir.makeQualified(hdfsUri, copyDir);<a name="line.216"></a>
-<span class="sourceLineNo">217</span><a name="line.217"></a>
-<span class="sourceLineNo">218</span>    List&lt;String&gt; opts = new ArrayList&lt;&gt;();<a name="line.218"></a>
-<span class="sourceLineNo">219</span>    opts.add("--snapshot");<a name="line.219"></a>
-<span class="sourceLineNo">220</span>    opts.add(snapshotName);<a name="line.220"></a>
-<span class="sourceLineNo">221</span>    opts.add("--copy-to");<a name="line.221"></a>
-<span class="sourceLineNo">222</span>    opts.add(copyDir.toString());<a name="line.222"></a>
-<span class="sourceLineNo">223</span>    if (!targetName.equals(snapshotName)) {<a name="line.223"></a>
-<span class="sourceLineNo">224</span>      opts.add("--target");<a name="line.224"></a>
-<span class="sourceLineNo">225</span>      opts.add(targetName);<a name="line.225"></a>
-<span class="sourceLineNo">226</span>    }<a name="line.226"></a>
-<span class="sourceLineNo">227</span>    if (overwrite) opts.add("--overwrite");<a name="line.227"></a>
-<span class="sourceLineNo">228</span><a name="line.228"></a>
-<span class="sourceLineNo">229</span>    // Export Snapshot<a name="line.229"></a>
-<span class="sourceLineNo">230</span>    ExportSnapshot es = new ExportSnapshot();<a name="line.230"></a>
-<span class="sourceLineNo">231</span>    es.setConf(conf);<a name="line.231"></a>
-<span class="sourceLineNo">232</span>    int res = run(conf, es, opts.toArray(new String[opts.size()]));<a name="line.232"></a>
-<span class="sourceLineNo">233</span>    assertEquals(success ? 0 : 1, res);<a name="line.233"></a>
-<span class="sourceLineNo">234</span>    if (!success) {<a name="line.234"></a>
-<span class="sourceLineNo">235</span>      final Path targetDir = new Path(HConstants.SNAPSHOT_DIR_NAME, targetName);<a name="line.235"></a>
-<span class="sourceLineNo">236</span>      assertFalse(copyDir.toString() + " " + targetDir.toString(),<a name="line.236"></a>
-<span class="sourceLineNo">237</span>        fs.exists(new Path(copyDir, targetDir)));<a name="line.237"></a>
-<span class="sourceLineNo">238</span>      return;<a name="line.238"></a>
-<span class="sourceLineNo">239</span>    }<a name="line.239"></a>
-<span class="sourceLineNo">240</span>    LOG.info("Exported snapshot");<a name="line.240"></a>
-<span class="sourceLineNo">241</span><a name="line.241"></a>
-<span class="sourceLineNo">242</span>    // Verify File-System state<a name="line.242"></a>
-<span class="sourceLineNo">243</span>    FileStatus[] rootFiles = fs.listStatus(copyDir);<a name="line.243"></a>
-<span class="sourceLineNo">244</span>    assertEquals(filesExpected &gt; 0 ? 2 : 1, rootFiles.length);<a name="line.244"></a>
-<span class="sourceLineNo">245</span>    for (FileStatus fileStatus: rootFiles) {<a name="line.245"></a>
-<span class="sourceLineNo">246</span>      String name = fileStatus.getPath().getName();<a name="line.246"></a>
-<span class="sourceLineNo">247</span>      assertTrue(fileStatus.toString(), fileStatus.isDirectory());<a name="line.247"></a>
-<span class="sourceLineNo">248</span>      assertTrue(name.toString(), name.equals(HConstants.SNAPSHOT_DIR_NAME) ||<a name="line.248"></a>
-<span class="sourceLineNo">249</span>        name.equals(HConstants.HFILE_ARCHIVE_DIRECTORY));<a name="line.249"></a>
-<span class="sourceLineNo">250</span>    }<a name="line.250"></a>
-<span class="sourceLineNo">251</span>    LOG.info("Verified filesystem state");<a name="line.251"></a>
-<span class="sourceLineNo">252</span><a name="line.252"></a>
-<span class="sourceLineNo">253</span>    // Compare the snapshot metadata and verify the hfiles<a name="line.253"></a>
-<span class="sourceLineNo">254</span>    final FileSystem hdfs = FileSystem.get(hdfsUri, conf);<a name="line.254"></a>
-<span class="sourceLineNo">255</span>    final Path snapshotDir = new Path(HConstants.SNAPSHOT_DIR_NAME, snapshotName);<a name="line.255"></a>
-<span class="sourceLineNo">256</span>    final Path targetDir = new Path(HConstants.SNAPSHOT_DIR_NAME, targetName);<a name="line.256"></a>
-<span class="sourceLineNo">257</span>    verifySnapshotDir(hdfs, new Path(sourceDir, snapshotDir), fs, new Path(copyDir, targetDir));<a name="line.257"></a>
-<span class="sourceLineNo">258</span>    Set&lt;String&gt; snapshotFiles = verifySnapshot(conf, fs, copyDir, tableName,<a name="line.258"></a>
-<span class="sourceLineNo">259</span>      targetName, bypassregionPredicate);<a name="line.259"></a>
-<span class="sourceLineNo">260</span>    assertEquals(filesExpected, snapshotFiles.size());<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>   * Check that ExportSnapshot will succeed if something fails but the retry succeed.<a name="line.264"></a>
-<span class="sourceLineNo">265</span>   */<a name="line.265"></a>
-<span class="sourceLineNo">266</span>  @Test<a name="line.266"></a>
-<span class="sourceLineNo">267</span>  public void testExportRetry() throws Exception {<a name="line.267"></a>
-<span class="sourceLineNo">268</span>    Path copyDir = getLocalDestinationDir();<a name="line.268"></a>
-<span class="sourceLineNo">269</span>    FileSystem fs = FileSystem.get(copyDir.toUri(), new Configuration());<a name="line.269"></a>
-<span class="sourceLineNo">270</span>    copyDir = copyDir.makeQualified(fs);<a name="line.270"></a>
-<span class="sourceLineNo">271</span>    Configuration conf = new Configuration(TEST_UTIL.getConfiguration());<a name="line.271"></a>
-<span class="sourceLineNo">272</span>    conf.setBoolean(ExportSnapshot.Testing.CONF_TEST_FAILURE, true);<a name="line.272"></a>
-<span class="sourceLineNo">273</span>    conf.setInt(ExportSnapshot.Testing.CONF_TEST_FAILURE_COUNT, 2);<a name="line.273"></a>
-<span class="sourceLineNo">274</span>    conf.setInt("mapreduce.map.maxattempts", 3);<a name="line.274"></a>
-<span class="sourceLineNo">275</span>    testExportFileSystemState(conf, tableName, snapshotName, snapshotName, tableNumFiles,<a name="line.275"></a>
-<span class="sourceLineNo">276</span>        TEST_UTIL.getDefaultRootDirPath(), copyDir, true, getBypassRegionPredicate(), true);<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>  /**<a name="line.279"></a>
-<span class="sourceLineNo">280</span>   * Check that ExportSnapshot will fail if we inject failure more times than MR will retry.<a name="line.280"></a>
-<span class="sourceLineNo">281</span>   */<a name="line.281"></a>
-<span class="sourceLineNo">282</span>  @Test<a name="line.282"></a>
-<span class="sourceLineNo">283</span>  public void testExportFailure() throws Exception {<a name="line.283"></a>
-<span class="sourceLineNo">284</span>    Path copyDir = getLocalDestinationDir();<a name="line.284"></a>
-<span class="sourceLineNo">285</span>    FileSystem fs = FileSystem.get(copyDir.toUri(), new Configuration());<a name="line.285"></a>
-<span class="sourceLineNo">286</span>    copyDir = copyDir.makeQualified(fs);<a name="line.286"></a>
-<span class="sourceLineNo">287</span>    Configuration conf = new Configuration(TEST_UTIL.getConfiguration());<a name="line.287"></a>
-<span class="sourceLineNo">288</span>    conf.setBoolean(ExportSnapshot.Testing.CONF_TEST_FAILURE, true);<a name="line.288"></a>
-<span class="sourceLineNo">289</span>    conf.setInt(ExportSnapshot.Testing.CONF_TEST_FAILURE_COUNT, 4);<a name="line.289"></a>
-<span class="sourceLineNo">290</span>    conf.setInt("mapreduce.map.maxattempts", 3);<a name="line.290"></a>
-<span class="sourceLineNo">291</span>    testExportFileSystemState(conf, tableName, snapshotName, snapshotName, tableNumFiles,<a name="line.291"></a>
-<span class="sourceLineNo">292</span>        TEST_UTIL.getDefaultRootDirPath(), copyDir, true, getBypassRegionPredicate(), false);<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>   * verify if the snapshot folder on file-system 1 match the one on file-system 2<a name="line.296"></a>
-<span class="sourceLineNo">297</span>   */<a name="line.297"></a>
-<span class="sourceLineNo">298</span>  protected static void verifySnapshotDir(final FileSystem fs1, final Path root1,<a name="line.298"></a>
-<span class="sourceLineNo">299</span>      final FileSystem fs2, final Path root2) throws IOException {<a name="line.299"></a>
-<span class="sourceLineNo">300</span>    assertEquals(listFiles(fs1, root1, root1), listFiles(fs2, root2, root2));<a name="line.300"></a>
-<span class="sourceLineNo">301</span>  }<a name="line.301"></a>
-<span class="sourceLineNo">302</span><a name="line.302"></a>
-<span class="sourceLineNo">303</span>  protected Set&lt;String&gt; verifySnapshot(final FileSystem fs, final Path rootDir,<a name="line.303"></a>
-<span class="sourceLineNo">304</span>      final TableName tableName, final String snapshotName) throws IOException {<a name="line.304"></a>
-<span class="sourceLineNo">305</span>    return verifySnapshot(TEST_UTIL.getConfiguration(), fs, rootDir, tableName,<a name="line.305"></a>
-<span class="sourceLineNo">306</span>      snapshotName, getBypassRegionPredicate());<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>   * Verify if the files exists<a name="line.310"></a>
-<span class="sourceLineNo">311</span>   */<a name="line.311"></a>
-<span class="sourceLineNo">312</span>  protected static Set&lt;String&gt; verifySnapshot(final Configuration conf, final FileSystem fs,<a name="line.312"></a>
-<span class="sourceLineNo">313</span>      final Path rootDir, final TableName tableName, final String snapshotName,<a name="line.313"></a>
-<span class="sourceLineNo">314</span>      final RegionPredicate bypassregionPredicate) throws IOException {<a name="line.314"></a>
-<span class="sourceLineNo">315</span>    final Path exportedSnapshot = new Path(rootDir,<a name="line.315"></a>
-<span class="sourceLineNo">316</span>      new Path(HConstants.SNAPSHOT_DIR_NAME, snapshotName));<a name="line.316"></a>
-<span class="sourceLineNo">317</span>    final Set&lt;String&gt; snapshotFiles = new HashSet&lt;&gt;();<a name="line.317"></a>
-<span class="sourceLineNo">318</span>    final Path exportedArchive = new Path(rootDir, HConstants.HFILE_ARCHIVE_DIRECTORY);<a name="line.318"></a>
-<span class="sourceLineNo">319</span>    SnapshotReferenceUtil.visitReferencedFiles(conf, fs, exportedSnapshot,<a name="line.319"></a>
-<span class="sourceLineNo">320</span>          new SnapshotReferenceUtil.SnapshotVisitor() {<a name="line.320"></a>
-<span class="sourceLineNo">321</span>        @Override<a name="line.321"></a>
-<span class="sourceLineNo">322</span>        public void storeFile(final RegionInfo regionInfo, final String family,<a name="line.322"></a>
-<span class="sourceLineNo">323</span>            final SnapshotRegionManifest.StoreFile storeFile) throws IOException {<a name="line.323"></a>
-<span class="sourceLineNo">324</span>          if (bypassregionPredicate != null &amp;&amp; bypassregionPredicate.evaluate(regionInfo))<a name="line.324"></a>
-<span class="sourceLineNo">325</span>            return;<a name="line.325"></a>
-<span class="sourceLineNo">326</span><a name="line.326"></a>
-<span class="sourceLineNo">327</span>          String hfile = storeFile.getName();<a name="line.327"></a>
-<span class="sourceLineNo">328</span>          snapshotFiles.add(hfile);<a name="line.328"></a>
-<span class="sourceLineNo">329</span>          if (storeFile.hasReference()) {<a name="line.329"></a>
-<span class="sourceLineNo">330</span>            // Nothing to do here, we have already the reference embedded<a name="line.330"></a>
-<span class="sourceLineNo">331</span>          } else {<a name="line.331"></a>
-<span class="sourceLineNo">332</span>            verifyNonEmptyFile(new Path(exportedArchive,<a name="line.332"></a>
-<span class="sourceLineNo">333</span>              new Path(FSUtils.getTableDir(new Path("./"), tableName),<a name="line.333"></a>
-<span class="sourceLineNo">334</span>                  new Path(regionInfo.getEncodedName(), new Path(family, hfile)))));<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><a name="line.337"></a>
-<span class="sourceLineNo">338</span>        private void verifyNonEmptyFile(final Path path) throws IOException {<a name="line.338"></a>
-<span class="sourceLineNo">339</span>          assertTrue(path + " should exists", fs.exists(path));<a name="line.339"></a>
-<span class="sourceLineNo">340</span>          assertTrue(path + " should not be empty", fs.getFileStatus(path).getLen() &gt; 0);<a name="line.340"></a>
-<span class="sourceLineNo">341</span>        }<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>    // Verify Snapshot description<a name="line.344"></a>
-<span class="sourceLineNo">345</span>    SnapshotDescription desc = SnapshotDescriptionUtils.readSnapshotInfo(fs, exportedSnapshot);<a name="line.345"></a>
-<span class="sourceLineNo">346</span>    assertTrue(desc.getName().equals(snapshotName));<a name="line.346"></a>
-<span class="sourceLineNo">347</span>    assertTrue(desc.getTable().equals(tableName.getNameAsString()));<a name="line.347"></a>
-<span class="sourceLineNo">348</span>    return snapshotFiles;<a name="line.348"></a>
-<span class="sourceLineNo">349</span>  }<a name="line.349"></a>
-<span class="sourceLineNo">350</span><a name="line.350"></a>
-<span class="sourceLineNo">351</span>  private static Set&lt;String&gt; listFiles(final FileSystem fs, final Path root, final Path dir)<a name="line.351"></a>
-<span class="sourceLineNo">352</span>      throws IOException {<a name="line.352"></a>
-<span class="sourceLineNo">353</span>    Set&lt;String&gt; files = new HashSet&lt;&gt;();<a name="line.353"></a>
-<span class="sourceLineNo">354</span>    LOG.debug("List files in {} in root {} at {}", fs, root, dir);<a name="line.354"></a>
-<span class="sourceLineNo">355</span>    int rootPrefix = root.makeQualified(fs.getUri(), root).toString().length();<a name="line.355"></a>
-<span class="sourceLineNo">356</span>    FileStatus[] list = FSUtils.listStatus(fs, dir);<a name="line.356"></a>
-<span class="sourceLineNo">357</span>    if (list != null) {<a name="line.357"></a>
-<span class="sourceLineNo">358</span>      for (FileStatus fstat: list) {<a name="line.358"></a>
-<span class="sourceLineNo">359</span>        LOG.debug(Objects.toString(fstat.getPath()));<a name="line.359"></a>
-<span class="sourceLineNo">360</span>        if (fstat.isDirectory()) {<a name="line.360"></a>
-<span class="sourceLineNo">361</span>          files.addAll(listFiles(fs, root, fstat.getPath()));<a name="line.361"></a>
-<span class="sourceLineNo">362</span>        } else {<a name="line.362"></a>
-<span class="sourceLineNo">363</span>          files.add(fstat.getPath().makeQualified(fs).toString().substring(rootPrefix));<a name="line.363"></a>
-<span class="sourceLineNo">364</span>        }<a name="line.364"></a>
-<span class="sourceLineNo">365</span>      }<a name="line.365"></a>
-<span class="sourceLineNo">366</span>    }<a name="line.366"></a>
-<span class="sourceLineNo">367</span>    return files;<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>  private Path getHdfsDestinationDir() {<a name="line.370"></a>
-<span class="sourceLineNo">371</span>    Path rootDir = TEST_UTIL.getHBaseCluster().getMaster().getMasterFileSystem().getRootDir();<a name="line.371"></a>
-<span class="sourceLineNo">372</span>    Path path = new Path(new Path(rootDir, "export-test"), "export-" + System.currentTimeMillis());<a name="line.372"></a>
-<span class="sourceLineNo">373</span>    LOG.info("HDFS export destination path: " + path);<a name="line.373"></a>
-<span class="sourceLineNo">374</span>    return path;<a name="line.374"></a>
-<span class="sourceLineNo">375</span>  }<a name="line.375"></a>
-<span class="sourceLineNo">376</span><a name="line.376"></a>
-<span class="sourceLineNo">377</span>  private Path getLocalDestinationDir() {<a name="line.377"></a>
-<span class="sourceLineNo">378</span>    Path path = TEST_UTIL.getDataTestDir("local-export-" + System.currentTimeMillis());<a name="line.378"></a>
-<span class="sourceLineNo">379</span>    LOG.info("Local export destination path: " + path);<a name="line.379"></a>
-<span class="sourceLineNo">380</span>    return path;<a name="line.380"></a>
-<span class="sourceLineNo">381</span>  }<a name="line.381"></a>
-<span class="sourceLineNo">382</span><a name="line.382"></a>
-<span class="sourceLineNo">383</span>  private static void removeExportDir(final Path path) throws IOException {<a name="line.383"></a>
-<span class="sourceLineNo">384</span>    FileSystem fs = FileSystem.get(path.toUri(), new Configuration());<a name="line.384"></a>
-<span class="sourceLineNo">385</span>    fs.delete(path, true);<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">216</span>    copyDir = copyDir.makeQualified(fs.getUri(), fs.getWorkingDirectory());<a name="line.216"></a>
+<span class="sourceLineNo">217</span>    List&lt;String&gt; opts = new ArrayList&lt;&gt;();<a name="line.217"></a>
+<span class="sourceLineNo">218</span>    opts.add("--snapshot");<a name="line.218"></a>
+<span class="sourceLineNo">219</span>    opts.add(snapshotName);<a name="line.219"></a>
+<span class="sourceLineNo">220</span>    opts.add("--copy-to");<a name="line.220"></a>
+<span class="sourceLineNo">221</span>    opts.add(copyDir.toString());<a name="line.221"></a>
+<span class="sourceLineNo">222</span>    if (!targetName.equals(snapshotName)) {<a name="line.222"></a>
+<span class="sourceLineNo">223</span>      opts.add("--target");<a name="line.223"></a>
+<span class="sourceLineNo">224</span>      opts.add(targetName);<a name="line.224"></a>
+<span class="sourceLineNo">225</span>    }<a name="line.225"></a>
+<span class="sourceLineNo">226</span>    if (overwrite) opts.add("--overwrite");<a name="line.226"></a>
+<span class="sourceLineNo">227</span><a name="line.227"></a>
+<span class="sourceLineNo">228</span>    // Export Snapshot<a name="line.228"></a>
+<span class="sourceLineNo">229</span>    int res = run(conf, new ExportSnapshot(), opts.toArray(new String[opts.size()]));<a name="line.229"></a>
+<span class="sourceLineNo">230</span>    assertEquals("success " + success + ", res=" + res, success ? 0 : 1, res);<a name="line.230"></a>
+<span class="sourceLineNo">231</span>    if (!success) {<a name="line.231"></a>
+<span class="sourceLineNo">232</span>      final Path targetDir = new Path(HConstants.SNAPSHOT_DIR_NAME, targetName);<a name="line.232"></a>
+<span class="sourceLineNo">233</span>      assertFalse(copyDir.toString() + " " + targetDir.toString(),<a name="line.233"></a>
+<span class="sourceLineNo">234</span>        fs.exists(new Path(copyDir, targetDir)));<a name="line.234"></a>
+<span class="sourceLineNo">235</span>      return;<a name="line.235"></a>
+<span class="sourceLineNo">236</span>    }<a name="line.236"></a>
+<span class="sourceLineNo">237</span>    LOG.info("Exported snapshot");<a name="line.237"></a>
+<span class="sourceLineNo">238</span><a name="line.238"></a>
+<span class="sourceLineNo">239</span>    // Verify File-System state<a name="line.239"></a>
+<span class="sourceLineNo">240</span>    FileStatus[] rootFiles = fs.listStatus(copyDir);<a name="line.240"></a>
+<span class="sourceLineNo">241</span>    assertEquals(filesExpected &gt; 0 ? 2 : 1, rootFiles.length);<a name="line.241"></a>
+<span class="sourceLineNo">242</span>    for (FileStatus fileStatus: rootFiles) {<a name="line.242"></a>
+<span class="sourceLineNo">243</span>      String name = fileStatus.getPath().getName();<a name="line.243"></a>
+<span class="sourceLineNo">244</span>      assertTrue(fileStatus.toString(), fileStatus.isDirectory());<a name="line.244"></a>
+<span class="sourceLineNo">245</span>      assertTrue(name.toString(), name.equals(HConstants.SNAPSHOT_DIR_NAME) ||<a name="line.245"></a>
+<span class="sourceLineNo">246</span>        name.equals(HConstants.HFILE_ARCHIVE_DIRECTORY));<a name="line.246"></a>
+<span class="sourceLineNo">247</span>    }<a name="line.247"></a>
+<span class="sourceLineNo">248</span>    LOG.info("Verified filesystem state");<a name="line.248"></a>
+<span class="sourceLineNo">249</span><a name="line.249"></a>
+<span class="sourceLineNo">250</span>    // Compare the snapshot metadata and verify the hfiles<a name="line.250"></a>
+<span class="sourceLineNo">251</span>    final FileSystem hdfs = FileSystem.get(hdfsUri, conf);<a name="line.251"></a>
+<span class="sourceLineNo">252</span>    final Path snapshotDir = new Path(HConstants.SNAPSHOT_DIR_NAME, snapshotName);<a name="line.252"></a>
+<span class="sourceLineNo">253</span>    final Path targetDir = new Path(HConstants.SNAPSHOT_DIR_NAME, targetName);<a name="line.253"></a>
+<span class="sourceLineNo">254</span>    verifySnapshotDir(hdfs, new Path(sourceDir, snapshotDir), fs, new Path(copyDir, targetDir));<a name="line.254"></a>
+<span class="sourceLineNo">255</span>    Set&lt;String&gt; snapshotFiles = verifySnapshot(conf, fs, copyDir, tableName,<a name="line.255"></a>
+<span class="sourceLineNo">256</span>      targetName, bypassregionPredicate);<a name="line.256"></a>
+<span class="sourceLineNo">257</span>    assertEquals(filesExpected, snapshotFiles.size());<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>   * Check that ExportSnapshot will succeed if something fails but the retry succeed.<a name="line.261"></a>
+<span class="sourceLineNo">262</span>   */<a name="line.262"></a>
+<span class="sourceLineNo">263</span>  @Test<a name="line.263"></a>
+<span class="sourceLineNo">264</span>  public void testExportRetry() throws Exception {<a name="line.264"></a>
+<span class="sourceLineNo">265</span>    Path copyDir = getLocalDestinationDir();<a name="line.265"></a>
+<span class="sourceLineNo">266</span>    FileSystem fs = FileSystem.get(copyDir.toUri(), new Configuration());<a name="line.266"></a>
+<span class="sourceLineNo">267</span>    copyDir = copyDir.makeQualified(fs);<a name="line.267"></a>
+<span class="sourceLineNo">268</span>    Configuration conf = new Configuration(TEST_UTIL.getConfiguration());<a name="line.268"></a>
+<span class="sourceLineNo">269</span>    conf.setBoolean(ExportSnapshot.Testing.CONF_TEST_FAILURE, true);<a name="line.269"></a>
+<span class="sourceLineNo">270</span>    conf.setInt(ExportSnapshot.Testing.CONF_TEST_FAILURE_COUNT, 2);<a name="line.270"></a>
+<span class="sourceLineNo">271</span>    conf.setInt("mapreduce.map.maxattempts", 3);<a name="line.271"></a>
+<span class="sourceLineNo">272</span>    testExportFileSystemState(conf, tableName, snapshotName, snapshotName, tableNumFiles,<a name="line.272"></a>
+<span class="sourceLineNo">273</span>        TEST_UTIL.getDefaultRootDirPath(), copyDir, true, getBypassRegionPredicate(), true);<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>   * Check that ExportSnapshot will fail if we inject failure more times than MR will retry.<a name="line.277"></a>
+<span class="sourceLineNo">278</span>   */<a name="line.278"></a>
+<span class="sourceLineNo">279</span>  @Test<a name="line.279"></a>
+<span class="sourceLineNo">280</span>  public void testExportFailure() throws Exception {<a name="line.280"></a>
+<span class="sourceLineNo">281</span>    Path copyDir = getLocalDestinationDir();<a name="line.281"></a>
+<span class="sourceLineNo">282</span>    FileSystem fs = FileSystem.get(copyDir.toUri(), new Configuration());<a name="line.282"></a>
+<span class="sourceLineNo">283</span>    copyDir = copyDir.makeQualified(fs);<a name="line.283"></a>
+<span class="sourceLineNo">284</span>    Configuration conf = new Configuration(TEST_UTIL.getConfiguration());<a name="line.284"></a>
+<span class="sourceLineNo">285</span>    conf.setBoolean(ExportSnapshot.Testing.CONF_TEST_FAILURE, true);<a name="line.285"></a>
+<span class="sourceLineNo">286</span>    conf.setInt(ExportSnapshot.Testing.CONF_TEST_FAILURE_COUNT, 4);<a name="line.286"></a>
+<span class="sourceLineNo">287</span>    conf.setInt("mapreduce.map.maxattempts", 3);<a name="line.287"></a>
+<span class="sourceLineNo">288</span>    testExportFileSystemState(conf, tableName, snapshotName, snapshotName, tableNumFiles,<a name="line.288"></a>
+<span class="sourceLineNo">289</span>        TEST_UTIL.getDefaultRootDirPath(), copyDir, true, getBypassRegionPredicate(), false);<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>   * verify if the snapshot folder on file-system 1 match the one on file-system 2<a name="line.293"></a>
+<span class="sourceLineNo">294</span>   */<a name="line.294"></a>
+<span class="sourceLineNo">295</span>  protected static void verifySnapshotDir(final FileSystem fs1, final Path root1,<a name="line.295"></a>
+<span class="sourceLineNo">296</span>      final FileSystem fs2, final Path root2) throws IOException {<a name="line.296"></a>
+<span class="sourceLineNo">297</span>    assertEquals(listFiles(fs1, root1, root1), listFiles(fs2, root2, root2));<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>  protected Set&lt;String&gt; verifySnapshot(final FileSystem fs, final Path rootDir,<a name="line.300"></a>
+<span class="sourceLineNo">301</span>      final TableName tableName, final String snapshotName) throws IOException {<a name="line.301"></a>
+<span class="sourceLineNo">302</span>    return verifySnapshot(TEST_UTIL.getConfiguration(), fs, rootDir, tableName,<a name="line.302"></a>
+<span class="sourceLineNo">303</span>      snapshotName, getBypassRegionPredicate());<a name="line.303"></a>
+<span class="sourceLineNo">304</span>  }<a name="line.304"></a>
+<span class="sourceLineNo">305</span><a name="line.305"></a>
+<span class="sourceLineNo">306</span>  /*<a name="line.306"></a>
+<span class="sourceLineNo">307</span>   * Verify if the files exists<a name="line.307"></a>
+<span class="sourceLineNo">308</span>   */<a name="line.308"></a>
+<span class="sourceLineNo">309</span>  protected static Set&lt;String&gt; verifySnapshot(final Configuration conf, final FileSystem fs,<a name="line.309"></a>
+<span class="sourceLineNo">310</span>      final Path rootDir, final TableName tableName, final String snapshotName,<a name="line.310"></a>
+<span class="sourceLineNo">311</span>      final RegionPredicate bypassregionPredicate) throws IOException {<a name="line.311"></a>
+<span class="sourceLineNo">312</span>    final Path exportedSnapshot = new Path(rootDir,<a name="line.312"></a>
+<span class="sourceLineNo">313</span>      new Path(HConstants.SNAPSHOT_DIR_NAME, snapshotName));<a name="line.313"></a>
+<span class="sourceLineNo">314</span>    final Set&lt;String&gt; snapshotFiles = new HashSet&lt;&gt;();<a name="line.314"></a>
+<span class="sourceLineNo">315</span>    final Path exportedArchive = new Path(rootDir, HConstants.HFILE_ARCHIVE_DIRECTORY);<a name="line.315"></a>
+<span class="sourceLineNo">316</span>    SnapshotReferenceUtil.visitReferencedFiles(conf, fs, exportedSnapshot,<a name="line.316"></a>
+<span class="sourceLineNo">317</span>          new SnapshotReferenceUtil.SnapshotVisitor() {<a name="line.317"></a>
+<span class="sourceLineNo">318</span>        @Override<a name="line.318"></a>
+<span class="sourceLineNo">319</span>        public void storeFile(final RegionInfo regionInfo, final String family,<a name="line.319"></a>
+<span class="sourceLineNo">320</span>            final SnapshotRegionManifest.StoreFile storeFile) throws IOException {<a name="line.320"></a>
+<span class="sourceLineNo">321</span>          if (bypassregionPredicate != null &amp;&amp; bypassregionPredicate.evaluate(regionInfo))<a name="line.321"></a>
+<span class="sourceLineNo">322</span>            return;<a name="line.322"></a>
+<span class="sourceLineNo">323</span><a name="line.323"></a>
+<span class="sourceLineNo">324</span>          String hfile = storeFile.getName();<a name="line.324"></a>
+<span class="sourceLineNo">325</span>          snapshotFiles.add(hfile);<a name="line.325"></a>
+<span class="sourceLineNo">326</span>          if (storeFile.hasReference()) {<a name="line.326"></a>
+<span class="sourceLineNo">327</span>            // Nothing to do here, we have already the reference embedded<a name="line.327"></a>
+<span class="sourceLineNo">328</span>          } else {<a name="line.328"></a>
+<span class="sourceLineNo">329</span>            verifyNonEmptyFile(new Path(exportedArchive,<a name="line.329"></a>
+<span class="sourceLineNo">330</span>              new Path(FSUtils.getTableDir(new Path("./"), tableName),<a name="line.330"></a>
+<span class="sourceLineNo">331</span>                  new Path(regionInfo.getEncodedName(), new Path(family, hfile)))));<a name="line.331"></a>
+<span class="sourceLineNo">332</span>          }<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>        private void verifyNonEmptyFile(final Path path) throws IOException {<a name="line.335"></a>
+<span class="sourceLineNo">336</span>          assertTrue(path + " should exists", fs.exists(path));<a name="line.336"></a>
+<span class="sourceLineNo">337</span>          assertTrue(path + " should not be empty", fs.getFileStatus(path).getLen() &gt; 0);<a name="line.337"></a>
+<span class="sourceLineNo">338</span>        }<a name="line.338"></a>
+<span class="sourceLineNo">339</span>    });<a name="line.339"></a>
+<span class="sourceLineNo">340</span><a name="line.340"></a>
+<span class="sourceLineNo">341</span>    // Verify Snapshot description<a name="line.341"></a>
+<span class="sourceLineNo">342</span>    SnapshotDescription desc = SnapshotDescriptionUtils.readSnapshotInfo(fs, exportedSnapshot);<a name="line.342"></a>
+<span class="sourceLineNo">343</span>    assertTrue(desc.getName().equals(snapshotName));<a name="line.343"></a>
+<span class="sourceLineNo">344</span>    assertTrue(desc.getTable().equals(tableName.getNameAsString()));<a name="line.344"></a>
+<span class="sourceLineNo">345</span>    return snapshotFiles;<a name="line.345"></a>
+<span class="sourceLineNo">346</span>  }<a name="line.346"></a>
+<span class="sourceLineNo">347</span><a name="line.347"></a>
+<span class="sourceLineNo">348</span>  private static Set&lt;String&gt; listFiles(final FileSystem fs, final Path root, final Path dir)<a name="line.348"></a>
+<span class="sourceLineNo">349</span>      throws IOException {<a name="line.349"></a>
+<span class="sourceLineNo">350</span>    Set&lt;String&gt; files = new HashSet&lt;&gt;();<a name="line.350"></a>
+<span class="sourceLineNo">351</span>    LOG.debug("List files in {} in root {} at {}", fs, root, dir);<a name="line.351"></a>
+<span class="sourceLineNo">352</span>    int rootPrefix = root.makeQualified(fs.getUri(), root).toString().length();<a name="line.352"></a>
+<span class="sourceLineNo">353</span>    FileStatus[] list = FSUtils.listStatus(fs, dir);<a name="line.353"></a>
+<span class="sourceLineNo">354</span>    if (list != null) {<a name="line.354"></a>
+<span class="sourceLineNo">355</span>      for (FileStatus fstat: list) {<a name="line.355"></a>
+<span class="sourceLineNo">356</span>        LOG.debug(Objects.toString(fstat.getPath()));<a name="line.356"></a>
+<span class="sourceLineNo">357</span>        if (fstat.isDirectory()) {<a name="line.357"></a>
+<span class="sourceLineNo">358</span>          files.addAll(listFiles(fs, root, fstat.getPath()));<a name="line.358"></a>
+<span class="sourceLineNo">359</span>        } else {<a name="line.359"></a>
+<span class="sourceLineNo">360</span>          files.add(fstat.getPath().makeQualified(fs).toString().substring(rootPrefix));<a name="line.360"></a>
+<span class="sourceLineNo">361</span>        }<a name="line.361"></a>
+<span class="sourceLineNo">362</span>      }<a name="line.362"></a>
+<span class="sourceLineNo">363</span>    }<a name="line.363"></a>
+<span class="sourceLineNo">364</span>    return files;<a name="line.364"></a>
+<span class="sourceLineNo">365</span>  }<a name="line.365"></a>
+<span class="sourceLineNo">366</span><a name="line.366"></a>
+<span class="sourceLineNo">367</span>  private Path getHdfsDestinationDir() {<a name="line.367"></a>
+<span class="sourceLineNo">368</span>    Path rootDir = TEST_UTIL.getHBaseCluster().getMaster().getMasterFileSystem().getRootDir();<a name="line.368"></a>
+<span class="sourceLineNo">369</span>    Path path = new Path(new Path(rootDir, "export-test"), "export-" + System.currentTimeMillis());<a name="line.369"></a>
+<span class="sourceLineNo">370</span>    LOG.info("HDFS export destination path: " + path);<a name="line.370"></a>
+<span class="sourceLineNo">371</span>    return path;<a name="line.371"></a>
+<span class="sourceLineNo">372</span>  }<a name="line.372"></a>
+<span class="sourceLineNo">373</span><a name="line.373"></a>
+<span class="sourceLineNo">374</span>  private Path getLocalDestinationDir() {<a name="line.374"></a>
+<span class="sourceLineNo">375</span>    Path path = TEST_UTIL.getDataTestDir("local-export-" + System.currentTimeMillis());<a name="line.375"></a>
+<span class="sourceLineNo">376</span>    LOG.info("Local export destination path: " + path);<a name="line.376"></a>
+<span class="sourceLineNo">377</span>    return path;<a name="line.377"></a>
+<span class="sourceLineNo">378</span>  }<a name="line.378"></a>
+<span class="sourceLineNo">379</span><a name="line.379"></a>
+<span class="sourceLineNo">380</span>  private static void removeExportDir(final Path path) throws IOException {<a name="line.380"></a>
+<span class="sourceLineNo">381</span>    FileSystem fs = FileSystem.get(path.toUri(), new Configuration());<a name="line.381"></a>
+<span class="sourceLineNo">382</span>    fs.delete(path, true);<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>
 
 
 
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.html
index 44ca83c..b3f6c4f 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.html
@@ -221,178 +221,175 @@
 <span class="sourceLineNo">213</span>      final RegionPredicate bypassregionPredicate, boolean success) throws Exception {<a name="line.213"></a>
 <span class="sourceLineNo">214</span>    URI hdfsUri = FileSystem.get(conf).getUri();<a name="line.214"></a>
 <span class="sourceLineNo">215</span>    FileSystem fs = FileSystem.get(copyDir.toUri(), conf);<a name="line.215"></a>
-<span class="sourceLineNo">216</span>    copyDir = copyDir.makeQualified(hdfsUri, copyDir);<a name="line.216"></a>
-<span class="sourceLineNo">217</span><a name="line.217"></a>
-<span class="sourceLineNo">218</span>    List&lt;String&gt; opts = new ArrayList&lt;&gt;();<a name="line.218"></a>
-<span class="sourceLineNo">219</span>    opts.add("--snapshot");<a name="line.219"></a>
-<span class="sourceLineNo">220</span>    opts.add(snapshotName);<a name="line.220"></a>
-<span class="sourceLineNo">221</span>    opts.add("--copy-to");<a name="line.221"></a>
-<span class="sourceLineNo">222</span>    opts.add(copyDir.toString());<a name="line.222"></a>
-<span class="sourceLineNo">223</span>    if (!targetName.equals(snapshotName)) {<a name="line.223"></a>
-<span class="sourceLineNo">224</span>      opts.add("--target");<a name="line.224"></a>
-<span class="sourceLineNo">225</span>      opts.add(targetName);<a name="line.225"></a>
-<span class="sourceLineNo">226</span>    }<a name="line.226"></a>
-<span class="sourceLineNo">227</span>    if (overwrite) opts.add("--overwrite");<a name="line.227"></a>
-<span class="sourceLineNo">228</span><a name="line.228"></a>
-<span class="sourceLineNo">229</span>    // Export Snapshot<a name="line.229"></a>
-<span class="sourceLineNo">230</span>    ExportSnapshot es = new ExportSnapshot();<a name="line.230"></a>
-<span class="sourceLineNo">231</span>    es.setConf(conf);<a name="line.231"></a>
-<span class="sourceLineNo">232</span>    int res = run(conf, es, opts.toArray(new String[opts.size()]));<a name="line.232"></a>
-<span class="sourceLineNo">233</span>    assertEquals(success ? 0 : 1, res);<a name="line.233"></a>
-<span class="sourceLineNo">234</span>    if (!success) {<a name="line.234"></a>
-<span class="sourceLineNo">235</span>      final Path targetDir = new Path(HConstants.SNAPSHOT_DIR_NAME, targetName);<a name="line.235"></a>
-<span class="sourceLineNo">236</span>      assertFalse(copyDir.toString() + " " + targetDir.toString(),<a name="line.236"></a>
-<span class="sourceLineNo">237</span>        fs.exists(new Path(copyDir, targetDir)));<a name="line.237"></a>
-<span class="sourceLineNo">238</span>      return;<a name="line.238"></a>
-<span class="sourceLineNo">239</span>    }<a name="line.239"></a>
-<span class="sourceLineNo">240</span>    LOG.info("Exported snapshot");<a name="line.240"></a>
-<span class="sourceLineNo">241</span><a name="line.241"></a>
-<span class="sourceLineNo">242</span>    // Verify File-System state<a name="line.242"></a>
-<span class="sourceLineNo">243</span>    FileStatus[] rootFiles = fs.listStatus(copyDir);<a name="line.243"></a>
-<span class="sourceLineNo">244</span>    assertEquals(filesExpected &gt; 0 ? 2 : 1, rootFiles.length);<a name="line.244"></a>
-<span class="sourceLineNo">245</span>    for (FileStatus fileStatus: rootFiles) {<a name="line.245"></a>
-<span class="sourceLineNo">246</span>      String name = fileStatus.getPath().getName();<a name="line.246"></a>
-<span class="sourceLineNo">247</span>      assertTrue(fileStatus.toString(), fileStatus.isDirectory());<a name="line.247"></a>
-<span class="sourceLineNo">248</span>      assertTrue(name.toString(), name.equals(HConstants.SNAPSHOT_DIR_NAME) ||<a name="line.248"></a>
-<span class="sourceLineNo">249</span>        name.equals(HConstants.HFILE_ARCHIVE_DIRECTORY));<a name="line.249"></a>
-<span class="sourceLineNo">250</span>    }<a name="line.250"></a>
-<span class="sourceLineNo">251</span>    LOG.info("Verified filesystem state");<a name="line.251"></a>
-<span class="sourceLineNo">252</span><a name="line.252"></a>
-<span class="sourceLineNo">253</span>    // Compare the snapshot metadata and verify the hfiles<a name="line.253"></a>
-<span class="sourceLineNo">254</span>    final FileSystem hdfs = FileSystem.get(hdfsUri, conf);<a name="line.254"></a>
-<span class="sourceLineNo">255</span>    final Path snapshotDir = new Path(HConstants.SNAPSHOT_DIR_NAME, snapshotName);<a name="line.255"></a>
-<span class="sourceLineNo">256</span>    final Path targetDir = new Path(HConstants.SNAPSHOT_DIR_NAME, targetName);<a name="line.256"></a>
-<span class="sourceLineNo">257</span>    verifySnapshotDir(hdfs, new Path(sourceDir, snapshotDir), fs, new Path(copyDir, targetDir));<a name="line.257"></a>
-<span class="sourceLineNo">258</span>    Set&lt;String&gt; snapshotFiles = verifySnapshot(conf, fs, copyDir, tableName,<a name="line.258"></a>
-<span class="sourceLineNo">259</span>      targetName, bypassregionPredicate);<a name="line.259"></a>
-<span class="sourceLineNo">260</span>    assertEquals(filesExpected, snapshotFiles.size());<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>   * Check that ExportSnapshot will succeed if something fails but the retry succeed.<a name="line.264"></a>
-<span class="sourceLineNo">265</span>   */<a name="line.265"></a>
-<span class="sourceLineNo">266</span>  @Test<a name="line.266"></a>
-<span class="sourceLineNo">267</span>  public void testExportRetry() throws Exception {<a name="line.267"></a>
-<span class="sourceLineNo">268</span>    Path copyDir = getLocalDestinationDir();<a name="line.268"></a>
-<span class="sourceLineNo">269</span>    FileSystem fs = FileSystem.get(copyDir.toUri(), new Configuration());<a name="line.269"></a>
-<span class="sourceLineNo">270</span>    copyDir = copyDir.makeQualified(fs);<a name="line.270"></a>
-<span class="sourceLineNo">271</span>    Configuration conf = new Configuration(TEST_UTIL.getConfiguration());<a name="line.271"></a>
-<span class="sourceLineNo">272</span>    conf.setBoolean(ExportSnapshot.Testing.CONF_TEST_FAILURE, true);<a name="line.272"></a>
-<span class="sourceLineNo">273</span>    conf.setInt(ExportSnapshot.Testing.CONF_TEST_FAILURE_COUNT, 2);<a name="line.273"></a>
-<span class="sourceLineNo">274</span>    conf.setInt("mapreduce.map.maxattempts", 3);<a name="line.274"></a>
-<span class="sourceLineNo">275</span>    testExportFileSystemState(conf, tableName, snapshotName, snapshotName, tableNumFiles,<a name="line.275"></a>
-<span class="sourceLineNo">276</span>        TEST_UTIL.getDefaultRootDirPath(), copyDir, true, getBypassRegionPredicate(), true);<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>  /**<a name="line.279"></a>
-<span class="sourceLineNo">280</span>   * Check that ExportSnapshot will fail if we inject failure more times than MR will retry.<a name="line.280"></a>
-<span class="sourceLineNo">281</span>   */<a name="line.281"></a>
-<span class="sourceLineNo">282</span>  @Test<a name="line.282"></a>
-<span class="sourceLineNo">283</span>  public void testExportFailure() throws Exception {<a name="line.283"></a>
-<span class="sourceLineNo">284</span>    Path copyDir = getLocalDestinationDir();<a name="line.284"></a>
-<span class="sourceLineNo">285</span>    FileSystem fs = FileSystem.get(copyDir.toUri(), new Configuration());<a name="line.285"></a>
-<span class="sourceLineNo">286</span>    copyDir = copyDir.makeQualified(fs);<a name="line.286"></a>
-<span class="sourceLineNo">287</span>    Configuration conf = new Configuration(TEST_UTIL.getConfiguration());<a name="line.287"></a>
-<span class="sourceLineNo">288</span>    conf.setBoolean(ExportSnapshot.Testing.CONF_TEST_FAILURE, true);<a name="line.288"></a>
-<span class="sourceLineNo">289</span>    conf.setInt(ExportSnapshot.Testing.CONF_TEST_FAILURE_COUNT, 4);<a name="line.289"></a>
-<span class="sourceLineNo">290</span>    conf.setInt("mapreduce.map.maxattempts", 3);<a name="line.290"></a>
-<span class="sourceLineNo">291</span>    testExportFileSystemState(conf, tableName, snapshotName, snapshotName, tableNumFiles,<a name="line.291"></a>
-<span class="sourceLineNo">292</span>        TEST_UTIL.getDefaultRootDirPath(), copyDir, true, getBypassRegionPredicate(), false);<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>   * verify if the snapshot folder on file-system 1 match the one on file-system 2<a name="line.296"></a>
-<span class="sourceLineNo">297</span>   */<a name="line.297"></a>
-<span class="sourceLineNo">298</span>  protected static void verifySnapshotDir(final FileSystem fs1, final Path root1,<a name="line.298"></a>
-<span class="sourceLineNo">299</span>      final FileSystem fs2, final Path root2) throws IOException {<a name="line.299"></a>
-<span class="sourceLineNo">300</span>    assertEquals(listFiles(fs1, root1, root1), listFiles(fs2, root2, root2));<a name="line.300"></a>
-<span class="sourceLineNo">301</span>  }<a name="line.301"></a>
-<span class="sourceLineNo">302</span><a name="line.302"></a>
-<span class="sourceLineNo">303</span>  protected Set&lt;String&gt; verifySnapshot(final FileSystem fs, final Path rootDir,<a name="line.303"></a>
-<span class="sourceLineNo">304</span>      final TableName tableName, final String snapshotName) throws IOException {<a name="line.304"></a>
-<span class="sourceLineNo">305</span>    return verifySnapshot(TEST_UTIL.getConfiguration(), fs, rootDir, tableName,<a name="line.305"></a>
-<span class="sourceLineNo">306</span>      snapshotName, getBypassRegionPredicate());<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>   * Verify if the files exists<a name="line.310"></a>
-<span class="sourceLineNo">311</span>   */<a name="line.311"></a>
-<span class="sourceLineNo">312</span>  protected static Set&lt;String&gt; verifySnapshot(final Configuration conf, final FileSystem fs,<a name="line.312"></a>
-<span class="sourceLineNo">313</span>      final Path rootDir, final TableName tableName, final String snapshotName,<a name="line.313"></a>
-<span class="sourceLineNo">314</span>      final RegionPredicate bypassregionPredicate) throws IOException {<a name="line.314"></a>
-<span class="sourceLineNo">315</span>    final Path exportedSnapshot = new Path(rootDir,<a name="line.315"></a>
-<span class="sourceLineNo">316</span>      new Path(HConstants.SNAPSHOT_DIR_NAME, snapshotName));<a name="line.316"></a>
-<span class="sourceLineNo">317</span>    final Set&lt;String&gt; snapshotFiles = new HashSet&lt;&gt;();<a name="line.317"></a>
-<span class="sourceLineNo">318</span>    final Path exportedArchive = new Path(rootDir, HConstants.HFILE_ARCHIVE_DIRECTORY);<a name="line.318"></a>
-<span class="sourceLineNo">319</span>    SnapshotReferenceUtil.visitReferencedFiles(conf, fs, exportedSnapshot,<a name="line.319"></a>
-<span class="sourceLineNo">320</span>          new SnapshotReferenceUtil.SnapshotVisitor() {<a name="line.320"></a>
-<span class="sourceLineNo">321</span>        @Override<a name="line.321"></a>
-<span class="sourceLineNo">322</span>        public void storeFile(final RegionInfo regionInfo, final String family,<a name="line.322"></a>
-<span class="sourceLineNo">323</span>            final SnapshotRegionManifest.StoreFile storeFile) throws IOException {<a name="line.323"></a>
-<span class="sourceLineNo">324</span>          if (bypassregionPredicate != null &amp;&amp; bypassregionPredicate.evaluate(regionInfo))<a name="line.324"></a>
-<span class="sourceLineNo">325</span>            return;<a name="line.325"></a>
-<span class="sourceLineNo">326</span><a name="line.326"></a>
-<span class="sourceLineNo">327</span>          String hfile = storeFile.getName();<a name="line.327"></a>
-<span class="sourceLineNo">328</span>          snapshotFiles.add(hfile);<a name="line.328"></a>
-<span class="sourceLineNo">329</span>          if (storeFile.hasReference()) {<a name="line.329"></a>
-<span class="sourceLineNo">330</span>            // Nothing to do here, we have already the reference embedded<a name="line.330"></a>
-<span class="sourceLineNo">331</span>          } else {<a name="line.331"></a>
-<span class="sourceLineNo">332</span>            verifyNonEmptyFile(new Path(exportedArchive,<a name="line.332"></a>
-<span class="sourceLineNo">333</span>              new Path(FSUtils.getTableDir(new Path("./"), tableName),<a name="line.333"></a>
-<span class="sourceLineNo">334</span>                  new Path(regionInfo.getEncodedName(), new Path(family, hfile)))));<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><a name="line.337"></a>
-<span class="sourceLineNo">338</span>        private void verifyNonEmptyFile(final Path path) throws IOException {<a name="line.338"></a>
-<span class="sourceLineNo">339</span>          assertTrue(path + " should exists", fs.exists(path));<a name="line.339"></a>
-<span class="sourceLineNo">340</span>          assertTrue(path + " should not be empty", fs.getFileStatus(path).getLen() &gt; 0);<a name="line.340"></a>
-<span class="sourceLineNo">341</span>        }<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>    // Verify Snapshot description<a name="line.344"></a>
-<span class="sourceLineNo">345</span>    SnapshotDescription desc = SnapshotDescriptionUtils.readSnapshotInfo(fs, exportedSnapshot);<a name="line.345"></a>
-<span class="sourceLineNo">346</span>    assertTrue(desc.getName().equals(snapshotName));<a name="line.346"></a>
-<span class="sourceLineNo">347</span>    assertTrue(desc.getTable().equals(tableName.getNameAsString()));<a name="line.347"></a>
-<span class="sourceLineNo">348</span>    return snapshotFiles;<a name="line.348"></a>
-<span class="sourceLineNo">349</span>  }<a name="line.349"></a>
-<span class="sourceLineNo">350</span><a name="line.350"></a>
-<span class="sourceLineNo">351</span>  private static Set&lt;String&gt; listFiles(final FileSystem fs, final Path root, final Path dir)<a name="line.351"></a>
-<span class="sourceLineNo">352</span>      throws IOException {<a name="line.352"></a>
-<span class="sourceLineNo">353</span>    Set&lt;String&gt; files = new HashSet&lt;&gt;();<a name="line.353"></a>
-<span class="sourceLineNo">354</span>    LOG.debug("List files in {} in root {} at {}", fs, root, dir);<a name="line.354"></a>
-<span class="sourceLineNo">355</span>    int rootPrefix = root.makeQualified(fs.getUri(), root).toString().length();<a name="line.355"></a>
-<span class="sourceLineNo">356</span>    FileStatus[] list = FSUtils.listStatus(fs, dir);<a name="line.356"></a>
-<span class="sourceLineNo">357</span>    if (list != null) {<a name="line.357"></a>
-<span class="sourceLineNo">358</span>      for (FileStatus fstat: list) {<a name="line.358"></a>
-<span class="sourceLineNo">359</span>        LOG.debug(Objects.toString(fstat.getPath()));<a name="line.359"></a>
-<span class="sourceLineNo">360</span>        if (fstat.isDirectory()) {<a name="line.360"></a>
-<span class="sourceLineNo">361</span>          files.addAll(listFiles(fs, root, fstat.getPath()));<a name="line.361"></a>
-<span class="sourceLineNo">362</span>        } else {<a name="line.362"></a>
-<span class="sourceLineNo">363</span>          files.add(fstat.getPath().makeQualified(fs).toString().substring(rootPrefix));<a name="line.363"></a>
-<span class="sourceLineNo">364</span>        }<a name="line.364"></a>
-<span class="sourceLineNo">365</span>      }<a name="line.365"></a>
-<span class="sourceLineNo">366</span>    }<a name="line.366"></a>
-<span class="sourceLineNo">367</span>    return files;<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>  private Path getHdfsDestinationDir() {<a name="line.370"></a>
-<span class="sourceLineNo">371</span>    Path rootDir = TEST_UTIL.getHBaseCluster().getMaster().getMasterFileSystem().getRootDir();<a name="line.371"></a>
-<span class="sourceLineNo">372</span>    Path path = new Path(new Path(rootDir, "export-test"), "export-" + System.currentTimeMillis());<a name="line.372"></a>
-<span class="sourceLineNo">373</span>    LOG.info("HDFS export destination path: " + path);<a name="line.373"></a>
-<span class="sourceLineNo">374</span>    return path;<a name="line.374"></a>
-<span class="sourceLineNo">375</span>  }<a name="line.375"></a>
-<span class="sourceLineNo">376</span><a name="line.376"></a>
-<span class="sourceLineNo">377</span>  private Path getLocalDestinationDir() {<a name="line.377"></a>
-<span class="sourceLineNo">378</span>    Path path = TEST_UTIL.getDataTestDir("local-export-" + System.currentTimeMillis());<a name="line.378"></a>
-<span class="sourceLineNo">379</span>    LOG.info("Local export destination path: " + path);<a name="line.379"></a>
-<span class="sourceLineNo">380</span>    return path;<a name="line.380"></a>
-<span class="sourceLineNo">381</span>  }<a name="line.381"></a>
-<span class="sourceLineNo">382</span><a name="line.382"></a>
-<span class="sourceLineNo">383</span>  private static void removeExportDir(final Path path) throws IOException {<a name="line.383"></a>
-<span class="sourceLineNo">384</span>    FileSystem fs = FileSystem.get(path.toUri(), new Configuration());<a name="line.384"></a>
-<span class="sourceLineNo">385</span>    fs.delete(path, true);<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">216</span>    copyDir = copyDir.makeQualified(fs.getUri(), fs.getWorkingDirectory());<a name="line.216"></a>
+<span class="sourceLineNo">217</span>    List&lt;String&gt; opts = new ArrayList&lt;&gt;();<a name="line.217"></a>
+<span class="sourceLineNo">218</span>    opts.add("--snapshot");<a name="line.218"></a>
+<span class="sourceLineNo">219</span>    opts.add(snapshotName);<a name="line.219"></a>
+<span class="sourceLineNo">220</span>    opts.add("--copy-to");<a name="line.220"></a>
+<span class="sourceLineNo">221</span>    opts.add(copyDir.toString());<a name="line.221"></a>
+<span class="sourceLineNo">222</span>    if (!targetName.equals(snapshotName)) {<a name="line.222"></a>
+<span class="sourceLineNo">223</span>      opts.add("--target");<a name="line.223"></a>
+<span class="sourceLineNo">224</span>      opts.add(targetName);<a name="line.224"></a>
+<span class="sourceLineNo">225</span>    }<a name="line.225"></a>
+<span class="sourceLineNo">226</span>    if (overwrite) opts.add("--overwrite");<a name="line.226"></a>
+<span class="sourceLineNo">227</span><a name="line.227"></a>
+<span class="sourceLineNo">228</span>    // Export Snapshot<a name="line.228"></a>
+<span class="sourceLineNo">229</span>    int res = run(conf, new ExportSnapshot(), opts.toArray(new String[opts.size()]));<a name="line.229"></a>
+<span class="sourceLineNo">230</span>    assertEquals("success " + success + ", res=" + res, success ? 0 : 1, res);<a name="line.230"></a>
+<span class="sourceLineNo">231</span>    if (!success) {<a name="line.231"></a>
+<span class="sourceLineNo">232</span>      final Path targetDir = new Path(HConstants.SNAPSHOT_DIR_NAME, targetName);<a name="line.232"></a>
+<span class="sourceLineNo">233</span>      assertFalse(copyDir.toString() + " " + targetDir.toString(),<a name="line.233"></a>
+<span class="sourceLineNo">234</span>        fs.exists(new Path(copyDir, targetDir)));<a name="line.234"></a>
+<span class="sourceLineNo">235</span>      return;<a name="line.235"></a>
+<span class="sourceLineNo">236</span>    }<a name="line.236"></a>
+<span class="sourceLineNo">237</span>    LOG.info("Exported snapshot");<a name="line.237"></a>
+<span class="sourceLineNo">238</span><a name="line.238"></a>
+<span class="sourceLineNo">239</span>    // Verify File-System state<a name="line.239"></a>
+<span class="sourceLineNo">240</span>    FileStatus[] rootFiles = fs.listStatus(copyDir);<a name="line.240"></a>
+<span class="sourceLineNo">241</span>    assertEquals(filesExpected &gt; 0 ? 2 : 1, rootFiles.length);<a name="line.241"></a>
+<span class="sourceLineNo">242</span>    for (FileStatus fileStatus: rootFiles) {<a name="line.242"></a>
+<span class="sourceLineNo">243</span>      String name = fileStatus.getPath().getName();<a name="line.243"></a>
+<span class="sourceLineNo">244</span>      assertTrue(fileStatus.toString(), fileStatus.isDirectory());<a name="line.244"></a>
+<span class="sourceLineNo">245</span>      assertTrue(name.toString(), name.equals(HConstants.SNAPSHOT_DIR_NAME) ||<a name="line.245"></a>
+<span class="sourceLineNo">246</span>        name.equals(HConstants.HFILE_ARCHIVE_DIRECTORY));<a name="line.246"></a>
+<span class="sourceLineNo">247</span>    }<a name="line.247"></a>
+<span class="sourceLineNo">248</span>    LOG.info("Verified filesystem state");<a name="line.248"></a>
+<span class="sourceLineNo">249</span><a name="line.249"></a>
+<span class="sourceLineNo">250</span>    // Compare the snapshot metadata and verify the hfiles<a name="line.250"></a>
+<span class="sourceLineNo">251</span>    final FileSystem hdfs = FileSystem.get(hdfsUri, conf);<a name="line.251"></a>
+<span class="sourceLineNo">252</span>    final Path snapshotDir = new Path(HConstants.SNAPSHOT_DIR_NAME, snapshotName);<a name="line.252"></a>
+<span class="sourceLineNo">253</span>    final Path targetDir = new Path(HConstants.SNAPSHOT_DIR_NAME, targetName);<a name="line.253"></a>
+<span class="sourceLineNo">254</span>    verifySnapshotDir(hdfs, new Path(sourceDir, snapshotDir), fs, new Path(copyDir, targetDir));<a name="line.254"></a>
+<span class="sourceLineNo">255</span>    Set&lt;String&gt; snapshotFiles = verifySnapshot(conf, fs, copyDir, tableName,<a name="line.255"></a>
+<span class="sourceLineNo">256</span>      targetName, bypassregionPredicate);<a name="line.256"></a>
+<span class="sourceLineNo">257</span>    assertEquals(filesExpected, snapshotFiles.size());<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>   * Check that ExportSnapshot will succeed if something fails but the retry succeed.<a name="line.261"></a>
+<span class="sourceLineNo">262</span>   */<a name="line.262"></a>
+<span class="sourceLineNo">263</span>  @Test<a name="line.263"></a>
+<span class="sourceLineNo">264</span>  public void testExportRetry() throws Exception {<a name="line.264"></a>
+<span class="sourceLineNo">265</span>    Path copyDir = getLocalDestinationDir();<a name="line.265"></a>
+<span class="sourceLineNo">266</span>    FileSystem fs = FileSystem.get(copyDir.toUri(), new Configuration());<a name="line.266"></a>
+<span class="sourceLineNo">267</span>    copyDir = copyDir.makeQualified(fs);<a name="line.267"></a>
+<span class="sourceLineNo">268</span>    Configuration conf = new Configuration(TEST_UTIL.getConfiguration());<a name="line.268"></a>
+<span class="sourceLineNo">269</span>    conf.setBoolean(ExportSnapshot.Testing.CONF_TEST_FAILURE, true);<a name="line.269"></a>
+<span class="sourceLineNo">270</span>    conf.setInt(ExportSnapshot.Testing.CONF_TEST_FAILURE_COUNT, 2);<a name="line.270"></a>
+<span class="sourceLineNo">271</span>    conf.setInt("mapreduce.map.maxattempts", 3);<a name="line.271"></a>
+<span class="sourceLineNo">272</span>    testExportFileSystemState(conf, tableName, snapshotName, snapshotName, tableNumFiles,<a name="line.272"></a>
+<span class="sourceLineNo">273</span>        TEST_UTIL.getDefaultRootDirPath(), copyDir, true, getBypassRegionPredicate(), true);<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>   * Check that ExportSnapshot will fail if we inject failure more times than MR will retry.<a name="line.277"></a>
+<span class="sourceLineNo">278</span>   */<a name="line.278"></a>
+<span class="sourceLineNo">279</span>  @Test<a name="line.279"></a>
+<span class="sourceLineNo">280</span>  public void testExportFailure() throws Exception {<a name="line.280"></a>
+<span class="sourceLineNo">281</span>    Path copyDir = getLocalDestinationDir();<a name="line.281"></a>
+<span class="sourceLineNo">282</span>    FileSystem fs = FileSystem.get(copyDir.toUri(), new Configuration());<a name="line.282"></a>
+<span class="sourceLineNo">283</span>    copyDir = copyDir.makeQualified(fs);<a name="line.283"></a>
+<span class="sourceLineNo">284</span>    Configuration conf = new Configuration(TEST_UTIL.getConfiguration());<a name="line.284"></a>
+<span class="sourceLineNo">285</span>    conf.setBoolean(ExportSnapshot.Testing.CONF_TEST_FAILURE, true);<a name="line.285"></a>
+<span class="sourceLineNo">286</span>    conf.setInt(ExportSnapshot.Testing.CONF_TEST_FAILURE_COUNT, 4);<a name="line.286"></a>
+<span class="sourceLineNo">287</span>    conf.setInt("mapreduce.map.maxattempts", 3);<a name="line.287"></a>
+<span class="sourceLineNo">288</span>    testExportFileSystemState(conf, tableName, snapshotName, snapshotName, tableNumFiles,<a name="line.288"></a>
+<span class="sourceLineNo">289</span>        TEST_UTIL.getDefaultRootDirPath(), copyDir, true, getBypassRegionPredicate(), false);<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>   * verify if the snapshot folder on file-system 1 match the one on file-system 2<a name="line.293"></a>
+<span class="sourceLineNo">294</span>   */<a name="line.294"></a>
+<span class="sourceLineNo">295</span>  protected static void verifySnapshotDir(final FileSystem fs1, final Path root1,<a name="line.295"></a>
+<span class="sourceLineNo">296</span>      final FileSystem fs2, final Path root2) throws IOException {<a name="line.296"></a>
+<span class="sourceLineNo">297</span>    assertEquals(listFiles(fs1, root1, root1), listFiles(fs2, root2, root2));<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>  protected Set&lt;String&gt; verifySnapshot(final FileSystem fs, final Path rootDir,<a name="line.300"></a>
+<span class="sourceLineNo">301</span>      final TableName tableName, final String snapshotName) throws IOException {<a name="line.301"></a>
+<span class="sourceLineNo">302</span>    return verifySnapshot(TEST_UTIL.getConfiguration(), fs, rootDir, tableName,<a name="line.302"></a>
+<span class="sourceLineNo">303</span>      snapshotName, getBypassRegionPredicate());<a name="line.303"></a>
+<span class="sourceLineNo">304</span>  }<a name="line.304"></a>
+<span class="sourceLineNo">305</span><a name="line.305"></a>
+<span class="sourceLineNo">306</span>  /*<a name="line.306"></a>
+<span class="sourceLineNo">307</span>   * Verify if the files exists<a name="line.307"></a>
+<span class="sourceLineNo">308</span>   */<a name="line.308"></a>
+<span class="sourceLineNo">309</span>  protected static Set&lt;String&gt; verifySnapshot(final Configuration conf, final FileSystem fs,<a name="line.309"></a>
+<span class="sourceLineNo">310</span>      final Path rootDir, final TableName tableName, final String snapshotName,<a name="line.310"></a>
+<span class="sourceLineNo">311</span>      final RegionPredicate bypassregionPredicate) throws IOException {<a name="line.311"></a>
+<span class="sourceLineNo">312</span>    final Path exportedSnapshot = new Path(rootDir,<a name="line.312"></a>
+<span class="sourceLineNo">313</span>      new Path(HConstants.SNAPSHOT_DIR_NAME, snapshotName));<a name="line.313"></a>
+<span class="sourceLineNo">314</span>    final Set&lt;String&gt; snapshotFiles = new HashSet&lt;&gt;();<a name="line.314"></a>
+<span class="sourceLineNo">315</span>    final Path exportedArchive = new Path(rootDir, HConstants.HFILE_ARCHIVE_DIRECTORY);<a name="line.315"></a>
+<span class="sourceLineNo">316</span>    SnapshotReferenceUtil.visitReferencedFiles(conf, fs, exportedSnapshot,<a name="line.316"></a>
+<span class="sourceLineNo">317</span>          new SnapshotReferenceUtil.SnapshotVisitor() {<a name="line.317"></a>
+<span class="sourceLineNo">318</span>        @Override<a name="line.318"></a>
+<span class="sourceLineNo">319</span>        public void storeFile(final RegionInfo regionInfo, final String family,<a name="line.319"></a>
+<span class="sourceLineNo">320</span>            final SnapshotRegionManifest.StoreFile storeFile) throws IOException {<a name="line.320"></a>
+<span class="sourceLineNo">321</span>          if (bypassregionPredicate != null &amp;&amp; bypassregionPredicate.evaluate(regionInfo))<a name="line.321"></a>
+<span class="sourceLineNo">322</span>            return;<a name="line.322"></a>
+<span class="sourceLineNo">323</span><a name="line.323"></a>
+<span class="sourceLineNo">324</span>          String hfile = storeFile.getName();<a name="line.324"></a>
+<span class="sourceLineNo">325</span>          snapshotFiles.add(hfile);<a name="line.325"></a>
+<span class="sourceLineNo">326</span>          if (storeFile.hasReference()) {<a name="line.326"></a>
+<span class="sourceLineNo">327</span>            // Nothing to do here, we have already the reference embedded<a name="line.327"></a>
+<span class="sourceLineNo">328</span>          } else {<a name="line.328"></a>
+<span class="sourceLineNo">329</span>            verifyNonEmptyFile(new Path(exportedArchive,<a name="line.329"></a>
+<span class="sourceLineNo">330</span>              new Path(FSUtils.getTableDir(new Path("./"), tableName),<a name="line.330"></a>
+<span class="sourceLineNo">331</span>                  new Path(regionInfo.getEncodedName(), new Path(family, hfile)))));<a name="line.331"></a>
+<span class="sourceLineNo">332</span>          }<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>        private void verifyNonEmptyFile(final Path path) throws IOException {<a name="line.335"></a>
+<span class="sourceLineNo">336</span>          assertTrue(path + " should exists", fs.exists(path));<a name="line.336"></a>
+<span class="sourceLineNo">337</span>          assertTrue(path + " should not be empty", fs.getFileStatus(path).getLen() &gt; 0);<a name="line.337"></a>
+<span class="sourceLineNo">338</span>        }<a name="line.338"></a>
+<span class="sourceLineNo">339</span>    });<a name="line.339"></a>
+<span class="sourceLineNo">340</span><a name="line.340"></a>
+<span class="sourceLineNo">341</span>    // Verify Snapshot description<a name="line.341"></a>
+<span class="sourceLineNo">342</span>    SnapshotDescription desc = SnapshotDescriptionUtils.readSnapshotInfo(fs, exportedSnapshot);<a name="line.342"></a>
+<span class="sourceLineNo">343</span>    assertTrue(desc.getName().equals(snapshotName));<a name="line.343"></a>
+<span class="sourceLineNo">344</span>    assertTrue(desc.getTable().equals(tableName.getNameAsString()));<a name="line.344"></a>
+<span class="sourceLineNo">345</span>    return snapshotFiles;<a name="line.345"></a>
+<span class="sourceLineNo">346</span>  }<a name="line.346"></a>
+<span class="sourceLineNo">347</span><a name="line.347"></a>
+<span class="sourceLineNo">348</span>  private static Set&lt;String&gt; listFiles(final FileSystem fs, final Path root, final Path dir)<a name="line.348"></a>
+<span class="sourceLineNo">349</span>      throws IOException {<a name="line.349"></a>
+<span class="sourceLineNo">350</span>    Set&lt;String&gt; files = new HashSet&lt;&gt;();<a name="line.350"></a>
+<span class="sourceLineNo">351</span>    LOG.debug("List files in {} in root {} at {}", fs, root, dir);<a name="line.351"></a>
+<span class="sourceLineNo">352</span>    int rootPrefix = root.makeQualified(fs.getUri(), root).toString().length();<a name="line.352"></a>
+<span class="sourceLineNo">353</span>    FileStatus[] list = FSUtils.listStatus(fs, dir);<a name="line.353"></a>
+<span class="sourceLineNo">354</span>    if (list != null) {<a name="line.354"></a>
+<span class="sourceLineNo">355</span>      for (FileStatus fstat: list) {<a name="line.355"></a>
+<span class="sourceLineNo">356</span>        LOG.debug(Objects.toString(fstat.getPath()));<a name="line.356"></a>
+<span class="sourceLineNo">357</span>        if (fstat.isDirectory()) {<a name="line.357"></a>
+<span class="sourceLineNo">358</span>          files.addAll(listFiles(fs, root, fstat.getPath()));<a name="line.358"></a>
+<span class="sourceLineNo">359</span>        } else {<a name="line.359"></a>
+<span class="sourceLineNo">360</span>          files.add(fstat.getPath().makeQualified(fs).toString().substring(rootPrefix));<a name="line.360"></a>
+<span class="sourceLineNo">361</span>        }<a name="line.361"></a>
+<span class="sourceLineNo">362</span>      }<a name="line.362"></a>
+<span class="sourceLineNo">363</span>    }<a name="line.363"></a>
+<span class="sourceLineNo">364</span>    return files;<a name="line.364"></a>
+<span class="sourceLineNo">365</span>  }<a name="line.365"></a>
+<span class="sourceLineNo">366</span><a name="line.366"></a>
+<span class="sourceLineNo">367</span>  private Path getHdfsDestinationDir() {<a name="line.367"></a>
+<span class="sourceLineNo">368</span>    Path rootDir = TEST_UTIL.getHBaseCluster().getMaster().getMasterFileSystem().getRootDir();<a name="line.368"></a>
+<span class="sourceLineNo">369</span>    Path path = new Path(new Path(rootDir, "export-test"), "export-" + System.currentTimeMillis());<a name="line.369"></a>
+<span class="sourceLineNo">370</span>    LOG.info("HDFS export destination path: " + path);<a name="line.370"></a>
+<span class="sourceLineNo">371</span>    return path;<a name="line.371"></a>
+<span class="sourceLineNo">372</span>  }<a name="line.372"></a>
+<span class="sourceLineNo">373</span><a name="line.373"></a>
+<span class="sourceLineNo">374</span>  private Path getLocalDestinationDir() {<a name="line.374"></a>
+<span class="sourceLineNo">375</span>    Path path = TEST_UTIL.getDataTestDir("local-export-" + System.currentTimeMillis());<a name="line.375"></a>
+<span class="sourceLineNo">376</span>    LOG.info("Local export destination path: " + path);<a name="line.376"></a>
+<span class="sourceLineNo">377</span>    return path;<a name="line.377"></a>
+<span class="sourceLineNo">378</span>  }<a name="line.378"></a>
+<span class="sourceLineNo">379</span><a name="line.379"></a>
+<span class="sourceLineNo">380</span>  private static void removeExportDir(final Path path) throws IOException {<a name="line.380"></a>
+<span class="sourceLineNo">381</span>    FileSystem fs = FileSystem.get(path.toUri(), new Configuration());<a name="line.381"></a>
+<span class="sourceLineNo">382</span>    fs.delete(path, true);<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>