Published site at f1f2b5a038d730e68720503331951a3c7edb053d.
authorjenkins <builds@apache.org>
Thu, 29 Nov 2018 14:52:37 +0000 (14:52 +0000)
committerjenkins <builds@apache.org>
Thu, 29 Nov 2018 14:52:37 +0000 (14:52 +0000)
77 files changed:
acid-semantics.html
apache_hbase_reference_guide.pdf
book.html
bulk-loads.html
checkstyle-aggregate.html
coc.html
dependencies.html
dependency-convergence.html
dependency-info.html
dependency-management.html
devapidocs/constant-values.html
devapidocs/index-all.html
devapidocs/org/apache/hadoop/hbase/backup/package-tree.html
devapidocs/org/apache/hadoop/hbase/class-use/TableName.html
devapidocs/org/apache/hadoop/hbase/client/class-use/TableDescriptor.html
devapidocs/org/apache/hadoop/hbase/client/package-tree.html
devapidocs/org/apache/hadoop/hbase/executor/package-tree.html
devapidocs/org/apache/hadoop/hbase/filter/package-tree.html
devapidocs/org/apache/hadoop/hbase/io/hfile/package-tree.html
devapidocs/org/apache/hadoop/hbase/ipc/package-tree.html
devapidocs/org/apache/hadoop/hbase/mapreduce/package-tree.html
devapidocs/org/apache/hadoop/hbase/master/balancer/package-tree.html
devapidocs/org/apache/hadoop/hbase/master/class-use/MasterFileSystem.html
devapidocs/org/apache/hadoop/hbase/master/package-tree.html
devapidocs/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html
devapidocs/org/apache/hadoop/hbase/master/procedure/package-tree.html
devapidocs/org/apache/hadoop/hbase/mob/MobUtils.html
devapidocs/org/apache/hadoop/hbase/monitoring/package-tree.html
devapidocs/org/apache/hadoop/hbase/package-tree.html
devapidocs/org/apache/hadoop/hbase/procedure2/package-tree.html
devapidocs/org/apache/hadoop/hbase/quotas/package-tree.html
devapidocs/org/apache/hadoop/hbase/regionserver/package-tree.html
devapidocs/org/apache/hadoop/hbase/regionserver/querymatcher/package-tree.html
devapidocs/org/apache/hadoop/hbase/regionserver/wal/package-tree.html
devapidocs/org/apache/hadoop/hbase/replication/regionserver/package-tree.html
devapidocs/org/apache/hadoop/hbase/security/access/package-tree.html
devapidocs/org/apache/hadoop/hbase/security/package-tree.html
devapidocs/org/apache/hadoop/hbase/thrift/package-tree.html
devapidocs/org/apache/hadoop/hbase/util/package-tree.html
devapidocs/org/apache/hadoop/hbase/wal/package-tree.html
devapidocs/src-html/org/apache/hadoop/hbase/Version.html
devapidocs/src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html
devapidocs/src-html/org/apache/hadoop/hbase/mob/MobUtils.html
devapidocs/src-html/org/apache/hadoop/hbase/snapshot/RestoreSnapshotHelper.RestoreMetaChanges.html
devapidocs/src-html/org/apache/hadoop/hbase/snapshot/RestoreSnapshotHelper.html
downloads.html
export_control.html
index.html
integration.html
issue-tracking.html
license.html
mail-lists.html
metrics.html
old_news.html
plugin-management.html
plugins.html
poweredbyhbase.html
project-info.html
project-reports.html
project-summary.html
pseudo-distributed.html
replication.html
resources.html
source-repository.html
sponsors.html
supportingprojects.html
team-list.html
testdevapidocs/index-all.html
testdevapidocs/org/apache/hadoop/hbase/package-tree.html
testdevapidocs/org/apache/hadoop/hbase/procedure2/package-tree.html
testdevapidocs/org/apache/hadoop/hbase/regionserver/package-tree.html
testdevapidocs/org/apache/hadoop/hbase/snapshot/TestMobRestoreSnapshotHelper.html
testdevapidocs/org/apache/hadoop/hbase/snapshot/TestRestoreSnapshotHelper.html
testdevapidocs/org/apache/hadoop/hbase/test/package-tree.html
testdevapidocs/org/apache/hadoop/hbase/wal/package-tree.html
testdevapidocs/src-html/org/apache/hadoop/hbase/snapshot/TestMobRestoreSnapshotHelper.html
testdevapidocs/src-html/org/apache/hadoop/hbase/snapshot/TestRestoreSnapshotHelper.html

index cf2bcc4..4b6e7b6 100644 (file)
@@ -7,7 +7,7 @@
   <head>
     <meta charset="UTF-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <meta name="Date-Revision-yyyymmdd" content="20181128" />
+    <meta name="Date-Revision-yyyymmdd" content="20181129" />
     <meta http-equiv="Content-Language" content="en" />
     <title>Apache HBase &#x2013;  
       Apache HBase (TM) ACID Properties
@@ -611,7 +611,7 @@ under the License. -->
                         <a href="https://www.apache.org/">The Apache Software Foundation</a>.
             All rights reserved.      
                     
-                  <li id="publishDate" class="pull-right">Last Published: 2018-11-28</li>
+                  <li id="publishDate" class="pull-right">Last Published: 2018-11-29</li>
             </p>
                 </div>
 
index e2b3c1b..51dd0e2 100644 (file)
@@ -5,8 +5,8 @@
 /Author (Apache HBase Team)
 /Creator (Asciidoctor PDF 1.5.0.alpha.15, based on Prawn 2.2.2)
 /Producer (Apache HBase Team)
-/ModDate (D:20181128143317+00'00')
-/CreationDate (D:20181128144858+00'00')
+/ModDate (D:20181129143256+00'00')
+/CreationDate (D:20181129144916+00'00')
 >>
 endobj
 2 0 obj
index f34c6d0..f16fd65 100644 (file)
--- a/book.html
+++ b/book.html
@@ -41318,7 +41318,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 2018-11-28 14:33:17 UTC
+Last updated 2018-11-29 14:32:56 UTC
 </div>
 </div>
 </body>
index 8a8caa6..02c7716 100644 (file)
@@ -7,7 +7,7 @@
   <head>
     <meta charset="UTF-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <meta name="Date-Revision-yyyymmdd" content="20181128" />
+    <meta name="Date-Revision-yyyymmdd" content="20181129" />
     <meta http-equiv="Content-Language" content="en" />
     <title>Apache HBase &#x2013;  
       Bulk Loads in Apache HBase (TM)
@@ -316,7 +316,7 @@ under the License. -->
                         <a href="https://www.apache.org/">The Apache Software Foundation</a>.
             All rights reserved.      
                     
-                  <li id="publishDate" class="pull-right">Last Published: 2018-11-28</li>
+                  <li id="publishDate" class="pull-right">Last Published: 2018-11-29</li>
             </p>
                 </div>
 
index 54585d6..3799def 100644 (file)
@@ -7,7 +7,7 @@
   <head>
     <meta charset="UTF-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <meta name="Date-Revision-yyyymmdd" content="20181128" />
+    <meta name="Date-Revision-yyyymmdd" content="20181129" />
     <meta http-equiv="Content-Language" content="en" />
     <title>Apache HBase &#x2013; Checkstyle Results</title>
     <link rel="stylesheet" href="./css/apache-maven-fluido-1.4-HBase.min.css" />
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>333</td></tr>
+<td>334</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>345</td></tr>
+<td>346</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>346</td></tr>
+<td>347</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>373</td></tr>
+<td>374</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>374</td></tr>
+<td>375</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>389</td></tr>
+<td>390</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>450</td></tr>
+<td>451</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>480</td></tr></table></div>
+<td>509</td></tr></table></div>
 <div class="section">
 <h3 id="org.apache.hadoop.hbase.master.procedure.EnableTableProcedure.java">org/apache/hadoop/hbase/master/procedure/EnableTableProcedure.java</h3>
 <table border="0" class="table table-striped">
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>377</td></tr>
+<td>387</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>426</td></tr>
+<td>458</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>476</td></tr>
+<td>508</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>527</td></tr>
+<td>559</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>551</td></tr>
+<td>583</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>578</td></tr>
+<td>610</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>604</td></tr>
+<td>636</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>631</td></tr>
+<td>663</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 133).</td>
-<td>634</td></tr>
+<td>666</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>660</td></tr>
+<td>692</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>703</td></tr>
+<td>735</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 133).</td>
-<td>808</td></tr>
+<td>840</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 104).</td>
-<td>910</td></tr></table></div>
+<td>942</td></tr></table></div>
 <div class="section">
 <h3 id="org.apache.hadoop.hbase.mob.TestDefaultMobStoreFlusher.java">org/apache/hadoop/hbase/mob/TestDefaultMobStoreFlusher.java</h3>
 <table border="0" class="table table-striped">
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 103).</td>
-<td>104</td></tr>
+<td>169</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 105).</td>
-<td>146</td></tr></table></div>
+<td>211</td></tr></table></div>
 <div class="section">
 <h3 id="org.apache.hadoop.hbase.test.IntegrationTestBigLinkedList.java">org/apache/hadoop/hbase/test/IntegrationTestBigLinkedList.java</h3>
 <table border="0" class="table table-striped">
                         <a href="https://www.apache.org/">The Apache Software Foundation</a>.
             All rights reserved.      
                     
-                  <li id="publishDate" class="pull-right">Last Published: 2018-11-28</li>
+                  <li id="publishDate" class="pull-right">Last Published: 2018-11-29</li>
             </p>
                 </div>
 
index b7e3abf..3313c8d 100644 (file)
--- a/coc.html
+++ b/coc.html
@@ -7,7 +7,7 @@
   <head>
     <meta charset="UTF-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <meta name="Date-Revision-yyyymmdd" content="20181128" />
+    <meta name="Date-Revision-yyyymmdd" content="20181129" />
     <meta http-equiv="Content-Language" content="en" />
     <title>Apache HBase &#x2013; 
       Code of Conduct Policy
@@ -385,7 +385,7 @@ email to <a class="externalLink" href="mailto:private@hbase.apache.org">the priv
                         <a href="https://www.apache.org/">The Apache Software Foundation</a>.
             All rights reserved.      
                     
-                  <li id="publishDate" class="pull-right">Last Published: 2018-11-28</li>
+                  <li id="publishDate" class="pull-right">Last Published: 2018-11-29</li>
             </p>
                 </div>
 
index fc18d96..2ba0fd5 100644 (file)
@@ -7,7 +7,7 @@
   <head>
     <meta charset="UTF-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <meta name="Date-Revision-yyyymmdd" content="20181128" />
+    <meta name="Date-Revision-yyyymmdd" content="20181129" />
     <meta http-equiv="Content-Language" content="en" />
     <title>Apache HBase &#x2013; Project Dependencies</title>
     <link rel="stylesheet" href="./css/apache-maven-fluido-1.4-HBase.min.css" />
                         <a href="https://www.apache.org/">The Apache Software Foundation</a>.
             All rights reserved.      
                     
-                  <li id="publishDate" class="pull-right">Last Published: 2018-11-28</li>
+                  <li id="publishDate" class="pull-right">Last Published: 2018-11-29</li>
             </p>
                 </div>
 
index 9d4c7c7..b702009 100644 (file)
@@ -7,7 +7,7 @@
   <head>
     <meta charset="UTF-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <meta name="Date-Revision-yyyymmdd" content="20181128" />
+    <meta name="Date-Revision-yyyymmdd" content="20181129" />
     <meta http-equiv="Content-Language" content="en" />
     <title>Apache HBase &#x2013; Reactor Dependency Convergence</title>
     <link rel="stylesheet" href="./css/apache-maven-fluido-1.4-HBase.min.css" />
                         <a href="https://www.apache.org/">The Apache Software Foundation</a>.
             All rights reserved.      
                     
-                  <li id="publishDate" class="pull-right">Last Published: 2018-11-28</li>
+                  <li id="publishDate" class="pull-right">Last Published: 2018-11-29</li>
             </p>
                 </div>
 
index 93f42b3..70a76f9 100644 (file)
@@ -7,7 +7,7 @@
   <head>
     <meta charset="UTF-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <meta name="Date-Revision-yyyymmdd" content="20181128" />
+    <meta name="Date-Revision-yyyymmdd" content="20181129" />
     <meta http-equiv="Content-Language" content="en" />
     <title>Apache HBase &#x2013; Dependency Information</title>
     <link rel="stylesheet" href="./css/apache-maven-fluido-1.4-HBase.min.css" />
                         <a href="https://www.apache.org/">The Apache Software Foundation</a>.
             All rights reserved.      
                     
-                  <li id="publishDate" class="pull-right">Last Published: 2018-11-28</li>
+                  <li id="publishDate" class="pull-right">Last Published: 2018-11-29</li>
             </p>
                 </div>
 
index 51b24e1..e9fc9d2 100644 (file)
@@ -7,7 +7,7 @@
   <head>
     <meta charset="UTF-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <meta name="Date-Revision-yyyymmdd" content="20181128" />
+    <meta name="Date-Revision-yyyymmdd" content="20181129" />
     <meta http-equiv="Content-Language" content="en" />
     <title>Apache HBase &#x2013; Project Dependency Management</title>
     <link rel="stylesheet" href="./css/apache-maven-fluido-1.4-HBase.min.css" />
                         <a href="https://www.apache.org/">The Apache Software Foundation</a>.
             All rights reserved.      
                     
-                  <li id="publishDate" class="pull-right">Last Published: 2018-11-28</li>
+                  <li id="publishDate" class="pull-right">Last Published: 2018-11-29</li>
             </p>
                 </div>
 
index 37ae1fe..62c0757 100644 (file)
 <!--   -->
 </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>"Wed Nov 28 14:43:50 UTC 2018"</code></td>
+<td class="colLast"><code>"Thu Nov 29 14:44:16 UTC 2018"</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#srcChecksum">srcChecksum</a></code></td>
-<td class="colLast"><code>"b23360ee266f58ff8faf957fba61f6ed"</code></td>
+<td class="colLast"><code>"76c50b67ef7b146f8930329762e594c4"</code></td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><a name="org.apache.hadoop.hbase.Version.url">
index 1e05a3b..06b812b 100644 (file)
 <dd>
 <div class="block">Gets the root dir of the mob files.</div>
 </dd>
+<dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/mob/MobUtils.html#getMobHome-org.apache.hadoop.fs.Path-">getMobHome(Path)</a></span> - Static method in class org.apache.hadoop.hbase.mob.<a href="org/apache/hadoop/hbase/mob/MobUtils.html" title="class in org.apache.hadoop.hbase.mob">MobUtils</a></dt>
+<dd>
+<div class="block">Gets the root dir of the mob files under the qualified HBase root dir.</div>
+</dd>
 <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/io/HFileLink.html#getMobPath--">getMobPath()</a></span> - Method in class org.apache.hadoop.hbase.io.<a href="org/apache/hadoop/hbase/io/HFileLink.html" title="class in org.apache.hadoop.hbase.io">HFileLink</a></dt>
 <dd>&nbsp;</dd>
 <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/mob/MobUtils.html#getMobRegionInfo-org.apache.hadoop.hbase.TableName-">getMobRegionInfo(TableName)</a></span> - Static method in class org.apache.hadoop.hbase.mob.<a href="org/apache/hadoop/hbase/mob/MobUtils.html" title="class in org.apache.hadoop.hbase.mob">MobUtils</a></dt>
 <dd>
 <div class="block">Gets the region dir of the mob files.</div>
 </dd>
+<dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/mob/MobUtils.html#getMobRegionPath-org.apache.hadoop.fs.Path-org.apache.hadoop.hbase.TableName-">getMobRegionPath(Path, TableName)</a></span> - Static method in class org.apache.hadoop.hbase.mob.<a href="org/apache/hadoop/hbase/mob/MobUtils.html" title="class in org.apache.hadoop.hbase.mob">MobUtils</a></dt>
+<dd>
+<div class="block">Gets the region dir of the mob files under the specified root dir.</div>
+</dd>
 <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/regionserver/HMobStore.html#getMobScanCellsCount--">getMobScanCellsCount()</a></span> - Method in class org.apache.hadoop.hbase.regionserver.<a href="org/apache/hadoop/hbase/regionserver/HMobStore.html" title="class in org.apache.hadoop.hbase.regionserver">HMobStore</a></dt>
 <dd>&nbsp;</dd>
 <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/regionserver/MetricsRegionServerWrapper.html#getMobScanCellsCount--">getMobScanCellsCount()</a></span> - Method in interface org.apache.hadoop.hbase.regionserver.<a href="org/apache/hadoop/hbase/regionserver/MetricsRegionServerWrapper.html" title="interface in org.apache.hadoop.hbase.regionserver">MetricsRegionServerWrapper</a></dt>
 <dd>&nbsp;</dd>
 <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/snapshot/SnapshotInfo.SnapshotStats.html#getMobStoreFilesSize--">getMobStoreFilesSize()</a></span> - Method in class org.apache.hadoop.hbase.snapshot.<a href="org/apache/hadoop/hbase/snapshot/SnapshotInfo.SnapshotStats.html" title="class in org.apache.hadoop.hbase.snapshot">SnapshotInfo.SnapshotStats</a></dt>
 <dd>&nbsp;</dd>
+<dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/mob/MobUtils.html#getMobTableDir-org.apache.hadoop.fs.Path-org.apache.hadoop.hbase.TableName-">getMobTableDir(Path, TableName)</a></span> - Static method in class org.apache.hadoop.hbase.mob.<a href="org/apache/hadoop/hbase/mob/MobUtils.html" title="class in org.apache.hadoop.hbase.mob">MobUtils</a></dt>
+<dd>
+<div class="block">Gets the table dir of the mob files under the qualified HBase root dir.</div>
+</dd>
 <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/client/ColumnFamilyDescriptor.html#getMobThreshold--">getMobThreshold()</a></span> - Method in interface org.apache.hadoop.hbase.client.<a href="org/apache/hadoop/hbase/client/ColumnFamilyDescriptor.html" title="interface in org.apache.hadoop.hbase.client">ColumnFamilyDescriptor</a></dt>
 <dd>
 <div class="block">Gets the mob threshold of the family.</div>
 <dd>&nbsp;</dd>
 <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/master/procedure/CreateTableProcedure.html#moveTempDirectoryToHBaseRoot-org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv-org.apache.hadoop.hbase.client.TableDescriptor-org.apache.hadoop.fs.Path-">moveTempDirectoryToHBaseRoot(MasterProcedureEnv, TableDescriptor, Path)</a></span> - Static method in class org.apache.hadoop.hbase.master.procedure.<a href="org/apache/hadoop/hbase/master/procedure/CreateTableProcedure.html" title="class in org.apache.hadoop.hbase.master.procedure">CreateTableProcedure</a></dt>
 <dd>&nbsp;</dd>
+<dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#moveTempMobDirectoryToHBaseRoot-org.apache.hadoop.hbase.master.MasterFileSystem-org.apache.hadoop.hbase.client.TableDescriptor-org.apache.hadoop.fs.Path-">moveTempMobDirectoryToHBaseRoot(MasterFileSystem, TableDescriptor, Path)</a></span> - Method in class org.apache.hadoop.hbase.master.procedure.<a href="org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html" title="class in org.apache.hadoop.hbase.master.procedure">CloneSnapshotProcedure</a></dt>
+<dd>
+<div class="block">Move table temp mob directory to the hbase root location</div>
+</dd>
 <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/io/util/LRUDictionary.BidirectionalLRUMap.html#moveToHead-org.apache.hadoop.hbase.io.util.LRUDictionary.BidirectionalLRUMap.Node-">moveToHead(LRUDictionary.BidirectionalLRUMap.Node)</a></span> - Method in class org.apache.hadoop.hbase.io.util.<a href="org/apache/hadoop/hbase/io/util/LRUDictionary.BidirectionalLRUMap.html" title="class in org.apache.hadoop.hbase.io.util">LRUDictionary.BidirectionalLRUMap</a></dt>
 <dd>&nbsp;</dd>
 <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/procedure2/store/wal/WALProcedureTree.Iter.html#moveToNext--">moveToNext()</a></span> - Method in class org.apache.hadoop.hbase.procedure2.store.wal.<a href="org/apache/hadoop/hbase/procedure2/store/wal/WALProcedureTree.Iter.html" title="class in org.apache.hadoop.hbase.procedure2.store.wal">WALProcedureTree.Iter</a></dt>
index c4b3203..f7aa217 100644 (file)
 <ul>
 <li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Enum</span></a>&lt;E&gt; (implements java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;T&gt;, java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>)
 <ul>
-<li type="circle">org.apache.hadoop.hbase.backup.<a href="../../../../../org/apache/hadoop/hbase/backup/BackupInfo.BackupState.html" title="enum in org.apache.hadoop.hbase.backup"><span class="typeNameLink">BackupInfo.BackupState</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.backup.<a href="../../../../../org/apache/hadoop/hbase/backup/BackupRestoreConstants.BackupCommand.html" title="enum in org.apache.hadoop.hbase.backup"><span class="typeNameLink">BackupRestoreConstants.BackupCommand</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.backup.<a href="../../../../../org/apache/hadoop/hbase/backup/BackupInfo.BackupPhase.html" title="enum in org.apache.hadoop.hbase.backup"><span class="typeNameLink">BackupInfo.BackupPhase</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.backup.<a href="../../../../../org/apache/hadoop/hbase/backup/BackupType.html" title="enum in org.apache.hadoop.hbase.backup"><span class="typeNameLink">BackupType</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.backup.<a href="../../../../../org/apache/hadoop/hbase/backup/BackupInfo.BackupState.html" title="enum in org.apache.hadoop.hbase.backup"><span class="typeNameLink">BackupInfo.BackupState</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.backup.<a href="../../../../../org/apache/hadoop/hbase/backup/BackupInfo.BackupPhase.html" title="enum in org.apache.hadoop.hbase.backup"><span class="typeNameLink">BackupInfo.BackupPhase</span></a></li>
 </ul>
 </li>
 </ul>
index 9c791f6..889f577 100644 (file)
@@ -7877,6 +7877,20 @@ service.</div>
 </td>
 </tr>
 <tr class="rowColor">
+<td class="colFirst"><code>static org.apache.hadoop.fs.Path</code></td>
+<td class="colLast"><span class="typeNameLabel">MobUtils.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/mob/MobUtils.html#getMobRegionPath-org.apache.hadoop.fs.Path-org.apache.hadoop.hbase.TableName-">getMobRegionPath</a></span>(org.apache.hadoop.fs.Path&nbsp;rootDir,
+                <a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tableName)</code>
+<div class="block">Gets the region dir of the mob files under the specified root dir.</div>
+</td>
+</tr>
+<tr class="altColor">
+<td class="colFirst"><code>static org.apache.hadoop.fs.Path</code></td>
+<td class="colLast"><span class="typeNameLabel">MobUtils.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/mob/MobUtils.html#getMobTableDir-org.apache.hadoop.fs.Path-org.apache.hadoop.hbase.TableName-">getMobTableDir</a></span>(org.apache.hadoop.fs.Path&nbsp;rootDir,
+              <a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tableName)</code>
+<div class="block">Gets the table dir of the mob files under the qualified HBase root dir.</div>
+</td>
+</tr>
+<tr class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a></code></td>
 <td class="colLast"><span class="typeNameLabel">MobUtils.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/mob/MobUtils.html#getTableLockName-org.apache.hadoop.hbase.TableName-">getTableLockName</a></span>(<a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tn)</code>
 <div class="block">Gets the table name used in the table lock.</div>
index e6dfb8d..7e498ea 100644 (file)
@@ -1709,6 +1709,14 @@ Input/OutputFormats, a table indexing MapReduce job, and utility methods.</div>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><code>private void</code></td>
+<td class="colLast"><span class="typeNameLabel">CloneSnapshotProcedure.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#moveTempMobDirectoryToHBaseRoot-org.apache.hadoop.hbase.master.MasterFileSystem-org.apache.hadoop.hbase.client.TableDescriptor-org.apache.hadoop.fs.Path-">moveTempMobDirectoryToHBaseRoot</a></span>(<a href="../../../../../../org/apache/hadoop/hbase/master/MasterFileSystem.html" title="class in org.apache.hadoop.hbase.master">MasterFileSystem</a>&nbsp;mfs,
+                               <a href="../../../../../../org/apache/hadoop/hbase/client/TableDescriptor.html" title="interface in org.apache.hadoop.hbase.client">TableDescriptor</a>&nbsp;tableDescriptor,
+                               org.apache.hadoop.fs.Path&nbsp;tempMobTableDir)</code>
+<div class="block">Move table temp mob directory to the hbase root location</div>
+</td>
+</tr>
+<tr class="altColor">
+<td class="colFirst"><code>private void</code></td>
 <td class="colLast"><span class="typeNameLabel">ModifyTableProcedure.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/master/procedure/ModifyTableProcedure.html#updateReplicaColumnsIfNeeded-org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv-org.apache.hadoop.hbase.client.TableDescriptor-org.apache.hadoop.hbase.client.TableDescriptor-">updateReplicaColumnsIfNeeded</a></span>(<a href="../../../../../../org/apache/hadoop/hbase/master/procedure/MasterProcedureEnv.html" title="class in org.apache.hadoop.hbase.master.procedure">MasterProcedureEnv</a>&nbsp;env,
                             <a href="../../../../../../org/apache/hadoop/hbase/client/TableDescriptor.html" title="interface in org.apache.hadoop.hbase.client">TableDescriptor</a>&nbsp;oldTableDescriptor,
                             <a href="../../../../../../org/apache/hadoop/hbase/client/TableDescriptor.html" title="interface in org.apache.hadoop.hbase.client">TableDescriptor</a>&nbsp;newTableDescriptor)</code>
index 0a69c99..8e0b84b 100644 (file)
 <ul>
 <li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Enum</span></a>&lt;E&gt; (implements java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;T&gt;, java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>)
 <ul>
-<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/AsyncProcessTask.SubmittedRows.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">AsyncProcessTask.SubmittedRows</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/RequestController.ReturnCode.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">RequestController.ReturnCode</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/IsolationLevel.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">IsolationLevel</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/AbstractResponse.ResponseType.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">AbstractResponse.ResponseType</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/CompactType.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">CompactType</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/SnapshotType.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">SnapshotType</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/CompactionState.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">CompactionState</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/TableState.State.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">TableState.State</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/ScannerCallable.MoreResults.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">ScannerCallable.MoreResults</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/MasterSwitchType.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">MasterSwitchType</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/RegionLocateType.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">RegionLocateType</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/TableState.State.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">TableState.State</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/Scan.ReadType.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">Scan.ReadType</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/Durability.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">Durability</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/ScannerCallable.MoreResults.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">ScannerCallable.MoreResults</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/MobCompactPartitionPolicy.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">MobCompactPartitionPolicy</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/CompactType.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">CompactType</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/AbstractResponse.ResponseType.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">AbstractResponse.ResponseType</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/AsyncScanSingleRegionRpcRetryingCaller.ScanControllerState.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">AsyncScanSingleRegionRpcRetryingCaller.ScanControllerState</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/AsyncScanSingleRegionRpcRetryingCaller.ScanResumerState.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">AsyncScanSingleRegionRpcRetryingCaller.ScanResumerState</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/SnapshotType.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">SnapshotType</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/AsyncProcessTask.SubmittedRows.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">AsyncProcessTask.SubmittedRows</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/AsyncRequestFutureImpl.Retry.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">AsyncRequestFutureImpl.Retry</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/CompactionState.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">CompactionState</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/RegionLocateType.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">RegionLocateType</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/RequestController.ReturnCode.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">RequestController.ReturnCode</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/Consistency.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">Consistency</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/MobCompactPartitionPolicy.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">MobCompactPartitionPolicy</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/AsyncScanSingleRegionRpcRetryingCaller.ScanControllerState.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">AsyncScanSingleRegionRpcRetryingCaller.ScanControllerState</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/Durability.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">Durability</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.client.<a href="../../../../../org/apache/hadoop/hbase/client/IsolationLevel.html" title="enum in org.apache.hadoop.hbase.client"><span class="typeNameLink">IsolationLevel</span></a></li>
 </ul>
 </li>
 </ul>
index ae0124e..ce950b0 100644 (file)
 <ul>
 <li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Enum</span></a>&lt;E&gt; (implements java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;T&gt;, java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>)
 <ul>
-<li type="circle">org.apache.hadoop.hbase.executor.<a href="../../../../../org/apache/hadoop/hbase/executor/ExecutorType.html" title="enum in org.apache.hadoop.hbase.executor"><span class="typeNameLink">ExecutorType</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.executor.<a href="../../../../../org/apache/hadoop/hbase/executor/EventType.html" title="enum in org.apache.hadoop.hbase.executor"><span class="typeNameLink">EventType</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.executor.<a href="../../../../../org/apache/hadoop/hbase/executor/ExecutorType.html" title="enum in org.apache.hadoop.hbase.executor"><span class="typeNameLink">ExecutorType</span></a></li>
 </ul>
 </li>
 </ul>
index 2aafe24..53764dc 100644 (file)
 <ul>
 <li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Enum</span></a>&lt;E&gt; (implements java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;T&gt;, java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>)
 <ul>
-<li type="circle">org.apache.hadoop.hbase.filter.<a href="../../../../../org/apache/hadoop/hbase/filter/FilterWrapper.FilterRowRetCode.html" title="enum in org.apache.hadoop.hbase.filter"><span class="typeNameLink">FilterWrapper.FilterRowRetCode</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.filter.<a href="../../../../../org/apache/hadoop/hbase/filter/Filter.ReturnCode.html" title="enum in org.apache.hadoop.hbase.filter"><span class="typeNameLink">Filter.ReturnCode</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.filter.<a href="../../../../../org/apache/hadoop/hbase/filter/CompareFilter.CompareOp.html" title="enum in org.apache.hadoop.hbase.filter"><span class="typeNameLink">CompareFilter.CompareOp</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.filter.<a href="../../../../../org/apache/hadoop/hbase/filter/BitComparator.BitwiseOp.html" title="enum in org.apache.hadoop.hbase.filter"><span class="typeNameLink">BitComparator.BitwiseOp</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.filter.<a href="../../../../../org/apache/hadoop/hbase/filter/FilterList.Operator.html" title="enum in org.apache.hadoop.hbase.filter"><span class="typeNameLink">FilterList.Operator</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.filter.<a href="../../../../../org/apache/hadoop/hbase/filter/FuzzyRowFilter.SatisfiesCode.html" title="enum in org.apache.hadoop.hbase.filter"><span class="typeNameLink">FuzzyRowFilter.SatisfiesCode</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.filter.<a href="../../../../../org/apache/hadoop/hbase/filter/FuzzyRowFilter.Order.html" title="enum in org.apache.hadoop.hbase.filter"><span class="typeNameLink">FuzzyRowFilter.Order</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.filter.<a href="../../../../../org/apache/hadoop/hbase/filter/FuzzyRowFilter.SatisfiesCode.html" title="enum in org.apache.hadoop.hbase.filter"><span class="typeNameLink">FuzzyRowFilter.SatisfiesCode</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.filter.<a href="../../../../../org/apache/hadoop/hbase/filter/CompareFilter.CompareOp.html" title="enum in org.apache.hadoop.hbase.filter"><span class="typeNameLink">CompareFilter.CompareOp</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.filter.<a href="../../../../../org/apache/hadoop/hbase/filter/BitComparator.BitwiseOp.html" title="enum in org.apache.hadoop.hbase.filter"><span class="typeNameLink">BitComparator.BitwiseOp</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.filter.<a href="../../../../../org/apache/hadoop/hbase/filter/Filter.ReturnCode.html" title="enum in org.apache.hadoop.hbase.filter"><span class="typeNameLink">Filter.ReturnCode</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.filter.<a href="../../../../../org/apache/hadoop/hbase/filter/RegexStringComparator.EngineType.html" title="enum in org.apache.hadoop.hbase.filter"><span class="typeNameLink">RegexStringComparator.EngineType</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.filter.<a href="../../../../../org/apache/hadoop/hbase/filter/FilterWrapper.FilterRowRetCode.html" title="enum in org.apache.hadoop.hbase.filter"><span class="typeNameLink">FilterWrapper.FilterRowRetCode</span></a></li>
 </ul>
 </li>
 </ul>
index 8ef67fa..f8af1b7 100644 (file)
 <ul>
 <li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Enum</span></a>&lt;E&gt; (implements java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;T&gt;, java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>)
 <ul>
-<li type="circle">org.apache.hadoop.hbase.io.hfile.<a href="../../../../../../org/apache/hadoop/hbase/io/hfile/BlockPriority.html" title="enum in org.apache.hadoop.hbase.io.hfile"><span class="typeNameLink">BlockPriority</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.io.hfile.<a href="../../../../../../org/apache/hadoop/hbase/io/hfile/CacheConfig.ExternalBlockCaches.html" title="enum in org.apache.hadoop.hbase.io.hfile"><span class="typeNameLink">CacheConfig.ExternalBlockCaches</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.io.hfile.<a href="../../../../../../org/apache/hadoop/hbase/io/hfile/HFileBlock.Writer.State.html" title="enum in org.apache.hadoop.hbase.io.hfile"><span class="typeNameLink">HFileBlock.Writer.State</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.io.hfile.<a href="../../../../../../org/apache/hadoop/hbase/io/hfile/BlockType.BlockCategory.html" title="enum in org.apache.hadoop.hbase.io.hfile"><span class="typeNameLink">BlockType.BlockCategory</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.io.hfile.<a href="../../../../../../org/apache/hadoop/hbase/io/hfile/Cacheable.MemoryType.html" title="enum in org.apache.hadoop.hbase.io.hfile"><span class="typeNameLink">Cacheable.MemoryType</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.io.hfile.<a href="../../../../../../org/apache/hadoop/hbase/io/hfile/BlockType.html" title="enum in org.apache.hadoop.hbase.io.hfile"><span class="typeNameLink">BlockType</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.io.hfile.<a href="../../../../../../org/apache/hadoop/hbase/io/hfile/CacheConfig.ExternalBlockCaches.html" title="enum in org.apache.hadoop.hbase.io.hfile"><span class="typeNameLink">CacheConfig.ExternalBlockCaches</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.io.hfile.<a href="../../../../../../org/apache/hadoop/hbase/io/hfile/HFileBlock.Writer.State.html" title="enum in org.apache.hadoop.hbase.io.hfile"><span class="typeNameLink">HFileBlock.Writer.State</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.io.hfile.<a href="../../../../../../org/apache/hadoop/hbase/io/hfile/BlockPriority.html" title="enum in org.apache.hadoop.hbase.io.hfile"><span class="typeNameLink">BlockPriority</span></a></li>
 </ul>
 </li>
 </ul>
index df0adf0..91a2ed4 100644 (file)
 <ul>
 <li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Enum</span></a>&lt;E&gt; (implements java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;T&gt;, java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>)
 <ul>
-<li type="circle">org.apache.hadoop.hbase.ipc.<a href="../../../../../org/apache/hadoop/hbase/ipc/MetricsHBaseServerSourceFactoryImpl.SourceStorage.html" title="enum in org.apache.hadoop.hbase.ipc"><span class="typeNameLink">MetricsHBaseServerSourceFactoryImpl.SourceStorage</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.ipc.<a href="../../../../../org/apache/hadoop/hbase/ipc/BufferCallBeforeInitHandler.BufferCallAction.html" title="enum in org.apache.hadoop.hbase.ipc"><span class="typeNameLink">BufferCallBeforeInitHandler.BufferCallAction</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.ipc.<a href="../../../../../org/apache/hadoop/hbase/ipc/CallEvent.Type.html" title="enum in org.apache.hadoop.hbase.ipc"><span class="typeNameLink">CallEvent.Type</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.ipc.<a href="../../../../../org/apache/hadoop/hbase/ipc/BufferCallBeforeInitHandler.BufferCallAction.html" title="enum in org.apache.hadoop.hbase.ipc"><span class="typeNameLink">BufferCallBeforeInitHandler.BufferCallAction</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.ipc.<a href="../../../../../org/apache/hadoop/hbase/ipc/MetricsHBaseServerSourceFactoryImpl.SourceStorage.html" title="enum in org.apache.hadoop.hbase.ipc"><span class="typeNameLink">MetricsHBaseServerSourceFactoryImpl.SourceStorage</span></a></li>
 </ul>
 </li>
 </ul>
index a77bff8..deb19ba 100644 (file)
 <ul>
 <li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Enum</span></a>&lt;E&gt; (implements java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;T&gt;, java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>)
 <ul>
-<li type="circle">org.apache.hadoop.hbase.mapreduce.<a href="../../../../../org/apache/hadoop/hbase/mapreduce/TableSplit.Version.html" title="enum in org.apache.hadoop.hbase.mapreduce"><span class="typeNameLink">TableSplit.Version</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.mapreduce.<a href="../../../../../org/apache/hadoop/hbase/mapreduce/RowCounter.RowCounterMapper.Counters.html" title="enum in org.apache.hadoop.hbase.mapreduce"><span class="typeNameLink">RowCounter.RowCounterMapper.Counters</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.mapreduce.<a href="../../../../../org/apache/hadoop/hbase/mapreduce/SyncTable.SyncMapper.Counter.html" title="enum in org.apache.hadoop.hbase.mapreduce"><span class="typeNameLink">SyncTable.SyncMapper.Counter</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.mapreduce.<a href="../../../../../org/apache/hadoop/hbase/mapreduce/CellCounter.CellCounterMapper.Counters.html" title="enum in org.apache.hadoop.hbase.mapreduce"><span class="typeNameLink">CellCounter.CellCounterMapper.Counters</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.mapreduce.<a href="../../../../../org/apache/hadoop/hbase/mapreduce/SyncTable.SyncMapper.Counter.html" title="enum in org.apache.hadoop.hbase.mapreduce"><span class="typeNameLink">SyncTable.SyncMapper.Counter</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.mapreduce.<a href="../../../../../org/apache/hadoop/hbase/mapreduce/RowCounter.RowCounterMapper.Counters.html" title="enum in org.apache.hadoop.hbase.mapreduce"><span class="typeNameLink">RowCounter.RowCounterMapper.Counters</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.mapreduce.<a href="../../../../../org/apache/hadoop/hbase/mapreduce/TableSplit.Version.html" title="enum in org.apache.hadoop.hbase.mapreduce"><span class="typeNameLink">TableSplit.Version</span></a></li>
 </ul>
 </li>
 </ul>
index abd92a9..1799704 100644 (file)
 <ul>
 <li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Enum</span></a>&lt;E&gt; (implements java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;T&gt;, java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>)
 <ul>
-<li type="circle">org.apache.hadoop.hbase.master.balancer.<a href="../../../../../../org/apache/hadoop/hbase/master/balancer/BaseLoadBalancer.Cluster.LocalityType.html" title="enum in org.apache.hadoop.hbase.master.balancer"><span class="typeNameLink">BaseLoadBalancer.Cluster.LocalityType</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.master.balancer.<a href="../../../../../../org/apache/hadoop/hbase/master/balancer/BaseLoadBalancer.Cluster.Action.Type.html" title="enum in org.apache.hadoop.hbase.master.balancer"><span class="typeNameLink">BaseLoadBalancer.Cluster.Action.Type</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.master.balancer.<a href="../../../../../../org/apache/hadoop/hbase/master/balancer/BaseLoadBalancer.Cluster.LocalityType.html" title="enum in org.apache.hadoop.hbase.master.balancer"><span class="typeNameLink">BaseLoadBalancer.Cluster.LocalityType</span></a></li>
 </ul>
 </li>
 </ul>
index 6b1d111..e6f792e 100644 (file)
 <td class="colLast"><span class="typeNameLabel">AbstractStateMachineNamespaceProcedure.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/master/procedure/AbstractStateMachineNamespaceProcedure.html#createDirectory-org.apache.hadoop.hbase.master.MasterFileSystem-org.apache.hadoop.hbase.NamespaceDescriptor-">createDirectory</a></span>(<a href="../../../../../../org/apache/hadoop/hbase/master/MasterFileSystem.html" title="class in org.apache.hadoop.hbase.master">MasterFileSystem</a>&nbsp;mfs,
                <a href="../../../../../../org/apache/hadoop/hbase/NamespaceDescriptor.html" title="class in org.apache.hadoop.hbase">NamespaceDescriptor</a>&nbsp;nsDescriptor)</code>&nbsp;</td>
 </tr>
+<tr class="rowColor">
+<td class="colFirst"><code>private void</code></td>
+<td class="colLast"><span class="typeNameLabel">CloneSnapshotProcedure.</span><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#moveTempMobDirectoryToHBaseRoot-org.apache.hadoop.hbase.master.MasterFileSystem-org.apache.hadoop.hbase.client.TableDescriptor-org.apache.hadoop.fs.Path-">moveTempMobDirectoryToHBaseRoot</a></span>(<a href="../../../../../../org/apache/hadoop/hbase/master/MasterFileSystem.html" title="class in org.apache.hadoop.hbase.master">MasterFileSystem</a>&nbsp;mfs,
+                               <a href="../../../../../../org/apache/hadoop/hbase/client/TableDescriptor.html" title="interface in org.apache.hadoop.hbase.client">TableDescriptor</a>&nbsp;tableDescriptor,
+                               org.apache.hadoop.fs.Path&nbsp;tempMobTableDir)</code>
+<div class="block">Move table temp mob directory to the hbase root location</div>
+</td>
+</tr>
 </tbody>
 </table>
 </li>
index af905dd..df71947 100644 (file)
 <ul>
 <li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Enum</span></a>&lt;E&gt; (implements java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;T&gt;, java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>)
 <ul>
-<li type="circle">org.apache.hadoop.hbase.master.<a href="../../../../../org/apache/hadoop/hbase/master/MasterRpcServices.BalanceSwitchMode.html" title="enum in org.apache.hadoop.hbase.master"><span class="typeNameLink">MasterRpcServices.BalanceSwitchMode</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.master.<a href="../../../../../org/apache/hadoop/hbase/master/RegionState.State.html" title="enum in org.apache.hadoop.hbase.master"><span class="typeNameLink">RegionState.State</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.master.<a href="../../../../../org/apache/hadoop/hbase/master/MetricsMasterSourceFactoryImpl.FactoryStorage.html" title="enum in org.apache.hadoop.hbase.master"><span class="typeNameLink">MetricsMasterSourceFactoryImpl.FactoryStorage</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.master.<a href="../../../../../org/apache/hadoop/hbase/master/SplitLogManager.ResubmitDirective.html" title="enum in org.apache.hadoop.hbase.master"><span class="typeNameLink">SplitLogManager.ResubmitDirective</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.master.<a href="../../../../../org/apache/hadoop/hbase/master/SplitLogManager.TerminationStatus.html" title="enum in org.apache.hadoop.hbase.master"><span class="typeNameLink">SplitLogManager.TerminationStatus</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.master.<a href="../../../../../org/apache/hadoop/hbase/master/SplitLogManager.ResubmitDirective.html" title="enum in org.apache.hadoop.hbase.master"><span class="typeNameLink">SplitLogManager.ResubmitDirective</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.master.<a href="../../../../../org/apache/hadoop/hbase/master/RegionState.State.html" title="enum in org.apache.hadoop.hbase.master"><span class="typeNameLink">RegionState.State</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.master.<a href="../../../../../org/apache/hadoop/hbase/master/MasterRpcServices.BalanceSwitchMode.html" title="enum in org.apache.hadoop.hbase.master"><span class="typeNameLink">MasterRpcServices.BalanceSwitchMode</span></a></li>
 </ul>
 </li>
 </ul>
index c4c233e..6264665 100644 (file)
@@ -18,7 +18,7 @@
     catch(err) {
     }
 //-->
-var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10};
+var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10};
 var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
 var altColor = "altColor";
 var rowColor = "rowColor";
@@ -129,7 +129,7 @@ var activeTableTab = "activeTableTab";
 <hr>
 <br>
 <pre>@InterfaceAudience.Private
-public class <a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.67">CloneSnapshotProcedure</a>
+public class <a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.68">CloneSnapshotProcedure</a>
 extends <a href="../../../../../../org/apache/hadoop/hbase/master/procedure/AbstractStateMachineTableProcedure.html" title="class in org.apache.hadoop.hbase.master.procedure">AbstractStateMachineTableProcedure</a>&lt;org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.CloneSnapshotState&gt;</pre>
 </li>
 </ul>
@@ -364,41 +364,49 @@ extends <a href="../../../../../../org/apache/hadoop/hbase/master/procedure/Abst
 </tr>
 <tr id="i13" class="rowColor">
 <td class="colFirst"><code>private void</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#moveTempMobDirectoryToHBaseRoot-org.apache.hadoop.hbase.master.MasterFileSystem-org.apache.hadoop.hbase.client.TableDescriptor-org.apache.hadoop.fs.Path-">moveTempMobDirectoryToHBaseRoot</a></span>(<a href="../../../../../../org/apache/hadoop/hbase/master/MasterFileSystem.html" title="class in org.apache.hadoop.hbase.master">MasterFileSystem</a>&nbsp;mfs,
+                               <a href="../../../../../../org/apache/hadoop/hbase/client/TableDescriptor.html" title="interface in org.apache.hadoop.hbase.client">TableDescriptor</a>&nbsp;tableDescriptor,
+                               org.apache.hadoop.fs.Path&nbsp;tempMobTableDir)</code>
+<div class="block">Move table temp mob directory to the hbase root location</div>
+</td>
+</tr>
+<tr id="i14" class="altColor">
+<td class="colFirst"><code>private void</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#postCloneSnapshot-org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv-">postCloneSnapshot</a></span>(<a href="../../../../../../org/apache/hadoop/hbase/master/procedure/MasterProcedureEnv.html" title="class in org.apache.hadoop.hbase.master.procedure">MasterProcedureEnv</a>&nbsp;env)</code>
 <div class="block">Action after cloning from snapshot.</div>
 </td>
 </tr>
-<tr id="i14" class="altColor">
+<tr id="i15" class="rowColor">
 <td class="colFirst"><code>private void</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#preCloneSnapshot-org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv-">preCloneSnapshot</a></span>(<a href="../../../../../../org/apache/hadoop/hbase/master/procedure/MasterProcedureEnv.html" title="class in org.apache.hadoop.hbase.master.procedure">MasterProcedureEnv</a>&nbsp;env)</code>
 <div class="block">Action before cloning from snapshot.</div>
 </td>
 </tr>
-<tr id="i15" class="rowColor">
+<tr id="i16" class="altColor">
 <td class="colFirst"><code>private void</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#prepareClone-org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv-">prepareClone</a></span>(<a href="../../../../../../org/apache/hadoop/hbase/master/procedure/MasterProcedureEnv.html" title="class in org.apache.hadoop.hbase.master.procedure">MasterProcedureEnv</a>&nbsp;env)</code>
 <div class="block">Action before any real action of cloning from snapshot.</div>
 </td>
 </tr>
-<tr id="i16" class="altColor">
+<tr id="i17" class="rowColor">
 <td class="colFirst"><code>private void</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#restoreSnapshotAcl-org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv-">restoreSnapshotAcl</a></span>(<a href="../../../../../../org/apache/hadoop/hbase/master/procedure/MasterProcedureEnv.html" title="class in org.apache.hadoop.hbase.master.procedure">MasterProcedureEnv</a>&nbsp;env)</code>&nbsp;</td>
 </tr>
-<tr id="i17" class="rowColor">
+<tr id="i18" class="altColor">
 <td class="colFirst"><code>protected void</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#rollbackState-org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv-org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.CloneSnapshotState-">rollbackState</a></span>(<a href="../../../../../../org/apache/hadoop/hbase/master/procedure/MasterProcedureEnv.html" title="class in org.apache.hadoop.hbase.master.procedure">MasterProcedureEnv</a>&nbsp;env,
              org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.CloneSnapshotState&nbsp;state)</code>
 <div class="block">called to perform the rollback of the specified state</div>
 </td>
 </tr>
-<tr id="i18" class="altColor">
+<tr id="i19" class="rowColor">
 <td class="colFirst"><code>protected void</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#serializeStateData-org.apache.hadoop.hbase.procedure2.ProcedureStateSerializer-">serializeStateData</a></span>(<a href="../../../../../../org/apache/hadoop/hbase/procedure2/ProcedureStateSerializer.html" title="interface in org.apache.hadoop.hbase.procedure2">ProcedureStateSerializer</a>&nbsp;serializer)</code>
 <div class="block">The user-level code of the procedure may have some state to
  persist (e.g.</div>
 </td>
 </tr>
-<tr id="i19" class="rowColor">
+<tr id="i20" class="altColor">
 <td class="colFirst"><code>void</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#toStringClassDetails-java.lang.StringBuilder-">toStringClassDetails</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/StringBuilder.html?is-external=true" title="class or interface in java.lang">StringBuilder</a>&nbsp;sb)</code>
 <div class="block">Extend the toString() information with the procedure details
@@ -454,7 +462,7 @@ extends <a href="../../../../../../org/apache/hadoop/hbase/master/procedure/Abst
 <ul class="blockList">
 <li class="blockList">
 <h4>LOG</h4>
-<pre>private static final&nbsp;org.slf4j.Logger <a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.69">LOG</a></pre>
+<pre>private static final&nbsp;org.slf4j.Logger <a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.70">LOG</a></pre>
 </li>
 </ul>
 <a name="tableDescriptor">
@@ -463,7 +471,7 @@ extends <a href="../../../../../../org/apache/hadoop/hbase/master/procedure/Abst
 <ul class="blockList">
 <li class="blockList">
 <h4>tableDescriptor</h4>
-<pre>private&nbsp;<a href="../../../../../../org/apache/hadoop/hbase/client/TableDescriptor.html" title="interface in org.apache.hadoop.hbase.client">TableDescriptor</a> <a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.71">tableDescriptor</a></pre>
+<pre>private&nbsp;<a href="../../../../../../org/apache/hadoop/hbase/client/TableDescriptor.html" title="interface in org.apache.hadoop.hbase.client">TableDescriptor</a> <a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.72">tableDescriptor</a></pre>
 </li>
 </ul>
 <a name="snapshot">
@@ -472,7 +480,7 @@ extends <a href="../../../../../../org/apache/hadoop/hbase/master/procedure/Abst
 <ul class="blockList">
 <li class="blockList">
 <h4>snapshot</h4>
-<pre>private&nbsp;org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription <a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.72">snapshot</a></pre>
+<pre>private&nbsp;org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription <a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.73">snapshot</a></pre>
 </li>
 </ul>
 <a name="restoreAcl">
@@ -481,7 +489,7 @@ extends <a href="../../../../../../org/apache/hadoop/hbase/master/procedure/Abst
 <ul class="blockList">
 <li class="blockList">
 <h4>restoreAcl</h4>
-<pre>private&nbsp;boolean <a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.73">restoreAcl</a></pre>
+<pre>private&nbsp;boolean <a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.74">restoreAcl</a></pre>
 </li>
 </ul>
 <a name="newRegions">
@@ -490,7 +498,7 @@ extends <a href="../../../../../../org/apache/hadoop/hbase/master/procedure/Abst
 <ul class="blockList">
 <li class="blockList">
 <h4>newRegions</h4>
-<pre>private&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&gt; <a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.74">newRegions</a></pre>
+<pre>private&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&gt; <a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.75">newRegions</a></pre>
 </li>
 </ul>
 <a name="parentsToChildrenPairMap">
@@ -499,7 +507,7 @@ extends <a href="../../../../../../org/apache/hadoop/hbase/master/procedure/Abst
 <ul class="blockList">
 <li class="blockList">
 <h4>parentsToChildrenPairMap</h4>
-<pre>private&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</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>,<a href="../../../../../../org/apache/hadoop/hbase/util/Pair.html" title="class in org.apache.hadoop.hbase.util">Pair</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>,<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;&gt; <a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.75">parentsToChildrenPairMap</a></pre>
+<pre>private&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</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>,<a href="../../../../../../org/apache/hadoop/hbase/util/Pair.html" title="class in org.apache.hadoop.hbase.util">Pair</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>,<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;&gt; <a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.76">parentsToChildrenPairMap</a></pre>
 </li>
 </ul>
 <a name="monitorStatus">
@@ -508,7 +516,7 @@ extends <a href="../../../../../../org/apache/hadoop/hbase/master/procedure/Abst
 <ul class="blockList">
 <li class="blockList">
 <h4>monitorStatus</h4>
-<pre>private&nbsp;<a href="../../../../../../org/apache/hadoop/hbase/monitoring/MonitoredTask.html" title="interface in org.apache.hadoop.hbase.monitoring">MonitoredTask</a> <a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.78">monitorStatus</a></pre>
+<pre>private&nbsp;<a href="../../../../../../org/apache/hadoop/hbase/monitoring/MonitoredTask.html" title="interface in org.apache.hadoop.hbase.monitoring">MonitoredTask</a> <a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.79">monitorStatus</a></pre>
 </li>
 </ul>
 <a name="traceEnabled">
@@ -517,7 +525,7 @@ extends <a href="../../../../../../org/apache/hadoop/hbase/master/procedure/Abst
 <ul class="blockListLast">
 <li class="blockList">
 <h4>traceEnabled</h4>
-<pre>private&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</a> <a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.80">traceEnabled</a></pre>
+<pre>private&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</a> <a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.81">traceEnabled</a></pre>
 </li>
 </ul>
 </li>
@@ -534,7 +542,7 @@ extends <a href="../../../../../../org/apache/hadoop/hbase/master/procedure/Abst
 <ul class="blockList">
 <li class="blockList">
 <h4>CloneSnapshotProcedure</h4>
-<pre>public&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.85">CloneSnapshotProcedure</a>()</pre>
+<pre>public&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.86">CloneSnapshotProcedure</a>()</pre>
 <div class="block">Constructor (for failover)</div>
 </li>
 </ul>
@@ -544,7 +552,7 @@ extends <a href="../../../../../../org/apache/hadoop/hbase/master/procedure/Abst
 <ul class="blockList">
 <li class="blockList">
 <h4>CloneSnapshotProcedure</h4>
-<pre>public&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.88">CloneSnapshotProcedure</a>(<a href="../../../../../../org/apache/hadoop/hbase/master/procedure/MasterProcedureEnv.html" title="class in org.apache.hadoop.hbase.master.procedure">MasterProcedureEnv</a>&nbsp;env,
+<pre>public&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.89">CloneSnapshotProcedure</a>(<a href="../../../../../../org/apache/hadoop/hbase/master/procedure/MasterProcedureEnv.html" title="class in org.apache.hadoop.hbase.master.procedure">MasterProcedureEnv</a>&nbsp;env,
                               <a href="../../../../../../org/apache/hadoop/hbase/client/TableDescriptor.html" title="interface in org.apache.hadoop.hbase.client">TableDescriptor</a>&nbsp;tableDescriptor,
                               org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription&nbsp;snapshot)</pre>
 </li>
@@ -555,7 +563,7 @@ extends <a href="../../../../../../org/apache/hadoop/hbase/master/procedure/Abst
 <ul class="blockListLast">
 <li class="blockList">
 <h4>CloneSnapshotProcedure</h4>
-<pre>public&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.99">CloneSnapshotProcedure</a>(<a href="../../../../../../org/apache/hadoop/hbase/master/procedure/MasterProcedureEnv.html" title="class in org.apache.hadoop.hbase.master.procedure">MasterProcedureEnv</a>&nbsp;env,
+<pre>public&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.100">CloneSnapshotProcedure</a>(<a href="../../../../../../org/apache/hadoop/hbase/master/procedure/MasterProcedureEnv.html" title="class in org.apache.hadoop.hbase.master.procedure">MasterProcedureEnv</a>&nbsp;env,
                               <a href="../../../../../../org/apache/hadoop/hbase/client/TableDescriptor.html" title="interface in org.apache.hadoop.hbase.client">TableDescriptor</a>&nbsp;tableDescriptor,
                               org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription&nbsp;snapshot,
                               boolean&nbsp;restoreAcl)</pre>
@@ -582,7 +590,7 @@ extends <a href="../../../../../../org/apache/hadoop/hbase/master/procedure/Abst
 <ul class="blockList">
 <li class="blockList">
 <h4>getMonitorStatus</h4>
-<pre>private&nbsp;<a href="../../../../../../org/apache/hadoop/hbase/monitoring/MonitoredTask.html" title="interface in org.apache.hadoop.hbase.monitoring">MonitoredTask</a>&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.113">getMonitorStatus</a>()</pre>
+<pre>private&nbsp;<a href="../../../../../../org/apache/hadoop/hbase/monitoring/MonitoredTask.html" title="interface in org.apache.hadoop.hbase.monitoring">MonitoredTask</a>&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.114">getMonitorStatus</a>()</pre>
 <div class="block">Set up monitor status if it is not created.</div>
 </li>
 </ul>
@@ -592,7 +600,7 @@ extends <a href="../../../../../../org/apache/hadoop/hbase/master/procedure/Abst
 <ul class="blockList">
 <li class="blockList">
 <h4>restoreSnapshotAcl</h4>
-<pre>private&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.121">restoreSnapshotAcl</a>(<a href="../../../../../../org/apache/hadoop/hbase/master/procedure/MasterProcedureEnv.html" title="class in org.apache.hadoop.hbase.master.procedure">MasterProcedureEnv</a>&nbsp;env)
+<pre>private&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.122">restoreSnapshotAcl</a>(<a href="../../../../../../org/apache/hadoop/hbase/master/procedure/MasterProcedureEnv.html" title="class in org.apache.hadoop.hbase.master.procedure">MasterProcedureEnv</a>&nbsp;env)
                          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>
@@ -606,7 +614,7 @@ extends <a href="../../../../../../org/apache/hadoop/hbase/master/procedure/Abst
 <ul class="blockList">
 <li class="blockList">
 <h4>executeFromState</h4>
-<pre>protected&nbsp;<a href="../../../../../../org/apache/hadoop/hbase/procedure2/StateMachineProcedure.Flow.html" title="enum in org.apache.hadoop.hbase.procedure2">StateMachineProcedure.Flow</a>&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.130">executeFromState</a>(<a href="../../../../../../org/apache/hadoop/hbase/master/procedure/MasterProcedureEnv.html" title="class in org.apache.hadoop.hbase.master.procedure">MasterProcedureEnv</a>&nbsp;env,
+<pre>protected&nbsp;<a href="../../../../../../org/apache/hadoop/hbase/procedure2/StateMachineProcedure.Flow.html" title="enum in org.apache.hadoop.hbase.procedure2">StateMachineProcedure.Flow</a>&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.131">executeFromState</a>(<a href="../../../../../../org/apache/hadoop/hbase/master/procedure/MasterProcedureEnv.html" title="class in org.apache.hadoop.hbase.master.procedure">MasterProcedureEnv</a>&nbsp;env,
                                                       org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.CloneSnapshotState&nbsp;state)
                                                throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a></pre>
 <div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../../org/apache/hadoop/hbase/procedure2/StateMachineProcedure.html#executeFromState-TEnvironment-TState-">StateMachineProcedure</a></code></span></div>
@@ -629,7 +637,7 @@ extends <a href="../../../../../../org/apache/hadoop/hbase/master/procedure/Abst
 <ul class="blockList">
 <li class="blockList">
 <h4>rollbackState</h4>
-<pre>protected&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.208">rollbackState</a>(<a href="../../../../../../org/apache/hadoop/hbase/master/procedure/MasterProcedureEnv.html" title="class in org.apache.hadoop.hbase.master.procedure">MasterProcedureEnv</a>&nbsp;env,
+<pre>protected&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.209">rollbackState</a>(<a href="../../../../../../org/apache/hadoop/hbase/master/procedure/MasterProcedureEnv.html" title="class in org.apache.hadoop.hbase.master.procedure">MasterProcedureEnv</a>&nbsp;env,
                              org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.CloneSnapshotState&nbsp;state)
                       throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
 <div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../../org/apache/hadoop/hbase/procedure2/StateMachineProcedure.html#rollbackState-TEnvironment-TState-">StateMachineProcedure</a></code></span></div>
@@ -649,7 +657,7 @@ extends <a href="../../../../../../org/apache/hadoop/hbase/master/procedure/Abst
 <ul class="blockList">
 <li class="blockList">
 <h4>isRollbackSupported</h4>
-<pre>protected&nbsp;boolean&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.221">isRollbackSupported</a>(org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.CloneSnapshotState&nbsp;state)</pre>
+<pre>protected&nbsp;boolean&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.222">isRollbackSupported</a>(org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.CloneSnapshotState&nbsp;state)</pre>
 <div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../../org/apache/hadoop/hbase/procedure2/StateMachineProcedure.html#isRollbackSupported-TState-">StateMachineProcedure</a></code></span></div>
 <div class="block">Used by the default implementation of abort() to know if the current state can be aborted
  and rollback can be triggered.</div>
@@ -665,7 +673,7 @@ extends <a href="../../../../../../org/apache/hadoop/hbase/master/procedure/Abst
 <ul class="blockList">
 <li class="blockList">
 <h4>getState</h4>
-<pre>protected&nbsp;org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.CloneSnapshotState&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.231">getState</a>(int&nbsp;stateId)</pre>
+<pre>protected&nbsp;org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.CloneSnapshotState&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.232">getState</a>(int&nbsp;stateId)</pre>
 <div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../../org/apache/hadoop/hbase/procedure2/StateMachineProcedure.html#getState-int-">StateMachineProcedure</a></code></span></div>
 <div class="block">Convert an ordinal (or state id) to an Enum (or more descriptive) state object.</div>
 <dl>
@@ -684,7 +692,7 @@ extends <a href="../../../../../../org/apache/hadoop/hbase/master/procedure/Abst
 <ul class="blockList">
 <li class="blockList">
 <h4>getStateId</h4>
-<pre>protected&nbsp;int&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.236">getStateId</a>(org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.CloneSnapshotState&nbsp;state)</pre>
+<pre>protected&nbsp;int&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.237">getStateId</a>(org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.CloneSnapshotState&nbsp;state)</pre>
 <div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../../org/apache/hadoop/hbase/procedure2/StateMachineProcedure.html#getStateId-TState-">StateMachineProcedure</a></code></span></div>
 <div class="block">Convert the Enum (or more descriptive) state object to an ordinal (or state id).</div>
 <dl>
@@ -703,7 +711,7 @@ extends <a href="../../../../../../org/apache/hadoop/hbase/master/procedure/Abst
 <ul class="blockList">
 <li class="blockList">
 <h4>getInitialState</h4>
-<pre>protected&nbsp;org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.CloneSnapshotState&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.241">getInitialState</a>()</pre>
+<pre>protected&nbsp;org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.CloneSnapshotState&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.242">getInitialState</a>()</pre>
 <div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../../org/apache/hadoop/hbase/procedure2/StateMachineProcedure.html#getInitialState--">StateMachineProcedure</a></code></span></div>
 <div class="block">Return the initial state object that will be used for the first call to executeFromState().</div>
 <dl>
@@ -720,7 +728,7 @@ extends <a href="../../../../../../org/apache/hadoop/hbase/master/procedure/Abst
 <ul class="blockList">
 <li class="blockList">
 <h4>getTableName</h4>
-<pre>public&nbsp;<a href="../../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.246">getTableName</a>()</pre>
+<pre>public&nbsp;<a href="../../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.247">getTableName</a>()</pre>
 <dl>
 <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
 <dd><code><a href="../../../../../../org/apache/hadoop/hbase/master/procedure/TableProcedureInterface.html#getTableName--">getTableName</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../org/apache/hadoop/hbase/master/procedure/TableProcedureInterface.html" title="interface in org.apache.hadoop.hbase.master.procedure">TableProcedureInterface</a></code></dd>
@@ -737,7 +745,7 @@ extends <a href="../../../../../../org/apache/hadoop/hbase/master/procedure/Abst
 <ul class="blockList">
 <li class="blockList">
 <h4>getTableOperationType</h4>
-<pre>public&nbsp;<a href="../../../../../../org/apache/hadoop/hbase/master/procedure/TableProcedureInterface.TableOperationType.html" title="enum in org.apache.hadoop.hbase.master.procedure">TableProcedureInterface.TableOperationType</a>&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.251">getTableOperationType</a>()</pre>
+<pre>public&nbsp;<a href="../../../../../../org/apache/hadoop/hbase/master/procedure/TableProcedureInterface.TableOperationType.html" title="enum in org.apache.hadoop.hbase.master.procedure">TableProcedureInterface.TableOperationType</a>&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.252">getTableOperationType</a>()</pre>
 <div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../org/apache/hadoop/hbase/master/procedure/TableProcedureInterface.html#getTableOperationType--">TableProcedureInterface</a></code></span></div>
 <div class="block">Given an operation type we can take decisions about what to do with pending operations.
  e.g. if we get a delete and we have some table operation pending (e.g. add column)
@@ -758,7 +766,7 @@ extends <a href="../../../../../../org/apache/hadoop/hbase/master/procedure/Abst
 <ul class="blockList">
 <li class="blockList">
 <h4>toStringClassDetails</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.256">toStringClassDetails</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/StringBuilder.html?is-external=true" title="class or interface in java.lang">StringBuilder</a>&nbsp;sb)</pre>
+<pre>public&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.257">toStringClassDetails</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/StringBuilder.html?is-external=true" title="class or interface in java.lang">StringBuilder</a>&nbsp;sb)</pre>
 <div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../../org/apache/hadoop/hbase/procedure2/Procedure.html#toStringClassDetails-java.lang.StringBuilder-">Procedure</a></code></span></div>
 <div class="block">Extend the toString() information with the procedure details
  e.g. className and parameters</div>
@@ -776,7 +784,7 @@ extends <a href="../../../../../../org/apache/hadoop/hbase/master/procedure/Abst
 <ul class="blockList">
 <li class="blockList">
 <h4>serializeStateData</h4>
-<pre>protected&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.266">serializeStateData</a>(<a href="../../../../../../org/apache/hadoop/hbase/procedure2/ProcedureStateSerializer.html" title="interface in org.apache.hadoop.hbase.procedure2">ProcedureStateSerializer</a>&nbsp;serializer)
+<pre>protected&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.267">serializeStateData</a>(<a href="../../../../../../org/apache/hadoop/hbase/procedure2/ProcedureStateSerializer.html" title="interface in org.apache.hadoop.hbase.procedure2">ProcedureStateSerializer</a>&nbsp;serializer)
                            throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
 <div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../../org/apache/hadoop/hbase/procedure2/Procedure.html#serializeStateData-org.apache.hadoop.hbase.procedure2.ProcedureStateSerializer-">Procedure</a></code></span></div>
 <div class="block">The user-level code of the procedure may have some state to
@@ -798,7 +806,7 @@ extends <a href="../../../../../../org/apache/hadoop/hbase/master/procedure/Abst
 <ul class="blockList">
 <li class="blockList">
 <h4>deserializeStateData</h4>
-<pre>protected&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.298">deserializeStateData</a>(<a href="../../../../../../org/apache/hadoop/hbase/procedure2/ProcedureStateSerializer.html" title="interface in org.apache.hadoop.hbase.procedure2">ProcedureStateSerializer</a>&nbsp;serializer)
+<pre>protected&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.299">deserializeStateData</a>(<a href="../../../../../../org/apache/hadoop/hbase/procedure2/ProcedureStateSerializer.html" title="interface in org.apache.hadoop.hbase.procedure2">ProcedureStateSerializer</a>&nbsp;serializer)
                              throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
 <div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../../org/apache/hadoop/hbase/procedure2/Procedure.html#deserializeStateData-org.apache.hadoop.hbase.procedure2.ProcedureStateSerializer-">Procedure</a></code></span></div>
 <div class="block">Called on store load to allow the user to decode the previously serialized
@@ -819,7 +827,7 @@ extends <a href="../../../../../../org/apache/hadoop/hbase/master/procedure/Abst
 <ul class="blockList">
 <li class="blockList">
 <h4>prepareClone</h4>
-<pre>private&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.335">prepareClone</a>(<a href="../../../../../../org/apache/hadoop/hbase/master/procedure/MasterProcedureEnv.html" title="class in org.apache.hadoop.hbase.master.procedure">MasterProcedureEnv</a>&nbsp;env)
+<pre>private&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.336">prepareClone</a>(<a href="../../../../../../org/apache/hadoop/hbase/master/procedure/MasterProcedureEnv.html" title="class in org.apache.hadoop.hbase.master.procedure">MasterProcedureEnv</a>&nbsp;env)
                    throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
 <div class="block">Action before any real action of cloning from snapshot.</div>
 <dl>
@@ -836,7 +844,7 @@ extends <a href="../../../../../../org/apache/hadoop/hbase/master/procedure/Abst
 <ul class="blockList">
 <li class="blockList">
 <h4>preCloneSnapshot</h4>
-<pre>private&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.348">preCloneSnapshot</a>(<a href="../../../../../../org/apache/hadoop/hbase/master/procedure/MasterProcedureEnv.html" title="class in org.apache.hadoop.hbase.master.procedure">MasterProcedureEnv</a>&nbsp;env)
+<pre>private&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.349">preCloneSnapshot</a>(<a href="../../../../../../org/apache/hadoop/hbase/master/procedure/MasterProcedureEnv.html" title="class in org.apache.hadoop.hbase.master.procedure">MasterProcedureEnv</a>&nbsp;env)
                        throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>,
                               <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a></pre>
 <div class="block">Action before cloning from snapshot.</div>
@@ -855,7 +863,7 @@ extends <a href="../../../../../../org/apache/hadoop/hbase/master/procedure/Abst
 <ul class="blockList">
 <li class="blockList">
 <h4>postCloneSnapshot</h4>
-<pre>private&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.376">postCloneSnapshot</a>(<a href="../../../../../../org/apache/hadoop/hbase/master/procedure/MasterProcedureEnv.html" title="class in org.apache.hadoop.hbase.master.procedure">MasterProcedureEnv</a>&nbsp;env)
+<pre>private&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.377">postCloneSnapshot</a>(<a href="../../../../../../org/apache/hadoop/hbase/master/procedure/MasterProcedureEnv.html" title="class in org.apache.hadoop.hbase.master.procedure">MasterProcedureEnv</a>&nbsp;env)
                         throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>,
                                <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a></pre>
 <div class="block">Action after cloning from snapshot.</div>
@@ -874,7 +882,7 @@ extends <a href="../../../../../../org/apache/hadoop/hbase/master/procedure/Abst
 <ul class="blockList">
 <li class="blockList">
 <h4>createFilesystemLayout</h4>
-<pre>private&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&gt;&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.391">createFilesystemLayout</a>(<a href="../../../../../../org/apache/hadoop/hbase/master/procedure/MasterProcedureEnv.html" title="class in org.apache.hadoop.hbase.master.procedure">MasterProcedureEnv</a>&nbsp;env,
+<pre>private&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&gt;&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.392">createFilesystemLayout</a>(<a href="../../../../../../org/apache/hadoop/hbase/master/procedure/MasterProcedureEnv.html" title="class in org.apache.hadoop.hbase.master.procedure">MasterProcedureEnv</a>&nbsp;env,
                                                 <a href="../../../../../../org/apache/hadoop/hbase/client/TableDescriptor.html" title="interface in org.apache.hadoop.hbase.client">TableDescriptor</a>&nbsp;tableDescriptor,
                                                 <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&gt;&nbsp;newRegions)
                                          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>
@@ -893,7 +901,7 @@ extends <a href="../../../../../../org/apache/hadoop/hbase/master/procedure/Abst
 <ul class="blockList">
 <li class="blockList">
 <h4>createFsLayout</h4>
-<pre>private&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&gt;&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.452">createFsLayout</a>(<a href="../../../../../../org/apache/hadoop/hbase/master/procedure/MasterProcedureEnv.html" title="class in org.apache.hadoop.hbase.master.procedure">MasterProcedureEnv</a>&nbsp;env,
+<pre>private&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&gt;&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.453">createFsLayout</a>(<a href="../../../../../../org/apache/hadoop/hbase/master/procedure/MasterProcedureEnv.html" title="class in org.apache.hadoop.hbase.master.procedure">MasterProcedureEnv</a>&nbsp;env,
                                         <a href="../../../../../../org/apache/hadoop/hbase/client/TableDescriptor.html" title="interface in org.apache.hadoop.hbase.client">TableDescriptor</a>&nbsp;tableDescriptor,
                                         <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&gt;&nbsp;newRegions,
                                         <a href="../../../../../../org/apache/hadoop/hbase/master/procedure/CreateTableProcedure.CreateHdfsRegions.html" title="interface in org.apache.hadoop.hbase.master.procedure">CreateTableProcedure.CreateHdfsRegions</a>&nbsp;hdfsRegionHandler)
@@ -907,13 +915,34 @@ extends <a href="../../../../../../org/apache/hadoop/hbase/master/procedure/Abst
 </dl>
 </li>
 </ul>
+<a name="moveTempMobDirectoryToHBaseRoot-org.apache.hadoop.hbase.master.MasterFileSystem-org.apache.hadoop.hbase.client.TableDescriptor-org.apache.hadoop.fs.Path-">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>moveTempMobDirectoryToHBaseRoot</h4>
+<pre>private&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.489">moveTempMobDirectoryToHBaseRoot</a>(<a href="../../../../../../org/apache/hadoop/hbase/master/MasterFileSystem.html" title="class in org.apache.hadoop.hbase.master">MasterFileSystem</a>&nbsp;mfs,
+                                             <a href="../../../../../../org/apache/hadoop/hbase/client/TableDescriptor.html" title="interface in org.apache.hadoop.hbase.client">TableDescriptor</a>&nbsp;tableDescriptor,
+                                             org.apache.hadoop.fs.Path&nbsp;tempMobTableDir)
+                                      throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
+<div class="block">Move table temp mob directory to the hbase root location</div>
+<dl>
+<dt><span class="paramLabel">Parameters:</span></dt>
+<dd><code>mfs</code> - The master file system</dd>
+<dd><code>tableDescriptor</code> - The table to operate on</dd>
+<dd><code>tempMobTableDir</code> - The temp mob directory of table</dd>
+<dt><span class="throwsLabel">Throws:</span></dt>
+<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If failed to move temp mob dir to hbase root dir</dd>
+</dl>
+</li>
+</ul>
 <a name="addRegionsToMeta-org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv-">
 <!--   -->
 </a>
 <ul class="blockList">
 <li class="blockList">
 <h4>addRegionsToMeta</h4>
-<pre>private&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.482">addRegionsToMeta</a>(<a href="../../../../../../org/apache/hadoop/hbase/master/procedure/MasterProcedureEnv.html" title="class in org.apache.hadoop.hbase.master.procedure">MasterProcedureEnv</a>&nbsp;env)
+<pre>private&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.511">addRegionsToMeta</a>(<a href="../../../../../../org/apache/hadoop/hbase/master/procedure/MasterProcedureEnv.html" title="class in org.apache.hadoop.hbase.master.procedure">MasterProcedureEnv</a>&nbsp;env)
                        throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
 <div class="block">Add regions to hbase:meta table.</div>
 <dl>
@@ -930,7 +959,7 @@ extends <a href="../../../../../../org/apache/hadoop/hbase/master/procedure/Abst
 <ul class="blockListLast">
 <li class="blockList">
 <h4>isTraceEnabled</h4>
-<pre>private&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</a>&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.498">isTraceEnabled</a>()</pre>
+<pre>private&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</a>&nbsp;<a href="../../../../../../src-html/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.html#line.527">isTraceEnabled</a>()</pre>
 <div class="block">The procedure could be restarted from a different machine. If the variable is null, we need to
  retrieve it.</div>
 <dl>
index 59af371..4a6979a 100644 (file)
 <ul>
 <li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Enum</span></a>&lt;E&gt; (implements java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;T&gt;, java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>)
 <ul>
-<li type="circle">org.apache.hadoop.hbase.master.procedure.<a href="../../../../../../org/apache/hadoop/hbase/master/procedure/MetaProcedureInterface.MetaOperationType.html" title="enum in org.apache.hadoop.hbase.master.procedure"><span class="typeNameLink">MetaProcedureInterface.MetaOperationType</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.master.procedure.<a href="../../../../../../org/apache/hadoop/hbase/master/procedure/ServerProcedureInterface.ServerOperationType.html" title="enum in org.apache.hadoop.hbase.master.procedure"><span class="typeNameLink">ServerProcedureInterface.ServerOperationType</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.master.procedure.<a href="../../../../../../org/apache/hadoop/hbase/master/procedure/MetaProcedureInterface.MetaOperationType.html" title="enum in org.apache.hadoop.hbase.master.procedure"><span class="typeNameLink">MetaProcedureInterface.MetaOperationType</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.master.procedure.<a href="../../../../../../org/apache/hadoop/hbase/master/procedure/PeerProcedureInterface.PeerOperationType.html" title="enum in org.apache.hadoop.hbase.master.procedure"><span class="typeNameLink">PeerProcedureInterface.PeerOperationType</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.master.procedure.<a href="../../../../../../org/apache/hadoop/hbase/master/procedure/TableProcedureInterface.TableOperationType.html" title="enum in org.apache.hadoop.hbase.master.procedure"><span class="typeNameLink">TableProcedureInterface.TableOperationType</span></a></li>
 </ul>
index 6d8ac13..a99643c 100644 (file)
@@ -18,7 +18,7 @@
     catch(err) {
     }
 //-->
-var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":9,"i22":9,"i23":9,"i24":9,"i25":9,"i26":9,"i27":9,"i28":9,"i29":9,"i30":9,"i31":9,"i32":9,"i33":9,"i34":9,"i35":9,"i36":9,"i37":9,"i38":9,"i39":9,"i40":9,"i41":9,"i42":9};
+var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":9,"i22":9,"i23":9,"i24":9,"i25":9,"i26":9,"i27":9,"i28":9,"i29":9,"i30":9,"i31":9,"i32":9,"i33":9,"i34":9,"i35":9,"i36":9,"i37":9,"i38":9,"i39":9,"i40":9,"i41":9,"i42":9,"i43":9,"i44":9,"i45":9};
 var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]};
 var altColor = "altColor";
 var rowColor = "rowColor";
@@ -406,67 +406,87 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 </td>
 </tr>
 <tr id="i22" class="altColor">
+<td class="colFirst"><code>static org.apache.hadoop.fs.Path</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/mob/MobUtils.html#getMobHome-org.apache.hadoop.fs.Path-">getMobHome</a></span>(org.apache.hadoop.fs.Path&nbsp;rootDir)</code>
+<div class="block">Gets the root dir of the mob files under the qualified HBase root dir.</div>
+</td>
+</tr>
+<tr id="i23" class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a></code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/mob/MobUtils.html#getMobRegionInfo-org.apache.hadoop.hbase.TableName-">getMobRegionInfo</a></span>(<a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tableName)</code>
 <div class="block">Gets the RegionInfo of the mob files.</div>
 </td>
 </tr>
-<tr id="i23" class="rowColor">
+<tr id="i24" class="altColor">
 <td class="colFirst"><code>static org.apache.hadoop.fs.Path</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/mob/MobUtils.html#getMobRegionPath-org.apache.hadoop.conf.Configuration-org.apache.hadoop.hbase.TableName-">getMobRegionPath</a></span>(org.apache.hadoop.conf.Configuration&nbsp;conf,
                 <a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tableName)</code>
 <div class="block">Gets the region dir of the mob files.</div>
 </td>
 </tr>
-<tr id="i24" class="altColor">
+<tr id="i25" class="rowColor">
+<td class="colFirst"><code>static org.apache.hadoop.fs.Path</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/mob/MobUtils.html#getMobRegionPath-org.apache.hadoop.fs.Path-org.apache.hadoop.hbase.TableName-">getMobRegionPath</a></span>(org.apache.hadoop.fs.Path&nbsp;rootDir,
+                <a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tableName)</code>
+<div class="block">Gets the region dir of the mob files under the specified root dir.</div>
+</td>
+</tr>
+<tr id="i26" class="altColor">
+<td class="colFirst"><code>static org.apache.hadoop.fs.Path</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/mob/MobUtils.html#getMobTableDir-org.apache.hadoop.fs.Path-org.apache.hadoop.hbase.TableName-">getMobTableDir</a></span>(org.apache.hadoop.fs.Path&nbsp;rootDir,
+              <a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tableName)</code>
+<div class="block">Gets the table dir of the mob files under the qualified HBase root dir.</div>
+</td>
+</tr>
+<tr id="i27" class="rowColor">
 <td class="colFirst"><code>static int</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/mob/MobUtils.html#getMobValueLength-org.apache.hadoop.hbase.Cell-">getMobValueLength</a></span>(<a href="../../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a>&nbsp;cell)</code>
 <div class="block">Gets the mob value length from the mob ref cell.</div>
 </td>
 </tr>
-<tr id="i25" class="rowColor">
+<tr id="i28" class="altColor">
 <td class="colFirst"><code>static org.apache.hadoop.fs.Path</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/mob/MobUtils.html#getQualifiedMobRootDir-org.apache.hadoop.conf.Configuration-">getQualifiedMobRootDir</a></span>(org.apache.hadoop.conf.Configuration&nbsp;conf)</code>
 <div class="block">Gets the qualified root dir of the mob files.</div>
 </td>
 </tr>
-<tr id="i26" class="altColor">
+<tr id="i29" class="rowColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a></code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/mob/MobUtils.html#getTableLockName-org.apache.hadoop.hbase.TableName-">getTableLockName</a></span>(<a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tn)</code>
 <div class="block">Gets the table name used in the table lock.</div>
 </td>
 </tr>
-<tr id="i27" class="rowColor">
+<tr id="i30" class="altColor">
 <td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/Tag.html" title="interface in org.apache.hadoop.hbase">Tag</a></code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/mob/MobUtils.html#getTableNameTag-org.apache.hadoop.hbase.Cell-">getTableNameTag</a></span>(<a href="../../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a>&nbsp;cell)</code>
 <div class="block">Gets the table name tag.</div>
 </td>
 </tr>
-<tr id="i28" class="altColor">
+<tr id="i31" class="rowColor">
 <td class="colFirst"><code>static boolean</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/mob/MobUtils.html#hasMobColumns-org.apache.hadoop.hbase.client.TableDescriptor-">hasMobColumns</a></span>(<a href="../../../../../org/apache/hadoop/hbase/client/TableDescriptor.html" title="interface in org.apache.hadoop.hbase.client">TableDescriptor</a>&nbsp;htd)</code>
 <div class="block">Checks whether this table has mob-enabled columns.</div>
 </td>
 </tr>
-<tr id="i29" class="rowColor">
+<tr id="i32" class="altColor">
 <td class="colFirst"><code>static boolean</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/mob/MobUtils.html#hasMobReferenceTag-java.util.List-">hasMobReferenceTag</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../org/apache/hadoop/hbase/Tag.html" title="interface in org.apache.hadoop.hbase">Tag</a>&gt;&nbsp;tags)</code>
 <div class="block">Whether the tag list has a mob reference tag.</div>
 </td>
 </tr>
-<tr id="i30" class="altColor">
+<tr id="i33" class="rowColor">
 <td class="colFirst"><code>static boolean</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/mob/MobUtils.html#hasValidMobRefCellValue-org.apache.hadoop.hbase.Cell-">hasValidMobRefCellValue</a></span>(<a href="../../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a>&nbsp;cell)</code>
 <div class="block">Indicates whether the current mob ref cell has a valid value.</div>
 </td>
 </tr>
-<tr id="i31" class="rowColor">
+<tr id="i34" class="altColor">
 <td class="colFirst"><code>static boolean</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/mob/MobUtils.html#isCacheMobBlocks-org.apache.hadoop.hbase.client.Scan-">isCacheMobBlocks</a></span>(<a href="../../../../../org/apache/hadoop/hbase/client/Scan.html" title="class in org.apache.hadoop.hbase.client">Scan</a>&nbsp;scan)</code>
 <div class="block">Indicates whether the scan contains the information of caching blocks.</div>
 </td>
 </tr>
-<tr id="i32" class="altColor">
+<tr id="i35" class="rowColor">
 <td class="colFirst"><code>static boolean</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/mob/MobUtils.html#isMobFileExpired-org.apache.hadoop.hbase.client.ColumnFamilyDescriptor-long-java.lang.String-">isMobFileExpired</a></span>(<a href="../../../../../org/apache/hadoop/hbase/client/ColumnFamilyDescriptor.html" title="interface in org.apache.hadoop.hbase.client">ColumnFamilyDescriptor</a>&nbsp;column,
                 long&nbsp;current,
@@ -474,50 +494,50 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <div class="block">Checks if the mob file is expired.</div>
 </td>
 </tr>
-<tr id="i33" class="rowColor">
+<tr id="i36" class="altColor">
 <td class="colFirst"><code>static boolean</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/mob/MobUtils.html#isMobReferenceCell-org.apache.hadoop.hbase.Cell-">isMobReferenceCell</a></span>(<a href="../../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a>&nbsp;cell)</code>
 <div class="block">Whether the current cell is a mob reference cell.</div>
 </td>
 </tr>
-<tr id="i34" class="altColor">
+<tr id="i37" class="rowColor">
 <td class="colFirst"><code>static boolean</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/mob/MobUtils.html#isMobRegionInfo-org.apache.hadoop.hbase.client.RegionInfo-">isMobRegionInfo</a></span>(<a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&nbsp;regionInfo)</code>
 <div class="block">Gets whether the current RegionInfo is a mob one.</div>
 </td>
 </tr>
-<tr id="i35" class="rowColor">
+<tr id="i38" class="altColor">
 <td class="colFirst"><code>static boolean</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/mob/MobUtils.html#isMobRegionName-org.apache.hadoop.hbase.TableName-byte:A-">isMobRegionName</a></span>(<a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tableName,
                byte[]&nbsp;regionName)</code>
 <div class="block">Gets whether the current region name follows the pattern of a mob region name.</div>
 </td>
 </tr>
-<tr id="i36" class="altColor">
+<tr id="i39" class="rowColor">
 <td class="colFirst"><code>static boolean</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/mob/MobUtils.html#isRawMobScan-org.apache.hadoop.hbase.client.Scan-">isRawMobScan</a></span>(<a href="../../../../../org/apache/hadoop/hbase/client/Scan.html" title="class in org.apache.hadoop.hbase.client">Scan</a>&nbsp;scan)</code>
 <div class="block">Indicates whether it's a raw scan.</div>
 </td>
 </tr>
-<tr id="i37" class="rowColor">
+<tr id="i40" class="altColor">
 <td class="colFirst"><code>static boolean</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/mob/MobUtils.html#isReadEmptyValueOnMobCellMiss-org.apache.hadoop.hbase.client.Scan-">isReadEmptyValueOnMobCellMiss</a></span>(<a href="../../../../../org/apache/hadoop/hbase/client/Scan.html" title="class in org.apache.hadoop.hbase.client">Scan</a>&nbsp;scan)</code>
 <div class="block">Indicates whether return null value when the mob file is missing or corrupt.</div>
 </td>
 </tr>
-<tr id="i38" class="altColor">
+<tr id="i41" class="rowColor">
 <td class="colFirst"><code>static boolean</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/mob/MobUtils.html#isRefOnlyScan-org.apache.hadoop.hbase.client.Scan-">isRefOnlyScan</a></span>(<a href="../../../../../org/apache/hadoop/hbase/client/Scan.html" title="class in org.apache.hadoop.hbase.client">Scan</a>&nbsp;scan)</code>
 <div class="block">Indicates whether it's a reference only scan.</div>
 </td>
 </tr>
-<tr id="i39" class="rowColor">
+<tr id="i42" class="altColor">
 <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util">Date</a></code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/mob/MobUtils.html#parseDate-java.lang.String-">parseDate</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;dateString)</code>
 <div class="block">Parses the string to a date.</div>
 </td>
 </tr>
-<tr id="i40" class="altColor">
+<tr id="i43" class="rowColor">
 <td class="colFirst"><code>static void</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/mob/MobUtils.html#removeMobFiles-org.apache.hadoop.conf.Configuration-org.apache.hadoop.fs.FileSystem-org.apache.hadoop.hbase.TableName-org.apache.hadoop.fs.Path-byte:A-java.util.Collection-">removeMobFiles</a></span>(org.apache.hadoop.conf.Configuration&nbsp;conf,
               org.apache.hadoop.fs.FileSystem&nbsp;fs,
@@ -528,14 +548,14 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <div class="block">Archives the mob files.</div>
 </td>
 </tr>
-<tr id="i41" class="rowColor">
+<tr id="i44" class="altColor">
 <td class="colFirst"><code>static void</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/mob/MobUtils.html#setCacheMobBlocks-org.apache.hadoop.hbase.client.Scan-boolean-">setCacheMobBlocks</a></span>(<a href="../../../../../org/apache/hadoop/hbase/client/Scan.html" title="class in org.apache.hadoop.hbase.client">Scan</a>&nbsp;scan,
                  boolean&nbsp;cacheBlocks)</code>
 <div class="block">Sets the attribute of caching blocks in the scan.</div>
 </td>
 </tr>
-<tr id="i42" class="altColor">
+<tr id="i45" class="rowColor">
 <td class="colFirst"><code>private static void</code></td>
 <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/mob/MobUtils.html#validateMobFile-org.apache.hadoop.conf.Configuration-org.apache.hadoop.fs.FileSystem-org.apache.hadoop.fs.Path-org.apache.hadoop.hbase.io.hfile.CacheConfig-boolean-">validateMobFile</a></span>(org.apache.hadoop.conf.Configuration&nbsp;conf,
                org.apache.hadoop.fs.FileSystem&nbsp;fs,
@@ -884,13 +904,30 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 </dl>
 </li>
 </ul>
+<a name="getMobHome-org.apache.hadoop.fs.Path-">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getMobHome</h4>
+<pre>public static&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.379">getMobHome</a>(org.apache.hadoop.fs.Path&nbsp;rootDir)</pre>
+<div class="block">Gets the root dir of the mob files under the qualified HBase root dir.
+ It's {rootDir}/mobdir.</div>
+<dl>
+<dt><span class="paramLabel">Parameters:</span></dt>
+<dd><code>rootDir</code> - The qualified path of HBase root directory.</dd>
+<dt><span class="returnLabel">Returns:</span></dt>
+<dd>The root dir of the mob file.</dd>
+</dl>
+</li>
+</ul>
 <a name="getQualifiedMobRootDir-org.apache.hadoop.conf.Configuration-">
 <!--   -->
 </a>
 <ul class="blockList">
 <li class="blockList">
 <h4>getQualifiedMobRootDir</h4>
-<pre>public static&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.379">getQualifiedMobRootDir</a>(org.apache.hadoop.conf.Configuration&nbsp;conf)
+<pre>public static&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.389">getQualifiedMobRootDir</a>(org.apache.hadoop.conf.Configuration&nbsp;conf)
                                                         throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
 <div class="block">Gets the qualified root dir of the mob files.</div>
 <dl>
@@ -903,16 +940,35 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 </dl>
 </li>
 </ul>
+<a name="getMobTableDir-org.apache.hadoop.fs.Path-org.apache.hadoop.hbase.TableName-">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getMobTableDir</h4>
+<pre>public static&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.403">getMobTableDir</a>(org.apache.hadoop.fs.Path&nbsp;rootDir,
+                                                       <a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tableName)</pre>
+<div class="block">Gets the table dir of the mob files under the qualified HBase root dir.
+ It's {rootDir}/mobdir/data/${namespace}/${tableName}</div>
+<dl>
+<dt><span class="paramLabel">Parameters:</span></dt>
+<dd><code>rootDir</code> - The qualified path of HBase root directory.</dd>
+<dd><code>tableName</code> - The name of table.</dd>
+<dt><span class="returnLabel">Returns:</span></dt>
+<dd>The table dir of the mob file.</dd>
+</dl>
+</li>
+</ul>
 <a name="getMobRegionPath-org.apache.hadoop.conf.Configuration-org.apache.hadoop.hbase.TableName-">
 <!--   -->
 </a>
 <ul class="blockList">
 <li class="blockList">
 <h4>getMobRegionPath</h4>
-<pre>public static&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.393">getMobRegionPath</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
+<pre>public static&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.414">getMobRegionPath</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
                                                          <a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tableName)</pre>
 <div class="block">Gets the region dir of the mob files.
- It's {HBASE_DIR}/mobdir/{namespace}/{tableName}/{regionEncodedName}.</div>
+ It's {HBASE_DIR}/mobdir/data/{namespace}/{tableName}/{regionEncodedName}.</div>
 <dl>
 <dt><span class="paramLabel">Parameters:</span></dt>
 <dd><code>conf</code> - The current configuration.</dd>
@@ -922,13 +978,32 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 </dl>
 </li>
 </ul>
+<a name="getMobRegionPath-org.apache.hadoop.fs.Path-org.apache.hadoop.hbase.TableName-">
+<!--   -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getMobRegionPath</h4>
+<pre>public static&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.425">getMobRegionPath</a>(org.apache.hadoop.fs.Path&nbsp;rootDir,
+                                                         <a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tableName)</pre>
+<div class="block">Gets the region dir of the mob files under the specified root dir.
+ It's {rootDir}/mobdir/data/{namespace}/{tableName}/{regionEncodedName}.</div>
+<dl>
+<dt><span class="paramLabel">Parameters:</span></dt>
+<dd><code>rootDir</code> - The qualified path of HBase root directory.</dd>
+<dd><code>tableName</code> - The current table name.</dd>
+<dt><span class="returnLabel">Returns:</span></dt>
+<dd>The region dir of the mob files.</dd>
+</dl>
+</li>
+</ul>
 <a name="getMobFamilyPath-org.apache.hadoop.conf.Configuration-org.apache.hadoop.hbase.TableName-java.lang.String-">
 <!--   -->
 </a>
 <ul class="blockList">
 <li class="blockList">
 <h4>getMobFamilyPath</h4>
-<pre>public static&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.407">getMobFamilyPath</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
+<pre>public static&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.439">getMobFamilyPath</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
                                                          <a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tableName,
                                                          <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;familyName)</pre>
 <div class="block">Gets the family dir of the mob files.
@@ -949,7 +1024,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>getMobFamilyPath</h4>
-<pre>public static&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.418">getMobFamilyPath</a>(org.apache.hadoop.fs.Path&nbsp;regionPath,
+<pre>public static&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.450">getMobFamilyPath</a>(org.apache.hadoop.fs.Path&nbsp;regionPath,
                                                          <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;familyName)</pre>
 <div class="block">Gets the family dir of the mob files.
  It's {HBASE_DIR}/mobdir/{namespace}/{tableName}/{regionEncodedName}/{columnFamilyName}.</div>
@@ -968,7 +1043,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>getMobRegionInfo</h4>
-<pre>public static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.429">getMobRegionInfo</a>(<a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tableName)</pre>
+<pre>public static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.461">getMobRegionInfo</a>(<a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tableName)</pre>
 <div class="block">Gets the RegionInfo of the mob files.
  This is a dummy region. The mob files are not saved in a region in HBase.
  This is only used in mob snapshot. It's internally used only.</div>
@@ -986,7 +1061,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>isMobRegionInfo</h4>
-<pre>public static&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.443">isMobRegionInfo</a>(<a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&nbsp;regionInfo)</pre>
+<pre>public static&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.475">isMobRegionInfo</a>(<a href="../../../../../org/apache/hadoop/hbase/client/RegionInfo.html" title="interface in org.apache.hadoop.hbase.client">RegionInfo</a>&nbsp;regionInfo)</pre>
 <div class="block">Gets whether the current RegionInfo is a mob one.</div>
 <dl>
 <dt><span class="paramLabel">Parameters:</span></dt>
@@ -1002,7 +1077,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>isMobRegionName</h4>
-<pre>public static&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.454">isMobRegionName</a>(<a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tableName,
+<pre>public static&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.486">isMobRegionName</a>(<a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tableName,
                                       byte[]&nbsp;regionName)</pre>
 <div class="block">Gets whether the current region name follows the pattern of a mob region name.</div>
 <dl>
@@ -1020,7 +1095,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>getCompactionWorkingPath</h4>
-<pre>public static&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.464">getCompactionWorkingPath</a>(org.apache.hadoop.fs.Path&nbsp;root,
+<pre>public static&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.496">getCompactionWorkingPath</a>(org.apache.hadoop.fs.Path&nbsp;root,
                                                                  <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;jobName)</pre>
 <div class="block">Gets the working directory of the mob compaction.</div>
 <dl>
@@ -1038,7 +1113,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>removeMobFiles</h4>
-<pre>public static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.478">removeMobFiles</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
+<pre>public static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.510">removeMobFiles</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
                                   org.apache.hadoop.fs.FileSystem&nbsp;fs,
                                   <a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tableName,
                                   org.apache.hadoop.fs.Path&nbsp;tableDir,
@@ -1065,7 +1140,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>createMobRefCell</h4>
-<pre>public static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.493">createMobRefCell</a>(<a href="../../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a>&nbsp;cell,
+<pre>public static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.525">createMobRefCell</a>(<a href="../../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a>&nbsp;cell,
                                     byte[]&nbsp;fileName,
                                     <a href="../../../../../org/apache/hadoop/hbase/Tag.html" title="interface in org.apache.hadoop.hbase">Tag</a>&nbsp;tableNameTag)</pre>
 <div class="block">Creates a mob reference KeyValue.
@@ -1087,7 +1162,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>createMobRefCell</h4>
-<pre>public static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.508">createMobRefCell</a>(<a href="../../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a>&nbsp;cell,
+<pre>public static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.540">createMobRefCell</a>(<a href="../../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a>&nbsp;cell,
                                     byte[]&nbsp;fileName,
                                     byte[]&nbsp;refCellTags)</pre>
 </li>
@@ -1098,7 +1173,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>createWriter</h4>
-<pre>public static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/regionserver/StoreFileWriter.html" title="class in org.apache.hadoop.hbase.regionserver">StoreFileWriter</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.529">createWriter</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
+<pre>public static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/regionserver/StoreFileWriter.html" title="class in org.apache.hadoop.hbase.regionserver">StoreFileWriter</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.561">createWriter</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
                                            org.apache.hadoop.fs.FileSystem&nbsp;fs,
                                            <a href="../../../../../org/apache/hadoop/hbase/client/ColumnFamilyDescriptor.html" title="interface in org.apache.hadoop.hbase.client">ColumnFamilyDescriptor</a>&nbsp;family,
                                            <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;date,
@@ -1137,7 +1212,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>createRefFileWriter</h4>
-<pre>public static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/regionserver/StoreFileWriter.html" title="class in org.apache.hadoop.hbase.regionserver">StoreFileWriter</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.553">createRefFileWriter</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
+<pre>public static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/regionserver/StoreFileWriter.html" title="class in org.apache.hadoop.hbase.regionserver">StoreFileWriter</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.585">createRefFileWriter</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
                                                   org.apache.hadoop.fs.FileSystem&nbsp;fs,
                                                   <a href="../../../../../org/apache/hadoop/hbase/client/ColumnFamilyDescriptor.html" title="interface in org.apache.hadoop.hbase.client">ColumnFamilyDescriptor</a>&nbsp;family,
                                                   org.apache.hadoop.fs.Path&nbsp;basePath,
@@ -1170,7 +1245,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>createWriter</h4>
-<pre>public static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/regionserver/StoreFileWriter.html" title="class in org.apache.hadoop.hbase.regionserver">StoreFileWriter</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.580">createWriter</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
+<pre>public static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/regionserver/StoreFileWriter.html" title="class in org.apache.hadoop.hbase.regionserver">StoreFileWriter</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.612">createWriter</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
                                            org.apache.hadoop.fs.FileSystem&nbsp;fs,
                                            <a href="../../../../../org/apache/hadoop/hbase/client/ColumnFamilyDescriptor.html" title="interface in org.apache.hadoop.hbase.client">ColumnFamilyDescriptor</a>&nbsp;family,
                                            <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;date,
@@ -1209,7 +1284,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>createDelFileWriter</h4>
-<pre>public static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/regionserver/StoreFileWriter.html" title="class in org.apache.hadoop.hbase.regionserver">StoreFileWriter</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.606">createDelFileWriter</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
+<pre>public static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/regionserver/StoreFileWriter.html" title="class in org.apache.hadoop.hbase.regionserver">StoreFileWriter</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.638">createDelFileWriter</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
                                                   org.apache.hadoop.fs.FileSystem&nbsp;fs,
                                                   <a href="../../../../../org/apache/hadoop/hbase/client/ColumnFamilyDescriptor.html" title="interface in org.apache.hadoop.hbase.client">ColumnFamilyDescriptor</a>&nbsp;family,
                                                   <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;date,
@@ -1246,7 +1321,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>createWriter</h4>
-<pre>public static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/regionserver/StoreFileWriter.html" title="class in org.apache.hadoop.hbase.regionserver">StoreFileWriter</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.633">createWriter</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
+<pre>public static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/regionserver/StoreFileWriter.html" title="class in org.apache.hadoop.hbase.regionserver">StoreFileWriter</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.665">createWriter</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
                                            org.apache.hadoop.fs.FileSystem&nbsp;fs,
                                            <a href="../../../../../org/apache/hadoop/hbase/client/ColumnFamilyDescriptor.html" title="interface in org.apache.hadoop.hbase.client">ColumnFamilyDescriptor</a>&nbsp;family,
                                            <a href="../../../../../org/apache/hadoop/hbase/mob/MobFileName.html" title="class in org.apache.hadoop.hbase.mob">MobFileName</a>&nbsp;mobFileName,
@@ -1283,7 +1358,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>createWriter</h4>
-<pre>public static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/regionserver/StoreFileWriter.html" title="class in org.apache.hadoop.hbase.regionserver">StoreFileWriter</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.662">createWriter</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
+<pre>public static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/regionserver/StoreFileWriter.html" title="class in org.apache.hadoop.hbase.regionserver">StoreFileWriter</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.694">createWriter</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
                                            org.apache.hadoop.fs.FileSystem&nbsp;fs,
                                            <a href="../../../../../org/apache/hadoop/hbase/client/ColumnFamilyDescriptor.html" title="interface in org.apache.hadoop.hbase.client">ColumnFamilyDescriptor</a>&nbsp;family,
                                            org.apache.hadoop.fs.Path&nbsp;path,
@@ -1326,7 +1401,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>commitFile</h4>
-<pre>public static&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.705">commitFile</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
+<pre>public static&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.737">commitFile</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
                                                    org.apache.hadoop.fs.FileSystem&nbsp;fs,
                                                    org.apache.hadoop.fs.Path&nbsp;sourceFile,
                                                    org.apache.hadoop.fs.Path&nbsp;targetPath,
@@ -1353,7 +1428,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>validateMobFile</h4>
-<pre>private static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.731">validateMobFile</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
+<pre>private static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.763">validateMobFile</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
                                     org.apache.hadoop.fs.FileSystem&nbsp;fs,
                                     org.apache.hadoop.fs.Path&nbsp;path,
                                     <a href="../../../../../org/apache/hadoop/hbase/io/hfile/CacheConfig.html" title="class in org.apache.hadoop.hbase.io.hfile">CacheConfig</a>&nbsp;cacheConfig,
@@ -1377,7 +1452,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>hasValidMobRefCellValue</h4>
-<pre>public static&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.756">hasValidMobRefCellValue</a>(<a href="../../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a>&nbsp;cell)</pre>
+<pre>public static&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.788">hasValidMobRefCellValue</a>(<a href="../../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a>&nbsp;cell)</pre>
 <div class="block">Indicates whether the current mob ref cell has a valid value.
  A mob ref cell has a mob reference tag.
  The value of a mob ref cell consists of two parts, real mob value length and mob file name.
@@ -1397,7 +1472,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>getMobValueLength</h4>
-<pre>public static&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.769">getMobValueLength</a>(<a href="../../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a>&nbsp;cell)</pre>
+<pre>public static&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.801">getMobValueLength</a>(<a href="../../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a>&nbsp;cell)</pre>
 <div class="block">Gets the mob value length from the mob ref cell.
  A mob ref cell has a mob reference tag.
  The value of a mob ref cell consists of two parts, real mob value length and mob file name.
@@ -1417,7 +1492,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>getMobFileName</h4>
-<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.782">getMobFileName</a>(<a href="../../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a>&nbsp;cell)</pre>
+<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.814">getMobFileName</a>(<a href="../../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a>&nbsp;cell)</pre>
 <div class="block">Gets the mob file name from the mob ref cell.
  A mob ref cell has a mob reference tag.
  The value of a mob ref cell consists of two parts, real mob value length and mob file name.
@@ -1437,7 +1512,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>getTableLockName</h4>
-<pre>public static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.793">getTableLockName</a>(<a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tn)</pre>
+<pre>public static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.825">getTableLockName</a>(<a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tn)</pre>
 <div class="block">Gets the table name used in the table lock.
  The table lock name is a dummy one, it's not a table name. It's tableName + ".mobLock".</div>
 <dl>
@@ -1454,7 +1529,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>doMobCompaction</h4>
-<pre>public static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.807">doMobCompaction</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
+<pre>public static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.839">doMobCompaction</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
                                    org.apache.hadoop.fs.FileSystem&nbsp;fs,
                                    <a href="../../../../../org/apache/hadoop/hbase/TableName.html" title="class in org.apache.hadoop.hbase">TableName</a>&nbsp;tableName,
                                    <a href="../../../../../org/apache/hadoop/hbase/client/ColumnFamilyDescriptor.html" title="interface in org.apache.hadoop.hbase.client">ColumnFamilyDescriptor</a>&nbsp;hcd,
@@ -1482,7 +1557,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>createMobCompactorThreadPool</h4>
-<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ExecutorService.html?is-external=true" title="class or interface in java.util.concurrent">ExecutorService</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.840">createMobCompactorThreadPool</a>(org.apache.hadoop.conf.Configuration&nbsp;conf)</pre>
+<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ExecutorService.html?is-external=true" title="class or interface in java.util.concurrent">ExecutorService</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.872">createMobCompactorThreadPool</a>(org.apache.hadoop.conf.Configuration&nbsp;conf)</pre>
 <div class="block">Creates a thread pool.</div>
 <dl>
 <dt><span class="paramLabel">Parameters:</span></dt>
@@ -1498,7 +1573,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>hasMobColumns</h4>
-<pre>public static&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.868">hasMobColumns</a>(<a href="../../../../../org/apache/hadoop/hbase/client/TableDescriptor.html" title="interface in org.apache.hadoop.hbase.client">TableDescriptor</a>&nbsp;htd)</pre>
+<pre>public static&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.900">hasMobColumns</a>(<a href="../../../../../org/apache/hadoop/hbase/client/TableDescriptor.html" title="interface in org.apache.hadoop.hbase.client">TableDescriptor</a>&nbsp;htd)</pre>
 <div class="block">Checks whether this table has mob-enabled columns.</div>
 <dl>
 <dt><span class="paramLabel">Parameters:</span></dt>
@@ -1514,7 +1589,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>isReadEmptyValueOnMobCellMiss</h4>
-<pre>public static&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.884">isReadEmptyValueOnMobCellMiss</a>(<a href="../../../../../org/apache/hadoop/hbase/client/Scan.html" title="class in org.apache.hadoop.hbase.client">Scan</a>&nbsp;scan)</pre>
+<pre>public static&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.916">isReadEmptyValueOnMobCellMiss</a>(<a href="../../../../../org/apache/hadoop/hbase/client/Scan.html" title="class in org.apache.hadoop.hbase.client">Scan</a>&nbsp;scan)</pre>
 <div class="block">Indicates whether return null value when the mob file is missing or corrupt.
  The information is set in the attribute "empty.value.on.mobcell.miss" of scan.</div>
 <dl>
@@ -1531,7 +1606,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>createMobRefDeleteMarker</h4>
-<pre>public static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.899">createMobRefDeleteMarker</a>(<a href="../../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a>&nbsp;cell)</pre>
+<pre>public static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.931">createMobRefDeleteMarker</a>(<a href="../../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a>&nbsp;cell)</pre>
 <div class="block">Creates a mob ref delete marker.</div>
 <dl>
 <dt><span class="paramLabel">Parameters:</span></dt>
@@ -1547,7 +1622,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockList">
 <li class="blockList">
 <h4>isMobFileExpired</h4>
-<pre>public static&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.910">isMobFileExpired</a>(<a href="../../../../../org/apache/hadoop/hbase/client/ColumnFamilyDescriptor.html" title="interface in org.apache.hadoop.hbase.client">ColumnFamilyDescriptor</a>&nbsp;column,
+<pre>public static&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.942">isMobFileExpired</a>(<a href="../../../../../org/apache/hadoop/hbase/client/ColumnFamilyDescriptor.html" title="interface in org.apache.hadoop.hbase.client">ColumnFamilyDescriptor</a>&nbsp;column,
                                        long&nbsp;current,
                                        <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;fileDate)</pre>
 <div class="block">Checks if the mob file is expired.</div>
@@ -1567,7 +1642,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
 <ul class="blockListLast">
 <li class="blockList">
 <h4>fillPartitionId</h4>
-<pre>public static&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.944">fillPartitionId</a>(<a href="../../../../../org/apache/hadoop/hbase/mob/compactions/PartitionedMobCompactionRequest.CompactionPartitionId.html" title="class in org.apache.hadoop.hbase.mob.compactions">PartitionedMobCompactionRequest.CompactionPartitionId</a>&nbsp;id,
+<pre>public static&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/mob/MobUtils.html#line.976">fillPartitionId</a>(<a href="../../../../../org/apache/hadoop/hbase/mob/compactions/PartitionedMobCompactionRequest.CompactionPartitionId.html" title="class in org.apache.hadoop.hbase.mob.compactions">PartitionedMobCompactionRequest.CompactionPartitionId</a>&nbsp;id,
                                       <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util">Date</a>&nbsp;firstDayOfCurrentMonth,
                                       <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util">Date</a>&nbsp;firstDayOfCurrentWeek,
                                       <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;dateStr,
index 4b549da..7b435d2 100644 (file)
 <ul>
 <li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Enum</span></a>&lt;E&gt; (implements java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;T&gt;, java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>)
 <ul>
-<li type="circle">org.apache.hadoop.hbase.monitoring.<a href="../../../../../org/apache/hadoop/hbase/monitoring/TaskMonitor.TaskFilter.TaskType.html" title="enum in org.apache.hadoop.hbase.monitoring"><span class="typeNameLink">TaskMonitor.TaskFilter.TaskType</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.monitoring.<a href="../../../../../org/apache/hadoop/hbase/monitoring/MonitoredTask.State.html" title="enum in org.apache.hadoop.hbase.monitoring"><span class="typeNameLink">MonitoredTask.State</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.monitoring.<a href="../../../../../org/apache/hadoop/hbase/monitoring/TaskMonitor.TaskFilter.TaskType.html" title="enum in org.apache.hadoop.hbase.monitoring"><span class="typeNameLink">TaskMonitor.TaskFilter.TaskType</span></a></li>
 </ul>
 </li>
 </ul>
index 6321634..dae01e0 100644 (file)
 <ul>
 <li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Enum</span></a>&lt;E&gt; (implements java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;T&gt;, java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>)
 <ul>
-<li type="circle">org.apache.hadoop.hbase.<a href="../../../../org/apache/hadoop/hbase/KeepDeletedCells.html" title="enum in org.apache.hadoop.hbase"><span class="typeNameLink">KeepDeletedCells</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.<a href="../../../../org/apache/hadoop/hbase/MemoryCompactionPolicy.html" title="enum in org.apache.hadoop.hbase"><span class="typeNameLink">MemoryCompactionPolicy</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.<a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html" title="enum in org.apache.hadoop.hbase"><span class="typeNameLink">KeyValue.Type</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.<a href="../../../../org/apache/hadoop/hbase/HConstants.OperationStatusCode.html" title="enum in org.apache.hadoop.hbase"><span class="typeNameLink">HConstants.OperationStatusCode</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.<a href="../../../../org/apache/hadoop/hbase/CellBuilderType.html" title="enum in org.apache.hadoop.hbase"><span class="typeNameLink">CellBuilderType</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.<a href="../../../../org/apache/hadoop/hbase/HealthChecker.HealthCheckerExitStatus.html" title="enum in org.apache.hadoop.hbase"><span class="typeNameLink">HealthChecker.HealthCheckerExitStatus</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.<a href="../../../../org/apache/hadoop/hbase/Size.Unit.html" title="enum in org.apache.hadoop.hbase"><span class="typeNameLink">Size.Unit</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.<a href="../../../../org/apache/hadoop/hbase/CellBuilderType.html" title="enum in org.apache.hadoop.hbase"><span class="typeNameLink">CellBuilderType</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.<a href="../../../../org/apache/hadoop/hbase/Coprocessor.State.html" title="enum in org.apache.hadoop.hbase"><span class="typeNameLink">Coprocessor.State</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.<a href="../../../../org/apache/hadoop/hbase/MetaTableAccessor.QueryType.html" title="enum in org.apache.hadoop.hbase"><span class="typeNameLink">MetaTableAccessor.QueryType</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.<a href="../../../../org/apache/hadoop/hbase/CompatibilitySingletonFactory.SingletonStorage.html" title="enum in org.apache.hadoop.hbase"><span class="typeNameLink">CompatibilitySingletonFactory.SingletonStorage</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.<a href="../../../../org/apache/hadoop/hbase/CompareOperator.html" title="enum in org.apache.hadoop.hbase"><span class="typeNameLink">CompareOperator</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.<a href="../../../../org/apache/hadoop/hbase/Cell.Type.html" title="enum in org.apache.hadoop.hbase"><span class="typeNameLink">Cell.Type</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.<a href="../../../../org/apache/hadoop/hbase/ClusterMetrics.Option.html" title="enum in org.apache.hadoop.hbase"><span class="typeNameLink">ClusterMetrics.Option</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.<a href="../../../../org/apache/hadoop/hbase/MemoryCompactionPolicy.html" title="enum in org.apache.hadoop.hbase"><span class="typeNameLink">MemoryCompactionPolicy</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.<a href="../../../../org/apache/hadoop/hbase/CompareOperator.html" title="enum in org.apache.hadoop.hbase"><span class="typeNameLink">CompareOperator</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.<a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html" title="enum in org.apache.hadoop.hbase"><span class="typeNameLink">KeyValue.Type</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.<a href="../../../../org/apache/hadoop/hbase/KeepDeletedCells.html" title="enum in org.apache.hadoop.hbase"><span class="typeNameLink">KeepDeletedCells</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.<a href="../../../../org/apache/hadoop/hbase/HConstants.OperationStatusCode.html" title="enum in org.apache.hadoop.hbase"><span class="typeNameLink">HConstants.OperationStatusCode</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.<a href="../../../../org/apache/hadoop/hbase/MetaTableAccessor.QueryType.html" title="enum in org.apache.hadoop.hbase"><span class="typeNameLink">MetaTableAccessor.QueryType</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.<a href="../../../../org/apache/hadoop/hbase/Size.Unit.html" title="enum in org.apache.hadoop.hbase"><span class="typeNameLink">Size.Unit</span></a></li>
 </ul>
 </li>
 </ul>
index aec022d..ec55590 100644 (file)
 <ul>
 <li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Enum</span></a>&lt;E&gt; (implements java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;T&gt;, java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>)
 <ul>
+<li type="circle">org.apache.hadoop.hbase.procedure2.<a href="../../../../../org/apache/hadoop/hbase/procedure2/LockedResourceType.html" title="enum in org.apache.hadoop.hbase.procedure2"><span class="typeNameLink">LockedResourceType</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.procedure2.<a href="../../../../../org/apache/hadoop/hbase/procedure2/LockType.html" title="enum in org.apache.hadoop.hbase.procedure2"><span class="typeNameLink">LockType</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.procedure2.<a href="../../../../../org/apache/hadoop/hbase/procedure2/RootProcedureState.State.html" title="enum in org.apache.hadoop.hbase.procedure2"><span class="typeNameLink">RootProcedureState.State</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.procedure2.<a href="../../../../../org/apache/hadoop/hbase/procedure2/Procedure.LockState.html" title="enum in org.apache.hadoop.hbase.procedure2"><span class="typeNameLink">Procedure.LockState</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.procedure2.<a href="../../../../../org/apache/hadoop/hbase/procedure2/StateMachineProcedure.Flow.html" title="enum in org.apache.hadoop.hbase.procedure2"><span class="typeNameLink">StateMachineProcedure.Flow</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.procedure2.<a href="../../../../../org/apache/hadoop/hbase/procedure2/LockType.html" title="enum in org.apache.hadoop.hbase.procedure2"><span class="typeNameLink">LockType</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.procedure2.<a href="../../../../../org/apache/hadoop/hbase/procedure2/LockedResourceType.html" title="enum in org.apache.hadoop.hbase.procedure2"><span class="typeNameLink">LockedResourceType</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.procedure2.<a href="../../../../../org/apache/hadoop/hbase/procedure2/Procedure.LockState.html" title="enum in org.apache.hadoop.hbase.procedure2"><span class="typeNameLink">Procedure.LockState</span></a></li>
 </ul>
 </li>
 </ul>
index 958cfdb..8367bfc 100644 (file)
 <ul>
 <li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Enum</span></a>&lt;E&gt; (implements java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;T&gt;, java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>)
 <ul>
-<li type="circle">org.apache.hadoop.hbase.quotas.<a href="../../../../../org/apache/hadoop/hbase/quotas/OperationQuota.OperationType.html" title="enum in org.apache.hadoop.hbase.quotas"><span class="typeNameLink">OperationQuota.OperationType</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.quotas.<a href="../../../../../org/apache/hadoop/hbase/quotas/RpcThrottlingException.Type.html" title="enum in org.apache.hadoop.hbase.quotas"><span class="typeNameLink">RpcThrottlingException.Type</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.quotas.<a href="../../../../../org/apache/hadoop/hbase/quotas/SpaceViolationPolicy.html" title="enum in org.apache.hadoop.hbase.quotas"><span class="typeNameLink">SpaceViolationPolicy</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.quotas.<a href="../../../../../org/apache/hadoop/hbase/quotas/RpcThrottlingException.Type.html" title="enum in org.apache.hadoop.hbase.quotas"><span class="typeNameLink">RpcThrottlingException.Type</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.quotas.<a href="../../../../../org/apache/hadoop/hbase/quotas/ThrottleType.html" title="enum in org.apache.hadoop.hbase.quotas"><span class="typeNameLink">ThrottleType</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.quotas.<a href="../../../../../org/apache/hadoop/hbase/quotas/QuotaScope.html" title="enum in org.apache.hadoop.hbase.quotas"><span class="typeNameLink">QuotaScope</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.quotas.<a href="../../../../../org/apache/hadoop/hbase/quotas/OperationQuota.OperationType.html" title="enum in org.apache.hadoop.hbase.quotas"><span class="typeNameLink">OperationQuota.OperationType</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.quotas.<a href="../../../../../org/apache/hadoop/hbase/quotas/QuotaType.html" title="enum in org.apache.hadoop.hbase.quotas"><span class="typeNameLink">QuotaType</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.quotas.<a href="../../../../../org/apache/hadoop/hbase/quotas/ThrottlingException.Type.html" title="enum in org.apache.hadoop.hbase.quotas"><span class="typeNameLink">ThrottlingException.Type</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.quotas.<a href="../../../../../org/apache/hadoop/hbase/quotas/QuotaScope.html" title="enum in org.apache.hadoop.hbase.quotas"><span class="typeNameLink">QuotaScope</span></a></li>
 </ul>
 </li>
 </ul>
index 80b3675..d32f804 100644 (file)
 <ul>
 <li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Enum</span></a>&lt;E&gt; (implements java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;T&gt;, java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>)
 <ul>
-<li type="circle">org.apache.hadoop.hbase.regionserver.<a href="../../../../../org/apache/hadoop/hbase/regionserver/ScannerContext.LimitScope.html" title="enum in org.apache.hadoop.hbase.regionserver"><span class="typeNameLink">ScannerContext.LimitScope</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.regionserver.<a href="../../../../../org/apache/hadoop/hbase/regionserver/MemStoreCompactionStrategy.Action.html" title="enum in org.apache.hadoop.hbase.regionserver"><span class="typeNameLink">MemStoreCompactionStrategy.Action</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.regionserver.<a href="../../../../../org/apache/hadoop/hbase/regionserver/ScannerContext.NextState.html" title="enum in org.apache.hadoop.hbase.regionserver"><span class="typeNameLink">ScannerContext.NextState</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.regionserver.<a href="../../../../../org/apache/hadoop/hbase/regionserver/TimeRangeTracker.Type.html" title="enum in org.apache.hadoop.hbase.regionserver"><span class="typeNameLink">TimeRangeTracker.Type</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.regionserver.<a href="../../../../../org/apache/hadoop/hbase/regionserver/CompactingMemStore.IndexType.html" title="enum in org.apache.hadoop.hbase.regionserver"><span class="typeNameLink">CompactingMemStore.IndexType</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.regionserver.<a href="../../../../../org/apache/hadoop/hbase/regionserver/MetricsRegionServerSourceFactoryImpl.FactoryStorage.html" title="enum in org.apache.hadoop.hbase.regionserver"><span class="typeNameLink">MetricsRegionServerSourceFactoryImpl.FactoryStorage</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.regionserver.<a href="../../../../../org/apache/hadoop/hbase/regionserver/HRegion.FlushResult.Result.html" title="enum in org.apache.hadoop.hbase.regionserver"><span class="typeNameLink">HRegion.FlushResult.Result</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.regionserver.<a href="../../../../../org/apache/hadoop/hbase/regionserver/BloomType.html" title="enum in org.apache.hadoop.hbase.regionserver"><span class="typeNameLink">BloomType</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.regionserver.<a href="../../../../../org/apache/hadoop/hbase/regionserver/DefaultHeapMemoryTuner.StepDirection.html" title="enum in org.apache.hadoop.hbase.regionserver"><span class="typeNameLink">DefaultHeapMemoryTuner.StepDirection</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.regionserver.<a href="../../../../../org/apache/hadoop/hbase/regionserver/Region.Operation.html" title="enum in org.apache.hadoop.hbase.regionserver"><span class="typeNameLink">Region.Operation</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.regionserver.<a href="../../../../../org/apache/hadoop/hbase/regionserver/ScanType.html" title="enum in org.apache.hadoop.hbase.regionserver"><span class="typeNameLink">ScanType</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.regionserver.<a href="../../../../../org/apache/hadoop/hbase/regionserver/MetricsRegionServerSourceFactoryImpl.FactoryStorage.html" title="enum in org.apache.hadoop.hbase.regionserver"><span class="typeNameLink">MetricsRegionServerSourceFactoryImpl.FactoryStorage</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.regionserver.<a href="../../../../../org/apache/hadoop/hbase/regionserver/SplitLogWorker.TaskExecutor.Status.html" title="enum in org.apache.hadoop.hbase.regionserver"><span class="typeNameLink">SplitLogWorker.TaskExecutor.Status</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.regionserver.<a href="../../../../../org/apache/hadoop/hbase/regionserver/ChunkCreator.ChunkType.html" title="enum in org.apache.hadoop.hbase.regionserver"><span class="typeNameLink">ChunkCreator.ChunkType</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.regionserver.<a href="../../../../../org/apache/hadoop/hbase/regionserver/TimeRangeTracker.Type.html" title="enum in org.apache.hadoop.hbase.regionserver"><span class="typeNameLink">TimeRangeTracker.Type</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.regionserver.<a href="../../../../../org/apache/hadoop/hbase/regionserver/CompactingMemStore.IndexType.html" title="enum in org.apache.hadoop.hbase.regionserver"><span class="typeNameLink">CompactingMemStore.IndexType</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.regionserver.<a href="../../../../../org/apache/hadoop/hbase/regionserver/ScannerContext.NextState.html" title="enum in org.apache.hadoop.hbase.regionserver"><span class="typeNameLink">ScannerContext.NextState</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.regionserver.<a href="../../../../../org/apache/hadoop/hbase/regionserver/FlushType.html" title="enum in org.apache.hadoop.hbase.regionserver"><span class="typeNameLink">FlushType</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.regionserver.<a href="../../../../../org/apache/hadoop/hbase/regionserver/BloomType.html" title="enum in org.apache.hadoop.hbase.regionserver"><span class="typeNameLink">BloomType</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.regionserver.<a href="../../../../../org/apache/hadoop/hbase/regionserver/ScannerContext.LimitScope.html" title="enum in org.apache.hadoop.hbase.regionserver"><span class="typeNameLink">ScannerContext.LimitScope</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.regionserver.<a href="../../../../../org/apache/hadoop/hbase/regionserver/DefaultHeapMemoryTuner.StepDirection.html" title="enum in org.apache.hadoop.hbase.regionserver"><span class="typeNameLink">DefaultHeapMemoryTuner.StepDirection</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.regionserver.<a href="../../../../../org/apache/hadoop/hbase/regionserver/Region.Operation.html" title="enum in org.apache.hadoop.hbase.regionserver"><span class="typeNameLink">Region.Operation</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.regionserver.<a href="../../../../../org/apache/hadoop/hbase/regionserver/MemStoreCompactionStrategy.Action.html" title="enum in org.apache.hadoop.hbase.regionserver"><span class="typeNameLink">MemStoreCompactionStrategy.Action</span></a></li>
 </ul>
 </li>
 </ul>
index 2731576..3bd22b5 100644 (file)
 <li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Enum</span></a>&lt;E&gt; (implements java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;T&gt;, java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>)
 <ul>
 <li type="circle">org.apache.hadoop.hbase.regionserver.querymatcher.<a href="../../../../../../org/apache/hadoop/hbase/regionserver/querymatcher/ScanQueryMatcher.MatchCode.html" title="enum in org.apache.hadoop.hbase.regionserver.querymatcher"><span class="typeNameLink">ScanQueryMatcher.MatchCode</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.regionserver.querymatcher.<a href="../../../../../../org/apache/hadoop/hbase/regionserver/querymatcher/DeleteTracker.DeleteResult.html" title="enum in org.apache.hadoop.hbase.regionserver.querymatcher"><span class="typeNameLink">DeleteTracker.DeleteResult</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.regionserver.querymatcher.<a href="../../../../../../org/apache/hadoop/hbase/regionserver/querymatcher/StripeCompactionScanQueryMatcher.DropDeletesInOutput.html" title="enum in org.apache.hadoop.hbase.regionserver.querymatcher"><span class="typeNameLink">StripeCompactionScanQueryMatcher.DropDeletesInOutput</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.regionserver.querymatcher.<a href="../../../../../../org/apache/hadoop/hbase/regionserver/querymatcher/DeleteTracker.DeleteResult.html" title="enum in org.apache.hadoop.hbase.regionserver.querymatcher"><span class="typeNameLink">DeleteTracker.DeleteResult</span></a></li>
 </ul>
 </li>
 </ul>
index e8df157..feee307 100644 (file)
 <ul>
 <li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Enum</span></a>&lt;E&gt; (implements java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;T&gt;, java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>)
 <ul>
-<li type="circle">org.apache.hadoop.hbase.regionserver.wal.<a href="../../../../../../org/apache/hadoop/hbase/regionserver/wal/CompressionContext.DictionaryIndex.html" title="enum in org.apache.hadoop.hbase.regionserver.wal"><span class="typeNameLink">CompressionContext.DictionaryIndex</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.regionserver.wal.<a href="../../../../../../org/apache/hadoop/hbase/regionserver/wal/RingBufferTruck.Type.html" title="enum in org.apache.hadoop.hbase.regionserver.wal"><span class="typeNameLink">RingBufferTruck.Type</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.regionserver.wal.<a href="../../../../../../org/apache/hadoop/hbase/regionserver/wal/ProtobufLogReader.WALHdrResult.html" title="enum in org.apache.hadoop.hbase.regionserver.wal"><span class="typeNameLink">ProtobufLogReader.WALHdrResult</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.regionserver.wal.<a href="../../../../../../org/apache/hadoop/hbase/regionserver/wal/CompressionContext.DictionaryIndex.html" title="enum in org.apache.hadoop.hbase.regionserver.wal"><span class="typeNameLink">CompressionContext.DictionaryIndex</span></a></li>
 </ul>
 </li>
 </ul>
index cd3870f..30c4e73 100644 (file)
 <ul>
 <li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Enum</span></a>&lt;E&gt; (implements java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;T&gt;, java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>)
 <ul>
-<li type="circle">org.apache.hadoop.hbase.replication.regionserver.<a href="../../../../../../org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceShipper.WorkerState.html" title="enum in org.apache.hadoop.hbase.replication.regionserver"><span class="typeNameLink">ReplicationSourceShipper.WorkerState</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.replication.regionserver.<a href="../../../../../../org/apache/hadoop/hbase/replication/regionserver/MetricsReplicationSourceFactoryImpl.SourceHolder.html" title="enum in org.apache.hadoop.hbase.replication.regionserver"><span class="typeNameLink">MetricsReplicationSourceFactoryImpl.SourceHolder</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.replication.regionserver.<a href="../../../../../../org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceShipper.WorkerState.html" title="enum in org.apache.hadoop.hbase.replication.regionserver"><span class="typeNameLink">ReplicationSourceShipper.WorkerState</span></a></li>
 </ul>
 </li>
 </ul>
index 56f5ff2..a7f8883 100644 (file)
 <ul>
 <li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Enum</span></a>&lt;E&gt; (implements java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;T&gt;, java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>)
 <ul>
-<li type="circle">org.apache.hadoop.hbase.security.access.<a href="../../../../../../org/apache/hadoop/hbase/security/access/AccessControlFilter.Strategy.html" title="enum in org.apache.hadoop.hbase.security.access"><span class="typeNameLink">AccessControlFilter.Strategy</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.security.access.<a href="../../../../../../org/apache/hadoop/hbase/security/access/Permission.Action.html" title="enum in org.apache.hadoop.hbase.security.access"><span class="typeNameLink">Permission.Action</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.security.access.<a href="../../../../../../org/apache/hadoop/hbase/security/access/AccessController.OpType.html" title="enum in org.apache.hadoop.hbase.security.access"><span class="typeNameLink">AccessController.OpType</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.security.access.<a href="../../../../../../org/apache/hadoop/hbase/security/access/Permission.Scope.html" title="enum in org.apache.hadoop.hbase.security.access"><span class="typeNameLink">Permission.Scope</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.security.access.<a href="../../../../../../org/apache/hadoop/hbase/security/access/AccessControlFilter.Strategy.html" title="enum in org.apache.hadoop.hbase.security.access"><span class="typeNameLink">AccessControlFilter.Strategy</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.security.access.<a href="../../../../../../org/apache/hadoop/hbase/security/access/AccessController.OpType.html" title="enum in org.apache.hadoop.hbase.security.access"><span class="typeNameLink">AccessController.OpType</span></a></li>
 </ul>
 </li>
 </ul>
index 6ef281d..67b7e3a 100644 (file)
 <ul>
 <li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Enum</span></a>&lt;E&gt; (implements java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;T&gt;, java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>)
 <ul>
+<li type="circle">org.apache.hadoop.hbase.security.<a href="../../../../../org/apache/hadoop/hbase/security/AuthMethod.html" title="enum in org.apache.hadoop.hbase.security"><span class="typeNameLink">AuthMethod</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.security.<a href="../../../../../org/apache/hadoop/hbase/security/SaslUtil.QualityOfProtection.html" title="enum in org.apache.hadoop.hbase.security"><span class="typeNameLink">SaslUtil.QualityOfProtection</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.security.<a href="../../../../../org/apache/hadoop/hbase/security/SaslStatus.html" title="enum in org.apache.hadoop.hbase.security"><span class="typeNameLink">SaslStatus</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.security.<a href="../../../../../org/apache/hadoop/hbase/security/AuthMethod.html" title="enum in org.apache.hadoop.hbase.security"><span class="typeNameLink">AuthMethod</span></a></li>
 </ul>
 </li>
 </ul>
index 4ade4c1..2923faf 100644 (file)
 <ul>
 <li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Enum</span></a>&lt;E&gt; (implements java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;T&gt;, java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>)
 <ul>
-<li type="circle">org.apache.hadoop.hbase.thrift.<a href="../../../../../org/apache/hadoop/hbase/thrift/ThriftMetrics.ThriftServerType.html" title="enum in org.apache.hadoop.hbase.thrift"><span class="typeNameLink">ThriftMetrics.ThriftServerType</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.thrift.<a href="../../../../../org/apache/hadoop/hbase/thrift/ThriftServerRunner.ImplType.html" title="enum in org.apache.hadoop.hbase.thrift"><span class="typeNameLink">ThriftServerRunner.ImplType</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.thrift.<a href="../../../../../org/apache/hadoop/hbase/thrift/MetricsThriftServerSourceFactoryImpl.FactoryStorage.html" title="enum in org.apache.hadoop.hbase.thrift"><span class="typeNameLink">MetricsThriftServerSourceFactoryImpl.FactoryStorage</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.thrift.<a href="../../../../../org/apache/hadoop/hbase/thrift/ThriftMetrics.ThriftServerType.html" title="enum in org.apache.hadoop.hbase.thrift"><span class="typeNameLink">ThriftMetrics.ThriftServerType</span></a></li>
 </ul>
 </li>
 </ul>
index 60ce716..0cb7ca2 100644 (file)
 <ul>
 <li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Enum</span></a>&lt;E&gt; (implements java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;T&gt;, java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>)
 <ul>
-<li type="circle">org.apache.hadoop.hbase.util.<a href="../../../../../org/apache/hadoop/hbase/util/IdReadWriteLock.ReferenceType.html" title="enum in org.apache.hadoop.hbase.util"><span class="typeNameLink">IdReadWriteLock.ReferenceType</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.util.<a href="../../../../../org/apache/hadoop/hbase/util/PrettyPrinter.Unit.html" title="enum in org.apache.hadoop.hbase.util"><span class="typeNameLink">PrettyPrinter.Unit</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.util.<a href="../../../../../org/apache/hadoop/hbase/util/HBaseFsck.ErrorReporter.ERROR_CODE.html" title="enum in org.apache.hadoop.hbase.util"><span class="typeNameLink">HBaseFsck.ErrorReporter.ERROR_CODE</span></a></li>
-<li type="circle">org.apache.hadoop.hbase.util.<a href="../../../../../org/apache/hadoop/hbase/util/Bytes.LexicographicalComparerHolder.UnsafeComparer.html" title="enum in org.apache.hadoop.hbase.util"><span class="typeNameLink">Bytes.LexicographicalComparerHolder.UnsafeComparer</span></a> (implements org.apache.hadoop.hbase.util.<a href="../../../../../org/apache/hadoop/hbase/util/Bytes.Comparer.html" title="interface in org.apache.hadoop.hbase.util">Bytes.Comparer</a>&lt;T&gt;)</li>
-<li type="circle">org.apache.hadoop.hbase.util.<a href="../../../../../org/apache/hadoop/hbase/util/PoolMap.PoolType.html" title="enum in org.apache.hadoop.hbase.util"><span class="typeNameLink">PoolMap.PoolType</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.util.<a href="../../../../../org/apache/hadoop/hbase/util/Bytes.LexicographicalComparerHolder.PureJavaComparer.html" title="enum in org.apache.hadoop.hbase.util"><span class="typeNameLink">Bytes.LexicographicalComparerHolder.PureJavaComparer</span></a> (implements org.apache.hadoop.hbase.util.<a href="../../../../../org/apache/hadoop/hbase/util/Bytes.Comparer.html" title="interface in org.apache.hadoop.hbase.util">Bytes.Comparer</a>&lt;T&gt;)</li>
+<li type="circle">org.apache.hadoop.hbase.util.<a href="../../../../../org/apache/hadoop/hbase/util/PoolMap.PoolType.html" title="enum in org.apache.hadoop.hbase.util"><span class="typeNameLink">PoolMap.PoolType</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.util.<a href="../../../../../org/apache/hadoop/hbase/util/ChecksumType.html" title="enum in org.apache.hadoop.hbase.util"><span class="typeNameLink">ChecksumType</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.util.<a href="../../../../../org/apache/hadoop/hbase/util/IdReadWriteLock.ReferenceType.html" title="enum in org.apache.hadoop.hbase.util"><span class="typeNameLink">IdReadWriteLock.ReferenceType</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.util.<a href="../../../../../org/apache/hadoop/hbase/util/HBaseFsck.ErrorReporter.ERROR_CODE.html" title="enum in org.apache.hadoop.hbase.util"><span class="typeNameLink">HBaseFsck.ErrorReporter.ERROR_CODE</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.util.<a href="../../../../../org/apache/hadoop/hbase/util/PrettyPrinter.Unit.html" title="enum in org.apache.hadoop.hbase.util"><span class="typeNameLink">PrettyPrinter.Unit</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.util.<a href="../../../../../org/apache/hadoop/hbase/util/Order.html" title="enum in org.apache.hadoop.hbase.util"><span class="typeNameLink">Order</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.util.<a href="../../../../../org/apache/hadoop/hbase/util/Bytes.LexicographicalComparerHolder.UnsafeComparer.html" title="enum in org.apache.hadoop.hbase.util"><span class="typeNameLink">Bytes.LexicographicalComparerHolder.UnsafeComparer</span></a> (implements org.apache.hadoop.hbase.util.<a href="../../../../../org/apache/hadoop/hbase/util/Bytes.Comparer.html" title="interface in org.apache.hadoop.hbase.util">Bytes.Comparer</a>&lt;T&gt;)</li>
 </ul>
 </li>
 </ul>
index c6caa9b..bcb1724 100644 (file)
 <ul>
 <li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Enum</span></a>&lt;E&gt; (implements java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;T&gt;, java.io.<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>)
 <ul>
-<li type="circle">org.apache.hadoop.hbase.wal.<a href="../../../../../org/apache/hadoop/hbase/wal/WALFactory.Providers.html" title="enum in org.apache.hadoop.hbase.wal"><span class="typeNameLink">WALFactory.Providers</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.wal.<a href="../../../../../org/apache/hadoop/hbase/wal/RegionGroupingProvider.Strategies.html" title="enum in org.apache.hadoop.hbase.wal"><span class="typeNameLink">RegionGroupingProvider.Strategies</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.wal.<a href="../../../../../org/apache/hadoop/hbase/wal/WALFactory.Providers.html" title="enum in org.apache.hadoop.hbase.wal"><span class="typeNameLink">WALFactory.Providers</span></a></li>
 </ul>
 </li>
 </ul>
index 712bd04..5f46c6b 100644 (file)
@@ -18,9 +18,9 @@
 <span class="sourceLineNo">010</span>  public static final String version = "3.0.0-SNAPSHOT";<a name="line.10"></a>
 <span class="sourceLineNo">011</span>  public static final String revision = "";<a name="line.11"></a>
 <span class="sourceLineNo">012</span>  public static final String user = "jenkins";<a name="line.12"></a>
-<span class="sourceLineNo">013</span>  public static final String date = "Wed Nov 28 14:43:50 UTC 2018";<a name="line.13"></a>
+<span class="sourceLineNo">013</span>  public static final String date = "Thu Nov 29 14:44:16 UTC 2018";<a name="line.13"></a>
 <span class="sourceLineNo">014</span>  public static final String url = "git://jenkins-websites1.apache.org/home/jenkins/jenkins-slave/workspace/hbase_generate_website/hbase";<a name="line.14"></a>
-<span class="sourceLineNo">015</span>  public static final String srcChecksum = "b23360ee266f58ff8faf957fba61f6ed";<a name="line.15"></a>
+<span class="sourceLineNo">015</span>  public static final String srcChecksum = "76c50b67ef7b146f8930329762e594c4";<a name="line.15"></a>
 <span class="sourceLineNo">016</span>}<a name="line.16"></a>
 
 
index 054ecc3..2263672 100644 (file)
 <span class="sourceLineNo">042</span>import org.apache.hadoop.hbase.master.RegionState;<a name="line.42"></a>
 <span class="sourceLineNo">043</span>import org.apache.hadoop.hbase.master.assignment.AssignmentManager;<a name="line.43"></a>
 <span class="sourceLineNo">044</span>import org.apache.hadoop.hbase.master.procedure.CreateTableProcedure.CreateHdfsRegions;<a name="line.44"></a>
-<span class="sourceLineNo">045</span>import org.apache.hadoop.hbase.monitoring.MonitoredTask;<a name="line.45"></a>
-<span class="sourceLineNo">046</span>import org.apache.hadoop.hbase.monitoring.TaskMonitor;<a name="line.46"></a>
-<span class="sourceLineNo">047</span>import org.apache.hadoop.hbase.procedure2.ProcedureStateSerializer;<a name="line.47"></a>
-<span class="sourceLineNo">048</span>import org.apache.hadoop.hbase.snapshot.ClientSnapshotDescriptionUtils;<a name="line.48"></a>
-<span class="sourceLineNo">049</span>import org.apache.hadoop.hbase.snapshot.RestoreSnapshotException;<a name="line.49"></a>
-<span class="sourceLineNo">050</span>import org.apache.hadoop.hbase.snapshot.RestoreSnapshotHelper;<a name="line.50"></a>
-<span class="sourceLineNo">051</span>import org.apache.hadoop.hbase.snapshot.SnapshotDescriptionUtils;<a name="line.51"></a>
-<span class="sourceLineNo">052</span>import org.apache.hadoop.hbase.snapshot.SnapshotManifest;<a name="line.52"></a>
-<span class="sourceLineNo">053</span>import org.apache.hadoop.hbase.util.FSTableDescriptors;<a name="line.53"></a>
-<span class="sourceLineNo">054</span>import org.apache.hadoop.hbase.util.FSUtils;<a name="line.54"></a>
-<span class="sourceLineNo">055</span>import org.apache.hadoop.hbase.util.Pair;<a name="line.55"></a>
-<span class="sourceLineNo">056</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.56"></a>
-<span class="sourceLineNo">057</span>import org.slf4j.Logger;<a name="line.57"></a>
-<span class="sourceLineNo">058</span>import org.slf4j.LoggerFactory;<a name="line.58"></a>
-<span class="sourceLineNo">059</span>import org.apache.hbase.thirdparty.com.google.common.base.Preconditions;<a name="line.59"></a>
-<span class="sourceLineNo">060</span>import org.apache.hadoop.hbase.shaded.protobuf.ProtobufUtil;<a name="line.60"></a>
-<span class="sourceLineNo">061</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos;<a name="line.61"></a>
-<span class="sourceLineNo">062</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos;<a name="line.62"></a>
-<span class="sourceLineNo">063</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.CloneSnapshotState;<a name="line.63"></a>
-<span class="sourceLineNo">064</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription;<a name="line.64"></a>
-<span class="sourceLineNo">065</span><a name="line.65"></a>
-<span class="sourceLineNo">066</span>@InterfaceAudience.Private<a name="line.66"></a>
-<span class="sourceLineNo">067</span>public class CloneSnapshotProcedure<a name="line.67"></a>
-<span class="sourceLineNo">068</span>    extends AbstractStateMachineTableProcedure&lt;CloneSnapshotState&gt; {<a name="line.68"></a>
-<span class="sourceLineNo">069</span>  private static final Logger LOG = LoggerFactory.getLogger(CloneSnapshotProcedure.class);<a name="line.69"></a>
-<span class="sourceLineNo">070</span><a name="line.70"></a>
-<span class="sourceLineNo">071</span>  private TableDescriptor tableDescriptor;<a name="line.71"></a>
-<span class="sourceLineNo">072</span>  private SnapshotDescription snapshot;<a name="line.72"></a>
-<span class="sourceLineNo">073</span>  private boolean restoreAcl;<a name="line.73"></a>
-<span class="sourceLineNo">074</span>  private List&lt;RegionInfo&gt; newRegions = null;<a name="line.74"></a>
-<span class="sourceLineNo">075</span>  private Map&lt;String, Pair&lt;String, String&gt; &gt; parentsToChildrenPairMap = new HashMap&lt;&gt;();<a name="line.75"></a>
-<span class="sourceLineNo">076</span><a name="line.76"></a>
-<span class="sourceLineNo">077</span>  // Monitor<a name="line.77"></a>
-<span class="sourceLineNo">078</span>  private MonitoredTask monitorStatus = null;<a name="line.78"></a>
-<span class="sourceLineNo">079</span><a name="line.79"></a>
-<span class="sourceLineNo">080</span>  private Boolean traceEnabled = null;<a name="line.80"></a>
-<span class="sourceLineNo">081</span><a name="line.81"></a>
-<span class="sourceLineNo">082</span>  /**<a name="line.82"></a>
-<span class="sourceLineNo">083</span>   * Constructor (for failover)<a name="line.83"></a>
-<span class="sourceLineNo">084</span>   */<a name="line.84"></a>
-<span class="sourceLineNo">085</span>  public CloneSnapshotProcedure() {<a name="line.85"></a>
-<span class="sourceLineNo">086</span>  }<a name="line.86"></a>
-<span class="sourceLineNo">087</span><a name="line.87"></a>
-<span class="sourceLineNo">088</span>  public CloneSnapshotProcedure(final MasterProcedureEnv env,<a name="line.88"></a>
-<span class="sourceLineNo">089</span>      final TableDescriptor tableDescriptor, final SnapshotDescription snapshot) {<a name="line.89"></a>
-<span class="sourceLineNo">090</span>    this(env, tableDescriptor, snapshot, false);<a name="line.90"></a>
-<span class="sourceLineNo">091</span>  }<a name="line.91"></a>
-<span class="sourceLineNo">092</span><a name="line.92"></a>
-<span class="sourceLineNo">093</span>  /**<a name="line.93"></a>
-<span class="sourceLineNo">094</span>   * Constructor<a name="line.94"></a>
-<span class="sourceLineNo">095</span>   * @param env MasterProcedureEnv<a name="line.95"></a>
-<span class="sourceLineNo">096</span>   * @param tableDescriptor the table to operate on<a name="line.96"></a>
-<span class="sourceLineNo">097</span>   * @param snapshot snapshot to clone from<a name="line.97"></a>
-<span class="sourceLineNo">098</span>   */<a name="line.98"></a>
-<span class="sourceLineNo">099</span>  public CloneSnapshotProcedure(final MasterProcedureEnv env,<a name="line.99"></a>
-<span class="sourceLineNo">100</span>      final TableDescriptor tableDescriptor, final SnapshotDescription snapshot,<a name="line.100"></a>
-<span class="sourceLineNo">101</span>      final boolean restoreAcl) {<a name="line.101"></a>
-<span class="sourceLineNo">102</span>    super(env);<a name="line.102"></a>
-<span class="sourceLineNo">103</span>    this.tableDescriptor = tableDescriptor;<a name="line.103"></a>
-<span class="sourceLineNo">104</span>    this.snapshot = snapshot;<a name="line.104"></a>
-<span class="sourceLineNo">105</span>    this.restoreAcl = restoreAcl;<a name="line.105"></a>
-<span class="sourceLineNo">106</span><a name="line.106"></a>
-<span class="sourceLineNo">107</span>    getMonitorStatus();<a name="line.107"></a>
-<span class="sourceLineNo">108</span>  }<a name="line.108"></a>
-<span class="sourceLineNo">109</span><a name="line.109"></a>
-<span class="sourceLineNo">110</span>  /**<a name="line.110"></a>
-<span class="sourceLineNo">111</span>   * Set up monitor status if it is not created.<a name="line.111"></a>
-<span class="sourceLineNo">112</span>   */<a name="line.112"></a>
-<span class="sourceLineNo">113</span>  private MonitoredTask getMonitorStatus() {<a name="line.113"></a>
-<span class="sourceLineNo">114</span>    if (monitorStatus == null) {<a name="line.114"></a>
-<span class="sourceLineNo">115</span>      monitorStatus = TaskMonitor.get().createStatus("Cloning  snapshot '" + snapshot.getName() +<a name="line.115"></a>
-<span class="sourceLineNo">116</span>        "' to table " + getTableName());<a name="line.116"></a>
-<span class="sourceLineNo">117</span>    }<a name="line.117"></a>
-<span class="sourceLineNo">118</span>    return monitorStatus;<a name="line.118"></a>
-<span class="sourceLineNo">119</span>  }<a name="line.119"></a>
-<span class="sourceLineNo">120</span><a name="line.120"></a>
-<span class="sourceLineNo">121</span>  private void restoreSnapshotAcl(MasterProcedureEnv env) throws IOException {<a name="line.121"></a>
-<span class="sourceLineNo">122</span>    Configuration conf = env.getMasterServices().getConfiguration();<a name="line.122"></a>
-<span class="sourceLineNo">123</span>    if (restoreAcl &amp;&amp; snapshot.hasUsersAndPermissions() &amp;&amp; snapshot.getUsersAndPermissions() != null<a name="line.123"></a>
-<span class="sourceLineNo">124</span>        &amp;&amp; SnapshotDescriptionUtils.isSecurityAvailable(conf)) {<a name="line.124"></a>
-<span class="sourceLineNo">125</span>      RestoreSnapshotHelper.restoreSnapshotAcl(snapshot, tableDescriptor.getTableName(), conf);<a name="line.125"></a>
-<span class="sourceLineNo">126</span>    }<a name="line.126"></a>
-<span class="sourceLineNo">127</span>  }<a name="line.127"></a>
-<span class="sourceLineNo">128</span><a name="line.128"></a>
-<span class="sourceLineNo">129</span>  @Override<a name="line.129"></a>
-<span class="sourceLineNo">130</span>  protected Flow executeFromState(final MasterProcedureEnv env, final CloneSnapshotState state)<a name="line.130"></a>
-<span class="sourceLineNo">131</span>      throws InterruptedException {<a name="line.131"></a>
-<span class="sourceLineNo">132</span>    if (isTraceEnabled()) {<a name="line.132"></a>
-<span class="sourceLineNo">133</span>      LOG.trace(this + " execute state=" + state);<a name="line.133"></a>
-<span class="sourceLineNo">134</span>    }<a name="line.134"></a>
-<span class="sourceLineNo">135</span>    try {<a name="line.135"></a>
-<span class="sourceLineNo">136</span>      switch (state) {<a name="line.136"></a>
-<span class="sourceLineNo">137</span>        case CLONE_SNAPSHOT_PRE_OPERATION:<a name="line.137"></a>
-<span class="sourceLineNo">138</span>          // Verify if we can clone the table<a name="line.138"></a>
-<span class="sourceLineNo">139</span>          prepareClone(env);<a name="line.139"></a>
-<span class="sourceLineNo">140</span><a name="line.140"></a>
-<span class="sourceLineNo">141</span>          preCloneSnapshot(env);<a name="line.141"></a>
-<span class="sourceLineNo">142</span>          setNextState(CloneSnapshotState.CLONE_SNAPSHOT_WRITE_FS_LAYOUT);<a name="line.142"></a>
-<span class="sourceLineNo">143</span>          break;<a name="line.143"></a>
-<span class="sourceLineNo">144</span>        case CLONE_SNAPSHOT_WRITE_FS_LAYOUT:<a name="line.144"></a>
-<span class="sourceLineNo">145</span>          newRegions = createFilesystemLayout(env, tableDescriptor, newRegions);<a name="line.145"></a>
-<span class="sourceLineNo">146</span>          setNextState(CloneSnapshotState.CLONE_SNAPSHOT_ADD_TO_META);<a name="line.146"></a>
-<span class="sourceLineNo">147</span>          break;<a name="line.147"></a>
-<span class="sourceLineNo">148</span>        case CLONE_SNAPSHOT_ADD_TO_META:<a name="line.148"></a>
-<span class="sourceLineNo">149</span>          addRegionsToMeta(env);<a name="line.149"></a>
-<span class="sourceLineNo">150</span>          setNextState(CloneSnapshotState.CLONE_SNAPSHOT_ASSIGN_REGIONS);<a name="line.150"></a>
-<span class="sourceLineNo">151</span>          break;<a name="line.151"></a>
-<span class="sourceLineNo">152</span>        case CLONE_SNAPSHOT_ASSIGN_REGIONS:<a name="line.152"></a>
-<span class="sourceLineNo">153</span>          CreateTableProcedure.setEnablingState(env, getTableName());<a name="line.153"></a>
-<span class="sourceLineNo">154</span><a name="line.154"></a>
-<span class="sourceLineNo">155</span>          // Separate newRegions to split regions and regions to assign<a name="line.155"></a>
-<span class="sourceLineNo">156</span>          List&lt;RegionInfo&gt; splitRegions = new ArrayList&lt;&gt;();<a name="line.156"></a>
-<span class="sourceLineNo">157</span>          List&lt;RegionInfo&gt; regionsToAssign = new ArrayList&lt;&gt;();<a name="line.157"></a>
-<span class="sourceLineNo">158</span>          newRegions.forEach(ri -&gt; {<a name="line.158"></a>
-<span class="sourceLineNo">159</span>            if (ri.isOffline() &amp;&amp; (ri.isSplit() || ri.isSplitParent())) {<a name="line.159"></a>
-<span class="sourceLineNo">160</span>              splitRegions.add(ri);<a name="line.160"></a>
-<span class="sourceLineNo">161</span>            } else {<a name="line.161"></a>
-<span class="sourceLineNo">162</span>              regionsToAssign.add(ri);<a name="line.162"></a>
-<span class="sourceLineNo">163</span>            }<a name="line.163"></a>
-<span class="sourceLineNo">164</span>          });<a name="line.164"></a>
-<span class="sourceLineNo">165</span><a name="line.165"></a>
-<span class="sourceLineNo">166</span>          // For split regions, add them to RegionStates<a name="line.166"></a>
-<span class="sourceLineNo">167</span>          AssignmentManager am = env.getAssignmentManager();<a name="line.167"></a>
-<span class="sourceLineNo">168</span>          splitRegions.forEach(ri -&gt;<a name="line.168"></a>
-<span class="sourceLineNo">169</span>            am.getRegionStates().updateRegionState(ri, RegionState.State.SPLIT)<a name="line.169"></a>
-<span class="sourceLineNo">170</span>          );<a name="line.170"></a>
-<span class="sourceLineNo">171</span><a name="line.171"></a>
-<span class="sourceLineNo">172</span>          addChildProcedure(env.getAssignmentManager()<a name="line.172"></a>
-<span class="sourceLineNo">173</span>            .createRoundRobinAssignProcedures(regionsToAssign));<a name="line.173"></a>
-<span class="sourceLineNo">174</span>          setNextState(CloneSnapshotState.CLONE_SNAPSHOT_UPDATE_DESC_CACHE);<a name="line.174"></a>
-<span class="sourceLineNo">175</span>          break;<a name="line.175"></a>
-<span class="sourceLineNo">176</span>        case CLONE_SNAPSHOT_UPDATE_DESC_CACHE:<a name="line.176"></a>
-<span class="sourceLineNo">177</span>          CreateTableProcedure.setEnabledState(env, getTableName());<a name="line.177"></a>
-<span class="sourceLineNo">178</span>          CreateTableProcedure.updateTableDescCache(env, getTableName());<a name="line.178"></a>
-<span class="sourceLineNo">179</span>          setNextState(CloneSnapshotState.CLONE_SNAPHOST_RESTORE_ACL);<a name="line.179"></a>
-<span class="sourceLineNo">180</span>          break;<a name="line.180"></a>
-<span class="sourceLineNo">181</span>        case CLONE_SNAPHOST_RESTORE_ACL:<a name="line.181"></a>
-<span class="sourceLineNo">182</span>          restoreSnapshotAcl(env);<a name="line.182"></a>
-<span class="sourceLineNo">183</span>          setNextState(CloneSnapshotState.CLONE_SNAPSHOT_POST_OPERATION);<a name="line.183"></a>
-<span class="sourceLineNo">184</span>          break;<a name="line.184"></a>
-<span class="sourceLineNo">185</span>        case CLONE_SNAPSHOT_POST_OPERATION:<a name="line.185"></a>
-<span class="sourceLineNo">186</span>          postCloneSnapshot(env);<a name="line.186"></a>
-<span class="sourceLineNo">187</span><a name="line.187"></a>
-<span class="sourceLineNo">188</span>          MetricsSnapshot metricsSnapshot = new MetricsSnapshot();<a name="line.188"></a>
-<span class="sourceLineNo">189</span>          metricsSnapshot.addSnapshotClone(<a name="line.189"></a>
-<span class="sourceLineNo">190</span>            getMonitorStatus().getCompletionTimestamp() - getMonitorStatus().getStartTime());<a name="line.190"></a>
-<span class="sourceLineNo">191</span>          getMonitorStatus().markComplete("Clone snapshot '"+ snapshot.getName() +"' completed!");<a name="line.191"></a>
-<span class="sourceLineNo">192</span>          return Flow.NO_MORE_STATE;<a name="line.192"></a>
-<span class="sourceLineNo">193</span>        default:<a name="line.193"></a>
-<span class="sourceLineNo">194</span>          throw new UnsupportedOperationException("unhandled state=" + state);<a name="line.194"></a>
-<span class="sourceLineNo">195</span>      }<a name="line.195"></a>
-<span class="sourceLineNo">196</span>    } catch (IOException e) {<a name="line.196"></a>
-<span class="sourceLineNo">197</span>      if (isRollbackSupported(state)) {<a name="line.197"></a>
-<span class="sourceLineNo">198</span>        setFailure("master-clone-snapshot", e);<a name="line.198"></a>
-<span class="sourceLineNo">199</span>      } else {<a name="line.199"></a>
-<span class="sourceLineNo">200</span>        LOG.warn("Retriable error trying to clone snapshot=" + snapshot.getName() +<a name="line.200"></a>
-<span class="sourceLineNo">201</span>          " to table=" + getTableName() + " state=" + state, e);<a name="line.201"></a>
-<span class="sourceLineNo">202</span>      }<a name="line.202"></a>
-<span class="sourceLineNo">203</span>    }<a name="line.203"></a>
-<span class="sourceLineNo">204</span>    return Flow.HAS_MORE_STATE;<a name="line.204"></a>
-<span class="sourceLineNo">205</span>  }<a name="line.205"></a>
-<span class="sourceLineNo">206</span><a name="line.206"></a>
-<span class="sourceLineNo">207</span>  @Override<a name="line.207"></a>
-<span class="sourceLineNo">208</span>  protected void rollbackState(final MasterProcedureEnv env, final CloneSnapshotState state)<a name="line.208"></a>
-<span class="sourceLineNo">209</span>      throws IOException {<a name="line.209"></a>
-<span class="sourceLineNo">210</span>    if (state == CloneSnapshotState.CLONE_SNAPSHOT_PRE_OPERATION) {<a name="line.210"></a>
-<span class="sourceLineNo">211</span>      DeleteTableProcedure.deleteTableStates(env, getTableName());<a name="line.211"></a>
-<span class="sourceLineNo">212</span>      // TODO-MAYBE: call the deleteTable coprocessor event?<a name="line.212"></a>
-<span class="sourceLineNo">213</span>      return;<a name="line.213"></a>
-<span class="sourceLineNo">214</span>    }<a name="line.214"></a>
-<span class="sourceLineNo">215</span><a name="line.215"></a>
-<span class="sourceLineNo">216</span>    // The procedure doesn't have a rollback. The execution will succeed, at some point.<a name="line.216"></a>
-<span class="sourceLineNo">217</span>    throw new UnsupportedOperationException("unhandled state=" + state);<a name="line.217"></a>
-<span class="sourceLineNo">218</span>  }<a name="line.218"></a>
-<span class="sourceLineNo">219</span><a name="line.219"></a>
-<span class="sourceLineNo">220</span>  @Override<a name="line.220"></a>
-<span class="sourceLineNo">221</span>  protected boolean isRollbackSupported(final CloneSnapshotState state) {<a name="line.221"></a>
-<span class="sourceLineNo">222</span>    switch (state) {<a name="line.222"></a>
-<span class="sourceLineNo">223</span>      case CLONE_SNAPSHOT_PRE_OPERATION:<a name="line.223"></a>
-<span class="sourceLineNo">224</span>        return true;<a name="line.224"></a>
-<span class="sourceLineNo">225</span>      default:<a name="line.225"></a>
-<span class="sourceLineNo">226</span>        return false;<a name="line.226"></a>
-<span class="sourceLineNo">227</span>    }<a name="line.227"></a>
-<span class="sourceLineNo">228</span>  }<a name="line.228"></a>
-<span class="sourceLineNo">229</span><a name="line.229"></a>
-<span class="sourceLineNo">230</span>  @Override<a name="line.230"></a>
-<span class="sourceLineNo">231</span>  protected CloneSnapshotState getState(final int stateId) {<a name="line.231"></a>
-<span class="sourceLineNo">232</span>    return CloneSnapshotState.valueOf(stateId);<a name="line.232"></a>
-<span class="sourceLineNo">233</span>  }<a name="line.233"></a>
-<span class="sourceLineNo">234</span><a name="line.234"></a>
-<span class="sourceLineNo">235</span>  @Override<a name="line.235"></a>
-<span class="sourceLineNo">236</span>  protected int getStateId(final CloneSnapshotState state) {<a name="line.236"></a>
-<span class="sourceLineNo">237</span>    return state.getNumber();<a name="line.237"></a>
-<span class="sourceLineNo">238</span>  }<a name="line.238"></a>
-<span class="sourceLineNo">239</span><a name="line.239"></a>
-<span class="sourceLineNo">240</span>  @Override<a name="line.240"></a>
-<span class="sourceLineNo">241</span>  protected CloneSnapshotState getInitialState() {<a name="line.241"></a>
-<span class="sourceLineNo">242</span>    return CloneSnapshotState.CLONE_SNAPSHOT_PRE_OPERATION;<a name="line.242"></a>
-<span class="sourceLineNo">243</span>  }<a name="line.243"></a>
-<span class="sourceLineNo">244</span><a name="line.244"></a>
-<span class="sourceLineNo">245</span>  @Override<a name="line.245"></a>
-<span class="sourceLineNo">246</span>  public TableName getTableName() {<a name="line.246"></a>
-<span class="sourceLineNo">247</span>    return tableDescriptor.getTableName();<a name="line.247"></a>
-<span class="sourceLineNo">248</span>  }<a name="line.248"></a>
-<span class="sourceLineNo">249</span><a name="line.249"></a>
-<span class="sourceLineNo">250</span>  @Override<a name="line.250"></a>
-<span class="sourceLineNo">251</span>  public TableOperationType getTableOperationType() {<a name="line.251"></a>
-<span class="sourceLineNo">252</span>    return TableOperationType.CREATE; // Clone is creating a table<a name="line.252"></a>
-<span class="sourceLineNo">253</span>  }<a name="line.253"></a>
-<span class="sourceLineNo">254</span><a name="line.254"></a>
-<span class="sourceLineNo">255</span>  @Override<a name="line.255"></a>
-<span class="sourceLineNo">256</span>  public void toStringClassDetails(StringBuilder sb) {<a name="line.256"></a>
-<span class="sourceLineNo">257</span>    sb.append(getClass().getSimpleName());<a name="line.257"></a>
-<span class="sourceLineNo">258</span>    sb.append(" (table=");<a name="line.258"></a>
-<span class="sourceLineNo">259</span>    sb.append(getTableName());<a name="line.259"></a>
-<span class="sourceLineNo">260</span>    sb.append(" snapshot=");<a name="line.260"></a>
-<span class="sourceLineNo">261</span>    sb.append(snapshot);<a name="line.261"></a>
-<span class="sourceLineNo">262</span>    sb.append(")");<a name="line.262"></a>
-<span class="sourceLineNo">263</span>  }<a name="line.263"></a>
-<span class="sourceLineNo">264</span><a name="line.264"></a>
-<span class="sourceLineNo">265</span>  @Override<a name="line.265"></a>
-<span class="sourceLineNo">266</span>  protected void serializeStateData(ProcedureStateSerializer serializer)<a name="line.266"></a>
-<span class="sourceLineNo">267</span>      throws IOException {<a name="line.267"></a>
-<span class="sourceLineNo">268</span>    super.serializeStateData(serializer);<a name="line.268"></a>
-<span class="sourceLineNo">269</span><a name="line.269"></a>
-<span class="sourceLineNo">270</span>    MasterProcedureProtos.CloneSnapshotStateData.Builder cloneSnapshotMsg =<a name="line.270"></a>
-<span class="sourceLineNo">271</span>      MasterProcedureProtos.CloneSnapshotStateData.newBuilder()<a name="line.271"></a>
-<span class="sourceLineNo">272</span>        .setUserInfo(MasterProcedureUtil.toProtoUserInfo(getUser()))<a name="line.272"></a>
-<span class="sourceLineNo">273</span>        .setSnapshot(this.snapshot)<a name="line.273"></a>
-<span class="sourceLineNo">274</span>        .setTableSchema(ProtobufUtil.toTableSchema(tableDescriptor));<a name="line.274"></a>
-<span class="sourceLineNo">275</span>    if (newRegions != null) {<a name="line.275"></a>
-<span class="sourceLineNo">276</span>      for (RegionInfo hri: newRegions) {<a name="line.276"></a>
-<span class="sourceLineNo">277</span>        cloneSnapshotMsg.addRegionInfo(ProtobufUtil.toRegionInfo(hri));<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>    if (!parentsToChildrenPairMap.isEmpty()) {<a name="line.280"></a>
-<span class="sourceLineNo">281</span>      final Iterator&lt;Map.Entry&lt;String, Pair&lt;String, String&gt;&gt;&gt; it =<a name="line.281"></a>
-<span class="sourceLineNo">282</span>        parentsToChildrenPairMap.entrySet().iterator();<a name="line.282"></a>
-<span class="sourceLineNo">283</span>      while (it.hasNext()) {<a name="line.283"></a>
-<span class="sourceLineNo">284</span>        final Map.Entry&lt;String, Pair&lt;String, String&gt;&gt; entry = it.next();<a name="line.284"></a>
-<span class="sourceLineNo">285</span><a name="line.285"></a>
-<span class="sourceLineNo">286</span>        MasterProcedureProtos.RestoreParentToChildRegionsPair.Builder parentToChildrenPair =<a name="line.286"></a>
-<span class="sourceLineNo">287</span>          MasterProcedureProtos.RestoreParentToChildRegionsPair.newBuilder()<a name="line.287"></a>
-<span class="sourceLineNo">288</span>          .setParentRegionName(entry.getKey())<a name="line.288"></a>
-<span class="sourceLineNo">289</span>          .setChild1RegionName(entry.getValue().getFirst())<a name="line.289"></a>
-<span class="sourceLineNo">290</span>          .setChild2RegionName(entry.getValue().getSecond());<a name="line.290"></a>
-<span class="sourceLineNo">291</span>        cloneSnapshotMsg.addParentToChildRegionsPairList(parentToChildrenPair);<a name="line.291"></a>
-<span class="sourceLineNo">292</span>      }<a name="line.292"></a>
-<span class="sourceLineNo">293</span>    }<a name="line.293"></a>
-<span class="sourceLineNo">294</span>    serializer.serialize(cloneSnapshotMsg.build());<a name="line.294"></a>
-<span class="sourceLineNo">295</span>  }<a name="line.295"></a>
-<span class="sourceLineNo">296</span><a name="line.296"></a>
-<span class="sourceLineNo">297</span>  @Override<a name="line.297"></a>
-<span class="sourceLineNo">298</span>  protected void deserializeStateData(ProcedureStateSerializer serializer)<a name="line.298"></a>
-<span class="sourceLineNo">299</span>      throws IOException {<a name="line.299"></a>
-<span class="sourceLineNo">300</span>    super.deserializeStateData(serializer);<a name="line.300"></a>
-<span class="sourceLineNo">301</span><a name="line.301"></a>
-<span class="sourceLineNo">302</span>    MasterProcedureProtos.CloneSnapshotStateData cloneSnapshotMsg =<a name="line.302"></a>
-<span class="sourceLineNo">303</span>        serializer.deserialize(MasterProcedureProtos.CloneSnapshotStateData.class);<a name="line.303"></a>
-<span class="sourceLineNo">304</span>    setUser(MasterProcedureUtil.toUserInfo(cloneSnapshotMsg.getUserInfo()));<a name="line.304"></a>
-<span class="sourceLineNo">305</span>    snapshot = cloneSnapshotMsg.getSnapshot();<a name="line.305"></a>
-<span class="sourceLineNo">306</span>    tableDescriptor = ProtobufUtil.toTableDescriptor(cloneSnapshotMsg.getTableSchema());<a name="line.306"></a>
-<span class="sourceLineNo">307</span>    if (cloneSnapshotMsg.getRegionInfoCount() == 0) {<a name="line.307"></a>
-<span class="sourceLineNo">308</span>      newRegions = null;<a name="line.308"></a>
-<span class="sourceLineNo">309</span>    } else {<a name="line.309"></a>
-<span class="sourceLineNo">310</span>      newRegions = new ArrayList&lt;&gt;(cloneSnapshotMsg.getRegionInfoCount());<a name="line.310"></a>
-<span class="sourceLineNo">311</span>      for (HBaseProtos.RegionInfo hri: cloneSnapshotMsg.getRegionInfoList()) {<a name="line.311"></a>
-<span class="sourceLineNo">312</span>        newRegions.add(ProtobufUtil.toRegionInfo(hri));<a name="line.312"></a>
-<span class="sourceLineNo">313</span>      }<a name="line.313"></a>
-<span class="sourceLineNo">314</span>    }<a name="line.314"></a>
-<span class="sourceLineNo">315</span>    if (cloneSnapshotMsg.getParentToChildRegionsPairListCount() &gt; 0) {<a name="line.315"></a>
-<span class="sourceLineNo">316</span>      parentsToChildrenPairMap = new HashMap&lt;&gt;();<a name="line.316"></a>
-<span class="sourceLineNo">317</span>      for (MasterProcedureProtos.RestoreParentToChildRegionsPair parentToChildrenPair:<a name="line.317"></a>
-<span class="sourceLineNo">318</span>        cloneSnapshotMsg.getParentToChildRegionsPairListList()) {<a name="line.318"></a>
-<span class="sourceLineNo">319</span>        parentsToChildrenPairMap.put(<a name="line.319"></a>
-<span class="sourceLineNo">320</span>          parentToChildrenPair.getParentRegionName(),<a name="line.320"></a>
-<span class="sourceLineNo">321</span>          new Pair&lt;&gt;(<a name="line.321"></a>
-<span class="sourceLineNo">322</span>            parentToChildrenPair.getChild1RegionName(),<a name="line.322"></a>
-<span class="sourceLineNo">323</span>            parentToChildrenPair.getChild2RegionName()));<a name="line.323"></a>
-<span class="sourceLineNo">324</span>      }<a name="line.324"></a>
-<span class="sourceLineNo">325</span>    }<a name="line.325"></a>
-<span class="sourceLineNo">326</span>    // Make sure that the monitor status is set up<a name="line.326"></a>
-<span class="sourceLineNo">327</span>    getMonitorStatus();<a name="line.327"></a>
-<span class="sourceLineNo">328</span>  }<a name="line.328"></a>
-<span class="sourceLineNo">329</span><a name="line.329"></a>
-<span class="sourceLineNo">330</span>  /**<a name="line.330"></a>
-<span class="sourceLineNo">331</span>   * Action before any real action of cloning from snapshot.<a name="line.331"></a>
-<span class="sourceLineNo">332</span>   * @param env MasterProcedureEnv<a name="line.332"></a>
-<span class="sourceLineNo">333</span>   * @throws IOException<a name="line.333"></a>
-<span class="sourceLineNo">334</span>   */<a name="line.334"></a>
-<span class="sourceLineNo">335</span>  private void prepareClone(final MasterProcedureEnv env) throws IOException {<a name="line.335"></a>
-<span class="sourceLineNo">336</span>    final TableName tableName = getTableName();<a name="line.336"></a>
-<span class="sourceLineNo">337</span>    if (MetaTableAccessor.tableExists(env.getMasterServices().getConnection(), tableName)) {<a name="line.337"></a>
-<span class="sourceLineNo">338</span>      throw new TableExistsException(getTableName());<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><a name="line.341"></a>
-<span class="sourceLineNo">342</span>  /**<a name="line.342"></a>
-<span class="sourceLineNo">343</span>   * Action before cloning from snapshot.<a name="line.343"></a>
-<span class="sourceLineNo">344</span>   * @param env MasterProcedureEnv<a name="line.344"></a>
-<span class="sourceLineNo">345</span>   * @throws IOException<a name="line.345"></a>
-<span class="sourceLineNo">346</span>   * @throws InterruptedException<a name="line.346"></a>
-<span class="sourceLineNo">347</span>   */<a name="line.347"></a>
-<span class="sourceLineNo">348</span>  private void preCloneSnapshot(final MasterProcedureEnv env)<a name="line.348"></a>
-<span class="sourceLineNo">349</span>      throws IOException, InterruptedException {<a name="line.349"></a>
-<span class="sourceLineNo">350</span>    if (!getTableName().isSystemTable()) {<a name="line.350"></a>
-<span class="sourceLineNo">351</span>      // Check and update namespace quota<a name="line.351"></a>
-<span class="sourceLineNo">352</span>      final MasterFileSystem mfs = env.getMasterServices().getMasterFileSystem();<a name="line.352"></a>
-<span class="sourceLineNo">353</span><a name="line.353"></a>
-<span class="sourceLineNo">354</span>      SnapshotManifest manifest = SnapshotManifest.open(<a name="line.354"></a>
-<span class="sourceLineNo">355</span>        env.getMasterConfiguration(),<a name="line.355"></a>
-<span class="sourceLineNo">356</span>        mfs.getFileSystem(),<a name="line.356"></a>
-<span class="sourceLineNo">357</span>        SnapshotDescriptionUtils.getCompletedSnapshotDir(snapshot, mfs.getRootDir()),<a name="line.357"></a>
-<span class="sourceLineNo">358</span>        snapshot);<a name="line.358"></a>
-<span class="sourceLineNo">359</span><a name="line.359"></a>
-<span class="sourceLineNo">360</span>      ProcedureSyncWait.getMasterQuotaManager(env)<a name="line.360"></a>
-<span class="sourceLineNo">361</span>        .checkNamespaceTableAndRegionQuota(getTableName(), manifest.getRegionManifestsMap().size());<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>    final MasterCoprocessorHost cpHost = env.getMasterCoprocessorHost();<a name="line.364"></a>
-<span class="sourceLineNo">365</span>    if (cpHost != null) {<a name="line.365"></a>
-<span class="sourceLineNo">366</span>      cpHost.preCreateTableAction(tableDescriptor, null, getUser());<a name="line.366"></a>
-<span class="sourceLineNo">367</span>    }<a name="line.367"></a>
-<span class="sourceLineNo">368</span>  }<a name="line.368"></a>
-<span class="sourceLineNo">369</span><a name="line.369"></a>
-<span class="sourceLineNo">370</span>  /**<a name="line.370"></a>
-<span class="sourceLineNo">371</span>   * Action after cloning from snapshot.<a name="line.371"></a>
-<span class="sourceLineNo">372</span>   * @param env MasterProcedureEnv<a name="line.372"></a>
-<span class="sourceLineNo">373</span>   * @throws IOException<a name="line.373"></a>
-<span class="sourceLineNo">374</span>   * @throws InterruptedException<a name="line.374"></a>
-<span class="sourceLineNo">375</span>   */<a name="line.375"></a>
-<span class="sourceLineNo">376</span>  private void postCloneSnapshot(final MasterProcedureEnv env)<a name="line.376"></a>
-<span class="sourceLineNo">377</span>      throws IOException, InterruptedException {<a name="line.377"></a>
-<span class="sourceLineNo">378</span>    final MasterCoprocessorHost cpHost = env.getMasterCoprocessorHost();<a name="line.378"></a>
-<span class="sourceLineNo">379</span>    if (cpHost != null) {<a name="line.379"></a>
-<span class="sourceLineNo">380</span>      final RegionInfo[] regions = (newRegions == null) ? null :<a name="line.380"></a>
-<span class="sourceLineNo">381</span>        newRegions.toArray(new RegionInfo[newRegions.size()]);<a name="line.381"></a>
-<span class="sourceLineNo">382</span>      cpHost.postCompletedCreateTableAction(tableDescriptor, regions, getUser());<a name="line.382"></a>
-<span class="sourceLineNo">383</span>    }<a name="line.383"></a>
-<span class="sourceLineNo">384</span>  }<a name="line.384"></a>
-<span class="sourceLineNo">385</span><a name="line.385"></a>
-<span class="sourceLineNo">386</span>  /**<a name="line.386"></a>
-<span class="sourceLineNo">387</span>   * Create regions in file system.<a name="line.387"></a>
-<span class="sourceLineNo">388</span>   * @param env MasterProcedureEnv<a name="line.388"></a>
-<span class="sourceLineNo">389</span>   * @throws IOException<a name="line.389"></a>
-<span class="sourceLineNo">390</span>   */<a name="line.390"></a>
-<span class="sourceLineNo">391</span>  private List&lt;RegionInfo&gt; createFilesystemLayout(<a name="line.391"></a>
-<span class="sourceLineNo">392</span>    final MasterProcedureEnv env,<a name="line.392"></a>
-<span class="sourceLineNo">393</span>    final TableDescriptor tableDescriptor,<a name="line.393"></a>
-<span class="sourceLineNo">394</span>    final List&lt;RegionInfo&gt; newRegions) throws IOException {<a name="line.394"></a>
-<span class="sourceLineNo">395</span>    return createFsLayout(env, tableDescriptor, newRegions, new CreateHdfsRegions() {<a name="line.395"></a>
-<span class="sourceLineNo">396</span>      @Override<a name="line.396"></a>
-<span class="sourceLineNo">397</span>      public List&lt;RegionInfo&gt; createHdfsRegions(<a name="line.397"></a>
-<span class="sourceLineNo">398</span>        final MasterProcedureEnv env,<a name="line.398"></a>
-<span class="sourceLineNo">399</span>        final Path tableRootDir, final TableName tableName,<a name="line.399"></a>
-<span class="sourceLineNo">400</span>        final List&lt;RegionInfo&gt; newRegions) throws IOException {<a name="line.400"></a>
-<span class="sourceLineNo">401</span><a name="line.401"></a>
-<span class="sourceLineNo">402</span>        final MasterFileSystem mfs = env.getMasterServices().getMasterFileSystem();<a name="line.402"></a>
-<span class="sourceLineNo">403</span>        final FileSystem fs = mfs.getFileSystem();<a name="line.403"></a>
-<span class="sourceLineNo">404</span>        final Path rootDir = mfs.getRootDir();<a name="line.404"></a>
-<span class="sourceLineNo">405</span>        final Configuration conf = env.getMasterConfiguration();<a name="line.405"></a>
-<span class="sourceLineNo">406</span>        final ForeignExceptionDispatcher monitorException = new ForeignExceptionDispatcher();<a name="line.406"></a>
-<span class="sourceLineNo">407</span><a name="line.407"></a>
-<span class="sourceLineNo">408</span>        getMonitorStatus().setStatus("Clone snapshot - creating regions for table: " + tableName);<a name="line.408"></a>
-<span class="sourceLineNo">409</span><a name="line.409"></a>
-<span class="sourceLineNo">410</span>        try {<a name="line.410"></a>
-<span class="sourceLineNo">411</span>          // 1. Execute the on-disk Clone<a name="line.411"></a>
-<span class="sourceLineNo">412</span>          Path snapshotDir = SnapshotDescriptionUtils.getCompletedSnapshotDir(snapshot, rootDir);<a name="line.412"></a>
-<span class="sourceLineNo">413</span>          SnapshotManifest manifest = SnapshotManifest.open(conf, fs, snapshotDir, snapshot);<a name="line.413"></a>
-<span class="sourceLineNo">414</span>          RestoreSnapshotHelper restoreHelper = new RestoreSnapshotHelper(<a name="line.414"></a>
-<span class="sourceLineNo">415</span>            conf, fs, manifest, tableDescriptor, tableRootDir, monitorException, monitorStatus);<a name="line.415"></a>
-<span class="sourceLineNo">416</span>          RestoreSnapshotHelper.RestoreMetaChanges metaChanges = restoreHelper.restoreHdfsRegions();<a name="line.416"></a>
-<span class="sourceLineNo">417</span><a name="line.417"></a>
-<span class="sourceLineNo">418</span>          // Clone operation should not have stuff to restore or remove<a name="line.418"></a>
-<span class="sourceLineNo">419</span>          Preconditions.checkArgument(<a name="line.419"></a>
-<span class="sourceLineNo">420</span>            !metaChanges.hasRegionsToRestore(), "A clone should not have regions to restore");<a name="line.420"></a>
-<span class="sourceLineNo">421</span>          Preconditions.checkArgument(<a name="line.421"></a>
-<span class="sourceLineNo">422</span>            !metaChanges.hasRegionsToRemove(), "A clone should not have regions to remove");<a name="line.422"></a>
-<span class="sourceLineNo">423</span><a name="line.423"></a>
-<span class="sourceLineNo">424</span>          // At this point the clone is complete. Next step is enabling the table.<a name="line.424"></a>
-<span class="sourceLineNo">425</span>          String msg =<a name="line.425"></a>
-<span class="sourceLineNo">426</span>            "Clone snapshot="+ snapshot.getName() +" on table=" + tableName + " completed!";<a name="line.426"></a>
-<span class="sourceLineNo">427</span>          LOG.info(msg);<a name="line.427"></a>
-<span class="sourceLineNo">428</span>          monitorStatus.setStatus(msg + " Waiting for table to be enabled...");<a name="line.428"></a>
-<span class="sourceLineNo">429</span><a name="line.429"></a>
-<span class="sourceLineNo">430</span>          // 2. Let the next step to add the regions to meta<a name="line.430"></a>
-<span class="sourceLineNo">431</span>          return metaChanges.getRegionsToAdd();<a name="line.431"></a>
-<span class="sourceLineNo">432</span>        } catch (Exception e) {<a name="line.432"></a>
-<span class="sourceLineNo">433</span>          String msg = "clone snapshot=" + ClientSnapshotDescriptionUtils.toString(snapshot) +<a name="line.433"></a>
-<span class="sourceLineNo">434</span>            " failed because " + e.getMessage();<a name="line.434"></a>
-<span class="sourceLineNo">435</span>          LOG.error(msg, e);<a name="line.435"></a>
-<span class="sourceLineNo">436</span>          IOException rse = new RestoreSnapshotException(msg, e,<a name="line.436"></a>
-<span class="sourceLineNo">437</span>              ProtobufUtil.createSnapshotDesc(snapshot));<a name="line.437"></a>
-<span class="sourceLineNo">438</span><a name="line.438"></a>
-<span class="sourceLineNo">439</span>          // these handlers aren't futures so we need to register the error here.<a name="line.439"></a>
-<span class="sourceLineNo">440</span>          monitorException.receive(new ForeignException("Master CloneSnapshotProcedure", rse));<a name="line.440"></a>
-<span class="sourceLineNo">441</span>          throw rse;<a name="line.441"></a>
-<span class="sourceLineNo">442</span>        }<a name="line.442"></a>
-<span class="sourceLineNo">443</span>      }<a name="line.443"></a>
-<span class="sourceLineNo">444</span>    });<a name="line.444"></a>
-<span class="sourceLineNo">445</span>  }<a name="line.445"></a>
-<span class="sourceLineNo">446</span><a name="line.446"></a>
-<span class="sourceLineNo">447</span>  /**<a name="line.447"></a>
-<span class="sourceLineNo">448</span>   * Create region layout in file system.<a name="line.448"></a>
-<span class="sourceLineNo">449</span>   * @param env MasterProcedureEnv<a name="line.449"></a>
-<span class="sourceLineNo">450</span>   * @throws IOException<a name="line.450"></a>
-<span class="sourceLineNo">451</span>   */<a name="line.451"></a>
-<span class="sourceLineNo">452</span>  private List&lt;RegionInfo&gt; createFsLayout(<a name="line.452"></a>
-<span class="sourceLineNo">453</span>    final MasterProcedureEnv env,<a name="line.453"></a>
-<span class="sourceLineNo">454</span>    final TableDescriptor tableDescriptor,<a name="line.454"></a>
-<span class="sourceLineNo">455</span>    List&lt;RegionInfo&gt; newRegions,<a name="line.455"></a>
-<span class="sourceLineNo">456</span>    final CreateHdfsRegions hdfsRegionHandler) throws IOException {<a name="line.456"></a>
-<span class="sourceLineNo">457</span>    final MasterFileSystem mfs = env.getMasterServices().getMasterFileSystem();<a name="line.457"></a>
-<span class="sourceLineNo">458</span>    final Path tempdir = mfs.getTempDir();<a name="line.458"></a>
-<span class="sourceLineNo">459</span><a name="line.459"></a>
-<span class="sourceLineNo">460</span>    // 1. Create Table Descriptor<a name="line.460"></a>
-<span class="sourceLineNo">461</span>    // using a copy of descriptor, table will be created enabling first<a name="line.461"></a>
-<span class="sourceLineNo">462</span>    final Path tempTableDir = FSUtils.getTableDir(tempdir, tableDescriptor.getTableName());<a name="line.462"></a>
-<span class="sourceLineNo">463</span>    ((FSTableDescriptors)(env.getMasterServices().getTableDescriptors()))<a name="line.463"></a>
-<span class="sourceLineNo">464</span>      .createTableDescriptorForTableDirectory(tempTableDir,<a name="line.464"></a>
-<span class="sourceLineNo">465</span>              TableDescriptorBuilder.newBuilder(tableDescriptor).build(), false);<a name="line.465"></a>
-<span class="sourceLineNo">466</span><a name="line.466"></a>
-<span class="sourceLineNo">467</span>    // 2. Create Regions<a name="line.467"></a>
-<span class="sourceLineNo">468</span>    newRegions = hdfsRegionHandler.createHdfsRegions(<a name="line.468"></a>
-<span class="sourceLineNo">469</span>      env, tempdir, tableDescriptor.getTableName(), newRegions);<a name="line.469"></a>
-<span class="sourceLineNo">470</span><a name="line.470"></a>
-<span class="sourceLineNo">471</span>    // 3. Move Table temp directory to the hbase root location<a name="line.471"></a>
-<span class="sourceLineNo">472</span>    CreateTableProcedure.moveTempDirectoryToHBaseRoot(env, tableDescriptor, tempTableDir);<a name="line.472"></a>
-<span class="sourceLineNo">473</span><a name="line.473"></a>
-<span class="sourceLineNo">474</span>    return newRegions;<a name="line.474"></a>
-<span class="sourceLineNo">475</span>  }<a name="line.475"></a>
-<span class="sourceLineNo">476</span><a name="line.476"></a>
-<span class="sourceLineNo">477</span>  /**<a name="line.477"></a>
-<span class="sourceLineNo">478</span>   * Add regions to hbase:meta table.<a name="line.478"></a>
-<span class="sourceLineNo">479</span>   * @param env MasterProcedureEnv<a name="line.479"></a>
-<span class="sourceLineNo">480</span>   * @throws IOException<a name="line.480"></a>
-<span class="sourceLineNo">481</span>   */<a name="line.481"></a>
-<span class="sourceLineNo">482</span>  private void addRegionsToMeta(final MasterProcedureEnv env) throws IOException {<a name="line.482"></a>
-<span class="sourceLineNo">483</span>    newRegions = CreateTableProcedure.addTableToMeta(env, tableDescriptor, newRegions);<a name="line.483"></a>
-<span class="sourceLineNo">484</span><a name="line.484"></a>
-<span class="sourceLineNo">485</span>    // TODO: parentsToChildrenPairMap is always empty, which makes updateMetaParentRegions()<a name="line.485"></a>
-<span class="sourceLineNo">486</span>    // a no-op. This part seems unnecessary. Figure out. - Appy 12/21/17<a name="line.486"></a>
-<span class="sourceLineNo">487</span>    RestoreSnapshotHelper.RestoreMetaChanges metaChanges =<a name="line.487"></a>
-<span class="sourceLineNo">488</span>        new RestoreSnapshotHelper.RestoreMetaChanges(<a name="line.488"></a>
-<span class="sourceLineNo">489</span>                tableDescriptor, parentsToChildrenPairMap);<a name="line.489"></a>
-<span class="sourceLineNo">490</span>    metaChanges.updateMetaParentRegions(env.getMasterServices().getConnection(), newRegions);<a name="line.490"></a>
-<span class="sourceLineNo">491</span>  }<a name="line.491"></a>
-<span class="sourceLineNo">492</span><a name="line.492"></a>
-<span class="sourceLineNo">493</span>  /**<a name="line.493"></a>
-<span class="sourceLineNo">494</span>   * The procedure could be restarted from a different machine. If the variable is null, we need to<a name="line.494"></a>
-<span class="sourceLineNo">495</span>   * retrieve it.<a name="line.495"></a>
-<span class="sourceLineNo">496</span>   * @return traceEnabled<a name="line.496"></a>
-<span class="sourceLineNo">497</span>   */<a name="line.497"></a>
-<span class="sourceLineNo">498</span>  private Boolean isTraceEnabled() {<a name="line.498"></a>
-<span class="sourceLineNo">499</span>    if (traceEnabled == null) {<a name="line.499"></a>
-<span class="sourceLineNo">500</span>      traceEnabled = LOG.isTraceEnabled();<a name="line.500"></a>
-<span class="sourceLineNo">501</span>    }<a name="line.501"></a>
-<span class="sourceLineNo">502</span>    return traceEnabled;<a name="line.502"></a>
-<span class="sourceLineNo">503</span>  }<a name="line.503"></a>
-<span class="sourceLineNo">504</span>}<a name="line.504"></a>
+<span class="sourceLineNo">045</span>import org.apache.hadoop.hbase.mob.MobUtils;<a name="line.45"></a>
+<span class="sourceLineNo">046</span>import org.apache.hadoop.hbase.monitoring.MonitoredTask;<a name="line.46"></a>
+<span class="sourceLineNo">047</span>import org.apache.hadoop.hbase.monitoring.TaskMonitor;<a name="line.47"></a>
+<span class="sourceLineNo">048</span>import org.apache.hadoop.hbase.procedure2.ProcedureStateSerializer;<a name="line.48"></a>
+<span class="sourceLineNo">049</span>import org.apache.hadoop.hbase.snapshot.ClientSnapshotDescriptionUtils;<a name="line.49"></a>
+<span class="sourceLineNo">050</span>import org.apache.hadoop.hbase.snapshot.RestoreSnapshotException;<a name="line.50"></a>
+<span class="sourceLineNo">051</span>import org.apache.hadoop.hbase.snapshot.RestoreSnapshotHelper;<a name="line.51"></a>
+<span class="sourceLineNo">052</span>import org.apache.hadoop.hbase.snapshot.SnapshotDescriptionUtils;<a name="line.52"></a>
+<span class="sourceLineNo">053</span>import org.apache.hadoop.hbase.snapshot.SnapshotManifest;<a name="line.53"></a>
+<span class="sourceLineNo">054</span>import org.apache.hadoop.hbase.util.FSTableDescriptors;<a name="line.54"></a>
+<span class="sourceLineNo">055</span>import org.apache.hadoop.hbase.util.FSUtils;<a name="line.55"></a>
+<span class="sourceLineNo">056</span>import org.apache.hadoop.hbase.util.Pair;<a name="line.56"></a>
+<span class="sourceLineNo">057</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.57"></a>
+<span class="sourceLineNo">058</span>import org.slf4j.Logger;<a name="line.58"></a>
+<span class="sourceLineNo">059</span>import org.slf4j.LoggerFactory;<a name="line.59"></a>
+<span class="sourceLineNo">060</span>import org.apache.hbase.thirdparty.com.google.common.base.Preconditions;<a name="line.60"></a>
+<span class="sourceLineNo">061</span>import org.apache.hadoop.hbase.shaded.protobuf.ProtobufUtil;<a name="line.61"></a>
+<span class="sourceLineNo">062</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos;<a name="line.62"></a>
+<span class="sourceLineNo">063</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos;<a name="line.63"></a>
+<span class="sourceLineNo">064</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProcedureProtos.CloneSnapshotState;<a name="line.64"></a>
+<span class="sourceLineNo">065</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription;<a name="line.65"></a>
+<span class="sourceLineNo">066</span><a name="line.66"></a>
+<span class="sourceLineNo">067</span>@InterfaceAudience.Private<a name="line.67"></a>
+<span class="sourceLineNo">068</span>public class CloneSnapshotProcedure<a name="line.68"></a>
+<span class="sourceLineNo">069</span>    extends AbstractStateMachineTableProcedure&lt;CloneSnapshotState&gt; {<a name="line.69"></a>
+<span class="sourceLineNo">070</span>  private static final Logger LOG = LoggerFactory.getLogger(CloneSnapshotProcedure.class);<a name="line.70"></a>
+<span class="sourceLineNo">071</span><a name="line.71"></a>
+<span class="sourceLineNo">072</span>  private TableDescriptor tableDescriptor;<a name="line.72"></a>
+<span class="sourceLineNo">073</span>  private SnapshotDescription snapshot;<a name="line.73"></a>
+<span class="sourceLineNo">074</span>  private boolean restoreAcl;<a name="line.74"></a>
+<span class="sourceLineNo">075</span>  private List&lt;RegionInfo&gt; newRegions = null;<a name="line.75"></a>
+<span class="sourceLineNo">076</span>  private Map&lt;String, Pair&lt;String, String&gt; &gt; parentsToChildrenPairMap = new HashMap&lt;&gt;();<a name="line.76"></a>
+<span class="sourceLineNo">077</span><a name="line.77"></a>
+<span class="sourceLineNo">078</span>  // Monitor<a name="line.78"></a>
+<span class="sourceLineNo">079</span>  private MonitoredTask monitorStatus = null;<a name="line.79"></a>
+<span class="sourceLineNo">080</span><a name="line.80"></a>
+<span class="sourceLineNo">081</span>  private Boolean traceEnabled = null;<a name="line.81"></a>
+<span class="sourceLineNo">082</span><a name="line.82"></a>
+<span class="sourceLineNo">083</span>  /**<a name="line.83"></a>
+<span class="sourceLineNo">084</span>   * Constructor (for failover)<a name="line.84"></a>
+<span class="sourceLineNo">085</span>   */<a name="line.85"></a>
+<span class="sourceLineNo">086</span>  public CloneSnapshotProcedure() {<a name="line.86"></a>
+<span class="sourceLineNo">087</span>  }<a name="line.87"></a>
+<span class="sourceLineNo">088</span><a name="line.88"></a>
+<span class="sourceLineNo">089</span>  public CloneSnapshotProcedure(final MasterProcedureEnv env,<a name="line.89"></a>
+<span class="sourceLineNo">090</span>      final TableDescriptor tableDescriptor, final SnapshotDescription snapshot) {<a name="line.90"></a>
+<span class="sourceLineNo">091</span>    this(env, tableDescriptor, snapshot, false);<a name="line.91"></a>
+<span class="sourceLineNo">092</span>  }<a name="line.92"></a>
+<span class="sourceLineNo">093</span><a name="line.93"></a>
+<span class="sourceLineNo">094</span>  /**<a name="line.94"></a>
+<span class="sourceLineNo">095</span>   * Constructor<a name="line.95"></a>
+<span class="sourceLineNo">096</span>   * @param env MasterProcedureEnv<a name="line.96"></a>
+<span class="sourceLineNo">097</span>   * @param tableDescriptor the table to operate on<a name="line.97"></a>
+<span class="sourceLineNo">098</span>   * @param snapshot snapshot to clone from<a name="line.98"></a>
+<span class="sourceLineNo">099</span>   */<a name="line.99"></a>
+<span class="sourceLineNo">100</span>  public CloneSnapshotProcedure(final MasterProcedureEnv env,<a name="line.100"></a>
+<span class="sourceLineNo">101</span>      final TableDescriptor tableDescriptor, final SnapshotDescription snapshot,<a name="line.101"></a>
+<span class="sourceLineNo">102</span>      final boolean restoreAcl) {<a name="line.102"></a>
+<span class="sourceLineNo">103</span>    super(env);<a name="line.103"></a>
+<span class="sourceLineNo">104</span>    this.tableDescriptor = tableDescriptor;<a name="line.104"></a>
+<span class="sourceLineNo">105</span>    this.snapshot = snapshot;<a name="line.105"></a>
+<span class="sourceLineNo">106</span>    this.restoreAcl = restoreAcl;<a name="line.106"></a>
+<span class="sourceLineNo">107</span><a name="line.107"></a>
+<span class="sourceLineNo">108</span>    getMonitorStatus();<a name="line.108"></a>
+<span class="sourceLineNo">109</span>  }<a name="line.109"></a>
+<span class="sourceLineNo">110</span><a name="line.110"></a>
+<span class="sourceLineNo">111</span>  /**<a name="line.111"></a>
+<span class="sourceLineNo">112</span>   * Set up monitor status if it is not created.<a name="line.112"></a>
+<span class="sourceLineNo">113</span>   */<a name="line.113"></a>
+<span class="sourceLineNo">114</span>  private MonitoredTask getMonitorStatus() {<a name="line.114"></a>
+<span class="sourceLineNo">115</span>    if (monitorStatus == null) {<a name="line.115"></a>
+<span class="sourceLineNo">116</span>      monitorStatus = TaskMonitor.get().createStatus("Cloning  snapshot '" + snapshot.getName() +<a name="line.116"></a>
+<span class="sourceLineNo">117</span>        "' to table " + getTableName());<a name="line.117"></a>
+<span class="sourceLineNo">118</span>    }<a name="line.118"></a>
+<span class="sourceLineNo">119</span>    return monitorStatus;<a name="line.119"></a>
+<span class="sourceLineNo">120</span>  }<a name="line.120"></a>
+<span class="sourceLineNo">121</span><a name="line.121"></a>
+<span class="sourceLineNo">122</span>  private void restoreSnapshotAcl(MasterProcedureEnv env) throws IOException {<a name="line.122"></a>
+<span class="sourceLineNo">123</span>    Configuration conf = env.getMasterServices().getConfiguration();<a name="line.123"></a>
+<span class="sourceLineNo">124</span>    if (restoreAcl &amp;&amp; snapshot.hasUsersAndPermissions() &amp;&amp; snapshot.getUsersAndPermissions() != null<a name="line.124"></a>
+<span class="sourceLineNo">125</span>        &amp;&amp; SnapshotDescriptionUtils.isSecurityAvailable(conf)) {<a name="line.125"></a>
+<span class="sourceLineNo">126</span>      RestoreSnapshotHelper.restoreSnapshotAcl(snapshot, tableDescriptor.getTableName(), conf);<a name="line.126"></a>
+<span class="sourceLineNo">127</span>    }<a name="line.127"></a>
+<span class="sourceLineNo">128</span>  }<a name="line.128"></a>
+<span class="sourceLineNo">129</span><a name="line.129"></a>
+<span class="sourceLineNo">130</span>  @Override<a name="line.130"></a>
+<span class="sourceLineNo">131</span>  protected Flow executeFromState(final MasterProcedureEnv env, final CloneSnapshotState state)<a name="line.131"></a>
+<span class="sourceLineNo">132</span>      throws InterruptedException {<a name="line.132"></a>
+<span class="sourceLineNo">133</span>    if (isTraceEnabled()) {<a name="line.133"></a>
+<span class="sourceLineNo">134</span>      LOG.trace(this + " execute state=" + state);<a name="line.134"></a>
+<span class="sourceLineNo">135</span>    }<a name="line.135"></a>
+<span class="sourceLineNo">136</span>    try {<a name="line.136"></a>
+<span class="sourceLineNo">137</span>      switch (state) {<a name="line.137"></a>
+<span class="sourceLineNo">138</span>        case CLONE_SNAPSHOT_PRE_OPERATION:<a name="line.138"></a>
+<span class="sourceLineNo">139</span>          // Verify if we can clone the table<a name="line.139"></a>
+<span class="sourceLineNo">140</span>          prepareClone(env);<a name="line.140"></a>
+<span class="sourceLineNo">141</span><a name="line.141"></a>
+<span class="sourceLineNo">142</span>          preCloneSnapshot(env);<a name="line.142"></a>
+<span class="sourceLineNo">143</span>          setNextState(CloneSnapshotState.CLONE_SNAPSHOT_WRITE_FS_LAYOUT);<a name="line.143"></a>
+<span class="sourceLineNo">144</span>          break;<a name="line.144"></a>
+<span class="sourceLineNo">145</span>        case CLONE_SNAPSHOT_WRITE_FS_LAYOUT:<a name="line.145"></a>
+<span class="sourceLineNo">146</span>          newRegions = createFilesystemLayout(env, tableDescriptor, newRegions);<a name="line.146"></a>
+<span class="sourceLineNo">147</span>          setNextState(CloneSnapshotState.CLONE_SNAPSHOT_ADD_TO_META);<a name="line.147"></a>
+<span class="sourceLineNo">148</span>          break;<a name="line.148"></a>
+<span class="sourceLineNo">149</span>        case CLONE_SNAPSHOT_ADD_TO_META:<a name="line.149"></a>
+<span class="sourceLineNo">150</span>          addRegionsToMeta(env);<a name="line.150"></a>
+<span class="sourceLineNo">151</span>          setNextState(CloneSnapshotState.CLONE_SNAPSHOT_ASSIGN_REGIONS);<a name="line.151"></a>
+<span class="sourceLineNo">152</span>          break;<a name="line.152"></a>
+<span class="sourceLineNo">153</span>        case CLONE_SNAPSHOT_ASSIGN_REGIONS:<a name="line.153"></a>
+<span class="sourceLineNo">154</span>          CreateTableProcedure.setEnablingState(env, getTableName());<a name="line.154"></a>
+<span class="sourceLineNo">155</span><a name="line.155"></a>
+<span class="sourceLineNo">156</span>          // Separate newRegions to split regions and regions to assign<a name="line.156"></a>
+<span class="sourceLineNo">157</span>          List&lt;RegionInfo&gt; splitRegions = new ArrayList&lt;&gt;();<a name="line.157"></a>
+<span class="sourceLineNo">158</span>          List&lt;RegionInfo&gt; regionsToAssign = new ArrayList&lt;&gt;();<a name="line.158"></a>
+<span class="sourceLineNo">159</span>          newRegions.forEach(ri -&gt; {<a name="line.159"></a>
+<span class="sourceLineNo">160</span>            if (ri.isOffline() &amp;&amp; (ri.isSplit() || ri.isSplitParent())) {<a name="line.160"></a>
+<span class="sourceLineNo">161</span>              splitRegions.add(ri);<a name="line.161"></a>
+<span class="sourceLineNo">162</span>            } else {<a name="line.162"></a>
+<span class="sourceLineNo">163</span>              regionsToAssign.add(ri);<a name="line.163"></a>
+<span class="sourceLineNo">164</span>            }<a name="line.164"></a>
+<span class="sourceLineNo">165</span>          });<a name="line.165"></a>
+<span class="sourceLineNo">166</span><a name="line.166"></a>
+<span class="sourceLineNo">167</span>          // For split regions, add them to RegionStates<a name="line.167"></a>
+<span class="sourceLineNo">168</span>          AssignmentManager am = env.getAssignmentManager();<a name="line.168"></a>
+<span class="sourceLineNo">169</span>          splitRegions.forEach(ri -&gt;<a name="line.169"></a>
+<span class="sourceLineNo">170</span>            am.getRegionStates().updateRegionState(ri, RegionState.State.SPLIT)<a name="line.170"></a>
+<span class="sourceLineNo">171</span>          );<a name="line.171"></a>
+<span class="sourceLineNo">172</span><a name="line.172"></a>
+<span class="sourceLineNo">173</span>          addChildProcedure(env.getAssignmentManager()<a name="line.173"></a>
+<span class="sourceLineNo">174</span>            .createRoundRobinAssignProcedures(regionsToAssign));<a name="line.174"></a>
+<span class="sourceLineNo">175</span>          setNextState(CloneSnapshotState.CLONE_SNAPSHOT_UPDATE_DESC_CACHE);<a name="line.175"></a>
+<span class="sourceLineNo">176</span>          break;<a name="line.176"></a>
+<span class="sourceLineNo">177</span>        case CLONE_SNAPSHOT_UPDATE_DESC_CACHE:<a name="line.177"></a>
+<span class="sourceLineNo">178</span>          CreateTableProcedure.setEnabledState(env, getTableName());<a name="line.178"></a>
+<span class="sourceLineNo">179</span>          CreateTableProcedure.updateTableDescCache(env, getTableName());<a name="line.179"></a>
+<span class="sourceLineNo">180</span>          setNextState(CloneSnapshotState.CLONE_SNAPHOST_RESTORE_ACL);<a name="line.180"></a>
+<span class="sourceLineNo">181</span>          break;<a name="line.181"></a>
+<span class="sourceLineNo">182</span>        case CLONE_SNAPHOST_RESTORE_ACL:<a name="line.182"></a>
+<span class="sourceLineNo">183</span>          restoreSnapshotAcl(env);<a name="line.183"></a>
+<span class="sourceLineNo">184</span>          setNextState(CloneSnapshotState.CLONE_SNAPSHOT_POST_OPERATION);<a name="line.184"></a>
+<span class="sourceLineNo">185</span>          break;<a name="line.185"></a>
+<span class="sourceLineNo">186</span>        case CLONE_SNAPSHOT_POST_OPERATION:<a name="line.186"></a>
+<span class="sourceLineNo">187</span>          postCloneSnapshot(env);<a name="line.187"></a>
+<span class="sourceLineNo">188</span><a name="line.188"></a>
+<span class="sourceLineNo">189</span>          MetricsSnapshot metricsSnapshot = new MetricsSnapshot();<a name="line.189"></a>
+<span class="sourceLineNo">190</span>          metricsSnapshot.addSnapshotClone(<a name="line.190"></a>
+<span class="sourceLineNo">191</span>            getMonitorStatus().getCompletionTimestamp() - getMonitorStatus().getStartTime());<a name="line.191"></a>
+<span class="sourceLineNo">192</span>          getMonitorStatus().markComplete("Clone snapshot '"+ snapshot.getName() +"' completed!");<a name="line.192"></a>
+<span class="sourceLineNo">193</span>          return Flow.NO_MORE_STATE;<a name="line.193"></a>
+<span class="sourceLineNo">194</span>        default:<a name="line.194"></a>
+<span class="sourceLineNo">195</span>          throw new UnsupportedOperationException("unhandled state=" + state);<a name="line.195"></a>
+<span class="sourceLineNo">196</span>      }<a name="line.196"></a>
+<span class="sourceLineNo">197</span>    } catch (IOException e) {<a name="line.197"></a>
+<span class="sourceLineNo">198</span>      if (isRollbackSupported(state)) {<a name="line.198"></a>
+<span class="sourceLineNo">199</span>        setFailure("master-clone-snapshot", e);<a name="line.199"></a>
+<span class="sourceLineNo">200</span>      } else {<a name="line.200"></a>
+<span class="sourceLineNo">201</span>        LOG.warn("Retriable error trying to clone snapshot=" + snapshot.getName() +<a name="line.201"></a>
+<span class="sourceLineNo">202</span>          " to table=" + getTableName() + " state=" + state, e);<a name="line.202"></a>
+<span class="sourceLineNo">203</span>      }<a name="line.203"></a>
+<span class="sourceLineNo">204</span>    }<a name="line.204"></a>
+<span class="sourceLineNo">205</span>    return Flow.HAS_MORE_STATE;<a name="line.205"></a>
+<span class="sourceLineNo">206</span>  }<a name="line.206"></a>
+<span class="sourceLineNo">207</span><a name="line.207"></a>
+<span class="sourceLineNo">208</span>  @Override<a name="line.208"></a>
+<span class="sourceLineNo">209</span>  protected void rollbackState(final MasterProcedureEnv env, final CloneSnapshotState state)<a name="line.209"></a>
+<span class="sourceLineNo">210</span>      throws IOException {<a name="line.210"></a>
+<span class="sourceLineNo">211</span>    if (state == CloneSnapshotState.CLONE_SNAPSHOT_PRE_OPERATION) {<a name="line.211"></a>
+<span class="sourceLineNo">212</span>      DeleteTableProcedure.deleteTableStates(env, getTableName());<a name="line.212"></a>
+<span class="sourceLineNo">213</span>      // TODO-MAYBE: call the deleteTable coprocessor event?<a name="line.213"></a>
+<span class="sourceLineNo">214</span>      return;<a name="line.214"></a>
+<span class="sourceLineNo">215</span>    }<a name="line.215"></a>
+<span class="sourceLineNo">216</span><a name="line.216"></a>
+<span class="sourceLineNo">217</span>    // The procedure doesn't have a rollback. The execution will succeed, at some point.<a name="line.217"></a>
+<span class="sourceLineNo">218</span>    throw new UnsupportedOperationException("unhandled state=" + state);<a name="line.218"></a>
+<span class="sourceLineNo">219</span>  }<a name="line.219"></a>
+<span class="sourceLineNo">220</span><a name="line.220"></a>
+<span class="sourceLineNo">221</span>  @Override<a name="line.221"></a>
+<span class="sourceLineNo">222</span>  protected boolean isRollbackSupported(final CloneSnapshotState state) {<a name="line.222"></a>
+<span class="sourceLineNo">223</span>    switch (state) {<a name="line.223"></a>
+<span class="sourceLineNo">224</span>      case CLONE_SNAPSHOT_PRE_OPERATION:<a name="line.224"></a>
+<span class="sourceLineNo">225</span>        return true;<a name="line.225"></a>
+<span class="sourceLineNo">226</span>      default:<a name="line.226"></a>
+<span class="sourceLineNo">227</span>        return false;<a name="line.227"></a>
+<span class="sourceLineNo">228</span>    }<a name="line.228"></a>
+<span class="sourceLineNo">229</span>  }<a name="line.229"></a>
+<span class="sourceLineNo">230</span><a name="line.230"></a>
+<span class="sourceLineNo">231</span>  @Override<a name="line.231"></a>
+<span class="sourceLineNo">232</span>  protected CloneSnapshotState getState(final int stateId) {<a name="line.232"></a>
+<span class="sourceLineNo">233</span>    return CloneSnapshotState.valueOf(stateId);<a name="line.233"></a>
+<span class="sourceLineNo">234</span>  }<a name="line.234"></a>
+<span class="sourceLineNo">235</span><a name="line.235"></a>
+<span class="sourceLineNo">236</span>  @Override<a name="line.236"></a>
+<span class="sourceLineNo">237</span>  protected int getStateId(final CloneSnapshotState state) {<a name="line.237"></a>
+<span class="sourceLineNo">238</span>    return state.getNumber();<a name="line.238"></a>
+<span class="sourceLineNo">239</span>  }<a name="line.239"></a>
+<span class="sourceLineNo">240</span><a name="line.240"></a>
+<span class="sourceLineNo">241</span>  @Override<a name="line.241"></a>
+<span class="sourceLineNo">242</span>  protected CloneSnapshotState getInitialState() {<a name="line.242"></a>
+<span class="sourceLineNo">243</span>    return CloneSnapshotState.CLONE_SNAPSHOT_PRE_OPERATION;<a name="line.243"></a>
+<span class="sourceLineNo">244</span>  }<a name="line.244"></a>
+<span class="sourceLineNo">245</span><a name="line.245"></a>
+<span class="sourceLineNo">246</span>  @Override<a name="line.246"></a>
+<span class="sourceLineNo">247</span>  public TableName getTableName() {<a name="line.247"></a>
+<span class="sourceLineNo">248</span>    return tableDescriptor.getTableName();<a name="line.248"></a>
+<span class="sourceLineNo">249</span>  }<a name="line.249"></a>
+<span class="sourceLineNo">250</span><a name="line.250"></a>
+<span class="sourceLineNo">251</span>  @Override<a name="line.251"></a>
+<span class="sourceLineNo">252</span>  public TableOperationType getTableOperationType() {<a name="line.252"></a>
+<span class="sourceLineNo">253</span>    return TableOperationType.CREATE; // Clone is creating a table<a name="line.253"></a>
+<span class="sourceLineNo">254</span>  }<a name="line.254"></a>
+<span class="sourceLineNo">255</span><a name="line.255"></a>
+<span class="sourceLineNo">256</span>  @Override<a name="line.256"></a>
+<span class="sourceLineNo">257</span>  public void toStringClassDetails(StringBuilder sb) {<a name="line.257"></a>
+<span class="sourceLineNo">258</span>    sb.append(getClass().getSimpleName());<a name="line.258"></a>
+<span class="sourceLineNo">259</span>    sb.append(" (table=");<a name="line.259"></a>
+<span class="sourceLineNo">260</span>    sb.append(getTableName());<a name="line.260"></a>
+<span class="sourceLineNo">261</span>    sb.append(" snapshot=");<a name="line.261"></a>
+<span class="sourceLineNo">262</span>    sb.append(snapshot);<a name="line.262"></a>
+<span class="sourceLineNo">263</span>    sb.append(")");<a name="line.263"></a>
+<span class="sourceLineNo">264</span>  }<a name="line.264"></a>
+<span class="sourceLineNo">265</span><a name="line.265"></a>
+<span class="sourceLineNo">266</span>  @Override<a name="line.266"></a>
+<span class="sourceLineNo">267</span>  protected void serializeStateData(ProcedureStateSerializer serializer)<a name="line.267"></a>
+<span class="sourceLineNo">268</span>      throws IOException {<a name="line.268"></a>
+<span class="sourceLineNo">269</span>    super.serializeStateData(serializer);<a name="line.269"></a>
+<span class="sourceLineNo">270</span><a name="line.270"></a>
+<span class="sourceLineNo">271</span>    MasterProcedureProtos.CloneSnapshotStateData.Builder cloneSnapshotMsg =<a name="line.271"></a>
+<span class="sourceLineNo">272</span>      MasterProcedureProtos.CloneSnapshotStateData.newBuilder()<a name="line.272"></a>
+<span class="sourceLineNo">273</span>        .setUserInfo(MasterProcedureUtil.toProtoUserInfo(getUser()))<a name="line.273"></a>
+<span class="sourceLineNo">274</span>        .setSnapshot(this.snapshot)<a name="line.274"></a>
+<span class="sourceLineNo">275</span>        .setTableSchema(ProtobufUtil.toTableSchema(tableDescriptor));<a name="line.275"></a>
+<span class="sourceLineNo">276</span>    if (newRegions != null) {<a name="line.276"></a>
+<span class="sourceLineNo">277</span>      for (RegionInfo hri: newRegions) {<a name="line.277"></a>
+<span class="sourceLineNo">278</span>        cloneSnapshotMsg.addRegionInfo(ProtobufUtil.toRegionInfo(hri));<a name="line.278"></a>
+<span class="sourceLineNo">279</span>      }<a name="line.279"></a>
+<span class="sourceLineNo">280</span>    }<a name="line.280"></a>
+<span class="sourceLineNo">281</span>    if (!parentsToChildrenPairMap.isEmpty()) {<a name="line.281"></a>
+<span class="sourceLineNo">282</span>      final Iterator&lt;Map.Entry&lt;String, Pair&lt;String, String&gt;&gt;&gt; it =<a name="line.282"></a>
+<span class="sourceLineNo">283</span>        parentsToChildrenPairMap.entrySet().iterator();<a name="line.283"></a>
+<span class="sourceLineNo">284</span>      while (it.hasNext()) {<a name="line.284"></a>
+<span class="sourceLineNo">285</span>        final Map.Entry&lt;String, Pair&lt;String, String&gt;&gt; entry = it.next();<a name="line.285"></a>
+<span class="sourceLineNo">286</span><a name="line.286"></a>
+<span class="sourceLineNo">287</span>        MasterProcedureProtos.RestoreParentToChildRegionsPair.Builder parentToChildrenPair =<a name="line.287"></a>
+<span class="sourceLineNo">288</span>          MasterProcedureProtos.RestoreParentToChildRegionsPair.newBuilder()<a name="line.288"></a>
+<span class="sourceLineNo">289</span>          .setParentRegionName(entry.getKey())<a name="line.289"></a>
+<span class="sourceLineNo">290</span>          .setChild1RegionName(entry.getValue().getFirst())<a name="line.290"></a>
+<span class="sourceLineNo">291</span>          .setChild2RegionName(entry.getValue().getSecond());<a name="line.291"></a>
+<span class="sourceLineNo">292</span>        cloneSnapshotMsg.addParentToChildRegionsPairList(parentToChildrenPair);<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>    serializer.serialize(cloneSnapshotMsg.build());<a name="line.295"></a>
+<span class="sourceLineNo">296</span>  }<a name="line.296"></a>
+<span class="sourceLineNo">297</span><a name="line.297"></a>
+<span class="sourceLineNo">298</span>  @Override<a name="line.298"></a>
+<span class="sourceLineNo">299</span>  protected void deserializeStateData(ProcedureStateSerializer serializer)<a name="line.299"></a>
+<span class="sourceLineNo">300</span>      throws IOException {<a name="line.300"></a>
+<span class="sourceLineNo">301</span>    super.deserializeStateData(serializer);<a name="line.301"></a>
+<span class="sourceLineNo">302</span><a name="line.302"></a>
+<span class="sourceLineNo">303</span>    MasterProcedureProtos.CloneSnapshotStateData cloneSnapshotMsg =<a name="line.303"></a>
+<span class="sourceLineNo">304</span>        serializer.deserialize(MasterProcedureProtos.CloneSnapshotStateData.class);<a name="line.304"></a>
+<span class="sourceLineNo">305</span>    setUser(MasterProcedureUtil.toUserInfo(cloneSnapshotMsg.getUserInfo()));<a name="line.305"></a>
+<span class="sourceLineNo">306</span>    snapshot = cloneSnapshotMsg.getSnapshot();<a name="line.306"></a>
+<span class="sourceLineNo">307</span>    tableDescriptor = ProtobufUtil.toTableDescriptor(cloneSnapshotMsg.getTableSchema());<a name="line.307"></a>
+<span class="sourceLineNo">308</span>    if (cloneSnapshotMsg.getRegionInfoCount() == 0) {<a name="line.308"></a>
+<span class="sourceLineNo">309</span>      newRegions = null;<a name="line.309"></a>
+<span class="sourceLineNo">310</span>    } else {<a name="line.310"></a>
+<span class="sourceLineNo">311</span>      newRegions = new ArrayList&lt;&gt;(cloneSnapshotMsg.getRegionInfoCount());<a name="line.311"></a>
+<span class="sourceLineNo">312</span>      for (HBaseProtos.RegionInfo hri: cloneSnapshotMsg.getRegionInfoList()) {<a name="line.312"></a>
+<span class="sourceLineNo">313</span>        newRegions.add(ProtobufUtil.toRegionInfo(hri));<a name="line.313"></a>
+<span class="sourceLineNo">314</span>      }<a name="line.314"></a>
+<span class="sourceLineNo">315</span>    }<a name="line.315"></a>
+<span class="sourceLineNo">316</span>    if (cloneSnapshotMsg.getParentToChildRegionsPairListCount() &gt; 0) {<a name="line.316"></a>
+<span class="sourceLineNo">317</span>      parentsToChildrenPairMap = new HashMap&lt;&gt;();<a name="line.317"></a>
+<span class="sourceLineNo">318</span>      for (MasterProcedureProtos.RestoreParentToChildRegionsPair parentToChildrenPair:<a name="line.318"></a>
+<span class="sourceLineNo">319</span>        cloneSnapshotMsg.getParentToChildRegionsPairListList()) {<a name="line.319"></a>
+<span class="sourceLineNo">320</span>        parentsToChildrenPairMap.put(<a name="line.320"></a>
+<span class="sourceLineNo">321</span>          parentToChildrenPair.getParentRegionName(),<a name="line.321"></a>
+<span class="sourceLineNo">322</span>          new Pair&lt;&gt;(<a name="line.322"></a>
+<span class="sourceLineNo">323</span>            parentToChildrenPair.getChild1RegionName(),<a name="line.323"></a>
+<span class="sourceLineNo">324</span>            parentToChildrenPair.getChild2RegionName()));<a name="line.324"></a>
+<span class="sourceLineNo">325</span>      }<a name="line.325"></a>
+<span class="sourceLineNo">326</span>    }<a name="line.326"></a>
+<span class="sourceLineNo">327</span>    // Make sure that the monitor status is set up<a name="line.327"></a>
+<span class="sourceLineNo">328</span>    getMonitorStatus();<a name="line.328"></a>
+<span class="sourceLineNo">329</span>  }<a name="line.329"></a>
+<span class="sourceLineNo">330</span><a name="line.330"></a>
+<span class="sourceLineNo">331</span>  /**<a name="line.331"></a>
+<span class="sourceLineNo">332</span>   * Action before any real action of cloning from snapshot.<a name="line.332"></a>
+<span class="sourceLineNo">333</span>   * @param env MasterProcedureEnv<a name="line.333"></a>
+<span class="sourceLineNo">334</span>   * @throws IOException<a name="line.334"></a>
+<span class="sourceLineNo">335</span>   */<a name="line.335"></a>
+<span class="sourceLineNo">336</span>  private void prepareClone(final MasterProcedureEnv env) throws IOException {<a name="line.336"></a>
+<span class="sourceLineNo">337</span>    final TableName tableName = getTableName();<a name="line.337"></a>
+<span class="sourceLineNo">338</span>    if (MetaTableAccessor.tableExists(env.getMasterServices().getConnection(), tableName)) {<a name="line.338"></a>
+<span class="sourceLineNo">339</span>      throw new TableExistsException(getTableName());<a name="line.339"></a>
+<span class="sourceLineNo">340</span>    }<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>   * Action before cloning from snapshot.<a name="line.344"></a>
+<span class="sourceLineNo">345</span>   * @param env MasterProcedureEnv<a name="line.345"></a>
+<span class="sourceLineNo">346</span>   * @throws IOException<a name="line.346"></a>
+<span class="sourceLineNo">347</span>   * @throws InterruptedException<a name="line.347"></a>
+<span class="sourceLineNo">348</span>   */<a name="line.348"></a>
+<span class="sourceLineNo">349</span>  private void preCloneSnapshot(final MasterProcedureEnv env)<a name="line.349"></a>
+<span class="sourceLineNo">350</span>      throws IOException, InterruptedException {<a name="line.350"></a>
+<span class="sourceLineNo">351</span>    if (!getTableName().isSystemTable()) {<a name="line.351"></a>
+<span class="sourceLineNo">352</span>      // Check and update namespace quota<a name="line.352"></a>
+<span class="sourceLineNo">353</span>      final MasterFileSystem mfs = env.getMasterServices().getMasterFileSystem();<a name="line.353"></a>
+<span class="sourceLineNo">354</span><a name="line.354"></a>
+<span class="sourceLineNo">355</span>      SnapshotManifest manifest = SnapshotManifest.open(<a name="line.355"></a>
+<span class="sourceLineNo">356</span>        env.getMasterConfiguration(),<a name="line.356"></a>
+<span class="sourceLineNo">357</span>        mfs.getFileSystem(),<a name="line.357"></a>
+<span class="sourceLineNo">358</span>        SnapshotDescriptionUtils.getCompletedSnapshotDir(snapshot, mfs.getRootDir()),<a name="line.358"></a>
+<span class="sourceLineNo">359</span>        snapshot);<a name="line.359"></a>
+<span class="sourceLineNo">360</span><a name="line.360"></a>
+<span class="sourceLineNo">361</span>      ProcedureSyncWait.getMasterQuotaManager(env)<a name="line.361"></a>
+<span class="sourceLineNo">362</span>        .checkNamespaceTableAndRegionQuota(getTableName(), manifest.getRegionManifestsMap().size());<a name="line.362"></a>
+<span class="sourceLineNo">363</span>    }<a name="line.363"></a>
+<span class="sourceLineNo">364</span><a name="line.364"></a>
+<span class="sourceLineNo">365</span>    final MasterCoprocessorHost cpHost = env.getMasterCoprocessorHost();<a name="line.365"></a>
+<span class="sourceLineNo">366</span>    if (cpHost != null) {<a name="line.366"></a>
+<span class="sourceLineNo">367</span>      cpHost.preCreateTableAction(tableDescriptor, null, getUser());<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><a name="line.370"></a>
+<span class="sourceLineNo">371</span>  /**<a name="line.371"></a>
+<span class="sourceLineNo">372</span>   * Action after cloning from snapshot.<a name="line.372"></a>
+<span class="sourceLineNo">373</span>   * @param env MasterProcedureEnv<a name="line.373"></a>
+<span class="sourceLineNo">374</span>   * @throws IOException<a name="line.374"></a>
+<span class="sourceLineNo">375</span>   * @throws InterruptedException<a name="line.375"></a>
+<span class="sourceLineNo">376</span>   */<a name="line.376"></a>
+<span class="sourceLineNo">377</span>  private void postCloneSnapshot(final MasterProcedureEnv env)<a name="line.377"></a>
+<span class="sourceLineNo">378</span>      throws IOException, InterruptedException {<a name="line.378"></a>
+<span class="sourceLineNo">379</span>    final MasterCoprocessorHost cpHost = env.getMasterCoprocessorHost();<a name="line.379"></a>
+<span class="sourceLineNo">380</span>    if (cpHost != null) {<a name="line.380"></a>
+<span class="sourceLineNo">381</span>      final RegionInfo[] regions = (newRegions == null) ? null :<a name="line.381"></a>
+<span class="sourceLineNo">382</span>        newRegions.toArray(new RegionInfo[newRegions.size()]);<a name="line.382"></a>
+<span class="sourceLineNo">383</span>      cpHost.postCompletedCreateTableAction(tableDescriptor, regions, getUser());<a name="line.383"></a>
+<span class="sourceLineNo">384</span>    }<a name="line.384"></a>
+<span class="sourceLineNo">385</span>  }<a name="line.385"></a>
+<span class="sourceLineNo">386</span><a name="line.386"></a>
+<span class="sourceLineNo">387</span>  /**<a name="line.387"></a>
+<span class="sourceLineNo">388</span>   * Create regions in file system.<a name="line.388"></a>
+<span class="sourceLineNo">389</span>   * @param env MasterProcedureEnv<a name="line.389"></a>
+<span class="sourceLineNo">390</span>   * @throws IOException<a name="line.390"></a>
+<span class="sourceLineNo">391</span>   */<a name="line.391"></a>
+<span class="sourceLineNo">392</span>  private List&lt;RegionInfo&gt; createFilesystemLayout(<a name="line.392"></a>
+<span class="sourceLineNo">393</span>    final MasterProcedureEnv env,<a name="line.393"></a>
+<span class="sourceLineNo">394</span>    final TableDescriptor tableDescriptor,<a name="line.394"></a>
+<span class="sourceLineNo">395</span>    final List&lt;RegionInfo&gt; newRegions) throws IOException {<a name="line.395"></a>
+<span class="sourceLineNo">396</span>    return createFsLayout(env, tableDescriptor, newRegions, new CreateHdfsRegions() {<a name="line.396"></a>
+<span class="sourceLineNo">397</span>      @Override<a name="line.397"></a>
+<span class="sourceLineNo">398</span>      public List&lt;RegionInfo&gt; createHdfsRegions(<a name="line.398"></a>
+<span class="sourceLineNo">399</span>        final MasterProcedureEnv env,<a name="line.399"></a>
+<span class="sourceLineNo">400</span>        final Path tableRootDir, final TableName tableName,<a name="line.400"></a>
+<span class="sourceLineNo">401</span>        final List&lt;RegionInfo&gt; newRegions) throws IOException {<a name="line.401"></a>
+<span class="sourceLineNo">402</span><a name="line.402"></a>
+<span class="sourceLineNo">403</span>        final MasterFileSystem mfs = env.getMasterServices().getMasterFileSystem();<a name="line.403"></a>
+<span class="sourceLineNo">404</span>        final FileSystem fs = mfs.getFileSystem();<a name="line.404"></a>
+<span class="sourceLineNo">405</span>        final Path rootDir = mfs.getRootDir();<a name="line.405"></a>
+<span class="sourceLineNo">406</span>        final Configuration conf = env.getMasterConfiguration();<a name="line.406"></a>
+<span class="sourceLineNo">407</span>        final ForeignExceptionDispatcher monitorException = new ForeignExceptionDispatcher();<a name="line.407"></a>
+<span class="sourceLineNo">408</span><a name="line.408"></a>
+<span class="sourceLineNo">409</span>        getMonitorStatus().setStatus("Clone snapshot - creating regions for table: " + tableName);<a name="line.409"></a>
+<span class="sourceLineNo">410</span><a name="line.410"></a>
+<span class="sourceLineNo">411</span>        try {<a name="line.411"></a>
+<span class="sourceLineNo">412</span>          // 1. Execute the on-disk Clone<a name="line.412"></a>
+<span class="sourceLineNo">413</span>          Path snapshotDir = SnapshotDescriptionUtils.getCompletedSnapshotDir(snapshot, rootDir);<a name="line.413"></a>
+<span class="sourceLineNo">414</span>          SnapshotManifest manifest = SnapshotManifest.open(conf, fs, snapshotDir, snapshot);<a name="line.414"></a>
+<span class="sourceLineNo">415</span>          RestoreSnapshotHelper restoreHelper = new RestoreSnapshotHelper(<a name="line.415"></a>
+<span class="sourceLineNo">416</span>            conf, fs, manifest, tableDescriptor, tableRootDir, monitorException, monitorStatus);<a name="line.416"></a>
+<span class="sourceLineNo">417</span>          RestoreSnapshotHelper.RestoreMetaChanges metaChanges = restoreHelper.restoreHdfsRegions();<a name="line.417"></a>
+<span class="sourceLineNo">418</span><a name="line.418"></a>
+<span class="sourceLineNo">419</span>          // Clone operation should not have stuff to restore or remove<a name="line.419"></a>
+<span class="sourceLineNo">420</span>          Preconditions.checkArgument(<a name="line.420"></a>
+<span class="sourceLineNo">421</span>            !metaChanges.hasRegionsToRestore(), "A clone should not have regions to restore");<a name="line.421"></a>
+<span class="sourceLineNo">422</span>          Preconditions.checkArgument(<a name="line.422"></a>
+<span class="sourceLineNo">423</span>            !metaChanges.hasRegionsToRemove(), "A clone should not have regions to remove");<a name="line.423"></a>
+<span class="sourceLineNo">424</span><a name="line.424"></a>
+<span class="sourceLineNo">425</span>          // At this point the clone is complete. Next step is enabling the table.<a name="line.425"></a>
+<span class="sourceLineNo">426</span>          String msg =<a name="line.426"></a>
+<span class="sourceLineNo">427</span>            "Clone snapshot="+ snapshot.getName() +" on table=" + tableName + " completed!";<a name="line.427"></a>
+<span class="sourceLineNo">428</span>          LOG.info(msg);<a name="line.428"></a>
+<span class="sourceLineNo">429</span>          monitorStatus.setStatus(msg + " Waiting for table to be enabled...");<a name="line.429"></a>
+<span class="sourceLineNo">430</span><a name="line.430"></a>
+<span class="sourceLineNo">431</span>          // 2. Let the next step to add the regions to meta<a name="line.431"></a>
+<span class="sourceLineNo">432</span>          return metaChanges.getRegionsToAdd();<a name="line.432"></a>
+<span class="sourceLineNo">433</span>        } catch (Exception e) {<a name="line.433"></a>
+<span class="sourceLineNo">434</span>          String msg = "clone snapshot=" + ClientSnapshotDescriptionUtils.toString(snapshot) +<a name="line.434"></a>
+<span class="sourceLineNo">435</span>            " failed because " + e.getMessage();<a name="line.435"></a>
+<span class="sourceLineNo">436</span>          LOG.error(msg, e);<a name="line.436"></a>
+<span class="sourceLineNo">437</span>          IOException rse = new RestoreSnapshotException(msg, e,<a name="line.437"></a>
+<span class="sourceLineNo">438</span>              ProtobufUtil.createSnapshotDesc(snapshot));<a name="line.438"></a>
+<span class="sourceLineNo">439</span><a name="line.439"></a>
+<span class="sourceLineNo">440</span>          // these handlers aren't futures so we need to register the error here.<a name="line.440"></a>
+<span class="sourceLineNo">441</span>          monitorException.receive(new ForeignException("Master CloneSnapshotProcedure", rse));<a name="line.441"></a>
+<span class="sourceLineNo">442</span>          throw rse;<a name="line.442"></a>
+<span class="sourceLineNo">443</span>        }<a name="line.443"></a>
+<span class="sourceLineNo">444</span>      }<a name="line.444"></a>
+<span class="sourceLineNo">445</span>    });<a name="line.445"></a>
+<span class="sourceLineNo">446</span>  }<a name="line.446"></a>
+<span class="sourceLineNo">447</span><a name="line.447"></a>
+<span class="sourceLineNo">448</span>  /**<a name="line.448"></a>
+<span class="sourceLineNo">449</span>   * Create region layout in file system.<a name="line.449"></a>
+<span class="sourceLineNo">450</span>   * @param env MasterProcedureEnv<a name="line.450"></a>
+<span class="sourceLineNo">451</span>   * @throws IOException<a name="line.451"></a>
+<span class="sourceLineNo">452</span>   */<a name="line.452"></a>
+<span class="sourceLineNo">453</span>  private List&lt;RegionInfo&gt; createFsLayout(<a name="line.453"></a>
+<span class="sourceLineNo">454</span>    final MasterProcedureEnv env,<a name="line.454"></a>
+<span class="sourceLineNo">455</span>    final TableDescriptor tableDescriptor,<a name="line.455"></a>
+<span class="sourceLineNo">456</span>    List&lt;RegionInfo&gt; newRegions,<a name="line.456"></a>
+<span class="sourceLineNo">457</span>    final CreateHdfsRegions hdfsRegionHandler) throws IOException {<a name="line.457"></a>
+<span class="sourceLineNo">458</span>    final MasterFileSystem mfs = env.getMasterServices().getMasterFileSystem();<a name="line.458"></a>
+<span class="sourceLineNo">459</span>    final Path tempdir = mfs.getTempDir();<a name="line.459"></a>
+<span class="sourceLineNo">460</span><a name="line.460"></a>
+<span class="sourceLineNo">461</span>    // 1. Create Table Descriptor<a name="line.461"></a>
+<span class="sourceLineNo">462</span>    // using a copy of descriptor, table will be created enabling first<a name="line.462"></a>
+<span class="sourceLineNo">463</span>    final Path tempTableDir = FSUtils.getTableDir(tempdir, tableDescriptor.getTableName());<a name="line.463"></a>
+<span class="sourceLineNo">464</span>    ((FSTableDescriptors)(env.getMasterServices().getTableDescriptors()))<a name="line.464"></a>
+<span class="sourceLineNo">465</span>      .createTableDescriptorForTableDirectory(tempTableDir,<a name="line.465"></a>
+<span class="sourceLineNo">466</span>              TableDescriptorBuilder.newBuilder(tableDescriptor).build(), false);<a name="line.466"></a>
+<span class="sourceLineNo">467</span><a name="line.467"></a>
+<span class="sourceLineNo">468</span>    // 2. Create Regions<a name="line.468"></a>
+<span class="sourceLineNo">469</span>    newRegions = hdfsRegionHandler.createHdfsRegions(<a name="line.469"></a>
+<span class="sourceLineNo">470</span>      env, tempdir, tableDescriptor.getTableName(), newRegions);<a name="line.470"></a>
+<span class="sourceLineNo">471</span><a name="line.471"></a>
+<span class="sourceLineNo">472</span>    // 3. Move Table temp directory to the hbase root location<a name="line.472"></a>
+<span class="sourceLineNo">473</span>    CreateTableProcedure.moveTempDirectoryToHBaseRoot(env, tableDescriptor, tempTableDir);<a name="line.473"></a>
+<span class="sourceLineNo">474</span>    // Move Table temp mob directory to the hbase root location<a name="line.474"></a>
+<span class="sourceLineNo">475</span>    Path tempMobTableDir = MobUtils.getMobTableDir(tempdir, tableDescriptor.getTableName());<a name="line.475"></a>
+<span class="sourceLineNo">476</span>    if (mfs.getFileSystem().exists(tempMobTableDir)) {<a name="line.476"></a>
+<span class="sourceLineNo">477</span>      moveTempMobDirectoryToHBaseRoot(mfs, tableDescriptor, tempMobTableDir);<a name="line.477"></a>
+<span class="sourceLineNo">478</span>    }<a name="line.478"></a>
+<span class="sourceLineNo">479</span>    return newRegions;<a name="line.479"></a>
+<span class="sourceLineNo">480</span>  }<a name="line.480"></a>
+<span class="sourceLineNo">481</span><a name="line.481"></a>
+<span class="sourceLineNo">482</span>  /**<a name="line.482"></a>
+<span class="sourceLineNo">483</span>   * Move table temp mob directory to the hbase root location<a name="line.483"></a>
+<span class="sourceLineNo">484</span>   * @param mfs The master file system<a name="line.484"></a>
+<span class="sourceLineNo">485</span>   * @param tableDescriptor The table to operate on<a name="line.485"></a>
+<span class="sourceLineNo">486</span>   * @param tempMobTableDir The temp mob directory of table<a name="line.486"></a>
+<span class="sourceLineNo">487</span>   * @throws IOException If failed to move temp mob dir to hbase root dir<a name="line.487"></a>
+<span class="sourceLineNo">488</span>   */<a name="line.488"></a>
+<span class="sourceLineNo">489</span>  private void moveTempMobDirectoryToHBaseRoot(final MasterFileSystem mfs,<a name="line.489"></a>
+<span class="sourceLineNo">490</span>      final TableDescriptor tableDescriptor, final Path tempMobTableDir) throws IOException {<a name="line.490"></a>
+<span class="sourceLineNo">491</span>    FileSystem fs = mfs.getFileSystem();<a name="line.491"></a>
+<span class="sourceLineNo">492</span>    final Path tableMobDir =<a name="line.492"></a>
+<span class="sourceLineNo">493</span>        MobUtils.getMobTableDir(mfs.getRootDir(), tableDescriptor.getTableName());<a name="line.493"></a>
+<span class="sourceLineNo">494</span>    if (!fs.delete(tableMobDir, true) &amp;&amp; fs.exists(tableMobDir)) {<a name="line.494"></a>
+<span class="sourceLineNo">495</span>      throw new IOException("Couldn't delete mob table " + tableMobDir);<a name="line.495"></a>
+<span class="sourceLineNo">496</span>    }<a name="line.496"></a>
+<span class="sourceLineNo">497</span>    if (!fs.exists(tableMobDir.getParent())) {<a name="line.497"></a>
+<span class="sourceLineNo">498</span>      fs.mkdirs(tableMobDir.getParent());<a name="line.498"></a>
+<span class="sourceLineNo">499</span>    }<a name="line.499"></a>
+<span class="sourceLineNo">500</span>    if (!fs.rename(tempMobTableDir, tableMobDir)) {<a name="line.500"></a>
+<span class="sourceLineNo">501</span>      throw new IOException("Unable to move mob table from temp=" + tempMobTableDir<a name="line.501"></a>
+<span class="sourceLineNo">502</span>          + " to hbase root=" + tableMobDir);<a name="line.502"></a>
+<span class="sourceLineNo">503</span>    }<a name="line.503"></a>
+<span class="sourceLineNo">504</span>  }<a name="line.504"></a>
+<span class="sourceLineNo">505</span><a name="line.505"></a>
+<span class="sourceLineNo">506</span>  /**<a name="line.506"></a>
+<span class="sourceLineNo">507</span>   * Add regions to hbase:meta table.<a name="line.507"></a>
+<span class="sourceLineNo">508</span>   * @param env MasterProcedureEnv<a name="line.508"></a>
+<span class="sourceLineNo">509</span>   * @throws IOException<a name="line.509"></a>
+<span class="sourceLineNo">510</span>   */<a name="line.510"></a>
+<span class="sourceLineNo">511</span>  private void addRegionsToMeta(final MasterProcedureEnv env) throws IOException {<a name="line.511"></a>
+<span class="sourceLineNo">512</span>    newRegions = CreateTableProcedure.addTableToMeta(env, tableDescriptor, newRegions);<a name="line.512"></a>
+<span class="sourceLineNo">513</span><a name="line.513"></a>
+<span class="sourceLineNo">514</span>    // TODO: parentsToChildrenPairMap is always empty, which makes updateMetaParentRegions()<a name="line.514"></a>
+<span class="sourceLineNo">515</span>    // a no-op. This part seems unnecessary. Figure out. - Appy 12/21/17<a name="line.515"></a>
+<span class="sourceLineNo">516</span>    RestoreSnapshotHelper.RestoreMetaChanges metaChanges =<a name="line.516"></a>
+<span class="sourceLineNo">517</span>        new RestoreSnapshotHelper.RestoreMetaChanges(<a name="line.517"></a>
+<span class="sourceLineNo">518</span>                tableDescriptor, parentsToChildrenPairMap);<a name="line.518"></a>
+<span class="sourceLineNo">519</span>    metaChanges.updateMetaParentRegions(env.getMasterServices().getConnection(), newRegions);<a name="line.519"></a>
+<span class="sourceLineNo">520</span>  }<a name="line.520"></a>
+<span class="sourceLineNo">521</span><a name="line.521"></a>
+<span class="sourceLineNo">522</span>  /**<a name="line.522"></a>
+<span class="sourceLineNo">523</span>   * The procedure could be restarted from a different machine. If the variable is null, we need to<a name="line.523"></a>
+<span class="sourceLineNo">524</span>   * retrieve it.<a name="line.524"></a>
+<span class="sourceLineNo">525</span>   * @return traceEnabled<a name="line.525"></a>
+<span class="sourceLineNo">526</span>   */<a name="line.526"></a>
+<span class="sourceLineNo">527</span>  private Boolean isTraceEnabled() {<a name="line.527"></a>
+<span class="sourceLineNo">528</span>    if (traceEnabled == null) {<a name="line.528"></a>
+<span class="sourceLineNo">529</span>      traceEnabled = LOG.isTraceEnabled();<a name="line.529"></a>
+<span class="sourceLineNo">530</span>    }<a name="line.530"></a>
+<span class="sourceLineNo">531</span>    return traceEnabled;<a name="line.531"></a>
+<span class="sourceLineNo">532</span>  }<a name="line.532"></a>
+<span class="sourceLineNo">533</span>}<a name="line.533"></a>
 
 
 
index 852695e..c7856c4 100644 (file)
 <span class="sourceLineNo">367</span>   */<a name="line.367"></a>
 <span class="sourceLineNo">368</span>  public static Path getMobHome(Configuration conf) {<a name="line.368"></a>
 <span class="sourceLineNo">369</span>    Path hbaseDir = new Path(conf.get(HConstants.HBASE_DIR));<a name="line.369"></a>
-<span class="sourceLineNo">370</span>    return new Path(hbaseDir, MobConstants.MOB_DIR_NAME);<a name="line.370"></a>
+<span class="sourceLineNo">370</span>    return getMobHome(hbaseDir);<a name="line.370"></a>
 <span class="sourceLineNo">371</span>  }<a name="line.371"></a>
 <span class="sourceLineNo">372</span><a name="line.372"></a>
 <span class="sourceLineNo">373</span>  /**<a name="line.373"></a>
-<span class="sourceLineNo">374</span>   * Gets the qualified root dir of the mob files.<a name="line.374"></a>
-<span class="sourceLineNo">375</span>   * @param conf The current configuration.<a name="line.375"></a>
-<span class="sourceLineNo">376</span>   * @return The qualified root dir.<a name="line.376"></a>
-<span class="sourceLineNo">377</span>   * @throws IOException<a name="line.377"></a>
+<span class="sourceLineNo">374</span>   * Gets the root dir of the mob files under the qualified HBase root dir.<a name="line.374"></a>
+<span class="sourceLineNo">375</span>   * It's {rootDir}/mobdir.<a name="line.375"></a>
+<span class="sourceLineNo">376</span>   * @param rootDir The qualified path of HBase root directory.<a name="line.376"></a>
+<span class="sourceLineNo">377</span>   * @return The root dir of the mob file.<a name="line.377"></a>
 <span class="sourceLineNo">378</span>   */<a name="line.378"></a>
-<span class="sourceLineNo">379</span>  public static Path getQualifiedMobRootDir(Configuration conf) throws IOException {<a name="line.379"></a>
-<span class="sourceLineNo">380</span>    Path hbaseDir = new Path(conf.get(HConstants.HBASE_DIR));<a name="line.380"></a>
-<span class="sourceLineNo">381</span>    Path mobRootDir = new Path(hbaseDir, MobConstants.MOB_DIR_NAME);<a name="line.381"></a>
-<span class="sourceLineNo">382</span>    FileSystem fs = mobRootDir.getFileSystem(conf);<a name="line.382"></a>
-<span class="sourceLineNo">383</span>    return mobRootDir.makeQualified(fs.getUri(), fs.getWorkingDirectory());<a name="line.383"></a>
-<span class="sourceLineNo">384</span>  }<a name="line.384"></a>
-<span class="sourceLineNo">385</span><a name="line.385"></a>
-<span class="sourceLineNo">386</span>  /**<a name="line.386"></a>
-<span class="sourceLineNo">387</span>   * Gets the region dir of the mob files.<a name="line.387"></a>
-<span class="sourceLineNo">388</span>   * It's {HBASE_DIR}/mobdir/{namespace}/{tableName}/{regionEncodedName}.<a name="line.388"></a>
-<span class="sourceLineNo">389</span>   * @param conf The current configuration.<a name="line.389"></a>
-<span class="sourceLineNo">390</span>   * @param tableName The current table name.<a name="line.390"></a>
-<span class="sourceLineNo">391</span>   * @return The region dir of the mob files.<a name="line.391"></a>
-<span class="sourceLineNo">392</span>   */<a name="line.392"></a>
-<span class="sourceLineNo">393</span>  public static Path getMobRegionPath(Configuration conf, TableName tableName) {<a name="line.393"></a>
-<span class="sourceLineNo">394</span>    Path tablePath = FSUtils.getTableDir(getMobHome(conf), tableName);<a name="line.394"></a>
-<span class="sourceLineNo">395</span>    RegionInfo regionInfo = getMobRegionInfo(tableName);<a name="line.395"></a>
-<span class="sourceLineNo">396</span>    return new Path(tablePath, regionInfo.getEncodedName());<a name="line.396"></a>
-<span class="sourceLineNo">397</span>  }<a name="line.397"></a>
-<span class="sourceLineNo">398</span><a name="line.398"></a>
-<span class="sourceLineNo">399</span>  /**<a name="line.399"></a>
-<span class="sourceLineNo">400</span>   * Gets the family dir of the mob files.<a name="line.400"></a>
-<span class="sourceLineNo">401</span>   * It's {HBASE_DIR}/mobdir/{namespace}/{tableName}/{regionEncodedName}/{columnFamilyName}.<a name="line.401"></a>
-<span class="sourceLineNo">402</span>   * @param conf The current configuration.<a name="line.402"></a>
-<span class="sourceLineNo">403</span>   * @param tableName The current table name.<a name="line.403"></a>
-<span class="sourceLineNo">404</span>   * @param familyName The current family name.<a name="line.404"></a>
-<span class="sourceLineNo">405</span>   * @return The family dir of the mob files.<a name="line.405"></a>
-<span class="sourceLineNo">406</span>   */<a name="line.406"></a>
-<span class="sourceLineNo">407</span>  public static Path getMobFamilyPath(Configuration conf, TableName tableName, String familyName) {<a name="line.407"></a>
-<span class="sourceLineNo">408</span>    return new Path(getMobRegionPath(conf, tableName), familyName);<a name="line.408"></a>
-<span class="sourceLineNo">409</span>  }<a name="line.409"></a>
-<span class="sourceLineNo">410</span><a name="line.410"></a>
-<span class="sourceLineNo">411</span>  /**<a name="line.411"></a>
-<span class="sourceLineNo">412</span>   * Gets the family dir of the mob files.<a name="line.412"></a>
-<span class="sourceLineNo">413</span>   * It's {HBASE_DIR}/mobdir/{namespace}/{tableName}/{regionEncodedName}/{columnFamilyName}.<a name="line.413"></a>
-<span class="sourceLineNo">414</span>   * @param regionPath The path of mob region which is a dummy one.<a name="line.414"></a>
-<span class="sourceLineNo">415</span>   * @param familyName The current family name.<a name="line.415"></a>
-<span class="sourceLineNo">416</span>   * @return The family dir of the mob files.<a name="line.416"></a>
-<span class="sourceLineNo">417</span>   */<a name="line.417"></a>
-<span class="sourceLineNo">418</span>  public static Path getMobFamilyPath(Path regionPath, String familyName) {<a name="line.418"></a>
-<span class="sourceLineNo">419</span>    return new Path(regionPath, familyName);<a name="line.419"></a>
-<span class="sourceLineNo">420</span>  }<a name="line.420"></a>
-<span class="sourceLineNo">421</span><a name="line.421"></a>
-<span class="sourceLineNo">422</span>  /**<a name="line.422"></a>
-<span class="sourceLineNo">423</span>   * Gets the RegionInfo of the mob files.<a name="line.423"></a>
-<span class="sourceLineNo">424</span>   * This is a dummy region. The mob files are not saved in a region in HBase.<a name="line.424"></a>
-<span class="sourceLineNo">425</span>   * This is only used in mob snapshot. It's internally used only.<a name="line.425"></a>
-<span class="sourceLineNo">426</span>   * @param tableName<a name="line.426"></a>
-<span class="sourceLineNo">427</span>   * @return A dummy mob region info.<a name="line.427"></a>
-<span class="sourceLineNo">428</span>   */<a name="line.428"></a>
-<span class="sourceLineNo">429</span>  public static RegionInfo getMobRegionInfo(TableName tableName) {<a name="line.429"></a>
-<span class="sourceLineNo">430</span>    return RegionInfoBuilder.newBuilder(tableName)<a name="line.430"></a>
-<span class="sourceLineNo">431</span>        .setStartKey(MobConstants.MOB_REGION_NAME_BYTES)<a name="line.431"></a>
-<span class="sourceLineNo">432</span>        .setEndKey(HConstants.EMPTY_END_ROW)<a name="line.432"></a>
-<span class="sourceLineNo">433</span>        .setSplit(false)<a name="line.433"></a>
-<span class="sourceLineNo">434</span>        .setRegionId(0)<a name="line.434"></a>
-<span class="sourceLineNo">435</span>        .build();<a name="line.435"></a>
-<span class="sourceLineNo">436</span>  }<a name="line.436"></a>
-<span class="sourceLineNo">437</span><a name="line.437"></a>
-<span class="sourceLineNo">438</span>  /**<a name="line.438"></a>
-<span class="sourceLineNo">439</span>   * Gets whether the current RegionInfo is a mob one.<a name="line.439"></a>
-<span class="sourceLineNo">440</span>   * @param regionInfo The current RegionInfo.<a name="line.440"></a>
-<span class="sourceLineNo">441</span>   * @return If true, the current RegionInfo is a mob one.<a name="line.441"></a>
-<span class="sourceLineNo">442</span>   */<a name="line.442"></a>
-<span class="sourceLineNo">443</span>  public static boolean isMobRegionInfo(RegionInfo regionInfo) {<a name="line.443"></a>
-<span class="sourceLineNo">444</span>    return regionInfo == null ? false : getMobRegionInfo(regionInfo.getTable()).getEncodedName()<a name="line.444"></a>
-<span class="sourceLineNo">445</span>        .equals(regionInfo.getEncodedName());<a name="line.445"></a>
-<span class="sourceLineNo">446</span>  }<a name="line.446"></a>
-<span class="sourceLineNo">447</span><a name="line.447"></a>
-<span class="sourceLineNo">448</span>  /**<a name="line.448"></a>
-<span class="sourceLineNo">449</span>   * Gets whether the current region name follows the pattern of a mob region name.<a name="line.449"></a>
-<span class="sourceLineNo">450</span>   * @param tableName The current table name.<a name="line.450"></a>
-<span class="sourceLineNo">451</span>   * @param regionName The current region name.<a name="line.451"></a>
-<span class="sourceLineNo">452</span>   * @return True if the current region name follows the pattern of a mob region name.<a name="line.452"></a>
-<span class="sourceLineNo">453</span>   */<a name="line.453"></a>
-<span class="sourceLineNo">454</span>  public static boolean isMobRegionName(TableName tableName, byte[] regionName) {<a name="line.454"></a>
-<span class="sourceLineNo">455</span>    return Bytes.equals(regionName, getMobRegionInfo(tableName).getRegionName());<a name="line.455"></a>
-<span class="sourceLineNo">456</span>  }<a name="line.456"></a>
-<span class="sourceLineNo">457</span><a name="line.457"></a>
-<span class="sourceLineNo">458</span>  /**<a name="line.458"></a>
-<span class="sourceLineNo">459</span>   * Gets the working directory of the mob compaction.<a name="line.459"></a>
-<span class="sourceLineNo">460</span>   * @param root The root directory of the mob compaction.<a name="line.460"></a>
-<span class="sourceLineNo">461</span>   * @param jobName The current job name.<a name="line.461"></a>
-<span class="sourceLineNo">462</span>   * @return The directory of the mob compaction for the current job.<a name="line.462"></a>
-<span class="sourceLineNo">463</span>   */<a name="line.463"></a>
-<span class="sourceLineNo">464</span>  public static Path getCompactionWorkingPath(Path root, String jobName) {<a name="line.464"></a>
-<span class="sourceLineNo">465</span>    return new Path(root, jobName);<a name="line.465"></a>
-<span class="sourceLineNo">466</span>  }<a name="line.466"></a>
-<span class="sourceLineNo">467</span><a name="line.467"></a>
-<span class="sourceLineNo">468</span>  /**<a name="line.468"></a>
-<span class="sourceLineNo">469</span>   * Archives the mob files.<a name="line.469"></a>
-<span class="sourceLineNo">470</span>   * @param conf The current configuration.<a name="line.470"></a>
-<span class="sourceLineNo">471</span>   * @param fs The current file system.<a name="line.471"></a>
-<span class="sourceLineNo">472</span>   * @param tableName The table name.<a name="line.472"></a>
-<span class="sourceLineNo">473</span>   * @param tableDir The table directory.<a name="line.473"></a>
-<span class="sourceLineNo">474</span>   * @param family The name of the column family.<a name="line.474"></a>
-<span class="sourceLineNo">475</span>   * @param storeFiles The files to be deleted.<a name="line.475"></a>
-<span class="sourceLineNo">476</span>   * @throws IOException<a name="line.476"></a>
-<span class="sourceLineNo">477</span>   */<a name="line.477"></a>
-<span class="sourceLineNo">478</span>  public static void removeMobFiles(Configuration conf, FileSystem fs, TableName tableName,<a name="line.478"></a>
-<span class="sourceLineNo">479</span>      Path tableDir, byte[] family, Collection&lt;HStoreFile&gt; storeFiles) throws IOException {<a name="line.479"></a>
-<span class="sourceLineNo">480</span>    HFileArchiver.archiveStoreFiles(conf, fs, getMobRegionInfo(tableName), tableDir, family,<a name="line.480"></a>
-<span class="sourceLineNo">481</span>        storeFiles);<a name="line.481"></a>
-<span class="sourceLineNo">482</span>  }<a name="line.482"></a>
-<span class="sourceLineNo">483</span><a name="line.483"></a>
-<span class="sourceLineNo">484</span>  /**<a name="line.484"></a>
-<span class="sourceLineNo">485</span>   * Creates a mob reference KeyValue.<a name="line.485"></a>
-<span class="sourceLineNo">486</span>   * The value of the mob reference KeyValue is mobCellValueSize + mobFileName.<a name="line.486"></a>
-<span class="sourceLineNo">487</span>   * @param cell The original Cell.<a name="line.487"></a>
-<span class="sourceLineNo">488</span>   * @param fileName The mob file name where the mob reference KeyValue is written.<a name="line.488"></a>
-<span class="sourceLineNo">489</span>   * @param tableNameTag The tag of the current table name. It's very important in<a name="line.489"></a>
-<span class="sourceLineNo">490</span>   *                        cloning the snapshot.<a name="line.490"></a>
-<span class="sourceLineNo">491</span>   * @return The mob reference KeyValue.<a name="line.491"></a>
-<span class="sourceLineNo">492</span>   */<a name="line.492"></a>
-<span class="sourceLineNo">493</span>  public static Cell createMobRefCell(Cell cell, byte[] fileName, Tag tableNameTag) {<a name="line.493"></a>
-<span class="sourceLineNo">494</span>    // Append the tags to the KeyValue.<a name="line.494"></a>
-<span class="sourceLineNo">495</span>    // The key is same, the value is the filename of the mob file<a name="line.495"></a>
-<span class="sourceLineNo">496</span>    List&lt;Tag&gt; tags = new ArrayList&lt;&gt;();<a name="line.496"></a>
-<span class="sourceLineNo">497</span>    // Add the ref tag as the 1st one.<a name="line.497"></a>
-<span class="sourceLineNo">498</span>    tags.add(MobConstants.MOB_REF_TAG);<a name="line.498"></a>
-<span class="sourceLineNo">499</span>    // Add the tag of the source table name, this table is where this mob file is flushed<a name="line.499"></a>
-<span class="sourceLineNo">500</span>    // from.<a name="line.500"></a>
-<span class="sourceLineNo">501</span>    // It's very useful in cloning the snapshot. When reading from the cloning table, we need to<a name="line.501"></a>
-<span class="sourceLineNo">502</span>    // find the original mob files by this table name. For details please see cloning<a name="line.502"></a>
-<span class="sourceLineNo">503</span>    // snapshot for mob files.<a name="line.503"></a>
-<span class="sourceLineNo">504</span>    tags.add(tableNameTag);<a name="line.504"></a>
-<span class="sourceLineNo">505</span>    return createMobRefCell(cell, fileName, TagUtil.fromList(tags));<a name="line.505"></a>
-<span class="sourceLineNo">506</span>  }<a name="line.506"></a>
-<span class="sourceLineNo">507</span><a name="line.507"></a>
-<span class="sourceLineNo">508</span>  public static Cell createMobRefCell(Cell cell, byte[] fileName, byte[] refCellTags) {<a name="line.508"></a>
-<span class="sourceLineNo">509</span>    byte[] refValue = Bytes.add(Bytes.toBytes(cell.getValueLength()), fileName);<a name="line.509"></a>
-<span class="sourceLineNo">510</span>    return PrivateCellUtil.createCell(cell, refValue, TagUtil.concatTags(refCellTags, cell));<a name="line.510"></a>
-<span class="sourceLineNo">511</span>  }<a name="line.511"></a>
-<span class="sourceLineNo">512</span><a name="line.512"></a>
-<span class="sourceLineNo">513</span>  /**<a name="line.513"></a>
-<span class="sourceLineNo">514</span>   * Creates a writer for the mob file in temp directory.<a name="line.514"></a>
-<span class="sourceLineNo">515</span>   * @param conf The current configuration.<a name="line.515"></a>
-<span class="sourceLineNo">516</span>   * @param fs The current file system.<a name="line.516"></a>
-<span class="sourceLineNo">517</span>   * @param family The descriptor of the current column family.<a name="line.517"></a>
-<span class="sourceLineNo">518</span>   * @param date The date string, its format is yyyymmmdd.<a name="line.518"></a>
-<span class="sourceLineNo">519</span>   * @param basePath The basic path for a temp directory.<a name="line.519"></a>
-<span class="sourceLineNo">520</span>   * @param maxKeyCount The key count.<a name="line.520"></a>
-<span class="sourceLineNo">521</span>   * @param compression The compression algorithm.<a name="line.521"></a>
-<span class="sourceLineNo">522</span>   * @param startKey The hex string of the start key.<a name="line.522"></a>
-<span class="sourceLineNo">523</span>   * @param cacheConfig The current cache config.<a name="line.523"></a>
-<span class="sourceLineNo">524</span>   * @param cryptoContext The encryption context.<a name="line.524"></a>
-<span class="sourceLineNo">525</span>   * @param isCompaction If the writer is used in compaction.<a name="line.525"></a>
-<span class="sourceLineNo">526</span>   * @return The writer for the mob file.<a name="line.526"></a>
-<span class="sourceLineNo">527</span>   * @throws IOException<a name="line.527"></a>
-<span class="sourceLineNo">528</span>   */<a name="line.528"></a>
-<span class="sourceLineNo">529</span>  public static StoreFileWriter createWriter(Configuration conf, FileSystem fs,<a name="line.529"></a>
-<span class="sourceLineNo">530</span>      ColumnFamilyDescriptor family, String date, Path basePath, long maxKeyCount,<a name="line.530"></a>
-<span class="sourceLineNo">531</span>      Compression.Algorithm compression, String startKey, CacheConfig cacheConfig,<a name="line.531"></a>
-<span class="sourceLineNo">532</span>      Encryption.Context cryptoContext, boolean isCompaction)<a name="line.532"></a>
-<span class="sourceLineNo">533</span>      throws IOException {<a name="line.533"></a>
-<span class="sourceLineNo">534</span>    MobFileName mobFileName = MobFileName.create(startKey, date,<a name="line.534"></a>
-<span class="sourceLineNo">535</span>        UUID.randomUUID().toString().replaceAll("-", ""));<a name="line.535"></a>
-<span class="sourceLineNo">536</span>    return createWriter(conf, fs, family, mobFileName, basePath, maxKeyCount, compression,<a name="line.536"></a>
-<span class="sourceLineNo">537</span>        cacheConfig, cryptoContext, isCompaction);<a name="line.537"></a>
+<span class="sourceLineNo">379</span>  public static Path getMobHome(Path rootDir) {<a name="line.379"></a>
+<span class="sourceLineNo">380</span>    return new Path(rootDir, MobConstants.MOB_DIR_NAME);<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>  /**<a name="line.383"></a>
+<span class="sourceLineNo">384</span>   * Gets the qualified root dir of the mob files.<a name="line.384"></a>
+<span class="sourceLineNo">385</span>   * @param conf The current configuration.<a name="line.385"></a>
+<span class="sourceLineNo">386</span>   * @return The qualified root dir.<a name="line.386"></a>
+<span class="sourceLineNo">387</span>   * @throws IOException<a name="line.387"></a>
+<span class="sourceLineNo">388</span>   */<a name="line.388"></a>
+<span class="sourceLineNo">389</span>  public static Path getQualifiedMobRootDir(Configuration conf) throws IOException {<a name="line.389"></a>
+<span class="sourceLineNo">390</span>    Path hbaseDir = new Path(conf.get(HConstants.HBASE_DIR));<a name="line.390"></a>
+<span class="sourceLineNo">391</span>    Path mobRootDir = new Path(hbaseDir, MobConstants.MOB_DIR_NAME);<a name="line.391"></a>
+<span class="sourceLineNo">392</span>    FileSystem fs = mobRootDir.getFileSystem(conf);<a name="line.392"></a>
+<span class="sourceLineNo">393</span>    return mobRootDir.makeQualified(fs.getUri(), fs.getWorkingDirectory());<a name="line.393"></a>
+<span class="sourceLineNo">394</span>  }<a name="line.394"></a>
+<span class="sourceLineNo">395</span><a name="line.395"></a>
+<span class="sourceLineNo">396</span>  /**<a name="line.396"></a>
+<span class="sourceLineNo">397</span>   * Gets the table dir of the mob files under the qualified HBase root dir.<a name="line.397"></a>
+<span class="sourceLineNo">398</span>   * It's {rootDir}/mobdir/data/${namespace}/${tableName}<a name="line.398"></a>
+<span class="sourceLineNo">399</span>   * @param rootDir The qualified path of HBase root directory.<a name="line.399"></a>
+<span class="sourceLineNo">400</span>   * @param tableName The name of table.<a name="line.400"></a>
+<span class="sourceLineNo">401</span>   * @return The table dir of the mob file.<a name="line.401"></a>
+<span class="sourceLineNo">402</span>   */<a name="line.402"></a>
+<span class="sourceLineNo">403</span>  public static Path getMobTableDir(Path rootDir, TableName tableName) {<a name="line.403"></a>
+<span class="sourceLineNo">404</span>    return FSUtils.getTableDir(getMobHome(rootDir), tableName);<a name="line.404"></a>
+<span class="sourceLineNo">405</span>  }<a name="line.405"></a>
+<span class="sourceLineNo">406</span><a name="line.406"></a>
+<span class="sourceLineNo">407</span>  /**<a name="line.407"></a>
+<span class="sourceLineNo">408</span>   * Gets the region dir of the mob files.<a name="line.408"></a>
+<span class="sourceLineNo">409</span>   * It's {HBASE_DIR}/mobdir/data/{namespace}/{tableName}/{regionEncodedName}.<a name="line.409"></a>
+<span class="sourceLineNo">410</span>   * @param conf The current configuration.<a name="line.410"></a>
+<span class="sourceLineNo">411</span>   * @param tableName The current table name.<a name="line.411"></a>
+<span class="sourceLineNo">412</span>   * @return The region dir of the mob files.<a name="line.412"></a>
+<span class="sourceLineNo">413</span>   */<a name="line.413"></a>
+<span class="sourceLineNo">414</span>  public static Path getMobRegionPath(Configuration conf, TableName tableName) {<a name="line.414"></a>
+<span class="sourceLineNo">415</span>    return getMobRegionPath(new Path(conf.get(HConstants.HBASE_DIR)), tableName);<a name="line.415"></a>
+<span class="sourceLineNo">416</span>  }<a name="line.416"></a>
+<span class="sourceLineNo">417</span><a name="line.417"></a>
+<span class="sourceLineNo">418</span>  /**<a name="line.418"></a>
+<span class="sourceLineNo">419</span>   * Gets the region dir of the mob files under the specified root dir.<a name="line.419"></a>
+<span class="sourceLineNo">420</span>   * It's {rootDir}/mobdir/data/{namespace}/{tableName}/{regionEncodedName}.<a name="line.420"></a>
+<span class="sourceLineNo">421</span>   * @param rootDir The qualified path of HBase root directory.<a name="line.421"></a>
+<span class="sourceLineNo">422</span>   * @param tableName The current table name.<a name="line.422"></a>
+<span class="sourceLineNo">423</span>   * @return The region dir of the mob files.<a name="line.423"></a>
+<span class="sourceLineNo">424</span>   */<a name="line.424"></a>
+<span class="sourceLineNo">425</span>  public static Path getMobRegionPath(Path rootDir, TableName tableName) {<a name="line.425"></a>
+<span class="sourceLineNo">426</span>    Path tablePath = FSUtils.getTableDir(getMobHome(rootDir), tableName);<a name="line.426"></a>
+<span class="sourceLineNo">427</span>    RegionInfo regionInfo = getMobRegionInfo(tableName);<a name="line.427"></a>
+<span class="sourceLineNo">428</span>    return new Path(tablePath, regionInfo.getEncodedName());<a name="line.428"></a>
+<span class="sourceLineNo">429</span>  }<a name="line.429"></a>
+<span class="sourceLineNo">430</span><a name="line.430"></a>
+<span class="sourceLineNo">431</span>  /**<a name="line.431"></a>
+<span class="sourceLineNo">432</span>   * Gets the family dir of the mob files.<a name="line.432"></a>
+<span class="sourceLineNo">433</span>   * It's {HBASE_DIR}/mobdir/{namespace}/{tableName}/{regionEncodedName}/{columnFamilyName}.<a name="line.433"></a>
+<span class="sourceLineNo">434</span>   * @param conf The current configuration.<a name="line.434"></a>
+<span class="sourceLineNo">435</span>   * @param tableName The current table name.<a name="line.435"></a>
+<span class="sourceLineNo">436</span>   * @param familyName The current family name.<a name="line.436"></a>
+<span class="sourceLineNo">437</span>   * @return The family dir of the mob files.<a name="line.437"></a>
+<span class="sourceLineNo">438</span>   */<a name="line.438"></a>
+<span class="sourceLineNo">439</span>  public static Path getMobFamilyPath(Configuration conf, TableName tableName, String familyName) {<a name="line.439"></a>
+<span class="sourceLineNo">440</span>    return new Path(getMobRegionPath(conf, tableName), familyName);<a name="line.440"></a>
+<span class="sourceLineNo">441</span>  }<a name="line.441"></a>
+<span class="sourceLineNo">442</span><a name="line.442"></a>
+<span class="sourceLineNo">443</span>  /**<a name="line.443"></a>
+<span class="sourceLineNo">444</span>   * Gets the family dir of the mob files.<a name="line.444"></a>
+<span class="sourceLineNo">445</span>   * It's {HBASE_DIR}/mobdir/{namespace}/{tableName}/{regionEncodedName}/{columnFamilyName}.<a name="line.445"></a>
+<span class="sourceLineNo">446</span>   * @param regionPath The path of mob region which is a dummy one.<a name="line.446"></a>
+<span class="sourceLineNo">447</span>   * @param familyName The current family name.<a name="line.447"></a>
+<span class="sourceLineNo">448</span>   * @return The family dir of the mob files.<a name="line.448"></a>
+<span class="sourceLineNo">449</span>   */<a name="line.449"></a>
+<span class="sourceLineNo">450</span>  public static Path getMobFamilyPath(Path regionPath, String familyName) {<a name="line.450"></a>
+<span class="sourceLineNo">451</span>    return new Path(regionPath, familyName);<a name="line.451"></a>
+<span class="sourceLineNo">452</span>  }<a name="line.452"></a>
+<span class="sourceLineNo">453</span><a name="line.453"></a>
+<span class="sourceLineNo">454</span>  /**<a name="line.454"></a>
+<span class="sourceLineNo">455</span>   * Gets the RegionInfo of the mob files.<a name="line.455"></a>
+<span class="sourceLineNo">456</span>   * This is a dummy region. The mob files are not saved in a region in HBase.<a name="line.456"></a>
+<span class="sourceLineNo">457</span>   * This is only used in mob snapshot. It's internally used only.<a name="line.457"></a>
+<span class="sourceLineNo">458</span>   * @param tableName<a name="line.458"></a>
+<span class="sourceLineNo">459</span>   * @return A dummy mob region info.<a name="line.459"></a>
+<span class="sourceLineNo">460</span>   */<a name="line.460"></a>
+<span class="sourceLineNo">461</span>  public static RegionInfo getMobRegionInfo(TableName tableName) {<a name="line.461"></a>
+<span class="sourceLineNo">462</span>    return RegionInfoBuilder.newBuilder(tableName)<a name="line.462"></a>
+<span class="sourceLineNo">463</span>        .setStartKey(MobConstants.MOB_REGION_NAME_BYTES)<a name="line.463"></a>
+<span class="sourceLineNo">464</span>        .setEndKey(HConstants.EMPTY_END_ROW)<a name="line.464"></a>
+<span class="sourceLineNo">465</span>        .setSplit(false)<a name="line.465"></a>
+<span class="sourceLineNo">466</span>        .setRegionId(0)<a name="line.466"></a>
+<span class="sourceLineNo">467</span>        .build();<a name="line.467"></a>
+<span class="sourceLineNo">468</span>  }<a name="line.468"></a>
+<span class="sourceLineNo">469</span><a name="line.469"></a>
+<span class="sourceLineNo">470</span>  /**<a name="line.470"></a>
+<span class="sourceLineNo">471</span>   * Gets whether the current RegionInfo is a mob one.<a name="line.471"></a>
+<span class="sourceLineNo">472</span>   * @param regionInfo The current RegionInfo.<a name="line.472"></a>
+<span class="sourceLineNo">473</span>   * @return If true, the current RegionInfo is a mob one.<a name="line.473"></a>
+<span class="sourceLineNo">474</span>   */<a name="line.474"></a>
+<span class="sourceLineNo">475</span>  public static boolean isMobRegionInfo(RegionInfo regionInfo) {<a name="line.475"></a>
+<span class="sourceLineNo">476</span>    return regionInfo == null ? false : getMobRegionInfo(regionInfo.getTable()).getEncodedName()<a name="line.476"></a>
+<span class="sourceLineNo">477</span>        .equals(regionInfo.getEncodedName());<a name="line.477"></a>
+<span class="sourceLineNo">478</span>  }<a name="line.478"></a>
+<span class="sourceLineNo">479</span><a name="line.479"></a>
+<span class="sourceLineNo">480</span>  /**<a name="line.480"></a>
+<span class="sourceLineNo">481</span>   * Gets whether the current region name follows the pattern of a mob region name.<a name="line.481"></a>
+<span class="sourceLineNo">482</span>   * @param tableName The current table name.<a name="line.482"></a>
+<span class="sourceLineNo">483</span>   * @param regionName The current region name.<a name="line.483"></a>
+<span class="sourceLineNo">484</span>   * @return True if the current region name follows the pattern of a mob region name.<a name="line.484"></a>
+<span class="sourceLineNo">485</span>   */<a name="line.485"></a>
+<span class="sourceLineNo">486</span>  public static boolean isMobRegionName(TableName tableName, byte[] regionName) {<a name="line.486"></a>
+<span class="sourceLineNo">487</span>    return Bytes.equals(regionName, getMobRegionInfo(tableName).getRegionName());<a name="line.487"></a>
+<span class="sourceLineNo">488</span>  }<a name="line.488"></a>
+<span class="sourceLineNo">489</span><a name="line.489"></a>
+<span class="sourceLineNo">490</span>  /**<a name="line.490"></a>
+<span class="sourceLineNo">491</span>   * Gets the working directory of the mob compaction.<a name="line.491"></a>
+<span class="sourceLineNo">492</span>   * @param root The root directory of the mob compaction.<a name="line.492"></a>
+<span class="sourceLineNo">493</span>   * @param jobName The current job name.<a name="line.493"></a>
+<span class="sourceLineNo">494</span>   * @return The directory of the mob compaction for the current job.<a name="line.494"></a>
+<span class="sourceLineNo">495</span>   */<a name="line.495"></a>
+<span class="sourceLineNo">496</span>  public static Path getCompactionWorkingPath(Path root, String jobName) {<a name="line.496"></a>
+<span class="sourceLineNo">497</span>    return new Path(root, jobName);<a name="line.497"></a>
+<span class="sourceLineNo">498</span>  }<a name="line.498"></a>
+<span class="sourceLineNo">499</span><a name="line.499"></a>
+<span class="sourceLineNo">500</span>  /**<a name="line.500"></a>
+<span class="sourceLineNo">501</span>   * Archives the mob files.<a name="line.501"></a>
+<span class="sourceLineNo">502</span>   * @param conf The current configuration.<a name="line.502"></a>
+<span class="sourceLineNo">503</span>   * @param fs The current file system.<a name="line.503"></a>
+<span class="sourceLineNo">504</span>   * @param tableName The table name.<a name="line.504"></a>
+<span class="sourceLineNo">505</span>   * @param tableDir The table directory.<a name="line.505"></a>
+<span class="sourceLineNo">506</span>   * @param family The name of the column family.<a name="line.506"></a>
+<span class="sourceLineNo">507</span>   * @param storeFiles The files to be deleted.<a name="line.507"></a>
+<span class="sourceLineNo">508</span>   * @throws IOException<a name="line.508"></a>
+<span class="sourceLineNo">509</span>   */<a name="line.509"></a>
+<span class="sourceLineNo">510</span>  public static void removeMobFiles(Configuration conf, FileSystem fs, TableName tableName,<a name="line.510"></a>
+<span class="sourceLineNo">511</span>      Path tableDir, byte[] family, Collection&lt;HStoreFile&gt; storeFiles) throws IOException {<a name="line.511"></a>
+<span class="sourceLineNo">512</span>    HFileArchiver.archiveStoreFiles(conf, fs, getMobRegionInfo(tableName), tableDir, family,<a name="line.512"></a>
+<span class="sourceLineNo">513</span>        storeFiles);<a name="line.513"></a>
+<span class="sourceLineNo">514</span>  }<a name="line.514"></a>
+<span class="sourceLineNo">515</span><a name="line.515"></a>
+<span class="sourceLineNo">516</span>  /**<a name="line.516"></a>
+<span class="sourceLineNo">517</span>   * Creates a mob reference KeyValue.<a name="line.517"></a>
+<span class="sourceLineNo">518</span>   * The value of the mob reference KeyValue is mobCellValueSize + mobFileName.<a name="line.518"></a>
+<span class="sourceLineNo">519</span>   * @param cell The original Cell.<a name="line.519"></a>
+<span class="sourceLineNo">520</span>   * @param fileName The mob file name where the mob reference KeyValue is written.<a name="line.520"></a>
+<span class="sourceLineNo">521</span>   * @param tableNameTag The tag of the current table name. It's very important in<a name="line.521"></a>
+<span class="sourceLineNo">522</span>   *                        cloning the snapshot.<a name="line.522"></a>
+<span class="sourceLineNo">523</span>   * @return The mob reference KeyValue.<a name="line.523"></a>
+<span class="sourceLineNo">524</span>   */<a name="line.524"></a>
+<span class="sourceLineNo">525</span>  public static Cell createMobRefCell(Cell cell, byte[] fileName, Tag tableNameTag) {<a name="line.525"></a>
+<span class="sourceLineNo">526</span>    // Append the tags to the KeyValue.<a name="line.526"></a>
+<span class="sourceLineNo">527</span>    // The key is same, the value is the filename of the mob file<a name="line.527"></a>
+<span class="sourceLineNo">528</span>    List&lt;Tag&gt; tags = new ArrayList&lt;&gt;();<a name="line.528"></a>
+<span class="sourceLineNo">529</span>    // Add the ref tag as the 1st one.<a name="line.529"></a>
+<span class="sourceLineNo">530</span>    tags.add(MobConstants.MOB_REF_TAG);<a name="line.530"></a>
+<span class="sourceLineNo">531</span>    // Add the tag of the source table name, this table is where this mob file is flushed<a name="line.531"></a>
+<span class="sourceLineNo">532</span>    // from.<a name="line.532"></a>
+<span class="sourceLineNo">533</span>    // It's very useful in cloning the snapshot. When reading from the cloning table, we need to<a name="line.533"></a>
+<span class="sourceLineNo">534</span>    // find the original mob files by this table name. For details please see cloning<a name="line.534"></a>
+<span class="sourceLineNo">535</span>    // snapshot for mob files.<a name="line.535"></a>
+<span class="sourceLineNo">536</span>    tags.add(tableNameTag);<a name="line.536"></a>
+<span class="sourceLineNo">537</span>    return createMobRefCell(cell, fileName, TagUtil.fromList(tags));<a name="line.537"></a>
 <span class="sourceLineNo">538</span>  }<a name="line.538"></a>
 <span class="sourceLineNo">539</span><a name="line.539"></a>
-<span class="sourceLineNo">540</span>  /**<a name="line.540"></a>
-<span class="sourceLineNo">541</span>   * Creates a writer for the ref file in temp directory.<a name="line.541"></a>
-<span class="sourceLineNo">542</span>   * @param conf The current configuration.<a name="line.542"></a>
-<span class="sourceLineNo">543</span>   * @param fs The current file system.<a name="line.543"></a>
-<span class="sourceLineNo">544</span>   * @param family The descriptor of the current column family.<a name="line.544"></a>
-<span class="sourceLineNo">545</span>   * @param basePath The basic path for a temp directory.<a name="line.545"></a>
-<span class="sourceLineNo">546</span>   * @param maxKeyCount The key count.<a name="line.546"></a>
-<span class="sourceLineNo">547</span>   * @param cacheConfig The current cache config.<a name="line.547"></a>
-<span class="sourceLineNo">548</span>   * @param cryptoContext The encryption context.<a name="line.548"></a>
-<span class="sourceLineNo">549</span>   * @param isCompaction If the writer is used in compaction.<a name="line.549"></a>
-<span class="sourceLineNo">550</span>   * @return The writer for the mob file.<a name="line.550"></a>
-<span class="sourceLineNo">551</span>   * @throws IOException<a name="line.551"></a>
-<span class="sourceLineNo">552</span>   */<a name="line.552"></a>
-<span class="sourceLineNo">553</span>  public static StoreFileWriter createRefFileWriter(Configuration conf, FileSystem fs,<a name="line.553"></a>
-<span class="sourceLineNo">554</span>    ColumnFamilyDescriptor family, Path basePath, long maxKeyCount, CacheConfig cacheConfig,<a name="line.554"></a>
-<span class="sourceLineNo">555</span>    Encryption.Context cryptoContext, boolean isCompaction)<a name="line.555"></a>
-<span class="sourceLineNo">556</span>    throws IOException {<a name="line.556"></a>
-<span class="sourceLineNo">557</span>    return createWriter(conf, fs, family,<a name="line.557"></a>
-<span class="sourceLineNo">558</span>      new Path(basePath, UUID.randomUUID().toString().replaceAll("-", "")), maxKeyCount,<a name="line.558"></a>
-<span class="sourceLineNo">559</span>      family.getCompactionCompressionType(), cacheConfig, cryptoContext,<a name="line.559"></a>
-<span class="sourceLineNo">560</span>      HStore.getChecksumType(conf), HStore.getBytesPerChecksum(conf), family.getBlocksize(),<a name="line.560"></a>
-<span class="sourceLineNo">561</span>      family.getBloomFilterType(), isCompaction);<a name="line.561"></a>
-<span class="sourceLineNo">562</span>  }<a name="line.562"></a>
-<span class="sourceLineNo">563</span><a name="line.563"></a>
-<span class="sourceLineNo">564</span>  /**<a name="line.564"></a>
-<span class="sourceLineNo">565</span>   * Creates a writer for the mob file in temp directory.<a name="line.565"></a>
-<span class="sourceLineNo">566</span>   * @param conf The current configuration.<a name="line.566"></a>
-<span class="sourceLineNo">567</span>   * @param fs The current file system.<a name="line.567"></a>
-<span class="sourceLineNo">568</span>   * @param family The descriptor of the current column family.<a name="line.568"></a>
-<span class="sourceLineNo">569</span>   * @param date The date string, its format is yyyymmmdd.<a name="line.569"></a>
-<span class="sourceLineNo">570</span>   * @param basePath The basic path for a temp directory.<a name="line.570"></a>
-<span class="sourceLineNo">571</span>   * @param maxKeyCount The key count.<a name="line.571"></a>
-<span class="sourceLineNo">572</span>   * @param compression The compression algorithm.<a name="line.572"></a>
-<span class="sourceLineNo">573</span>   * @param startKey The start key.<a name="line.573"></a>
-<span class="sourceLineNo">574</span>   * @param cacheConfig The current cache config.<a name="line.574"></a>
-<span class="sourceLineNo">575</span>   * @param cryptoContext The encryption context.<a name="line.575"></a>
-<span class="sourceLineNo">576</span>   * @param isCompaction If the writer is used in compaction.<a name="line.576"></a>
-<span class="sourceLineNo">577</span>   * @return The writer for the mob file.<a name="line.577"></a>
-<span class="sourceLineNo">578</span>   * @throws IOException<a name="line.578"></a>
-<span class="sourceLineNo">579</span>   */<a name="line.579"></a>
-<span class="sourceLineNo">580</span>  public static StoreFileWriter createWriter(Configuration conf, FileSystem fs,<a name="line.580"></a>
-<span class="sourceLineNo">581</span>      ColumnFamilyDescriptor family, String date, Path basePath, long maxKeyCount,<a name="line.581"></a>
-<span class="sourceLineNo">582</span>      Compression.Algorithm compression, byte[] startKey, CacheConfig cacheConfig,<a name="line.582"></a>
-<span class="sourceLineNo">583</span>      Encryption.Context cryptoContext, boolean isCompaction)<a name="line.583"></a>
-<span class="sourceLineNo">584</span>      throws IOException {<a name="line.584"></a>
-<span class="sourceLineNo">585</span>    MobFileName mobFileName = MobFileName.create(startKey, date,<a name="line.585"></a>
-<span class="sourceLineNo">586</span>        UUID.randomUUID().toString().replaceAll("-", ""));<a name="line.586"></a>
-<span class="sourceLineNo">587</span>    return createWriter(conf, fs, family, mobFileName, basePath, maxKeyCount, compression,<a name="line.587"></a>
-<span class="sourceLineNo">588</span>      cacheConfig, cryptoContext, isCompaction);<a name="line.588"></a>
-<span class="sourceLineNo">589</span>  }<a name="line.589"></a>
-<span class="sourceLineNo">590</span><a name="line.590"></a>
-<span class="sourceLineNo">591</span>  /**<a name="line.591"></a>
-<span class="sourceLineNo">592</span>   * Creates a writer for the del file in temp directory.<a name="line.592"></a>
-<span class="sourceLineNo">593</span>   * @param conf The current configuration.<a name="line.593"></a>
-<span class="sourceLineNo">594</span>   * @param fs The current file system.<a name="line.594"></a>
-<span class="sourceLineNo">595</span>   * @param family The descriptor of the current column family.<a name="line.595"></a>
-<span class="sourceLineNo">596</span>   * @param date The date string, its format is yyyymmmdd.<a name="line.596"></a>
-<span class="sourceLineNo">597</span>   * @param basePath The basic path for a temp directory.<a name="line.597"></a>
-<span class="sourceLineNo">598</span>   * @param maxKeyCount The key count.<a name="line.598"></a>
-<span class="sourceLineNo">599</span>   * @param compression The compression algorithm.<a name="line.599"></a>
-<span class="sourceLineNo">600</span>   * @param startKey The start key.<a name="line.600"></a>
-<span class="sourceLineNo">601</span>   * @param cacheConfig The current cache config.<a name="line.601"></a>
-<span class="sourceLineNo">602</span>   * @param cryptoContext The encryption context.<a name="line.602"></a>
-<span class="sourceLineNo">603</span>   * @return The writer for the del file.<a name="line.603"></a>
-<span class="sourceLineNo">604</span>   * @throws IOException<a name="line.604"></a>
-<span class="sourceLineNo">605</span>   */<a name="line.605"></a>
-<span class="sourceLineNo">606</span>  public static StoreFileWriter createDelFileWriter(Configuration conf, FileSystem fs,<a name="line.606"></a>
-<span class="sourceLineNo">607</span>      ColumnFamilyDescriptor family, String date, Path basePath, long maxKeyCount,<a name="line.607"></a>
-<span class="sourceLineNo">608</span>      Compression.Algorithm compression, byte[] startKey, CacheConfig cacheConfig,<a name="line.608"></a>
-<span class="sourceLineNo">609</span>      Encryption.Context cryptoContext)<a name="line.609"></a>
-<span class="sourceLineNo">610</span>      throws IOException {<a name="line.610"></a>
-<span class="sourceLineNo">611</span>    String suffix = UUID<a name="line.611"></a>
-<span class="sourceLineNo">612</span>      .randomUUID().toString().replaceAll("-", "") + "_del";<a name="line.612"></a>
-<span class="sourceLineNo">613</span>    MobFileName mobFileName = MobFileName.create(startKey, date, suffix);<a name="line.613"></a>
-<span class="sourceLineNo">614</span>    return createWriter(conf, fs, family, mobFileName, basePath, maxKeyCount, compression,<a name="line.614"></a>
-<span class="sourceLineNo">615</span>      cacheConfig, cryptoContext, true);<a name="line.615"></a>
-<span class="sourceLineNo">616</span>  }<a name="line.616"></a>
-<span class="sourceLineNo">617</span><a name="line.617"></a>
-<span class="sourceLineNo">618</span>  /**<a name="line.618"></a>
-<span class="sourceLineNo">619</span>   * Creates a writer for the mob file in temp directory.<a name="line.619"></a>
-<span class="sourceLineNo">620</span>   * @param conf The current configuration.<a name="line.620"></a>
-<span class="sourceLineNo">621</span>   * @param fs The current file system.<a name="line.621"></a>
-<span class="sourceLineNo">622</span>   * @param family The descriptor of the current column family.<a name="line.622"></a>
-<span class="sourceLineNo">623</span>   * @param mobFileName The mob file name.<a name="line.623"></a>
-<span class="sourceLineNo">624</span>   * @param basePath The basic path for a temp directory.<a name="line.624"></a>
-<span class="sourceLineNo">625</span>   * @param maxKeyCount The key count.<a name="line.625"></a>
-<span class="sourceLineNo">626</span>   * @param compression The compression algorithm.<a name="line.626"></a>
-<span class="sourceLineNo">627</span>   * @param cacheConfig The current cache config.<a name="line.627"></a>
-<span class="sourceLineNo">628</span>   * @param cryptoContext The encryption context.<a name="line.628"></a>
-<span class="sourceLineNo">629</span>   * @param isCompaction If the writer is used in compaction.<a name="line.629"></a>
-<span class="sourceLineNo">630</span>   * @return The writer for the mob file.<a name="line.630"></a>
-<span class="sourceLineNo">631</span>   * @throws IOException<a name="line.631"></a>
-<span class="sourceLineNo">632</span>   */<a name="line.632"></a>
-<span class="sourceLineNo">633</span>  public static StoreFileWriter createWriter(Configuration conf, FileSystem fs,<a name="line.633"></a>
-<span class="sourceLineNo">634</span>                                             ColumnFamilyDescriptor family, MobFileName mobFileName, Path basePath, long maxKeyCount,<a name="line.634"></a>
-<span class="sourceLineNo">635</span>      Compression.Algorithm compression, CacheConfig cacheConfig, Encryption.Context cryptoContext,<a name="line.635"></a>
-<span class="sourceLineNo">636</span>      boolean isCompaction)<a name="line.636"></a>
-<span class="sourceLineNo">637</span>      throws IOException {<a name="line.637"></a>
-<span class="sourceLineNo">638</span>    return createWriter(conf, fs, family,<a name="line.638"></a>
-<span class="sourceLineNo">639</span>      new Path(basePath, mobFileName.getFileName()), maxKeyCount, compression, cacheConfig,<a name="line.639"></a>
-<span class="sourceLineNo">640</span>      cryptoContext, HStore.getChecksumType(conf), HStore.getBytesPerChecksum(conf),<a name="line.640"></a>
-<span class="sourceLineNo">641</span>      family.getBlocksize(), BloomType.NONE, isCompaction);<a name="line.641"></a>
-<span class="sourceLineNo">642</span>  }<a name="line.642"></a>
-<span class="sourceLineNo">643</span><a name="line.643"></a>
-<span class="sourceLineNo">644</span>  /**<a name="line.644"></a>
-<span class="sourceLineNo">645</span>   * Creates a writer for the mob file in temp directory.<a name="line.645"></a>
-<span class="sourceLineNo">646</span>   * @param conf The current configuration.<a name="line.646"></a>
-<span class="sourceLineNo">647</span>   * @param fs The current file system.<a name="line.647"></a>
-<span class="sourceLineNo">648</span>   * @param family The descriptor of the current column family.<a name="line.648"></a>
-<span class="sourceLineNo">649</span>   * @param path The path for a temp directory.<a name="line.649"></a>
-<span class="sourceLineNo">650</span>   * @param maxKeyCount The key count.<a name="line.650"></a>
-<span class="sourceLineNo">651</span>   * @param compression The compression algorithm.<a name="line.651"></a>
-<span class="sourceLineNo">652</span>   * @param cacheConfig The current cache config.<a name="line.652"></a>
-<span class="sourceLineNo">653</span>   * @param cryptoContext The encryption context.<a name="line.653"></a>
-<span class="sourceLineNo">654</span>   * @param checksumType The checksum type.<a name="line.654"></a>
-<span class="sourceLineNo">655</span>   * @param bytesPerChecksum The bytes per checksum.<a name="line.655"></a>
-<span class="sourceLineNo">656</span>   * @param blocksize The HFile block size.<a name="line.656"></a>
-<span class="sourceLineNo">657</span>   * @param bloomType The bloom filter type.<a name="line.657"></a>
-<span class="sourceLineNo">658</span>   * @param isCompaction If the writer is used in compaction.<a name="line.658"></a>
-<span class="sourceLineNo">659</span>   * @return The writer for the mob file.<a name="line.659"></a>
-<span class="sourceLineNo">660</span>   * @throws IOException<a name="line.660"></a>
-<span class="sourceLineNo">661</span>   */<a name="line.661"></a>
-<span class="sourceLineNo">662</span>  public static StoreFileWriter createWriter(Configuration conf, FileSystem fs,<a name="line.662"></a>
-<span class="sourceLineNo">663</span>      ColumnFamilyDescriptor family, Path path, long maxKeyCount,<a name="line.663"></a>
-<span class="sourceLineNo">664</span>      Compression.Algorithm compression, CacheConfig cacheConfig, Encryption.Context cryptoContext,<a name="line.664"></a>
-<span class="sourceLineNo">665</span>      ChecksumType checksumType, int bytesPerChecksum, int blocksize, BloomType bloomType,<a name="line.665"></a>
-<span class="sourceLineNo">666</span>      boolean isCompaction)<a name="line.666"></a>
-<span class="sourceLineNo">667</span>      throws IOException {<a name="line.667"></a>
-<span class="sourceLineNo">668</span>    if (compression == null) {<a name="line.668"></a>
-<span class="sourceLineNo">669</span>      compression = HFile.DEFAULT_COMPRESSION_ALGORITHM;<a name="line.669"></a>
-<span class="sourceLineNo">670</span>    }<a name="line.670"></a>
-<span class="sourceLineNo">671</span>    final CacheConfig writerCacheConf;<a name="line.671"></a>
-<span class="sourceLineNo">672</span>    if (isCompaction) {<a name="line.672"></a>
-<span class="sourceLineNo">673</span>      writerCacheConf = new CacheConfig(cacheConfig);<a name="line.673"></a>
-<span class="sourceLineNo">674</span>      writerCacheConf.setCacheDataOnWrite(false);<a name="line.674"></a>
-<span class="sourceLineNo">675</span>    } else {<a name="line.675"></a>
-<span class="sourceLineNo">676</span>      writerCacheConf = cacheConfig;<a name="line.676"></a>
-<span class="sourceLineNo">677</span>    }<a name="line.677"></a>
-<span class="sourceLineNo">678</span>    HFileContext hFileContext = new HFileContextBuilder().withCompression(compression)<a name="line.678"></a>
-<span class="sourceLineNo">679</span>        .withIncludesMvcc(true).withIncludesTags(true)<a name="line.679"></a>
-<span class="sourceLineNo">680</span>        .withCompressTags(family.isCompressTags())<a name="line.680"></a>
-<span class="sourceLineNo">681</span>        .withChecksumType(checksumType)<a name="line.681"></a>
-<span class="sourceLineNo">682</span>        .withBytesPerCheckSum(bytesPerChecksum)<a name="line.682"></a>
-<span class="sourceLineNo">683</span>        .withBlockSize(blocksize)<a name="line.683"></a>
-<span class="sourceLineNo">684</span>        .withHBaseCheckSum(true).withDataBlockEncoding(family.getDataBlockEncoding())<a name="line.684"></a>
-<span class="sourceLineNo">685</span>        .withEncryptionContext(cryptoContext)<a name="line.685"></a>
-<span class="sourceLineNo">686</span>        .withCreateTime(EnvironmentEdgeManager.currentTime()).build();<a name="line.686"></a>
-<span class="sourceLineNo">687</span><a name="line.687"></a>
-<span class="sourceLineNo">688</span>    StoreFileWriter w = new StoreFileWriter.Builder(conf, writerCacheConf, fs)<a name="line.688"></a>
-<span class="sourceLineNo">689</span>        .withFilePath(path)<a name="line.689"></a>
-<span class="sourceLineNo">690</span>        .withComparator(CellComparator.getInstance()).withBloomType(bloomType)<a name="line.690"></a>
-<span class="sourceLineNo">691</span>        .withMaxKeyCount(maxKeyCount).withFileContext(hFileContext).build();<a name="line.691"></a>
-<span class="sourceLineNo">692</span>    return w;<a name="line.692"></a>
-<span class="sourceLineNo">693</span>  }<a name="line.693"></a>
-<span class="sourceLineNo">694</span><a name="line.694"></a>
-<span class="sourceLineNo">695</span>  /**<a name="line.695"></a>
-<span class="sourceLineNo">696</span>   * Commits the mob file.<a name="line.696"></a>
-<span class="sourceLineNo">697</span>   * @param conf The current configuration.<a name="line.697"></a>
-<span class="sourceLineNo">698</span>   * @param fs The current file system.<a name="line.698"></a>
-<span class="sourceLineNo">699</span>   * @param sourceFile The path where the mob file is saved.<a name="line.699"></a>
-<span class="sourceLineNo">700</span>   * @param targetPath The directory path where the source file is renamed to.<a name="line.700"></a>
-<span class="sourceLineNo">701</span>   * @param cacheConfig The current cache config.<a name="line.701"></a>
-<span class="sourceLineNo">702</span>   * @return The target file path the source file is renamed to.<a name="line.702"></a>
-<span class="sourceLineNo">703</span>   * @throws IOException<a name="line.703"></a>
-<span class="sourceLineNo">704</span>   */<a name="line.704"></a>
-<span class="sourceLineNo">705</span>  public static Path commitFile(Configuration conf, FileSystem fs, final Path sourceFile,<a name="line.705"></a>
-<span class="sourceLineNo">706</span>      Path targetPath, CacheConfig cacheConfig) throws IOException {<a name="line.706"></a>
-<span class="sourceLineNo">707</span>    if (sourceFile == null) {<a name="line.707"></a>
-<span class="sourceLineNo">708</span>      return null;<a name="line.708"></a>
+<span class="sourceLineNo">540</span>  public static Cell createMobRefCell(Cell cell, byte[] fileName, byte[] refCellTags) {<a name="line.540"></a>
+<span class="sourceLineNo">541</span>    byte[] refValue = Bytes.add(Bytes.toBytes(cell.getValueLength()), fileName);<a name="line.541"></a>
+<span class="sourceLineNo">542</span>    return PrivateCellUtil.createCell(cell, refValue, TagUtil.concatTags(refCellTags, cell));<a name="line.542"></a>
+<span class="sourceLineNo">543</span>  }<a name="line.543"></a>
+<span class="sourceLineNo">544</span><a name="line.544"></a>
+<span class="sourceLineNo">545</span>  /**<a name="line.545"></a>
+<span class="sourceLineNo">546</span>   * Creates a writer for the mob file in temp directory.<a name="line.546"></a>
+<span class="sourceLineNo">547</span>   * @param conf The current configuration.<a name="line.547"></a>
+<span class="sourceLineNo">548</span>   * @param fs The current file system.<a name="line.548"></a>
+<span class="sourceLineNo">549</span>   * @param family The descriptor of the current column family.<a name="line.549"></a>
+<span class="sourceLineNo">550</span>   * @param date The date string, its format is yyyymmmdd.<a name="line.550"></a>
+<span class="sourceLineNo">551</span>   * @param basePath The basic path for a temp directory.<a name="line.551"></a>
+<span class="sourceLineNo">552</span>   * @param maxKeyCount The key count.<a name="line.552"></a>
+<span class="sourceLineNo">553</span>   * @param compression The compression algorithm.<a name="line.553"></a>
+<span class="sourceLineNo">554</span>   * @param startKey The hex string of the start key.<a name="line.554"></a>
+<span class="sourceLineNo">555</span>   * @param cacheConfig The current cache config.<a name="line.555"></a>
+<span class="sourceLineNo">556</span>   * @param cryptoContext The encryption context.<a name="line.556"></a>
+<span class="sourceLineNo">557</span>   * @param isCompaction If the writer is used in compaction.<a name="line.557"></a>
+<span class="sourceLineNo">558</span>   * @return The writer for the mob file.<a name="line.558"></a>
+<span class="sourceLineNo">559</span>   * @throws IOException<a name="line.559"></a>
+<span class="sourceLineNo">560</span>   */<a name="line.560"></a>
+<span class="sourceLineNo">561</span>  public static StoreFileWriter createWriter(Configuration conf, FileSystem fs,<a name="line.561"></a>
+<span class="sourceLineNo">562</span>      ColumnFamilyDescriptor family, String date, Path basePath, long maxKeyCount,<a name="line.562"></a>
+<span class="sourceLineNo">563</span>      Compression.Algorithm compression, String startKey, CacheConfig cacheConfig,<a name="line.563"></a>
+<span class="sourceLineNo">564</span>      Encryption.Context cryptoContext, boolean isCompaction)<a name="line.564"></a>
+<span class="sourceLineNo">565</span>      throws IOException {<a name="line.565"></a>
+<span class="sourceLineNo">566</span>    MobFileName mobFileName = MobFileName.create(startKey, date,<a name="line.566"></a>
+<span class="sourceLineNo">567</span>        UUID.randomUUID().toString().replaceAll("-", ""));<a name="line.567"></a>
+<span class="sourceLineNo">568</span>    return createWriter(conf, fs, family, mobFileName, basePath, maxKeyCount, compression,<a name="line.568"></a>
+<span class="sourceLineNo">569</span>        cacheConfig, cryptoContext, isCompaction);<a name="line.569"></a>
+<span class="sourceLineNo">570</span>  }<a name="line.570"></a>
+<span class="sourceLineNo">571</span><a name="line.571"></a>
+<span class="sourceLineNo">572</span>  /**<a name="line.572"></a>
+<span class="sourceLineNo">573</span>   * Creates a writer for the ref file in temp directory.<a name="line.573"></a>
+<span class="sourceLineNo">574</span>   * @param conf The current configuration.<a name="line.574"></a>
+<span class="sourceLineNo">575</span>   * @param fs The current file system.<a name="line.575"></a>
+<span class="sourceLineNo">576</span>   * @param family The descriptor of the current column family.<a name="line.576"></a>
+<span class="sourceLineNo">577</span>   * @param basePath The basic path for a temp directory.<a name="line.577"></a>
+<span class="sourceLineNo">578</span>   * @param maxKeyCount The key count.<a name="line.578"></a>
+<span class="sourceLineNo">579</span>   * @param cacheConfig The current cache config.<a name="line.579"></a>
+<span class="sourceLineNo">580</span>   * @param cryptoContext The encryption context.<a name="line.580"></a>
+<span class="sourceLineNo">581</span>   * @param isCompaction If the writer is used in compaction.<a name="line.581"></a>
+<span class="sourceLineNo">582</span>   * @return The writer for the mob file.<a name="line.582"></a>
+<span class="sourceLineNo">583</span>   * @throws IOException<a name="line.583"></a>
+<span class="sourceLineNo">584</span>   */<a name="line.584"></a>
+<span class="sourceLineNo">585</span>  public static StoreFileWriter createRefFileWriter(Configuration conf, FileSystem fs,<a name="line.585"></a>
+<span class="sourceLineNo">586</span>    ColumnFamilyDescriptor family, Path basePath, long maxKeyCount, CacheConfig cacheConfig,<a name="line.586"></a>
+<span class="sourceLineNo">587</span>    Encryption.Context cryptoContext, boolean isCompaction)<a name="line.587"></a>
+<span class="sourceLineNo">588</span>    throws IOException {<a name="line.588"></a>
+<span class="sourceLineNo">589</span>    return createWriter(conf, fs, family,<a name="line.589"></a>
+<span class="sourceLineNo">590</span>      new Path(basePath, UUID.randomUUID().toString().replaceAll("-", "")), maxKeyCount,<a name="line.590"></a>
+<span class="sourceLineNo">591</span>      family.getCompactionCompressionType(), cacheConfig, cryptoContext,<a name="line.591"></a>
+<span class="sourceLineNo">592</span>      HStore.getChecksumType(conf), HStore.getBytesPerChecksum(conf), family.getBlocksize(),<a name="line.592"></a>
+<span class="sourceLineNo">593</span>      family.getBloomFilterType(), isCompaction);<a name="line.593"></a>
+<span class="sourceLineNo">594</span>  }<a name="line.594"></a>
+<span class="sourceLineNo">595</span><a name="line.595"></a>
+<span class="sourceLineNo">596</span>  /**<a name="line.596"></a>
+<span class="sourceLineNo">597</span>   * Creates a writer for the mob file in temp directory.<a name="line.597"></a>
+<span class="sourceLineNo">598</span>   * @param conf The current configuration.<a name="line.598"></a>
+<span class="sourceLineNo">599</span>   * @param fs The current file system.<a name="line.599"></a>
+<span class="sourceLineNo">600</span>   * @param family The descriptor of the current column family.<a name="line.600"></a>
+<span class="sourceLineNo">601</span>   * @param date The date string, its format is yyyymmmdd.<a name="line.601"></a>
+<span class="sourceLineNo">602</span>   * @param basePath The basic path for a temp directory.<a name="line.602"></a>
+<span class="sourceLineNo">603</span>   * @param maxKeyCount The key count.<a name="line.603"></a>
+<span class="sourceLineNo">604</span>   * @param compression The compression algorithm.<a name="line.604"></a>
+<span class="sourceLineNo">605</span>   * @param startKey The start key.<a name="line.605"></a>
+<span class="sourceLineNo">606</span>   * @param cacheConfig The current cache config.<a name="line.606"></a>
+<span class="sourceLineNo">607</span>   * @param cryptoContext The encryption context.<a name="line.607"></a>
+<span class="sourceLineNo">608</span>   * @param isCompaction If the writer is used in compaction.<a name="line.608"></a>
+<span class="sourceLineNo">609</span>   * @return The writer for the mob file.<a name="line.609"></a>
+<span class="sourceLineNo">610</span>   * @throws IOException<a name="line.610"></a>
+<span class="sourceLineNo">611</span>   */<a name="line.611"></a>
+<span class="sourceLineNo">612</span>  public static StoreFileWriter createWriter(Configuration conf, FileSystem fs,<a name="line.612"></a>
+<span class="sourceLineNo">613</span>      ColumnFamilyDescriptor family, String date, Path basePath, long maxKeyCount,<a name="line.613"></a>
+<span class="sourceLineNo">614</span>      Compression.Algorithm compression, byte[] startKey, CacheConfig cacheConfig,<a name="line.614"></a>
+<span class="sourceLineNo">615</span>      Encryption.Context cryptoContext, boolean isCompaction)<a name="line.615"></a>
+<span class="sourceLineNo">616</span>      throws IOException {<a name="line.616"></a>
+<span class="sourceLineNo">617</span>    MobFileName mobFileName = MobFileName.create(startKey, date,<a name="line.617"></a>
+<span class="sourceLineNo">618</span>        UUID.randomUUID().toString().replaceAll("-", ""));<a name="line.618"></a>
+<span class="sourceLineNo">619</span>    return createWriter(conf, fs, family, mobFileName, basePath, maxKeyCount, compression,<a name="line.619"></a>
+<span class="sourceLineNo">620</span>      cacheConfig, cryptoContext, isCompaction);<a name="line.620"></a>
+<span class="sourceLineNo">621</span>  }<a name="line.621"></a>
+<span class="sourceLineNo">622</span><a name="line.622"></a>
+<span class="sourceLineNo">623</span>  /**<a name="line.623"></a>
+<span class="sourceLineNo">624</span>   * Creates a writer for the del file in temp directory.<a name="line.624"></a>
+<span class="sourceLineNo">625</span>   * @param conf The current configuration.<a name="line.625"></a>
+<span class="sourceLineNo">626</span>   * @param fs The current file system.<a name="line.626"></a>
+<span class="sourceLineNo">627</span>   * @param family The descriptor of the current column family.<a name="line.627"></a>
+<span class="sourceLineNo">628</span>   * @param date The date string, its format is yyyymmmdd.<a name="line.628"></a>
+<span class="sourceLineNo">629</span>   * @param basePath The basic path for a temp directory.<a name="line.629"></a>
+<span class="sourceLineNo">630</span>   * @param maxKeyCount The key count.<a name="line.630"></a>
+<span class="sourceLineNo">631</span>   * @param compression The compression algorithm.<a name="line.631"></a>
+<span class="sourceLineNo">632</span>   * @param startKey The start key.<a name="line.632"></a>
+<span class="sourceLineNo">633</span>   * @param cacheConfig The current cache config.<a name="line.633"></a>
+<span class="sourceLineNo">634</span>   * @param cryptoContext The encryption context.<a name="line.634"></a>
+<span class="sourceLineNo">635</span>   * @return The writer for the del file.<a name="line.635"></a>
+<span class="sourceLineNo">636</span>   * @throws IOException<a name="line.636"></a>
+<span class="sourceLineNo">637</span>   */<a name="line.637"></a>
+<span class="sourceLineNo">638</span>  public static StoreFileWriter createDelFileWriter(Configuration conf, FileSystem fs,<a name="line.638"></a>
+<span class="sourceLineNo">639</span>      ColumnFamilyDescriptor family, String date, Path basePath, long maxKeyCount,<a name="line.639"></a>
+<span class="sourceLineNo">640</span>      Compression.Algorithm compression, byte[] startKey, CacheConfig cacheConfig,<a name="line.640"></a>
+<span class="sourceLineNo">641</span>      Encryption.Context cryptoContext)<a name="line.641"></a>
+<span class="sourceLineNo">642</span>      throws IOException {<a name="line.642"></a>
+<span class="sourceLineNo">643</span>    String suffix = UUID<a name="line.643"></a>
+<span class="sourceLineNo">644</span>      .randomUUID().toString().replaceAll("-", "") + "_del";<a name="line.644"></a>
+<span class="sourceLineNo">645</span>    MobFileName mobFileName = MobFileName.create(startKey, date, suffix);<a name="line.645"></a>
+<span class="sourceLineNo">646</span>    return createWriter(conf, fs, family, mobFileName, basePath, maxKeyCount, compression,<a name="line.646"></a>
+<span class="sourceLineNo">647</span>      cacheConfig, cryptoContext, true);<a name="line.647"></a>
+<span class="sourceLineNo">648</span>  }<a name="line.648"></a>
+<span class="sourceLineNo">649</span><a name="line.649"></a>
+<span class="sourceLineNo">650</span>  /**<a name="line.650"></a>
+<span class="sourceLineNo">651</span>   * Creates a writer for the mob file in temp directory.<a name="line.651"></a>
+<span class="sourceLineNo">652</span>   * @param conf The current configuration.<a name="line.652"></a>
+<span class="sourceLineNo">653</span>   * @param fs The current file system.<a name="line.653"></a>
+<span class="sourceLineNo">654</span>   * @param family The descriptor of the current column family.<a name="line.654"></a>
+<span class="sourceLineNo">655</span>   * @param mobFileName The mob file name.<a name="line.655"></a>
+<span class="sourceLineNo">656</span>   * @param basePath The basic path for a temp directory.<a name="line.656"></a>
+<span class="sourceLineNo">657</span>   * @param maxKeyCount The key count.<a name="line.657"></a>
+<span class="sourceLineNo">658</span>   * @param compression The compression algorithm.<a name="line.658"></a>
+<span class="sourceLineNo">659</span>   * @param cacheConfig The current cache config.<a name="line.659"></a>
+<span class="sourceLineNo">660</span>   * @param cryptoContext The encryption context.<a name="line.660"></a>
+<span class="sourceLineNo">661</span>   * @param isCompaction If the writer is used in compaction.<a name="line.661"></a>
+<span class="sourceLineNo">662</span>   * @return The writer for the mob file.<a name="line.662"></a>
+<span class="sourceLineNo">663</span>   * @throws IOException<a name="line.663"></a>
+<span class="sourceLineNo">664</span>   */<a name="line.664"></a>
+<span class="sourceLineNo">665</span>  public static StoreFileWriter createWriter(Configuration conf, FileSystem fs,<a name="line.665"></a>
+<span class="sourceLineNo">666</span>                                             ColumnFamilyDescriptor family, MobFileName mobFileName, Path basePath, long maxKeyCount,<a name="line.666"></a>
+<span class="sourceLineNo">667</span>      Compression.Algorithm compression, CacheConfig cacheConfig, Encryption.Context cryptoContext,<a name="line.667"></a>
+<span class="sourceLineNo">668</span>      boolean isCompaction)<a name="line.668"></a>
+<span class="sourceLineNo">669</span>      throws IOException {<a name="line.669"></a>
+<span class="sourceLineNo">670</span>    return createWriter(conf, fs, family,<a name="line.670"></a>
+<span class="sourceLineNo">671</span>      new Path(basePath, mobFileName.getFileName()), maxKeyCount, compression, cacheConfig,<a name="line.671"></a>
+<span class="sourceLineNo">672</span>      cryptoContext, HStore.getChecksumType(conf), HStore.getBytesPerChecksum(conf),<a name="line.672"></a>
+<span class="sourceLineNo">673</span>      family.getBlocksize(), BloomType.NONE, isCompaction);<a name="line.673"></a>
+<span class="sourceLineNo">674</span>  }<a name="line.674"></a>
+<span class="sourceLineNo">675</span><a name="line.675"></a>
+<span class="sourceLineNo">676</span>  /**<a name="line.676"></a>
+<span class="sourceLineNo">677</span>   * Creates a writer for the mob file in temp directory.<a name="line.677"></a>
+<span class="sourceLineNo">678</span>   * @param conf The current configuration.<a name="line.678"></a>
+<span class="sourceLineNo">679</span>   * @param fs The current file system.<a name="line.679"></a>
+<span class="sourceLineNo">680</span>   * @param family The descriptor of the current column family.<a name="line.680"></a>
+<span class="sourceLineNo">681</span>   * @param path The path for a temp directory.<a name="line.681"></a>
+<span class="sourceLineNo">682</span>   * @param maxKeyCount The key count.<a name="line.682"></a>
+<span class="sourceLineNo">683</span>   * @param compression The compression algorithm.<a name="line.683"></a>
+<span class="sourceLineNo">684</span>   * @param cacheConfig The current cache config.<a name="line.684"></a>
+<span class="sourceLineNo">685</span>   * @param cryptoContext The encryption context.<a name="line.685"></a>
+<span class="sourceLineNo">686</span>   * @param checksumType The checksum type.<a name="line.686"></a>
+<span class="sourceLineNo">687</span>   * @param bytesPerChecksum The bytes per checksum.<a name="line.687"></a>
+<span class="sourceLineNo">688</span>   * @param blocksize The HFile block size.<a name="line.688"></a>
+<span class="sourceLineNo">689</span>   * @param bloomType The bloom filter type.<a name="line.689"></a>
+<span class="sourceLineNo">690</span>   * @param isCompaction If the writer is used in compaction.<a name="line.690"></a>
+<span class="sourceLineNo">691</span>   * @return The writer for the mob file.<a name="line.691"></a>
+<span class="sourceLineNo">692</span>   * @throws IOException<a name="line.692"></a>
+<span class="sourceLineNo">693</span>   */<a name="line.693"></a>
+<span class="sourceLineNo">694</span>  public static StoreFileWriter createWriter(Configuration conf, FileSystem fs,<a name="line.694"></a>
+<span class="sourceLineNo">695</span>      ColumnFamilyDescriptor family, Path path, long maxKeyCount,<a name="line.695"></a>
+<span class="sourceLineNo">696</span>      Compression.Algorithm compression, CacheConfig cacheConfig, Encryption.Context cryptoContext,<a name="line.696"></a>
+<span class="sourceLineNo">697</span>      ChecksumType checksumType, int bytesPerChecksum, int blocksize, BloomType bloomType,<a name="line.697"></a>
+<span class="sourceLineNo">698</span>      boolean isCompaction)<a name="line.698"></a>
+<span class="sourceLineNo">699</span>      throws IOException {<a name="line.699"></a>
+<span class="sourceLineNo">700</span>    if (compression == null) {<a name="line.700"></a>
+<span class="sourceLineNo">701</span>      compression = HFile.DEFAULT_COMPRESSION_ALGORITHM;<a name="line.701"></a>
+<span class="sourceLineNo">702</span>    }<a name="line.702"></a>
+<span class="sourceLineNo">703</span>    final CacheConfig writerCacheConf;<a name="line.703"></a>
+<span class="sourceLineNo">704</span>    if (isCompaction) {<a name="line.704"></a>
+<span class="sourceLineNo">705</span>      writerCacheConf = new CacheConfig(cacheConfig);<a name="line.705"></a>
+<span class="sourceLineNo">706</span>      writerCacheConf.setCacheDataOnWrite(false);<a name="line.706"></a>
+<span class="sourceLineNo">707</span>    } else {<a name="line.707"></a>
+<span class="sourceLineNo">708</span>      writerCacheConf = cacheConfig;<a name="line.708"></a>
 <span class="sourceLineNo">709</span>    }<a name="line.709"></a>
-<span class="sourceLineNo">710</span>    Path dstPath = new Path(targetPath, sourceFile.getName());<a name="line.710"></a>
-<span class="sourceLineNo">711</span>    validateMobFile(conf, fs, sourceFile, cacheConfig, true);<a name="line.711"></a>
-<span class="sourceLineNo">712</span>    String msg = "Renaming flushed file from " + sourceFile + " to " + dstPath;<a name="line.712"></a>
-<span class="sourceLineNo">713</span>    LOG.info(msg);<a name="line.713"></a>
-<span class="sourceLineNo">714</span>    Path parent = dstPath.getParent();<a name="line.714"></a>
-<span class="sourceLineNo">715</span>    if (!fs.exists(parent)) {<a name="line.715"></a>
-<span class="sourceLineNo">716</span>      fs.mkdirs(parent);<a name="line.716"></a>
-<span class="sourceLineNo">717</span>    }<a name="line.717"></a>
-<span class="sourceLineNo">718</span>    if (!fs.rename(sourceFile, dstPath)) {<a name="line.718"></a>
-<span class="sourceLineNo">719</span>      throw new IOException("Failed rename of " + sourceFile + " to " + dstPath);<a name="line.719"></a>
-<span class="sourceLineNo">720</span>    }<a name="line.720"></a>
-<span class="sourceLineNo">721</span>    return dstPath;<a name="line.721"></a>
-<span class="sourceLineNo">722</span>  }<a name="line.722"></a>
-<span class="sourceLineNo">723</span><a name="line.723"></a>
-<span class="sourceLineNo">724</span>  /**<a name="line.724"></a>
-<span class="sourceLineNo">725</span>   * Validates a mob file by opening and closing it.<a name="line.725"></a>
-<span class="sourceLineNo">726</span>   * @param conf The current configuration.<a name="line.726"></a>
-<span class="sourceLineNo">727</span>   * @param fs The current file system.<a name="line.727"></a>
-<span class="sourceLineNo">728</span>   * @param path The path where the mob file is saved.<a name="line.728"></a>
-<span class="sourceLineNo">729</span>   * @param cacheConfig The current cache config.<a name="line.729"></a>
-<span class="sourceLineNo">730</span>   */<a name="line.730"></a>
-<span class="sourceLineNo">731</span>  private static void validateMobFile(Configuration conf, FileSystem fs, Path path,<a name="line.731"></a>
-<span class="sourceLineNo">732</span>      CacheConfig cacheConfig, boolean primaryReplica) throws IOException {<a name="line.732"></a>
-<span class="sourceLineNo">733</span>    HStoreFile storeFile = null;<a name="line.733"></a>
-<span class="sourceLineNo">734</span>    try {<a name="line.734"></a>
-<span class="sourceLineNo">735</span>      storeFile = new HStoreFile(fs, path, conf, cacheConfig, BloomType.NONE, primaryReplica);<a name="line.735"></a>
-<span class="sourceLineNo">736</span>      storeFile.initReader();<a name="line.736"></a>
-<span class="sourceLineNo">737</span>    } catch (IOException e) {<a name="line.737"></a>
-<span class="sourceLineNo">738</span>      LOG.error("Failed to open mob file[" + path + "], keep it in temp directory.", e);<a name="line.738"></a>
-<span class="sourceLineNo">739</span>      throw e;<a name="line.739"></a>
-<span class="sourceLineNo">740</span>    } finally {<a name="line.740"></a>
-<span class="sourceLineNo">741</span>      if (storeFile != null) {<a name="line.741"></a>
-<span class="sourceLineNo">742</span>        storeFile.closeStoreFile(false);<a name="line.742"></a>
-<span class="sourceLineNo">743</span>      }<a name="line.743"></a>
-<span class="sourceLineNo">744</span>    }<a name="line.744"></a>
-<span class="sourceLineNo">745</span>  }<a name="line.745"></a>
-<span class="sourceLineNo">746</span><a name="line.746"></a>
-<span class="sourceLineNo">747</span>  /**<a name="line.747"></a>
-<span class="sourceLineNo">748</span>   * Indicates whether the current mob ref cell has a valid value.<a name="line.748"></a>
-<span class="sourceLineNo">749</span>   * A mob ref cell has a mob reference tag.<a name="line.749"></a>
-<span class="sourceLineNo">750</span>   * The value of a mob ref cell consists of two parts, real mob value length and mob file name.<a name="line.750"></a>
-<span class="sourceLineNo">751</span>   * The real mob value length takes 4 bytes.<a name="line.751"></a>
-<span class="sourceLineNo">752</span>   * The remaining part is the mob file name.<a name="line.752"></a>
-<span class="sourceLineNo">753</span>   * @param cell The mob ref cell.<a name="line.753"></a>
-<span class="sourceLineNo">754</span>   * @return True if the cell has a valid value.<a name="line.754"></a>
-<span class="sourceLineNo">755</span>   */<a name="line.755"></a>
-<span class="sourceLineNo">756</span>  public static boolean hasValidMobRefCellValue(Cell cell) {<a name="line.756"></a>
-<span class="sourceLineNo">757</span>    return cell.getValueLength() &gt; Bytes.SIZEOF_INT;<a name="line.757"></a>
-<span class="sourceLineNo">758</span>  }<a name="line.758"></a>
-<span class="sourceLineNo">759</span><a name="line.759"></a>
-<span class="sourceLineNo">760</span>  /**<a name="line.760"></a>
-<span class="sourceLineNo">761</span>   * Gets the mob value length from the mob ref cell.<a name="line.761"></a>
-<span class="sourceLineNo">762</span>   * A mob ref cell has a mob reference tag.<a name="line.762"></a>
-<span class="sourceLineNo">763</span>   * The value of a mob ref cell consists of two parts, real mob value length and mob file name.<a name="line.763"></a>
-<span class="sourceLineNo">764</span>   * The real mob value length takes 4 bytes.<a name="line.764"></a>
-<span class="sourceLineNo">765</span>   * The remaining part is the mob file name.<a name="line.765"></a>
-<span class="sourceLineNo">766</span>   * @param cell The mob ref cell.<a name="line.766"></a>
-<span class="sourceLineNo">767</span>   * @return The real mob value length.<a name="line.767"></a>
-<span class="sourceLineNo">768</span>   */<a name="line.768"></a>
-<span class="sourceLineNo">769</span>  public static int getMobValueLength(Cell cell) {<a name="line.769"></a>
-<span class="sourceLineNo">770</span>    return PrivateCellUtil.getValueAsInt(cell);<a name="line.770"></a>
-<span class="sourceLineNo">771</span>  }<a name="line.771"></a>
-<span class="sourceLineNo">772</span><a name="line.772"></a>
-<span class="sourceLineNo">773</span>  /**<a name="line.773"></a>
-<span class="sourceLineNo">774</span>   * Gets the mob file name from the mob ref cell.<a name="line.774"></a>
-<span class="sourceLineNo">775</span>   * A mob ref cell has a mob reference tag.<a name="line.775"></a>
-<span class="sourceLineNo">776</span>   * The value of a mob ref cell consists of two parts, real mob value length and mob file name.<a name="line.776"></a>
-<span class="sourceLineNo">777</span>   * The real mob value length takes 4 bytes.<a name="line.777"></a>
-<span class="sourceLineNo">778</span>   * The remaining part is the mob file name.<a name="line.778"></a>
-<span class="sourceLineNo">779</span>   * @param cell The mob ref cell.<a name="line.779"></a>
-<span class="sourceLineNo">780</span>   * @return The mob file name.<a name="line.780"></a>
-<span class="sourceLineNo">781</span>   */<a name="line.781"></a>
-<span class="sourceLineNo">782</span>  public static String getMobFileName(Cell cell) {<a name="line.782"></a>
-<span class="sourceLineNo">783</span>    return Bytes.toString(cell.getValueArray(), cell.getValueOffset() + Bytes.SIZEOF_INT,<a name="line.783"></a>
-<span class="sourceLineNo">784</span>        cell.getValueLength() - Bytes.SIZEOF_INT);<a name="line.784"></a>
-<span class="sourceLineNo">785</span>  }<a name="line.785"></a>
-<span class="sourceLineNo">786</span><a name="line.786"></a>
-<span class="sourceLineNo">787</span>  /**<a name="line.787"></a>
-<span class="sourceLineNo">788</span>   * Gets the table name used in the table lock.<a name="line.788"></a>
-<span class="sourceLineNo">789</span>   * The table lock name is a dummy one, it's not a table name. It's tableName + ".mobLock".<a name="line.789"></a>
-<span class="sourceLineNo">790</span>   * @param tn The table name.<a name="line.790"></a>
-<span class="sourceLineNo">791</span>   * @return The table name used in table lock.<a name="line.791"></a>
-<span class="sourceLineNo">792</span>   */<a name="line.792"></a>
-<span class="sourceLineNo">793</span>  public static TableName getTableLockName(TableName tn) {<a name="line.793"></a>
-<span class="sourceLineNo">794</span>    byte[] tableName = tn.getName();<a name="line.794"></a>
-<span class="sourceLineNo">795</span>    return TableName.valueOf(Bytes.add(tableName, MobConstants.MOB_TABLE_LOCK_SUFFIX));<a name="line.795"></a>
-<span class="sourceLineNo">796</span>  }<a name="line.796"></a>
-<span class="sourceLineNo">797</span><a name="line.797"></a>
-<span class="sourceLineNo">798</span>  /**<a name="line.798"></a>
-<span class="sourceLineNo">799</span>   * Performs the mob compaction.<a name="line.799"></a>
-<span class="sourceLineNo">800</span>   * @param conf the Configuration<a name="line.800"></a>
-<span class="sourceLineNo">801</span>   * @param fs the file system<a name="line.801"></a>
-<span class="sourceLineNo">802</span>   * @param tableName the table the compact<a name="line.802"></a>
-<span class="sourceLineNo">803</span>   * @param hcd the column descriptor<a name="line.803"></a>
-<span class="sourceLineNo">804</span>   * @param pool the thread pool<a name="line.804"></a>
-<span class="sourceLineNo">805</span>   * @param allFiles Whether add all mob files into the compaction.<a name="line.805"></a>
-<span class="sourceLineNo">806</span>   */<a name="line.806"></a>
-<span class="sourceLineNo">807</span>  public static void doMobCompaction(Configuration conf, FileSystem fs, TableName tableName,<a name="line.807"></a>
-<span class="sourceLineNo">808</span>                                     ColumnFamilyDescriptor hcd, ExecutorService pool, boolean allFiles, LockManager.MasterLock lock)<a name="line.808"></a>
-<span class="sourceLineNo">809</span>      throws IOException {<a name="line.809"></a>
-<span class="sourceLineNo">810</span>    String className = conf.get(MobConstants.MOB_COMPACTOR_CLASS_KEY,<a name="line.810"></a>
-<span class="sourceLineNo">811</span>        PartitionedMobCompactor.class.getName());<a name="line.811"></a>
-<span class="sourceLineNo">812</span>    // instantiate the mob compactor.<a name="line.812"></a>
-<span class="sourceLineNo">813</span>    MobCompactor compactor = null;<a name="line.813"></a>
-<span class="sourceLineNo">814</span>    try {<a name="line.814"></a>
-<span class="sourceLineNo">815</span>      compactor = ReflectionUtils.instantiateWithCustomCtor(className, new Class[] {<a name="line.815"></a>
-<span class="sourceLineNo">816</span>        Configuration.class, FileSystem.class, TableName.class, ColumnFamilyDescriptor.class,<a name="line.816"></a>
-<span class="sourceLineNo">817</span>        ExecutorService.class }, new Object[] { conf, fs, tableName, hcd, pool });<a name="line.817"></a>
-<span class="sourceLineNo">818</span>    } catch (Exception e) {<a name="line.818"></a>
-<span class="sourceLineNo">819</span>      throw new IOException("Unable to load configured mob file compactor '" + className + "'", e);<a name="line.819"></a>
-<span class="sourceLineNo">820</span>    }<a name="line.820"></a>
-<span class="sourceLineNo">821</span>    // compact only for mob-enabled column.<a name="line.821"></a>
-<span class="sourceLineNo">822</span>    // obtain a write table lock before performing compaction to avoid race condition<a name="line.822"></a>
-<span class="sourceLineNo">823</span>    // with major compaction in mob-enabled column.<a name="line.823"></a>
-<span class="sourceLineNo">824</span>    try {<a name="line.824"></a>
-<span class="sourceLineNo">825</span>      lock.acquire();<a name="line.825"></a>
-<span class="sourceLineNo">826</span>      compactor.compact(allFiles);<a name="line.826"></a>
-<span class="sourceLineNo">827</span>    } catch (Exception e) {<a name="line.827"></a>
-<span class="sourceLineNo">828</span>      LOG.error("Failed to compact the mob files for the column " + hcd.getNameAsString()<a name="line.828"></a>
-<span class="sourceLineNo">829</span>          + " in the table " + tableName.getNameAsString(), e);<a name="line.829"></a>
-<span class="sourceLineNo">830</span>    } finally {<a name="line.830"></a>
-<span class="sourceLineNo">831</span>      lock.release();<a name="line.831"></a>
-<span class="sourceLineNo">832</span>    }<a name="line.832"></a>
-<span class="sourceLineNo">833</span>  }<a name="line.833"></a>
-<span class="sourceLineNo">834</span><a name="line.834"></a>
-<span class="sourceLineNo">835</span>  /**<a name="line.835"></a>
-<span class="sourceLineNo">836</span>   * Creates a thread pool.<a name="line.836"></a>
-<span class="sourceLineNo">837</span>   * @param conf the Configuration<a name="line.837"></a>
-<span class="sourceLineNo">838</span>   * @return A thread pool.<a name="line.838"></a>
-<span class="sourceLineNo">839</span>   */<a name="line.839"></a>
-<span class="sourceLineNo">840</span>  public static ExecutorService createMobCompactorThreadPool(Configuration conf) {<a name="line.840"></a>
-<span class="sourceLineNo">841</span>    int maxThreads = conf.getInt(MobConstants.MOB_COMPACTION_THREADS_MAX,<a name="line.841"></a>
-<span class="sourceLineNo">842</span>        MobConstants.DEFAULT_MOB_COMPACTION_THREADS_MAX);<a name="line.842"></a>
-<span class="sourceLineNo">843</span>    if (maxThreads == 0) {<a name="line.843"></a>
-<span class="sourceLineNo">844</span>      maxThreads = 1;<a name="line.844"></a>
-<span class="sourceLineNo">845</span>    }<a name="line.845"></a>
-<span class="sourceLineNo">846</span>    final SynchronousQueue&lt;Runnable&gt; queue = new SynchronousQueue&lt;&gt;();<a name="line.846"></a>
-<span class="sourceLineNo">847</span>    ThreadPoolExecutor pool = new ThreadPoolExecutor(1, maxThreads, 60, TimeUnit.SECONDS, queue,<a name="line.847"></a>
-<span class="sourceLineNo">848</span>      Threads.newDaemonThreadFactory("MobCompactor"), new RejectedExecutionHandler() {<a name="line.848"></a>
-<span class="sourceLineNo">849</span>        @Override<a name="line.849"></a>
-<span class="sourceLineNo">850</span>        public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) {<a name="line.850"></a>
-<span class="sourceLineNo">851</span>          try {<a name="line.851"></a>
-<span class="sourceLineNo">852</span>            // waiting for a thread to pick up instead of throwing exceptions.<a name="line.852"></a>
-<span class="sourceLineNo">853</span>            queue.put(r);<a name="line.853"></a>
-<span class="sourceLineNo">854</span>          } catch (InterruptedException e) {<a name="line.854"></a>
-<span class="sourceLineNo">855</span>            throw new RejectedExecutionException(e);<a name="line.855"></a>
-<span class="sourceLineNo">856</span>          }<a name="line.856"></a>
-<span class="sourceLineNo">857</span>        }<a name="line.857"></a>
-<span class="sourceLineNo">858</span>      });<a name="line.858"></a>
-<span class="sourceLineNo">859</span>    ((ThreadPoolExecutor) pool).allowCoreThreadTimeOut(true);<a name="line.859"></a>
-<span class="sourceLineNo">860</span>    return pool;<a name="line.860"></a>
-<span class="sourceLineNo">861</span>  }<a name="line.861"></a>
-<span class="sourceLineNo">862</span><a name="line.862"></a>
-<span class="sourceLineNo">863</span>  /**<a name="line.863"></a>
-<span class="sourceLineNo">864</span>   * Checks whether this table has mob-enabled columns.<a name="line.864"></a>
-<span class="sourceLineNo">865</span>   * @param htd The current table descriptor.<a name="line.865"></a>
-<span class="sourceLineNo">866</span>   * @return Whether this table has mob-enabled columns.<a name="line.866"></a>
-<span class="sourceLineNo">867</span>   */<a name="line.867"></a>
-<span class="sourceLineNo">868</span>  public static boolean hasMobColumns(TableDescriptor htd) {<a name="line.868"></a>
-<span class="sourceLineNo">869</span>    ColumnFamilyDescriptor[] hcds = htd.getColumnFamilies();<a name="line.869"></a>
-<span class="sourceLineNo">870</span>    for (ColumnFamilyDescriptor hcd : hcds) {<a name="line.870"></a>
-<span class="sourceLineNo">871</span>      if (hcd.isMobEnabled()) {<a name="line.871"></a>
-<span class="sourceLineNo">872</span>        return true;<a name="line.872"></a>
-<span class="sourceLineNo">873</span>      }<a name="line.873"></a>
-<span class="sourceLineNo">874</span>    }<a name="line.874"></a>
-<span class="sourceLineNo">875</span>    return false;<a name="line.875"></a>
-<span class="sourceLineNo">876</span>  }<a name="line.876"></a>
-<span class="sourceLineNo">877</span><a name="line.877"></a>
-<span class="sourceLineNo">878</span>  /**<a name="line.878"></a>
-<span class="sourceLineNo">879</span>   * Indicates whether return null value when the mob file is missing or corrupt.<a name="line.879"></a>
-<span class="sourceLineNo">880</span>   * The information is set in the attribute "empty.value.on.mobcell.miss" of scan.<a name="line.880"></a>
-<span class="sourceLineNo">881</span>   * @param scan The current scan.<a name="line.881"></a>
-<span class="sourceLineNo">882</span>   * @return True if the readEmptyValueOnMobCellMiss is enabled.<a name="line.882"></a>
-<span class="sourceLineNo">883</span>   */<a name="line.883"></a>
-<span class="sourceLineNo">884</span>  public static boolean isReadEmptyValueOnMobCellMiss(Scan scan) {<a name="line.884"></a>
-<span class="sourceLineNo">885</span>    byte[] readEmptyValueOnMobCellMiss =<a name="line.885"></a>
-<span class="sourceLineNo">886</span>      scan.getAttribute(MobConstants.EMPTY_VALUE_ON_MOBCELL_MISS);<a name="line.886"></a>
-<span class="sourceLineNo">887</span>    try {<a name="line.887"></a>
-<span class="sourceLineNo">888</span>      return readEmptyValueOnMobCellMiss != null &amp;&amp; Bytes.toBoolean(readEmptyValueOnMobCellMiss);<a name="line.888"></a>
-<span class="sourceLineNo">889</span>    } catch (IllegalArgumentException e) {<a name="line.889"></a>
-<span class="sourceLineNo">890</span>      return false;<a name="line.890"></a>
-<span class="sourceLineNo">891</span>    }<a name="line.891"></a>
-<span class="sourceLineNo">892</span>  }<a name="line.892"></a>
-<span class="sourceLineNo">893</span><a name="line.893"></a>
-<span class="sourceLineNo">894</span>  /**<a name="line.894"></a>
-<span class="sourceLineNo">895</span>   * Creates a mob ref delete marker.<a name="line.895"></a>
-<span class="sourceLineNo">896</span>   * @param cell The current delete marker.<a name="line.896"></a>
-<span class="sourceLineNo">897</span>   * @return A delete marker with the ref tag.<a name="line.897"></a>
-<span class="sourceLineNo">898</span>   */<a name="line.898"></a>
-<span class="sourceLineNo">899</span>  public static Cell createMobRefDeleteMarker(Cell cell) {<a name="line.899"></a>
-<span class="sourceLineNo">900</span>    return PrivateCellUtil.createCell(cell, TagUtil.concatTags(REF_DELETE_MARKER_TAG_BYTES, cell));<a name="line.900"></a>
-<span class="sourceLineNo">901</span>  }<a name="line.901"></a>
-<span class="sourceLineNo">902</span><a name="line.902"></a>
-<span class="sourceLineNo">903</span>  /**<a name="line.903"></a>
-<span class="sourceLineNo">904</span>   * Checks if the mob file is expired.<a name="line.904"></a>
-<span class="sourceLineNo">905</span>   * @param column The descriptor of the current column family.<a name="line.905"></a>
-<span class="sourceLineNo">906</span>   * @param current The current time.<a name="line.906"></a>
-<span class="sourceLineNo">907</span>   * @param fileDate The date string parsed from the mob file name.<a name="line.907"></a>
-<span class="sourceLineNo">908</span>   * @return True if the mob file is expired.<a name="line.908"></a>
-<span class="sourceLineNo">909</span>   */<a name="line.909"></a>
-<span class="sourceLineNo">910</span>  public static boolean isMobFileExpired(ColumnFamilyDescriptor column, long current, String fileDate) {<a name="line.910"></a>
-<span class="sourceLineNo">911</span>    if (column.getMinVersions() &gt; 0) {<a name="line.911"></a>
-<span class="sourceLineNo">912</span>      return false;<a name="line.912"></a>
-<span class="sourceLineNo">913</span>    }<a name="line.913"></a>
-<span class="sourceLineNo">914</span>    long timeToLive = column.getTimeToLive();<a name="line.914"></a>
-<span class="sourceLineNo">915</span>    if (Integer.MAX_VALUE == timeToLive) {<a name="line.915"></a>
-<span class="sourceLineNo">916</span>      return false;<a name="line.916"></a>
-<span class="sourceLineNo">917</span>    }<a name="line.917"></a>
-<span class="sourceLineNo">918</span><a name="line.918"></a>
-<span class="sourceLineNo">919</span>    Date expireDate = new Date(current - timeToLive * 1000);<a name="line.919"></a>
-<span class="sourceLineNo">920</span>    expireDate = new Date(expireDate.getYear(), expireDate.getMonth(), expireDate.getDate());<a name="line.920"></a>
-<span class="sourceLineNo">921</span>    try {<a name="line.921"></a>
-<span class="sourceLineNo">922</span>      Date date = parseDate(fileDate);<a name="line.922"></a>
-<span class="sourceLineNo">923</span>      if (date.getTime() &lt; expireDate.getTime()) {<a name="line.923"></a>
-<span class="sourceLineNo">924</span>        return true;<a name="line.924"></a>
-<span class="sourceLineNo">925</span>      }<a name="line.925"></a>
-<span class="sourceLineNo">926</span>    } catch (ParseException e) {<a name="line.926"></a>
-<span class="sourceLineNo">927</span>      LOG.warn("Failed to parse the date " + fileDate, e);<a name="line.927"></a>
-<span class="sourceLineNo">928</span>      return false;<a name="line.928"></a>
-<span class="sourceLineNo">929</span>    }<a name="line.929"></a>
-<span class="sourceLineNo">930</span>    return false;<a name="line.930"></a>
-<span class="sourceLineNo">931</span>  }<a name="line.931"></a>
-<span class="sourceLineNo">932</span><a name="line.932"></a>
-<span class="sourceLineNo">933</span>  /**<a name="line.933"></a>
-<span class="sourceLineNo">934</span>   * fill out partition id based on compaction policy and date, threshold...<a name="line.934"></a>
-<span class="sourceLineNo">935</span>   * @param id Partition id to be filled out<a name="line.935"></a>
-<span class="sourceLineNo">936</span>   * @param firstDayOfCurrentMonth The first day in the current month<a name="line.936"></a>
-<span class="sourceLineNo">937</span>   * @param firstDayOfCurrentWeek The first day in the current week<a name="line.937"></a>
-<span class="sourceLineNo">938</span>   * @param dateStr Date string from the mob file<a name="line.938"></a>
-<span class="sourceLineNo">939</span>   * @param policy Mob compaction policy<a name="line.939"></a>
-<span class="sourceLineNo">940</span>   * @param calendar Calendar object<a name="line.940"></a>
-<span class="sourceLineNo">941</span>   * @param threshold Mob compaciton threshold configured<a name="line.941"></a>
-<span class="sourceLineNo">942</span>   * @return true if the file needs to be excluded from compaction<a name="line.942"></a>
-<span class="sourceLineNo">943</span>   */<a name="line.943"></a>
-<span class="sourceLineNo">944</span>  public static boolean fillPartitionId(final CompactionPartitionId id,<a name="line.944"></a>
-<span class="sourceLineNo">945</span>      final Date firstDayOfCurrentMonth, final Date firstDayOfCurrentWeek, final String dateStr,<a name="line.945"></a>
-<span class="sourceLineNo">946</span>      final MobCompactPartitionPolicy policy, final Calendar calendar, final long threshold) {<a name="line.946"></a>
-<span class="sourceLineNo">947</span><a name="line.947"></a>
-<span class="sourceLineNo">948</span>    boolean skipCompcation = false;<a name="line.948"></a>
-<span class="sourceLineNo">949</span>    id.setThreshold(threshold);<a name="line.949"></a>
-<span class="sourceLineNo">950</span>    if (threshold &lt;= 0) {<a name="line.950"></a>
-<span class="sourceLineNo">951</span>      id.setDate(dateStr);<a name="line.951"></a>
-<span class="sourceLineNo">952</span>      return skipCompcation;<a name="line.952"></a>
-<span class="sourceLineNo">953</span>    }<a name="line.953"></a>
-<span class="sourceLineNo">954</span><a name="line.954"></a>
-<span class="sourceLineNo">955</span>    long finalThreshold;<a name="line.955"></a>
-<span class="sourceLineNo">956</span>    Date date;<a name="line.956"></a>
-<span class="sourceLineNo">957</span>    try {<a name="line.957"></a>
-<span class="sourceLineNo">958</span>      date = MobUtils.parseDate(dateStr);<a name="line.958"></a>
-<span class="sourceLineNo">959</span>    } catch (ParseException e)  {<a name="line.959"></a>
-<span class="sourceLineNo">960</span>      LOG.warn("Failed to parse date " + dateStr, e);<a name="line.960"></a>
-<span class="sourceLineNo">961</span>      id.setDate(dateStr);<a name="line.961"></a>
-<span class="sourceLineNo">962</span>      return true;<a name="line.962"></a>
-<span class="sourceLineNo">963</span>    }<a name="line.963"></a>
+<span class="sourceLineNo">710</span>    HFileContext hFileContext = new HFileContextBuilder().withCompression(compression)<a name="line.710"></a>
+<span class="sourceLineNo">711</span>        .withIncludesMvcc(true).withIncludesTags(true)<a name="line.711"></a>
+<span class="sourceLineNo">712</span>        .withCompressTags(family.isCompressTags())<a name="line.712"></a>
+<span class="sourceLineNo">713</span>        .withChecksumType(checksumType)<a name="line.713"></a>
+<span class="sourceLineNo">714</span>        .withBytesPerCheckSum(bytesPerChecksum)<a name="line.714"></a>
+<span class="sourceLineNo">715</span>        .withBlockSize(blocksize)<a name="line.715"></a>
+<span class="sourceLineNo">716</span>        .withHBaseCheckSum(true).withDataBlockEncoding(family.getDataBlockEncoding())<a name="line.716"></a>
+<span class="sourceLineNo">717</span>        .withEncryptionContext(cryptoContext)<a name="line.717"></a>
+<span class="sourceLineNo">718</span>        .withCreateTime(EnvironmentEdgeManager.currentTime()).build();<a name="line.718"></a>
+<span class="sourceLineNo">719</span><a name="line.719"></a>
+<span class="sourceLineNo">720</span>    StoreFileWriter w = new StoreFileWriter.Builder(conf, writerCacheConf, fs)<a name="line.720"></a>
+<span class="sourceLineNo">721</span>        .withFilePath(path)<a name="line.721"></a>
+<span class="sourceLineNo">722</span>        .withComparator(CellComparator.getInstance()).withBloomType(bloomType)<a name="line.722"></a>
+<span class="sourceLineNo">723</span>        .withMaxKeyCount(maxKeyCount).withFileContext(hFileContext).build();<a name="line.723"></a>
+<span class="sourceLineNo">724</span>    return w;<a name="line.724"></a>
+<span class="sourceLineNo">725</span>  }<a name="line.725"></a>
+<span class="sourceLineNo">726</span><a name="line.726"></a>
+<span class="sourceLineNo">727</span>  /**<a name="line.727"></a>
+<span class="sourceLineNo">728</span>   * Commits the mob file.<a name="line.728"></a>
+<span class="sourceLineNo">729</span>   * @param conf The current configuration.<a name="line.729"></a>
+<span class="sourceLineNo">730</span>   * @param fs The current file system.<a name="line.730"></a>
+<span class="sourceLineNo">731</span>   * @param sourceFile The path where the mob file is saved.<a name="line.731"></a>
+<span class="sourceLineNo">732</span>   * @param targetPath The directory path where the source file is renamed to.<a name="line.732"></a>
+<span class="sourceLineNo">733</span>   * @param cacheConfig The current cache config.<a name="line.733"></a>
+<span class="sourceLineNo">734</span>   * @return The target file path the source file is renamed to.<a name="line.734"></a>
+<span class="sourceLineNo">735</span>   * @throws IOException<a name="line.735"></a>
+<span class="sourceLineNo">736</span>   */<a name="line.736"></a>
+<span class="sourceLineNo">737</span>  public static Path commitFile(Configuration conf, FileSystem fs, final Path sourceFile,<a name="line.737"></a>
+<span class="sourceLineNo">738</span>      Path targetPath, CacheConfig cacheConfig) throws IOException {<a name="line.738"></a>
+<span class="sourceLineNo">739</span>    if (sourceFile == null) {<a name="line.739"></a>
+<span class="sourceLineNo">740</span>      return null;<a name="line.740"></a>
+<span class="sourceLineNo">741</span>    }<a name="line.741"></a>
+<span class="sourceLineNo">742</span>    Path dstPath = new Path(targetPath, sourceFile.getName());<a name="line.742"></a>
+<span class="sourceLineNo">743</span>    validateMobFile(conf, fs, sourceFile, cacheConfig, true);<a name="line.743"></a>
+<span class="sourceLineNo">744</span>    String msg = "Renaming flushed file from " + sourceFile + " to " + dstPath;<a name="line.744"></a>
+<span class="sourceLineNo">745</span>    LOG.info(msg);<a name="line.745"></a>
+<span class="sourceLineNo">746</span>    Path parent = dstPath.getParent();<a name="line.746"></a>
+<span class="sourceLineNo">747</span>    if (!fs.exists(parent)) {<a name="line.747"></a>
+<span class="sourceLineNo">748</span>      fs.mkdirs(parent);<a name="line.748"></a>
+<span class="sourceLineNo">749</span>    }<a name="line.749"></a>
+<span class="sourceLineNo">750</span>    if (!fs.rename(sourceFile, dstPath)) {<a name="line.750"></a>
+<span class="sourceLineNo">751</span>      throw new IOException("Failed rename of " + sourceFile + " to " + dstPath);<a name="line.751"></a>
+<span class="sourceLineNo">752</span>    }<a name="line.752"></a>
+<span class="sourceLineNo">753</span>    return dstPath;<a name="line.753"></a>
+<span class="sourceLineNo">754</span>  }<a name="line.754"></a>
+<span class="sourceLineNo">755</span><a name="line.755"></a>
+<span class="sourceLineNo">756</span>  /**<a name="line.756"></a>
+<span class="sourceLineNo">757</span>   * Validates a mob file by opening and closing it.<a name="line.757"></a>
+<span class="sourceLineNo">758</span>   * @param conf The current configuration.<a name="line.758"></a>
+<span class="sourceLineNo">759</span>   * @param fs The current file system.<a name="line.759"></a>
+<span class="sourceLineNo">760</span>   * @param path The path where the mob file is saved.<a name="line.760"></a>
+<span class="sourceLineNo">761</span>   * @param cacheConfig The current cache config.<a name="line.761"></a>
+<span class="sourceLineNo">762</span>   */<a name="line.762"></a>
+<span class="sourceLineNo">763</span>  private static void validateMobFile(Configuration conf, FileSystem fs, Path path,<a name="line.763"></a>
+<span class="sourceLineNo">764</span>      CacheConfig cacheConfig, boolean primaryReplica) throws IOException {<a name="line.764"></a>
+<span class="sourceLineNo">765</span>    HStoreFile storeFile = null;<a name="line.765"></a>
+<span class="sourceLineNo">766</span>    try {<a name="line.766"></a>
+<span class="sourceLineNo">767</span>      storeFile = new HStoreFile(fs, path, conf, cacheConfig, BloomType.NONE, primaryReplica);<a name="line.767"></a>
+<span class="sourceLineNo">768</span>      storeFile.initReader();<a name="line.768"></a>
+<span class="sourceLineNo">769</span>    } catch (IOException e) {<a name="line.769"></a>
+<span class="sourceLineNo">770</span>      LOG.error("Failed to open mob file[" + path + "], keep it in temp directory.", e);<a name="line.770"></a>
+<span class="sourceLineNo">771</span>      throw e;<a name="line.771"></a>
+<span class="sourceLineNo">772</span>    } finally {<a name="line.772"></a>
+<span class="sourceLineNo">773</span>      if (storeFile != null) {<a name="line.773"></a>
+<span class="sourceLineNo">774</span>        storeFile.closeStoreFile(false);<a name="line.774"></a>
+<span class="sourceLineNo">775</span>      }<a name="line.775"></a>
+<span class="sourceLineNo">776</span>    }<a name="line.776"></a>
+<span class="sourceLineNo">777</span>  }<a name="line.777"></a>
+<span class="sourceLineNo">778</span><a name="line.778"></a>
+<span class="sourceLineNo">779</span>  /**<a name="line.779"></a>
+<span class="sourceLineNo">780</span>   * Indicates whether the current mob ref cell has a valid value.<a name="line.780"></a>
+<span class="sourceLineNo">781</span>   * A mob ref cell has a mob reference tag.<a name="line.781"></a>
+<span class="sourceLineNo">782</span>   * The value of a mob ref cell consists of two parts, real mob value length and mob file name.<a name="line.782"></a>
+<span class="sourceLineNo">783</span>   * The real mob value length takes 4 bytes.<a name="line.783"></a>
+<span class="sourceLineNo">784</span>   * The remaining part is the mob file name.<a name="line.784"></a>
+<span class="sourceLineNo">785</span>   * @param cell The mob ref cell.<a name="line.785"></a>
+<span class="sourceLineNo">786</span>   * @return True if the cell has a valid value.<a name="line.786"></a>
+<span class="sourceLineNo">787</span>   */<a name="line.787"></a>
+<span class="sourceLineNo">788</span>  public static boolean hasValidMobRefCellValue(Cell cell) {<a name="line.788"></a>
+<span class="sourceLineNo">789</span>    return cell.getValueLength() &gt; Bytes.SIZEOF_INT;<a name="line.789"></a>
+<span class="sourceLineNo">790</span>  }<a name="line.790"></a>
+<span class="sourceLineNo">791</span><a name="line.791"></a>
+<span class="sourceLineNo">792</span>  /**<a name="line.792"></a>
+<span class="sourceLineNo">793</span>   * Gets the mob value length from the mob ref cell.<a name="line.793"></a>
+<span class="sourceLineNo">794</span>   * A mob ref cell has a mob reference tag.<a name="line.794"></a>
+<span class="sourceLineNo">795</span>   * The value of a mob ref cell consists of two parts, real mob value length and mob file name.<a name="line.795"></a>
+<span class="sourceLineNo">796</span>   * The real mob value length takes 4 bytes.<a name="line.796"></a>
+<span class="sourceLineNo">797</span>   * The remaining part is the mob file name.<a name="line.797"></a>
+<span class="sourceLineNo">798</span>   * @param cell The mob ref cell.<a name="line.798"></a>
+<span class="sourceLineNo">799</span>   * @return The real mob value length.<a name="line.799"></a>
+<span class="sourceLineNo">800</span>   */<a name="line.800"></a>
+<span class="sourceLineNo">801</span>  public static int getMobValueLength(Cell cell) {<a name="line.801"></a>
+<span class="sourceLineNo">802</span>    return PrivateCellUtil.getValueAsInt(cell);<a name="line.802"></a>
+<span class="sourceLineNo">803</span>  }<a name="line.803"></a>
+<span class="sourceLineNo">804</span><a name="line.804"></a>
+<span class="sourceLineNo">805</span>  /**<a name="line.805"></a>
+<span class="sourceLineNo">806</span>   * Gets the mob file name from the mob ref cell.<a name="line.806"></a>
+<span class="sourceLineNo">807</span>   * A mob ref cell has a mob reference tag.<a name="line.807"></a>
+<span class="sourceLineNo">808</span>   * The value of a mob ref cell consists of two parts, real mob value length and mob file name.<a name="line.808"></a>
+<span class="sourceLineNo">809</span>   * The real mob value length takes 4 bytes.<a name="line.809"></a>
+<span class="sourceLineNo">810</span>   * The remaining part is the mob file name.<a name="line.810"></a>
+<span class="sourceLineNo">811</span>   * @param cell The mob ref cell.<a name="line.811"></a>
+<span class="sourceLineNo">812</span>   * @return The mob file name.<a name="line.812"></a>
+<span class="sourceLineNo">813</span>   */<a name="line.813"></a>
+<span class="sourceLineNo">814</span>  public static String getMobFileName(Cell cell) {<a name="line.814"></a>
+<span class="sourceLineNo">815</span>    return Bytes.toString(cell.getValueArray(), cell.getValueOffset() + Bytes.SIZEOF_INT,<a name="line.815"></a>
+<span class="sourceLineNo">816</span>        cell.getValueLength() - Bytes.SIZEOF_INT);<a name="line.816"></a>
+<span class="sourceLineNo">817</span>  }<a name="line.817"></a>
+<span class="sourceLineNo">818</span><a name="line.818"></a>
+<span class="sourceLineNo">819</span>  /**<a name="line.819"></a>
+<span class="sourceLineNo">820</span>   * Gets the table name used in the table lock.<a name="line.820"></a>
+<span class="sourceLineNo">821</span>   * The table lock name is a dummy one, it's not a table name. It's tableName + ".mobLock".<a name="line.821"></a>
+<span class="sourceLineNo">822</span>   * @param tn The table name.<a name="line.822"></a>
+<span class="sourceLineNo">823</span>   * @return The table name used in table lock.<a name="line.823"></a>
+<span class="sourceLineNo">824</span>   */<a name="line.824"></a>
+<span class="sourceLineNo">825</span>  public static TableName getTableLockName(TableName tn) {<a name="line.825"></a>
+<span class="sourceLineNo">826</span>    byte[] tableName = tn.getName();<a name="line.826"></a>
+<span class="sourceLineNo">827</span>    return TableName.valueOf(Bytes.add(tableName, MobConstants.MOB_TABLE_LOCK_SUFFIX));<a name="line.827"></a>
+<span class="sourceLineNo">828</span>  }<a name="line.828"></a>
+<span class="sourceLineNo">829</span><a name="line.829"></a>
+<span class="sourceLineNo">830</span>  /**<a name="line.830"></a>
+<span class="sourceLineNo">831</span>   * Performs the mob compaction.<a name="line.831"></a>
+<span class="sourceLineNo">832</span>   * @param conf the Configuration<a name="line.832"></a>
+<span class="sourceLineNo">833</span>   * @param fs the file system<a name="line.833"></a>
+<span class="sourceLineNo">834</span>   * @param tableName the table the compact<a name="line.834"></a>
+<span class="sourceLineNo">835</span>   * @param hcd the column descriptor<a name="line.835"></a>
+<span class="sourceLineNo">836</span>   * @param pool the thread pool<a name="line.836"></a>
+<span class="sourceLineNo">837</span>   * @param allFiles Whether add all mob files into the compaction.<a name="line.837"></a>
+<span class="sourceLineNo">838</span>   */<a name="line.838"></a>
+<span class="sourceLineNo">839</span>  public static void doMobCompaction(Configuration conf, FileSystem fs, TableName tableName,<a name="line.839"></a>
+<span class="sourceLineNo">840</span>                                     ColumnFamilyDescriptor hcd, ExecutorService pool, boolean allFiles, LockManager.MasterLock lock)<a name="line.840"></a>
+<span class="sourceLineNo">841</span>      throws IOException {<a name="line.841"></a>
+<span class="sourceLineNo">842</span>    String className = conf.get(MobConstants.MOB_COMPACTOR_CLASS_KEY,<a name="line.842"></a>
+<span class="sourceLineNo">843</span>        PartitionedMobCompactor.class.getName());<a name="line.843"></a>
+<span class="sourceLineNo">844</span>    // instantiate the mob compactor.<a name="line.844"></a>
+<span class="sourceLineNo">845</span>    MobCompactor compactor = null;<a name="line.845"></a>
+<span class="sourceLineNo">846</span>    try {<a name="line.846"></a>
+<span class="sourceLineNo">847</span>      compactor = ReflectionUtils.instantiateWithCustomCtor(className, new Class[] {<a name="line.847"></a>
+<span class="sourceLineNo">848</span>        Configuration.class, FileSystem.class, TableName.class, ColumnFamilyDescriptor.class,<a name="line.848"></a>
+<span class="sourceLineNo">849</span>        ExecutorService.class }, new Object[] { conf, fs, tableName, hcd, pool });<a name="line.849"></a>
+<span class="sourceLineNo">850</span>    } catch (Exception e) {<a name="line.850"></a>
+<span class="sourceLineNo">851</span>      throw new IOException("Unable to load configured mob file compactor '" + className + "'", e);<a name="line.851"></a>
+<span class="sourceLineNo">852</span>    }<a name="line.852"></a>
+<span class="sourceLineNo">853</span>    // compact only for mob-enabled column.<a name="line.853"></a>
+<span class="sourceLineNo">854</span>    // obtain a write table lock before performing compaction to avoid race condition<a name="line.854"></a>
+<span class="sourceLineNo">855</span>    // with major compaction in mob-enabled column.<a name="line.855"></a>
+<span class="sourceLineNo">856</span>    try {<a name="line.856"></a>
+<span class="sourceLineNo">857</span>      lock.acquire();<a name="line.857"></a>
+<span class="sourceLineNo">858</span>      compactor.compact(allFiles);<a name="line.858"></a>
+<span class="sourceLineNo">859</span>    } catch (Exception e) {<a name="line.859"></a>
+<span class="sourceLineNo">860</span>      LOG.error("Failed to compact the mob files for the column " + hcd.getNameAsString()<a name="line.860"></a>
+<span class="sourceLineNo">861</span>          + " in the table " + tableName.getNameAsString(), e);<a name="line.861"></a>
+<span class="sourceLineNo">862</span>    } finally {<a name="line.862"></a>
+<span class="sourceLineNo">863</span>      lock.release();<a name="line.863"></a>
+<span class="sourceLineNo">864</span>    }<a name="line.864"></a>
+<span class="sourceLineNo">865</span>  }<a name="line.865"></a>
+<span class="sourceLineNo">866</span><a name="line.866"></a>
+<span class="sourceLineNo">867</span>  /**<a name="line.867"></a>
+<span class="sourceLineNo">868</span>   * Creates a thread pool.<a name="line.868"></a>
+<span class="sourceLineNo">869</span>   * @param conf the Configuration<a name="line.869"></a>
+<span class="sourceLineNo">870</span>   * @return A thread pool.<a name="line.870"></a>
+<span class="sourceLineNo">871</span>   */<a name="line.871"></a>
+<span class="sourceLineNo">872</span>  public static ExecutorService createMobCompactorThreadPool(Configuration conf) {<a name="line.872"></a>
+<span class="sourceLineNo">873</span>    int maxThreads = conf.getInt(MobConstants.MOB_COMPACTION_THREADS_MAX,<a name="line.873"></a>
+<span class="sourceLineNo">874</span>        MobConstants.DEFAULT_MOB_COMPACTION_THREADS_MAX);<a name="line.874"></a>
+<span class="sourceLineNo">875</span>    if (maxThreads == 0) {<a name="line.875"></a>
+<span class="sourceLineNo">876</span>      maxThreads = 1;<a name="line.876"></a>
+<span class="sourceLineNo">877</span>    }<a name="line.877"></a>
+<span class="sourceLineNo">878</span>    final SynchronousQueue&lt;Runnable&gt; queue = new SynchronousQueue&lt;&gt;();<a name="line.878"></a>
+<span class="sourceLineNo">879</span>    ThreadPoolExecutor pool = new ThreadPoolExecutor(1, maxThreads, 60, TimeUnit.SECONDS, queue,<a name="line.879"></a>
+<span class="sourceLineNo">880</span>      Threads.newDaemonThreadFactory("MobCompactor"), new RejectedExecutionHandler() {<a name="line.880"></a>
+<span class="sourceLineNo">881</span>        @Override<a name="line.881"></a>
+<span class="sourceLineNo">882</span>        public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) {<a name="line.882"></a>
+<span class="sourceLineNo">883</span>          try {<a name="line.883"></a>
+<span class="sourceLineNo">884</span>            // waiting for a thread to pick up instead of throwing exceptions.<a name="line.884"></a>
+<span class="sourceLineNo">885</span>            queue.put(r);<a name="line.885"></a>
+<span class="sourceLineNo">886</span>          } catch (InterruptedException e) {<a name="line.886"></a>
+<span class="sourceLineNo">887</span>            throw new RejectedExecutionException(e);<a name="line.887"></a>
+<span class="sourceLineNo">888</span>          }<a name="line.888"></a>
+<span class="sourceLineNo">889</span>        }<a name="line.889"></a>
+<span class="sourceLineNo">890</span>      });<a name="line.890"></a>
+<span class="sourceLineNo">891</span>    ((ThreadPoolExecutor) pool).allowCoreThreadTimeOut(true);<a name="line.891"></a>
+<span class="sourceLineNo">892</span>    return pool;<a name="line.892"></a>
+<span class="sourceLineNo">893</span>  }<a name="line.893"></a>
+<span class="sourceLineNo">894</span><a name="line.894"></a>
+<span class="sourceLineNo">895</span>  /**<a name="line.895"></a>
+<span class="sourceLineNo">896</span>   * Checks whether this table has mob-enabled columns.<a name="line.896"></a>
+<span class="sourceLineNo">897</span>   * @param htd The current table descriptor.<a name="line.897"></a>
+<span class="sourceLineNo">898</span>   * @return Whether this table has mob-enabled columns.<a name="line.898"></a>
+<span class="sourceLineNo">899</span>   */<a name="line.899"></a>
+<span class="sourceLineNo">900</span>  public static boolean hasMobColumns(TableDescriptor htd) {<a name="line.900"></a>
+<span class="sourceLineNo">901</span>    ColumnFamilyDescriptor[] hcds = htd.getColumnFamilies();<a name="line.901"></a>
+<span class="sourceLineNo">902</span>    for (ColumnFamilyDescriptor hcd : hcds) {<a name="line.902"></a>
+<span class="sourceLineNo">903</span>      if (hcd.isMobEnabled()) {<a name="line.903"></a>
+<span class="sourceLineNo">904</span>        return true;<a name="line.904"></a>
+<span class="sourceLineNo">905</span>      }<a name="line.905"></a>
+<span class="sourceLineNo">906</span>    }<a name="line.906"></a>
+<span class="sourceLineNo">907</span>    return false;<a name="line.907"></a>
+<span class="sourceLineNo">908</span>  }<a name="line.908"></a>
+<span class="sourceLineNo">909</span><a name="line.909"></a>
+<span class="sourceLineNo">910</span>  /**<a name="line.910"></a>
+<span class="sourceLineNo">911</span>   * Indicates whether return null value when the mob file is missing or corrupt.<a name="line.911"></a>
+<span class="sourceLineNo">912</span>   * The information is set in the attribute "empty.value.on.mobcell.miss" of scan.<a name="line.912"></a>
+<span class="sourceLineNo">913</span>   * @param scan The current scan.<a name="line.913"></a>
+<span class="sourceLineNo">914</span>   * @return True if the readEmptyValueOnMobCellMiss is enabled.<a name="line.914"></a>
+<span class="sourceLineNo">915</span>   */<a name="line.915"></a>
+<span class="sourceLineNo">916</span>  public static boolean isReadEmptyValueOnMobCellMiss(Scan scan) {<a name="line.916"></a>
+<span class="sourceLineNo">917</span>    byte[] readEmptyValueOnMobCellMiss =<a name="line.917"></a>
+<span class="sourceLineNo">918</span>      scan.getAttribute(MobConstants.EMPTY_VALUE_ON_MOBCELL_MISS);<a name="line.918"></a>
+<span class="sourceLineNo">919</span>    try {<a name="line.919"></a>
+<span class="sourceLineNo">920</span>      return readEmptyValueOnMobCellMiss != null &amp;&amp; Bytes.toBoolean(readEmptyValueOnMobCellMiss);<a name="line.920"></a>
+<span class="sourceLineNo">921</span>    } catch (IllegalArgumentException e) {<a name="line.921"></a>
+<span class="sourceLineNo">922</span>      return false;<a name="line.922"></a>
+<span class="sourceLineNo">923</span>    }<a name="line.923"></a>
+<span class="sourceLineNo">924</span>  }<a name="line.924"></a>
+<span class="sourceLineNo">925</span><a name="line.925"></a>
+<span class="sourceLineNo">926</span>  /**<a name="line.926"></a>
+<span class="sourceLineNo">927</span>   * Creates a mob ref delete marker.<a name="line.927"></a>
+<span class="sourceLineNo">928</span>   * @param cell The current delete marker.<a name="line.928"></a>
+<span class="sourceLineNo">929</span>   * @return A delete marker with the ref tag.<a name="line.929"></a>
+<span class="sourceLineNo">930</span>   */<a name="line.930"></a>
+<span class="sourceLineNo">931</span>  public static Cell createMobRefDeleteMarker(Cell cell) {<a name="line.931"></a>
+<span class="sourceLineNo">932</span>    return PrivateCellUtil.createCell(cell, TagUtil.concatTags(REF_DELETE_MARKER_TAG_BYTES, cell));<a name="line.932"></a>
+<span class="sourceLineNo">933</span>  }<a name="line.933"></a>
+<span class="sourceLineNo">934</span><a name="line.934"></a>
+<span class="sourceLineNo">935</span>  /**<a name="line.935"></a>
+<span class="sourceLineNo">936</span>   * Checks if the mob file is expired.<a name="line.936"></a>
+<span class="sourceLineNo">937</span>   * @param column The descriptor of the current column family.<a name="line.937"></a>
+<span class="sourceLineNo">938</span>   * @param current The current time.<a name="line.938"></a>
+<span class="sourceLineNo">939</span>   * @param fileDate The date string parsed from the mob file name.<a name="line.939"></a>
+<span class="sourceLineNo">940</span>   * @return True if the mob file is expired.<a name="line.940"></a>
+<span class="sourceLineNo">941</span>   */<a name="line.941"></a>
+<span class="sourceLineNo">942</span>  public static boolean isMobFileExpired(ColumnFamilyDescriptor column, long current, String fileDate) {<a name="line.942"></a>
+<span class="sourceLineNo">943</span>    if (column.getMinVersions() &gt; 0) {<a name="line.943"></a>
+<span class="sourceLineNo">944</span>      return false;<a name="line.944"></a>
+<span class="sourceLineNo">945</span>    }<a name="line.945"></a>
+<span class="sourceLineNo">946</span>    long timeToLive = column.getTimeToLive();<a name="line.946"></a>
+<span class="sourceLineNo">947</span>    if (Integer.MAX_VALUE == timeToLive) {<a name="line.947"></a>
+<span class="sourceLineNo">948</span>      return false;<a name="line.948"></a>
+<span class="sourceLineNo">949</span>    }<a name="line.949"></a>
+<span class="sourceLineNo">950</span><a name="line.950"></a>
+<span class="sourceLineNo">951</span>    Date expireDate = new Date(current - timeToLive * 1000);<a name="line.951"></a>
+<span class="sourceLineNo">952</span>    expireDate = new Date(expireDate.getYear(), expireDate.getMonth(), expireDate.getDate());<a name="line.952"></a>
+<span class="sourceLineNo">953</span>    try {<a name="line.953"></a>
+<span class="sourceLineNo">954</span>      Date date = parseDate(fileDate);<a name="line.954"></a>
+<span class="sourceLineNo">955</span>      if (date.getTime() &lt; expireDate.getTime()) {<a name="line.955"></a>
+<span class="sourceLineNo">956</span>        return true;<a name="line.956"></a>
+<span class="sourceLineNo">957</span>      }<a name="line.957"></a>
+<span class="sourceLineNo">958</span>    } catch (ParseException e) {<a name="line.958"></a>
+<span class="sourceLineNo">959</span>      LOG.warn("Failed to parse the date&nbs