You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by gi...@apache.org on 2024/08/21 14:47:23 UTC

(hbase-site) branch asf-site updated: Published site at 0646151cd612389ce5ed3fac035a807525aea390.

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

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


The following commit(s) were added to refs/heads/asf-site by this push:
     new 73977bb2d18 Published site at 0646151cd612389ce5ed3fac035a807525aea390.
73977bb2d18 is described below

commit 73977bb2d186872d8797e3604437e9341e7845e7
Author: jenkins <bu...@apache.org>
AuthorDate: Wed Aug 21 14:47:08 2024 +0000

    Published site at 0646151cd612389ce5ed3fac035a807525aea390.
---
 acid-semantics.html                                |    2 +-
 apache_hbase_reference_guide.pdf                   |    4 +-
 apidocs/index-all.html                             |   24 +-
 apidocs/member-search-index.js                     |    2 +-
 ...mmonFSUtils.StreamLacksCapabilityException.html | 1447 +++---
 .../apache/hadoop/hbase/util/CommonFSUtils.html    | 1447 +++---
 book.html                                          |    2 +-
 bulk-loads.html                                    |    2 +-
 checkstyle-aggregate.html                          | 4669 ++++++++++----------
 checkstyle.rss                                     |  642 +--
 coc.html                                           |    2 +-
 dependencies.html                                  |    2 +-
 dependency-convergence.html                        |    2 +-
 dependency-info.html                               |    2 +-
 dependency-management.html                         |    2 +-
 ...mmonFSUtils.StreamLacksCapabilityException.html |    6 +-
 .../apache/hadoop/hbase/util/CommonFSUtils.html    |  102 +-
 ...mmonFSUtils.StreamLacksCapabilityException.html | 1447 +++---
 .../apache/hadoop/hbase/util/CommonFSUtils.html    | 1447 +++---
 downloads.html                                     |    2 +-
 export_control.html                                |    2 +-
 index.html                                         |    2 +-
 issue-management.html                              |    2 +-
 licenses.html                                      |    2 +-
 mailing-lists.html                                 |    2 +-
 metrics.html                                       |    2 +-
 old_news.html                                      |    2 +-
 plugin-management.html                             |    2 +-
 plugins.html                                       |    2 +-
 poweredbyhbase.html                                |    2 +-
 project-info.html                                  |    2 +-
 project-reports.html                               |    2 +-
 pseudo-distributed.html                            |    2 +-
 replication.html                                   |    2 +-
 resources.html                                     |    2 +-
 scm.html                                           |    2 +-
 sponsors.html                                      |    2 +-
 summary.html                                       |    2 +-
 supportingprojects.html                            |    2 +-
 team.html                                          |    2 +-
 testapidocs/index-all.html                         |   92 +-
 testapidocs/member-search-index.js                 |    2 +-
 .../org/apache/hadoop/hbase/util/TestFSUtils.html  | 1423 +++---
 testdevapidocs/index-all.html                      |   72 +-
 testdevapidocs/member-search-index.js              |    2 +-
 ...Utils.AlwaysFailSetStoragePolicyFileSystem.html |    6 +-
 .../TestFSUtils.HDFSBlockDistributionFunction.html |    4 +-
 .../org/apache/hadoop/hbase/util/TestFSUtils.html  |   81 +-
 ...Utils.AlwaysFailSetStoragePolicyFileSystem.html | 1423 +++---
 .../TestFSUtils.HDFSBlockDistributionFunction.html | 1423 +++---
 .../org/apache/hadoop/hbase/util/TestFSUtils.html  | 1423 +++---
 51 files changed, 8643 insertions(+), 8603 deletions(-)

diff --git a/acid-semantics.html b/acid-semantics.html
index 1c269cdbdef..9df3864adc6 100644
--- a/acid-semantics.html
+++ b/acid-semantics.html
@@ -459,7 +459,7 @@
         All other marks mentioned may be trademarks or registered trademarks of their respective owners.
       </div>
       <div style="float: right">
-        Last Published: 2024-08-17
+        Last Published: 2024-08-21
       </div>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/apache_hbase_reference_guide.pdf b/apache_hbase_reference_guide.pdf
index 0e7148a648a..0f99cb3a26c 100644
--- a/apache_hbase_reference_guide.pdf
+++ b/apache_hbase_reference_guide.pdf
@@ -5,8 +5,8 @@
 /Author (Apache HBase Team)
 /Creator (Asciidoctor PDF 2.0.6, based on Prawn 2.4.0)
 /Producer (Apache HBase Team)
-/ModDate (D:20240817143153+00'00')
-/CreationDate (D:20240817144535+00'00')
+/ModDate (D:20240821143055+00'00')
+/CreationDate (D:20240821144428+00'00')
 >>
 endobj
 2 0 obj
diff --git a/apidocs/index-all.html b/apidocs/index-all.html
index 27b501738c5..f737dd3fcd9 100644
--- a/apidocs/index-all.html
+++ b/apidocs/index-all.html
@@ -5040,7 +5040,7 @@ loadScripts(document, 'script');</script>
 <dd>&nbsp;</dd>
 <dt>call(O) - Method in class org.apache.hadoop.hbase.coprocessor.CoprocessorHost.ObserverOperationWithResult</dt>
 <dd>&nbsp;</dd>
-<dt>call(AbstractRpcBasedConnectionRegistry.Callable&lt;T&gt;, Predicate&lt;T&gt;, String) - Method in class org.apache.hadoop.hbase.client.MasterRegistry</dt>
+<dt>call(AbstractRpcBasedConnectionRegistry.Callable&lt;T&gt;, Predicate&lt;T&gt;, String) - Method in class org.apache.hadoop.hbase.client.RpcConnectionRegistry</dt>
 <dd>&nbsp;</dd>
 <dt>call(HBaseRpcController, AdminProtos.AdminService.Interface) - Method in interface org.apache.hadoop.hbase.client.AsyncAdminRequestRetryingCaller.Callable</dt>
 <dd>&nbsp;</dd>
@@ -7082,7 +7082,7 @@ loadScripts(document, 'script');</script>
 </dd>
 <dt>close() - Method in class org.apache.hadoop.hbase.chaos.ChaosAgent</dt>
 <dd>&nbsp;</dd>
-<dt>close() - Method in class org.apache.hadoop.hbase.client.MasterRegistry</dt>
+<dt>close() - Method in class org.apache.hadoop.hbase.client.RpcConnectionRegistry</dt>
 <dd>&nbsp;</dd>
 <dt>close() - Method in interface org.apache.hadoop.hbase.client.Admin</dt>
 <dd>&nbsp;</dd>
@@ -9102,7 +9102,7 @@ loadScripts(document, 'script');</script>
 <dd>&nbsp;</dd>
 <dt>conf - Variable in class org.apache.hadoop.hbase.regionserver.StoreFileReader</dt>
 <dd>&nbsp;</dd>
-<dt>conf - Variable in class org.apache.hadoop.hbase.regionserver.StripeStoreFlusher</dt>
+<dt>conf - Variable in class org.apache.hadoop.hbase.regionserver.DefaultStoreFlusher</dt>
 <dd>&nbsp;</dd>
 <dt>conf - Variable in class org.apache.hadoop.hbase.regionserver.wal.AbstractFSWAL</dt>
 <dd>
@@ -11726,7 +11726,7 @@ loadScripts(document, 'script');</script>
 <dd>
 <div class="block">Create a new Scan with a cursor.</div>
 </dd>
-<dt>createScanner(List&lt;KeyValueScanner&gt;, FlushLifeCycleTracker) - Method in class org.apache.hadoop.hbase.regionserver.StripeStoreFlusher</dt>
+<dt>createScanner(List&lt;KeyValueScanner&gt;, FlushLifeCycleTracker) - Method in class org.apache.hadoop.hbase.regionserver.DefaultStoreFlusher</dt>
 <dd>
 <div class="block">Creates the scanner for flushing snapshot.</div>
 </dd>
@@ -12246,7 +12246,7 @@ loadScripts(document, 'script');</script>
 <dd>
 <div class="block">Create a writer for writing new store files.</div>
 </dd>
-<dt>createWriter(MemStoreSnapshot, boolean, Consumer&lt;Path&gt;) - Method in class org.apache.hadoop.hbase.regionserver.StripeStoreFlusher</dt>
+<dt>createWriter(MemStoreSnapshot, boolean, Consumer&lt;Path&gt;) - Method in class org.apache.hadoop.hbase.regionserver.DefaultStoreFlusher</dt>
 <dd>&nbsp;</dd>
 <dt>createWriterInstance(FileSystem, Path) - Method in class org.apache.hadoop.hbase.regionserver.wal.AbstractFSWAL</dt>
 <dd>&nbsp;</dd>
@@ -18174,7 +18174,7 @@ loadScripts(document, 'script');</script>
 <dd>&nbsp;</dd>
 <dt>finalizeWriter(StoreFileWriter, long, MonitoredTask) - Method in class org.apache.hadoop.hbase.mob.DefaultMobStoreFlusher</dt>
 <dd>&nbsp;</dd>
-<dt>finalizeWriter(StoreFileWriter, long, MonitoredTask) - Method in class org.apache.hadoop.hbase.regionserver.StripeStoreFlusher</dt>
+<dt>finalizeWriter(StoreFileWriter, long, MonitoredTask) - Method in class org.apache.hadoop.hbase.regionserver.DefaultStoreFlusher</dt>
 <dd>&nbsp;</dd>
 <dt>findArchivedLog(Path, Configuration) - Static method in class org.apache.hadoop.hbase.wal.AbstractFSWALProvider</dt>
 <dd>
@@ -19661,7 +19661,7 @@ loadScripts(document, 'script');</script>
 <dd>&nbsp;</dd>
 <dt>getActiveLogFiles() - Static method in class org.apache.hadoop.hbase.logging.Log4jUtils</dt>
 <dd>&nbsp;</dd>
-<dt>getActiveMaster() - Method in class org.apache.hadoop.hbase.client.MasterRegistry</dt>
+<dt>getActiveMaster() - Method in class org.apache.hadoop.hbase.client.RpcConnectionRegistry</dt>
 <dd>&nbsp;</dd>
 <dt>getActiveMaster() - Method in interface org.apache.hadoop.hbase.client.ConnectionRegistry</dt>
 <dd>
@@ -21437,7 +21437,7 @@ loadScripts(document, 'script');</script>
 <dd>
 <div class="block">Returns the cluster definition</div>
 </dd>
-<dt>getClusterId() - Method in class org.apache.hadoop.hbase.client.MasterRegistry</dt>
+<dt>getClusterId() - Method in class org.apache.hadoop.hbase.client.RpcConnectionRegistry</dt>
 <dd>&nbsp;</dd>
 <dt>getClusterId() - Method in interface org.apache.hadoop.hbase.client.Connection</dt>
 <dd>
@@ -26528,7 +26528,7 @@ loadScripts(document, 'script');</script>
 </dd>
 <dt>getMetaRegionLocationCache() - Method in class org.apache.hadoop.hbase.HBaseServerBase</dt>
 <dd>&nbsp;</dd>
-<dt>getMetaRegionLocations() - Method in class org.apache.hadoop.hbase.client.MasterRegistry</dt>
+<dt>getMetaRegionLocations() - Method in class org.apache.hadoop.hbase.client.RpcConnectionRegistry</dt>
 <dd>&nbsp;</dd>
 <dt>getMetaRegionLocations() - Method in interface org.apache.hadoop.hbase.client.ConnectionRegistry</dt>
 <dd>
@@ -36867,7 +36867,7 @@ loadScripts(document, 'script');</script>
 <dd>&nbsp;</dd>
 <dt>HEDGED_READS_DESC - Static variable in interface org.apache.hadoop.hbase.regionserver.MetricsRegionServerSource</dt>
 <dd>&nbsp;</dd>
-<dt>HEDGED_REQS_FANOUT_DEFAULT - Static variable in class org.apache.hadoop.hbase.client.MasterRegistry</dt>
+<dt>HEDGED_REQS_FANOUT_DEFAULT - Static variable in class org.apache.hadoop.hbase.client.RpcConnectionRegistry</dt>
 <dd>
 <div class="block">Default value for the fan out of hedged requests.</div>
 </dd>
@@ -50929,7 +50929,7 @@ service.</div>
 <dd>
 <div class="block">Performs compaction on a column family with the mob flag enabled.</div>
 </dd>
-<dt>performFlush(InternalScanner, CellSink, ThroughputController) - Method in class org.apache.hadoop.hbase.regionserver.StripeStoreFlusher</dt>
+<dt>performFlush(InternalScanner, CellSink, ThroughputController) - Method in class org.apache.hadoop.hbase.regionserver.DefaultStoreFlusher</dt>
 <dd>
 <div class="block">Performs memstore flush, writing data from scanner into sink.</div>
 </dd>
@@ -66954,7 +66954,7 @@ service.</div>
 </dd>
 <dt>store - Variable in class org.apache.hadoop.hbase.io.crypto.KeyStoreKeyProvider</dt>
 <dd>&nbsp;</dd>
-<dt>store - Variable in class org.apache.hadoop.hbase.regionserver.StripeStoreFlusher</dt>
+<dt>store - Variable in class org.apache.hadoop.hbase.regionserver.DefaultStoreFlusher</dt>
 <dd>&nbsp;</dd>
 <dt>store - Variable in class org.apache.hadoop.hbase.regionserver.StoreScanner</dt>
 <dd>&nbsp;</dd>
diff --git a/apidocs/member-search-index.js b/apidocs/member-search-index.js
index f465071d81a..7bbcf7b594d 100644
--- a/apidocs/member-search-index.js
+++ b/apidocs/member-search-index.js
@@ -1 +1 @@
-memberSearchIndex = [{"p":"org.apache.hadoop.hbase.filter","c":"ParseConstants","l":"A"},{"p":"org.apache.hadoop.hbase.master","c":"RegionState.State","l":"ABNORMALLY_CLOSED"},{"p":"org.apache.hadoop.hbase.coprocessor","c":"CoprocessorHost","l":"ABORT_ON_ERROR_KEY"},{"p":"org.apache.hadoop.hbase","c":"Abortable","l":"abort(String)","u":"abort(java.lang.String)"},{"p":"org.apache.hadoop.hbase","c":"Abortable","l":"abort(String, Throwable)","u":"abort(java.lang.String,java.lang.Throwable)" [...]
\ No newline at end of file
+memberSearchIndex = [{"p":"org.apache.hadoop.hbase.filter","c":"ParseConstants","l":"A"},{"p":"org.apache.hadoop.hbase.master","c":"RegionState.State","l":"ABNORMALLY_CLOSED"},{"p":"org.apache.hadoop.hbase.coprocessor","c":"CoprocessorHost","l":"ABORT_ON_ERROR_KEY"},{"p":"org.apache.hadoop.hbase","c":"Abortable","l":"abort(String)","u":"abort(java.lang.String)"},{"p":"org.apache.hadoop.hbase","c":"Abortable","l":"abort(String, Throwable)","u":"abort(java.lang.String,java.lang.Throwable)" [...]
\ No newline at end of file
diff --git a/apidocs/src-html/org/apache/hadoop/hbase/util/CommonFSUtils.StreamLacksCapabilityException.html b/apidocs/src-html/org/apache/hadoop/hbase/util/CommonFSUtils.StreamLacksCapabilityException.html
index 99c20b84294..343d139539e 100644
--- a/apidocs/src-html/org/apache/hadoop/hbase/util/CommonFSUtils.StreamLacksCapabilityException.html
+++ b/apidocs/src-html/org/apache/hadoop/hbase/util/CommonFSUtils.StreamLacksCapabilityException.html
@@ -30,729 +30,736 @@
 <span class="source-line-no">017</span><span id="line-17"> */</span>
 <span class="source-line-no">018</span><span id="line-18">package org.apache.hadoop.hbase.util;</span>
 <span class="source-line-no">019</span><span id="line-19"></span>
-<span class="source-line-no">020</span><span id="line-20">import java.io.FileNotFoundException;</span>
-<span class="source-line-no">021</span><span id="line-21">import java.io.IOException;</span>
-<span class="source-line-no">022</span><span id="line-22">import java.net.URI;</span>
-<span class="source-line-no">023</span><span id="line-23">import java.net.URISyntaxException;</span>
-<span class="source-line-no">024</span><span id="line-24">import java.util.List;</span>
-<span class="source-line-no">025</span><span id="line-25">import java.util.Locale;</span>
-<span class="source-line-no">026</span><span id="line-26">import java.util.Map;</span>
-<span class="source-line-no">027</span><span id="line-27">import java.util.concurrent.ConcurrentHashMap;</span>
-<span class="source-line-no">028</span><span id="line-28">import org.apache.hadoop.conf.Configuration;</span>
-<span class="source-line-no">029</span><span id="line-29">import org.apache.hadoop.fs.FSDataOutputStream;</span>
-<span class="source-line-no">030</span><span id="line-30">import org.apache.hadoop.fs.FileStatus;</span>
-<span class="source-line-no">031</span><span id="line-31">import org.apache.hadoop.fs.FileSystem;</span>
-<span class="source-line-no">032</span><span id="line-32">import org.apache.hadoop.fs.LocatedFileStatus;</span>
-<span class="source-line-no">033</span><span id="line-33">import org.apache.hadoop.fs.Path;</span>
-<span class="source-line-no">034</span><span id="line-34">import org.apache.hadoop.fs.PathFilter;</span>
-<span class="source-line-no">035</span><span id="line-35">import org.apache.hadoop.fs.RemoteIterator;</span>
-<span class="source-line-no">036</span><span id="line-36">import org.apache.hadoop.fs.permission.FsPermission;</span>
-<span class="source-line-no">037</span><span id="line-37">import org.apache.hadoop.hbase.HConstants;</span>
-<span class="source-line-no">038</span><span id="line-38">import org.apache.hadoop.hbase.TableName;</span>
-<span class="source-line-no">039</span><span id="line-39">import org.apache.yetus.audience.InterfaceAudience;</span>
-<span class="source-line-no">040</span><span id="line-40">import org.slf4j.Logger;</span>
-<span class="source-line-no">041</span><span id="line-41">import org.slf4j.LoggerFactory;</span>
-<span class="source-line-no">042</span><span id="line-42"></span>
-<span class="source-line-no">043</span><span id="line-43">import org.apache.hbase.thirdparty.com.google.common.collect.Lists;</span>
+<span class="source-line-no">020</span><span id="line-20">import static org.apache.hadoop.fs.CommonPathCapabilities.FS_STORAGEPOLICY;</span>
+<span class="source-line-no">021</span><span id="line-21"></span>
+<span class="source-line-no">022</span><span id="line-22">import java.io.FileNotFoundException;</span>
+<span class="source-line-no">023</span><span id="line-23">import java.io.IOException;</span>
+<span class="source-line-no">024</span><span id="line-24">import java.net.URI;</span>
+<span class="source-line-no">025</span><span id="line-25">import java.net.URISyntaxException;</span>
+<span class="source-line-no">026</span><span id="line-26">import java.util.List;</span>
+<span class="source-line-no">027</span><span id="line-27">import java.util.Locale;</span>
+<span class="source-line-no">028</span><span id="line-28">import java.util.Map;</span>
+<span class="source-line-no">029</span><span id="line-29">import java.util.concurrent.ConcurrentHashMap;</span>
+<span class="source-line-no">030</span><span id="line-30">import org.apache.hadoop.conf.Configuration;</span>
+<span class="source-line-no">031</span><span id="line-31">import org.apache.hadoop.fs.FSDataOutputStream;</span>
+<span class="source-line-no">032</span><span id="line-32">import org.apache.hadoop.fs.FileStatus;</span>
+<span class="source-line-no">033</span><span id="line-33">import org.apache.hadoop.fs.FileSystem;</span>
+<span class="source-line-no">034</span><span id="line-34">import org.apache.hadoop.fs.LocatedFileStatus;</span>
+<span class="source-line-no">035</span><span id="line-35">import org.apache.hadoop.fs.Path;</span>
+<span class="source-line-no">036</span><span id="line-36">import org.apache.hadoop.fs.PathFilter;</span>
+<span class="source-line-no">037</span><span id="line-37">import org.apache.hadoop.fs.RemoteIterator;</span>
+<span class="source-line-no">038</span><span id="line-38">import org.apache.hadoop.fs.permission.FsPermission;</span>
+<span class="source-line-no">039</span><span id="line-39">import org.apache.hadoop.hbase.HConstants;</span>
+<span class="source-line-no">040</span><span id="line-40">import org.apache.hadoop.hbase.TableName;</span>
+<span class="source-line-no">041</span><span id="line-41">import org.apache.yetus.audience.InterfaceAudience;</span>
+<span class="source-line-no">042</span><span id="line-42">import org.slf4j.Logger;</span>
+<span class="source-line-no">043</span><span id="line-43">import org.slf4j.LoggerFactory;</span>
 <span class="source-line-no">044</span><span id="line-44"></span>
-<span class="source-line-no">045</span><span id="line-45">/**</span>
-<span class="source-line-no">046</span><span id="line-46"> * Utility methods for interacting with the underlying file system.</span>
-<span class="source-line-no">047</span><span id="line-47"> * &lt;p/&gt;</span>
-<span class="source-line-no">048</span><span id="line-48"> * Note that {@link #setStoragePolicy(FileSystem, Path, String)} is tested in TestFSUtils and</span>
-<span class="source-line-no">049</span><span id="line-49"> * pre-commit will run the hbase-server tests if there's code change in this class. See</span>
-<span class="source-line-no">050</span><span id="line-50"> * &lt;a href="https://issues.apache.org/jira/browse/HBASE-20838"&gt;HBASE-20838&lt;/a&gt; for more details.</span>
-<span class="source-line-no">051</span><span id="line-51"> */</span>
-<span class="source-line-no">052</span><span id="line-52">@InterfaceAudience.Private</span>
-<span class="source-line-no">053</span><span id="line-53">public final class CommonFSUtils {</span>
-<span class="source-line-no">054</span><span id="line-54">  private static final Logger LOG = LoggerFactory.getLogger(CommonFSUtils.class);</span>
-<span class="source-line-no">055</span><span id="line-55"></span>
-<span class="source-line-no">056</span><span id="line-56">  /** Parameter name for HBase WAL directory */</span>
-<span class="source-line-no">057</span><span id="line-57">  public static final String HBASE_WAL_DIR = "hbase.wal.dir";</span>
-<span class="source-line-no">058</span><span id="line-58"></span>
-<span class="source-line-no">059</span><span id="line-59">  /** Parameter to disable stream capability enforcement checks */</span>
-<span class="source-line-no">060</span><span id="line-60">  public static final String UNSAFE_STREAM_CAPABILITY_ENFORCE =</span>
-<span class="source-line-no">061</span><span id="line-61">    "hbase.unsafe.stream.capability.enforce";</span>
-<span class="source-line-no">062</span><span id="line-62"></span>
-<span class="source-line-no">063</span><span id="line-63">  /** Full access permissions (starting point for a umask) */</span>
-<span class="source-line-no">064</span><span id="line-64">  public static final String FULL_RWX_PERMISSIONS = "777";</span>
-<span class="source-line-no">065</span><span id="line-65"></span>
-<span class="source-line-no">066</span><span id="line-66">  private CommonFSUtils() {</span>
-<span class="source-line-no">067</span><span id="line-67">  }</span>
-<span class="source-line-no">068</span><span id="line-68"></span>
-<span class="source-line-no">069</span><span id="line-69">  /**</span>
-<span class="source-line-no">070</span><span id="line-70">   * Compare of path component. Does not consider schema; i.e. if schemas different but</span>
-<span class="source-line-no">071</span><span id="line-71">   * &lt;code&gt;path&lt;/code&gt; starts with &lt;code&gt;rootPath&lt;/code&gt;, then the function returns true</span>
-<span class="source-line-no">072</span><span id="line-72">   * @param rootPath value to check for</span>
-<span class="source-line-no">073</span><span id="line-73">   * @param path     subject to check</span>
-<span class="source-line-no">074</span><span id="line-74">   * @return True if &lt;code&gt;path&lt;/code&gt; starts with &lt;code&gt;rootPath&lt;/code&gt;</span>
-<span class="source-line-no">075</span><span id="line-75">   */</span>
-<span class="source-line-no">076</span><span id="line-76">  public static boolean isStartingWithPath(final Path rootPath, final String path) {</span>
-<span class="source-line-no">077</span><span id="line-77">    String uriRootPath = rootPath.toUri().getPath();</span>
-<span class="source-line-no">078</span><span id="line-78">    String tailUriPath = new Path(path).toUri().getPath();</span>
-<span class="source-line-no">079</span><span id="line-79">    return tailUriPath.startsWith(uriRootPath);</span>
-<span class="source-line-no">080</span><span id="line-80">  }</span>
-<span class="source-line-no">081</span><span id="line-81"></span>
-<span class="source-line-no">082</span><span id="line-82">  /**</span>
-<span class="source-line-no">083</span><span id="line-83">   * Compare path component of the Path URI; e.g. if hdfs://a/b/c and /a/b/c, it will compare the</span>
-<span class="source-line-no">084</span><span id="line-84">   * '/a/b/c' part. Does not consider schema; i.e. if schemas different but path or subpath matches,</span>
-<span class="source-line-no">085</span><span id="line-85">   * the two will equate.</span>
-<span class="source-line-no">086</span><span id="line-86">   * @param pathToSearch Path we will be trying to match against.</span>
-<span class="source-line-no">087</span><span id="line-87">   * @param pathTail     what to match</span>
-<span class="source-line-no">088</span><span id="line-88">   * @return True if &lt;code&gt;pathTail&lt;/code&gt; is tail on the path of &lt;code&gt;pathToSearch&lt;/code&gt;</span>
-<span class="source-line-no">089</span><span id="line-89">   */</span>
-<span class="source-line-no">090</span><span id="line-90">  public static boolean isMatchingTail(final Path pathToSearch, String pathTail) {</span>
-<span class="source-line-no">091</span><span id="line-91">    return isMatchingTail(pathToSearch, new Path(pathTail));</span>
-<span class="source-line-no">092</span><span id="line-92">  }</span>
-<span class="source-line-no">093</span><span id="line-93"></span>
-<span class="source-line-no">094</span><span id="line-94">  /**</span>
-<span class="source-line-no">095</span><span id="line-95">   * Compare path component of the Path URI; e.g. if hdfs://a/b/c and /a/b/c, it will compare the</span>
-<span class="source-line-no">096</span><span id="line-96">   * '/a/b/c' part. If you passed in 'hdfs://a/b/c and b/c, it would return true. Does not consider</span>
-<span class="source-line-no">097</span><span id="line-97">   * schema; i.e. if schemas different but path or subpath matches, the two will equate.</span>
-<span class="source-line-no">098</span><span id="line-98">   * @param pathToSearch Path we will be trying to match agains against</span>
-<span class="source-line-no">099</span><span id="line-99">   * @param pathTail     what to match</span>
-<span class="source-line-no">100</span><span id="line-100">   * @return True if &lt;code&gt;pathTail&lt;/code&gt; is tail on the path of &lt;code&gt;pathToSearch&lt;/code&gt;</span>
-<span class="source-line-no">101</span><span id="line-101">   */</span>
-<span class="source-line-no">102</span><span id="line-102">  public static boolean isMatchingTail(final Path pathToSearch, final Path pathTail) {</span>
-<span class="source-line-no">103</span><span id="line-103">    if (pathToSearch.depth() != pathTail.depth()) {</span>
-<span class="source-line-no">104</span><span id="line-104">      return false;</span>
-<span class="source-line-no">105</span><span id="line-105">    }</span>
-<span class="source-line-no">106</span><span id="line-106">    Path tailPath = pathTail;</span>
-<span class="source-line-no">107</span><span id="line-107">    String tailName;</span>
-<span class="source-line-no">108</span><span id="line-108">    Path toSearch = pathToSearch;</span>
-<span class="source-line-no">109</span><span id="line-109">    String toSearchName;</span>
-<span class="source-line-no">110</span><span id="line-110">    boolean result = false;</span>
-<span class="source-line-no">111</span><span id="line-111">    do {</span>
-<span class="source-line-no">112</span><span id="line-112">      tailName = tailPath.getName();</span>
-<span class="source-line-no">113</span><span id="line-113">      if (tailName == null || tailName.length() &lt;= 0) {</span>
-<span class="source-line-no">114</span><span id="line-114">        result = true;</span>
-<span class="source-line-no">115</span><span id="line-115">        break;</span>
-<span class="source-line-no">116</span><span id="line-116">      }</span>
-<span class="source-line-no">117</span><span id="line-117">      toSearchName = toSearch.getName();</span>
-<span class="source-line-no">118</span><span id="line-118">      if (toSearchName == null || toSearchName.length() &lt;= 0) {</span>
-<span class="source-line-no">119</span><span id="line-119">        break;</span>
-<span class="source-line-no">120</span><span id="line-120">      }</span>
-<span class="source-line-no">121</span><span id="line-121">      // Move up a parent on each path for next go around. Path doesn't let us go off the end.</span>
-<span class="source-line-no">122</span><span id="line-122">      tailPath = tailPath.getParent();</span>
-<span class="source-line-no">123</span><span id="line-123">      toSearch = toSearch.getParent();</span>
-<span class="source-line-no">124</span><span id="line-124">    } while (tailName.equals(toSearchName));</span>
-<span class="source-line-no">125</span><span id="line-125">    return result;</span>
-<span class="source-line-no">126</span><span id="line-126">  }</span>
-<span class="source-line-no">127</span><span id="line-127"></span>
-<span class="source-line-no">128</span><span id="line-128">  /**</span>
-<span class="source-line-no">129</span><span id="line-129">   * Delete if exists.</span>
-<span class="source-line-no">130</span><span id="line-130">   * @param fs  filesystem object</span>
-<span class="source-line-no">131</span><span id="line-131">   * @param dir directory to delete</span>
-<span class="source-line-no">132</span><span id="line-132">   * @return True if deleted &lt;code&gt;dir&lt;/code&gt;</span>
-<span class="source-line-no">133</span><span id="line-133">   * @throws IOException e</span>
-<span class="source-line-no">134</span><span id="line-134">   */</span>
-<span class="source-line-no">135</span><span id="line-135">  public static boolean deleteDirectory(final FileSystem fs, final Path dir) throws IOException {</span>
-<span class="source-line-no">136</span><span id="line-136">    return fs.exists(dir) &amp;&amp; fs.delete(dir, true);</span>
-<span class="source-line-no">137</span><span id="line-137">  }</span>
-<span class="source-line-no">138</span><span id="line-138"></span>
-<span class="source-line-no">139</span><span id="line-139">  /**</span>
-<span class="source-line-no">140</span><span id="line-140">   * Return the number of bytes that large input files should be optimally be split into to minimize</span>
-<span class="source-line-no">141</span><span id="line-141">   * i/o time.</span>
-<span class="source-line-no">142</span><span id="line-142">   * @param fs filesystem object</span>
-<span class="source-line-no">143</span><span id="line-143">   * @return the default block size for the path's filesystem</span>
-<span class="source-line-no">144</span><span id="line-144">   */</span>
-<span class="source-line-no">145</span><span id="line-145">  public static long getDefaultBlockSize(final FileSystem fs, final Path path) {</span>
-<span class="source-line-no">146</span><span id="line-146">    return fs.getDefaultBlockSize(path);</span>
-<span class="source-line-no">147</span><span id="line-147">  }</span>
-<span class="source-line-no">148</span><span id="line-148"></span>
-<span class="source-line-no">149</span><span id="line-149">  /*</span>
-<span class="source-line-no">150</span><span id="line-150">   * Get the default replication.</span>
-<span class="source-line-no">151</span><span id="line-151">   * @param fs filesystem object</span>
-<span class="source-line-no">152</span><span id="line-152">   * @param f path of file</span>
-<span class="source-line-no">153</span><span id="line-153">   * @return default replication for the path's filesystem</span>
-<span class="source-line-no">154</span><span id="line-154">   */</span>
-<span class="source-line-no">155</span><span id="line-155">  public static short getDefaultReplication(final FileSystem fs, final Path path) {</span>
-<span class="source-line-no">156</span><span id="line-156">    return fs.getDefaultReplication(path);</span>
-<span class="source-line-no">157</span><span id="line-157">  }</span>
-<span class="source-line-no">158</span><span id="line-158"></span>
-<span class="source-line-no">159</span><span id="line-159">  /**</span>
-<span class="source-line-no">160</span><span id="line-160">   * Returns the default buffer size to use during writes. The size of the buffer should probably be</span>
-<span class="source-line-no">161</span><span id="line-161">   * a multiple of hardware page size (4096 on Intel x86), and it determines how much data is</span>
-<span class="source-line-no">162</span><span id="line-162">   * buffered during read and write operations.</span>
-<span class="source-line-no">163</span><span id="line-163">   * @param fs filesystem object</span>
-<span class="source-line-no">164</span><span id="line-164">   * @return default buffer size to use during writes</span>
-<span class="source-line-no">165</span><span id="line-165">   */</span>
-<span class="source-line-no">166</span><span id="line-166">  public static int getDefaultBufferSize(final FileSystem fs) {</span>
-<span class="source-line-no">167</span><span id="line-167">    return fs.getConf().getInt("io.file.buffer.size", 4096);</span>
-<span class="source-line-no">168</span><span id="line-168">  }</span>
-<span class="source-line-no">169</span><span id="line-169"></span>
-<span class="source-line-no">170</span><span id="line-170">  /**</span>
-<span class="source-line-no">171</span><span id="line-171">   * Create the specified file on the filesystem. By default, this will:</span>
-<span class="source-line-no">172</span><span id="line-172">   * &lt;ol&gt;</span>
-<span class="source-line-no">173</span><span id="line-173">   * &lt;li&gt;apply the umask in the configuration (if it is enabled)&lt;/li&gt;</span>
-<span class="source-line-no">174</span><span id="line-174">   * &lt;li&gt;use the fs configured buffer size (or 4096 if not set)&lt;/li&gt;</span>
-<span class="source-line-no">175</span><span id="line-175">   * &lt;li&gt;use the default replication&lt;/li&gt;</span>
-<span class="source-line-no">176</span><span id="line-176">   * &lt;li&gt;use the default block size&lt;/li&gt;</span>
-<span class="source-line-no">177</span><span id="line-177">   * &lt;li&gt;not track progress&lt;/li&gt;</span>
-<span class="source-line-no">178</span><span id="line-178">   * &lt;/ol&gt;</span>
-<span class="source-line-no">179</span><span id="line-179">   * @param fs        {@link FileSystem} on which to write the file</span>
-<span class="source-line-no">180</span><span id="line-180">   * @param path      {@link Path} to the file to write</span>
-<span class="source-line-no">181</span><span id="line-181">   * @param perm      intial permissions</span>
-<span class="source-line-no">182</span><span id="line-182">   * @param overwrite Whether or not the created file should be overwritten.</span>
-<span class="source-line-no">183</span><span id="line-183">   * @return output stream to the created file</span>
-<span class="source-line-no">184</span><span id="line-184">   * @throws IOException if the file cannot be created</span>
-<span class="source-line-no">185</span><span id="line-185">   */</span>
-<span class="source-line-no">186</span><span id="line-186">  public static FSDataOutputStream create(FileSystem fs, Path path, FsPermission perm,</span>
-<span class="source-line-no">187</span><span id="line-187">    boolean overwrite) throws IOException {</span>
-<span class="source-line-no">188</span><span id="line-188">    if (LOG.isTraceEnabled()) {</span>
-<span class="source-line-no">189</span><span id="line-189">      LOG.trace("Creating file={} with permission={}, overwrite={}", path, perm, overwrite);</span>
-<span class="source-line-no">190</span><span id="line-190">    }</span>
-<span class="source-line-no">191</span><span id="line-191">    return fs.create(path, perm, overwrite, getDefaultBufferSize(fs),</span>
-<span class="source-line-no">192</span><span id="line-192">      getDefaultReplication(fs, path), getDefaultBlockSize(fs, path), null);</span>
-<span class="source-line-no">193</span><span id="line-193">  }</span>
-<span class="source-line-no">194</span><span id="line-194"></span>
-<span class="source-line-no">195</span><span id="line-195">  /**</span>
-<span class="source-line-no">196</span><span id="line-196">   * Get the file permissions specified in the configuration, if they are enabled.</span>
-<span class="source-line-no">197</span><span id="line-197">   * @param fs               filesystem that the file will be created on.</span>
-<span class="source-line-no">198</span><span id="line-198">   * @param conf             configuration to read for determining if permissions are enabled and</span>
-<span class="source-line-no">199</span><span id="line-199">   *                         which to use</span>
-<span class="source-line-no">200</span><span id="line-200">   * @param permssionConfKey property key in the configuration to use when finding the permission</span>
-<span class="source-line-no">201</span><span id="line-201">   * @return the permission to use when creating a new file on the fs. If special permissions are</span>
-<span class="source-line-no">202</span><span id="line-202">   *         not specified in the configuration, then the default permissions on the the fs will be</span>
-<span class="source-line-no">203</span><span id="line-203">   *         returned.</span>
-<span class="source-line-no">204</span><span id="line-204">   */</span>
-<span class="source-line-no">205</span><span id="line-205">  public static FsPermission getFilePermissions(final FileSystem fs, final Configuration conf,</span>
-<span class="source-line-no">206</span><span id="line-206">    final String permssionConfKey) {</span>
-<span class="source-line-no">207</span><span id="line-207">    boolean enablePermissions = conf.getBoolean(HConstants.ENABLE_DATA_FILE_UMASK, false);</span>
-<span class="source-line-no">208</span><span id="line-208"></span>
-<span class="source-line-no">209</span><span id="line-209">    if (enablePermissions) {</span>
-<span class="source-line-no">210</span><span id="line-210">      try {</span>
-<span class="source-line-no">211</span><span id="line-211">        FsPermission perm = new FsPermission(FULL_RWX_PERMISSIONS);</span>
-<span class="source-line-no">212</span><span id="line-212">        // make sure that we have a mask, if not, go default.</span>
-<span class="source-line-no">213</span><span id="line-213">        String mask = conf.get(permssionConfKey);</span>
-<span class="source-line-no">214</span><span id="line-214">        if (mask == null) {</span>
-<span class="source-line-no">215</span><span id="line-215">          return FsPermission.getFileDefault();</span>
-<span class="source-line-no">216</span><span id="line-216">        }</span>
-<span class="source-line-no">217</span><span id="line-217">        // appy the umask</span>
-<span class="source-line-no">218</span><span id="line-218">        FsPermission umask = new FsPermission(mask);</span>
-<span class="source-line-no">219</span><span id="line-219">        return perm.applyUMask(umask);</span>
-<span class="source-line-no">220</span><span id="line-220">      } catch (IllegalArgumentException e) {</span>
-<span class="source-line-no">221</span><span id="line-221">        LOG.warn("Incorrect umask attempted to be created: " + conf.get(permssionConfKey)</span>
-<span class="source-line-no">222</span><span id="line-222">          + ", using default file permissions.", e);</span>
-<span class="source-line-no">223</span><span id="line-223">        return FsPermission.getFileDefault();</span>
-<span class="source-line-no">224</span><span id="line-224">      }</span>
-<span class="source-line-no">225</span><span id="line-225">    }</span>
-<span class="source-line-no">226</span><span id="line-226">    return FsPermission.getFileDefault();</span>
-<span class="source-line-no">227</span><span id="line-227">  }</span>
-<span class="source-line-no">228</span><span id="line-228"></span>
-<span class="source-line-no">229</span><span id="line-229">  /**</span>
-<span class="source-line-no">230</span><span id="line-230">   * Verifies root directory path is a valid URI with a scheme</span>
-<span class="source-line-no">231</span><span id="line-231">   * @param root root directory path</span>
-<span class="source-line-no">232</span><span id="line-232">   * @return Passed &lt;code&gt;root&lt;/code&gt; argument.</span>
-<span class="source-line-no">233</span><span id="line-233">   * @throws IOException if not a valid URI with a scheme</span>
-<span class="source-line-no">234</span><span id="line-234">   */</span>
-<span class="source-line-no">235</span><span id="line-235">  public static Path validateRootPath(Path root) throws IOException {</span>
-<span class="source-line-no">236</span><span id="line-236">    try {</span>
-<span class="source-line-no">237</span><span id="line-237">      URI rootURI = new URI(root.toString());</span>
-<span class="source-line-no">238</span><span id="line-238">      String scheme = rootURI.getScheme();</span>
-<span class="source-line-no">239</span><span id="line-239">      if (scheme == null) {</span>
-<span class="source-line-no">240</span><span id="line-240">        throw new IOException("Root directory does not have a scheme");</span>
-<span class="source-line-no">241</span><span id="line-241">      }</span>
-<span class="source-line-no">242</span><span id="line-242">      return root;</span>
-<span class="source-line-no">243</span><span id="line-243">    } catch (URISyntaxException e) {</span>
-<span class="source-line-no">244</span><span id="line-244">      throw new IOException("Root directory path is not a valid " + "URI -- check your "</span>
-<span class="source-line-no">245</span><span id="line-245">        + HConstants.HBASE_DIR + " configuration", e);</span>
-<span class="source-line-no">246</span><span id="line-246">    }</span>
-<span class="source-line-no">247</span><span id="line-247">  }</span>
-<span class="source-line-no">248</span><span id="line-248"></span>
-<span class="source-line-no">249</span><span id="line-249">  /**</span>
-<span class="source-line-no">250</span><span id="line-250">   * Checks for the presence of the WAL log root path (using the provided conf object) in the given</span>
-<span class="source-line-no">251</span><span id="line-251">   * path. If it exists, this method removes it and returns the String representation of remaining</span>
-<span class="source-line-no">252</span><span id="line-252">   * relative path.</span>
-<span class="source-line-no">253</span><span id="line-253">   * @param path must not be null</span>
-<span class="source-line-no">254</span><span id="line-254">   * @param conf must not be null</span>
-<span class="source-line-no">255</span><span id="line-255">   * @return String representation of the remaining relative path</span>
-<span class="source-line-no">256</span><span id="line-256">   * @throws IOException from underlying filesystem</span>
-<span class="source-line-no">257</span><span id="line-257">   */</span>
-<span class="source-line-no">258</span><span id="line-258">  public static String removeWALRootPath(Path path, final Configuration conf) throws IOException {</span>
-<span class="source-line-no">259</span><span id="line-259">    Path root = getWALRootDir(conf);</span>
-<span class="source-line-no">260</span><span id="line-260">    String pathStr = path.toString();</span>
-<span class="source-line-no">261</span><span id="line-261">    // check that the path is absolute... it has the root path in it.</span>
-<span class="source-line-no">262</span><span id="line-262">    if (!pathStr.startsWith(root.toString())) {</span>
-<span class="source-line-no">263</span><span id="line-263">      return pathStr;</span>
-<span class="source-line-no">264</span><span id="line-264">    }</span>
-<span class="source-line-no">265</span><span id="line-265">    // if not, return as it is.</span>
-<span class="source-line-no">266</span><span id="line-266">    return pathStr.substring(root.toString().length() + 1);// remove the "/" too.</span>
-<span class="source-line-no">267</span><span id="line-267">  }</span>
-<span class="source-line-no">268</span><span id="line-268"></span>
-<span class="source-line-no">269</span><span id="line-269">  /**</span>
-<span class="source-line-no">270</span><span id="line-270">   * Return the 'path' component of a Path. In Hadoop, Path is a URI. This method returns the 'path'</span>
-<span class="source-line-no">271</span><span id="line-271">   * component of a Path's URI: e.g. If a Path is</span>
-<span class="source-line-no">272</span><span id="line-272">   * &lt;code&gt;hdfs://example.org:9000/hbase_trunk/TestTable/compaction.dir&lt;/code&gt;, this method returns</span>
-<span class="source-line-no">273</span><span id="line-273">   * &lt;code&gt;/hbase_trunk/TestTable/compaction.dir&lt;/code&gt;. This method is useful if you want to print</span>
-<span class="source-line-no">274</span><span id="line-274">   * out a Path without qualifying Filesystem instance.</span>
-<span class="source-line-no">275</span><span id="line-275">   * @param p Filesystem Path whose 'path' component we are to return.</span>
-<span class="source-line-no">276</span><span id="line-276">   * @return Path portion of the Filesystem</span>
-<span class="source-line-no">277</span><span id="line-277">   */</span>
-<span class="source-line-no">278</span><span id="line-278">  public static String getPath(Path p) {</span>
-<span class="source-line-no">279</span><span id="line-279">    return p.toUri().getPath();</span>
-<span class="source-line-no">280</span><span id="line-280">  }</span>
-<span class="source-line-no">281</span><span id="line-281"></span>
-<span class="source-line-no">282</span><span id="line-282">  /**</span>
-<span class="source-line-no">283</span><span id="line-283">   * Get the path for the root data directory</span>
-<span class="source-line-no">284</span><span id="line-284">   * @param c configuration</span>
-<span class="source-line-no">285</span><span id="line-285">   * @return {@link Path} to hbase root directory from configuration as a qualified Path.</span>
-<span class="source-line-no">286</span><span id="line-286">   * @throws IOException e</span>
-<span class="source-line-no">287</span><span id="line-287">   */</span>
-<span class="source-line-no">288</span><span id="line-288">  public static Path getRootDir(final Configuration c) throws IOException {</span>
-<span class="source-line-no">289</span><span id="line-289">    Path p = new Path(c.get(HConstants.HBASE_DIR));</span>
-<span class="source-line-no">290</span><span id="line-290">    FileSystem fs = p.getFileSystem(c);</span>
-<span class="source-line-no">291</span><span id="line-291">    return p.makeQualified(fs.getUri(), fs.getWorkingDirectory());</span>
-<span class="source-line-no">292</span><span id="line-292">  }</span>
-<span class="source-line-no">293</span><span id="line-293"></span>
-<span class="source-line-no">294</span><span id="line-294">  public static void setRootDir(final Configuration c, final Path root) {</span>
-<span class="source-line-no">295</span><span id="line-295">    c.set(HConstants.HBASE_DIR, root.toString());</span>
-<span class="source-line-no">296</span><span id="line-296">  }</span>
-<span class="source-line-no">297</span><span id="line-297"></span>
-<span class="source-line-no">298</span><span id="line-298">  public static void setFsDefault(final Configuration c, final Path root) {</span>
-<span class="source-line-no">299</span><span id="line-299">    c.set("fs.defaultFS", root.toString()); // for hadoop 0.21+</span>
-<span class="source-line-no">300</span><span id="line-300">  }</span>
-<span class="source-line-no">301</span><span id="line-301"></span>
-<span class="source-line-no">302</span><span id="line-302">  public static void setFsDefault(final Configuration c, final String uri) {</span>
-<span class="source-line-no">303</span><span id="line-303">    c.set("fs.defaultFS", uri); // for hadoop 0.21+</span>
-<span class="source-line-no">304</span><span id="line-304">  }</span>
-<span class="source-line-no">305</span><span id="line-305"></span>
-<span class="source-line-no">306</span><span id="line-306">  public static FileSystem getRootDirFileSystem(final Configuration c) throws IOException {</span>
-<span class="source-line-no">307</span><span id="line-307">    Path p = getRootDir(c);</span>
-<span class="source-line-no">308</span><span id="line-308">    return p.getFileSystem(c);</span>
-<span class="source-line-no">309</span><span id="line-309">  }</span>
-<span class="source-line-no">310</span><span id="line-310"></span>
-<span class="source-line-no">311</span><span id="line-311">  /**</span>
-<span class="source-line-no">312</span><span id="line-312">   * Get the path for the root directory for WAL data</span>
-<span class="source-line-no">313</span><span id="line-313">   * @param c configuration</span>
-<span class="source-line-no">314</span><span id="line-314">   * @return {@link Path} to hbase log root directory: e.g. {@value HBASE_WAL_DIR} from</span>
-<span class="source-line-no">315</span><span id="line-315">   *         configuration as a qualified Path. Defaults to HBase root dir.</span>
-<span class="source-line-no">316</span><span id="line-316">   * @throws IOException e</span>
-<span class="source-line-no">317</span><span id="line-317">   */</span>
-<span class="source-line-no">318</span><span id="line-318">  public static Path getWALRootDir(final Configuration c) throws IOException {</span>
-<span class="source-line-no">319</span><span id="line-319">    Path p = new Path(c.get(HBASE_WAL_DIR, c.get(HConstants.HBASE_DIR)));</span>
-<span class="source-line-no">320</span><span id="line-320">    if (!isValidWALRootDir(p, c)) {</span>
-<span class="source-line-no">321</span><span id="line-321">      return getRootDir(c);</span>
-<span class="source-line-no">322</span><span id="line-322">    }</span>
-<span class="source-line-no">323</span><span id="line-323">    FileSystem fs = p.getFileSystem(c);</span>
-<span class="source-line-no">324</span><span id="line-324">    return p.makeQualified(fs.getUri(), fs.getWorkingDirectory());</span>
-<span class="source-line-no">325</span><span id="line-325">  }</span>
-<span class="source-line-no">326</span><span id="line-326"></span>
-<span class="source-line-no">327</span><span id="line-327">  /**</span>
-<span class="source-line-no">328</span><span id="line-328">   * Returns the URI in the string format</span>
-<span class="source-line-no">329</span><span id="line-329">   * @param c configuration</span>
-<span class="source-line-no">330</span><span id="line-330">   * @param p path</span>
-<span class="source-line-no">331</span><span id="line-331">   * @return - the URI's to string format</span>
-<span class="source-line-no">332</span><span id="line-332">   */</span>
-<span class="source-line-no">333</span><span id="line-333">  public static String getDirUri(final Configuration c, Path p) throws IOException {</span>
-<span class="source-line-no">334</span><span id="line-334">    if (p.toUri().getScheme() != null) {</span>
-<span class="source-line-no">335</span><span id="line-335">      return p.toUri().toString();</span>
-<span class="source-line-no">336</span><span id="line-336">    }</span>
-<span class="source-line-no">337</span><span id="line-337">    return null;</span>
-<span class="source-line-no">338</span><span id="line-338">  }</span>
-<span class="source-line-no">339</span><span id="line-339"></span>
-<span class="source-line-no">340</span><span id="line-340">  public static void setWALRootDir(final Configuration c, final Path root) {</span>
-<span class="source-line-no">341</span><span id="line-341">    c.set(HBASE_WAL_DIR, root.toString());</span>
-<span class="source-line-no">342</span><span id="line-342">  }</span>
-<span class="source-line-no">343</span><span id="line-343"></span>
-<span class="source-line-no">344</span><span id="line-344">  public static FileSystem getWALFileSystem(final Configuration c) throws IOException {</span>
-<span class="source-line-no">345</span><span id="line-345">    Path p = getWALRootDir(c);</span>
-<span class="source-line-no">346</span><span id="line-346">    FileSystem fs = p.getFileSystem(c);</span>
-<span class="source-line-no">347</span><span id="line-347">    // hadoop-core does fs caching, so need to propagate this if set</span>
-<span class="source-line-no">348</span><span id="line-348">    String enforceStreamCapability = c.get(UNSAFE_STREAM_CAPABILITY_ENFORCE);</span>
-<span class="source-line-no">349</span><span id="line-349">    if (enforceStreamCapability != null) {</span>
-<span class="source-line-no">350</span><span id="line-350">      fs.getConf().set(UNSAFE_STREAM_CAPABILITY_ENFORCE, enforceStreamCapability);</span>
-<span class="source-line-no">351</span><span id="line-351">    }</span>
-<span class="source-line-no">352</span><span id="line-352">    return fs;</span>
-<span class="source-line-no">353</span><span id="line-353">  }</span>
-<span class="source-line-no">354</span><span id="line-354"></span>
-<span class="source-line-no">355</span><span id="line-355">  private static boolean isValidWALRootDir(Path walDir, final Configuration c) throws IOException {</span>
-<span class="source-line-no">356</span><span id="line-356">    Path rootDir = getRootDir(c);</span>
-<span class="source-line-no">357</span><span id="line-357">    FileSystem fs = walDir.getFileSystem(c);</span>
-<span class="source-line-no">358</span><span id="line-358">    Path qualifiedWalDir = walDir.makeQualified(fs.getUri(), fs.getWorkingDirectory());</span>
-<span class="source-line-no">359</span><span id="line-359">    if (!qualifiedWalDir.equals(rootDir)) {</span>
-<span class="source-line-no">360</span><span id="line-360">      if (qualifiedWalDir.toString().startsWith(rootDir.toString() + "/")) {</span>
-<span class="source-line-no">361</span><span id="line-361">        throw new IllegalStateException("Illegal WAL directory specified. "</span>
-<span class="source-line-no">362</span><span id="line-362">          + "WAL directories are not permitted to be under root directory: rootDir="</span>
-<span class="source-line-no">363</span><span id="line-363">          + rootDir.toString() + ", qualifiedWALDir=" + qualifiedWalDir);</span>
-<span class="source-line-no">364</span><span id="line-364">      }</span>
-<span class="source-line-no">365</span><span id="line-365">    }</span>
-<span class="source-line-no">366</span><span id="line-366">    return true;</span>
-<span class="source-line-no">367</span><span id="line-367">  }</span>
-<span class="source-line-no">368</span><span id="line-368"></span>
-<span class="source-line-no">369</span><span id="line-369">  /**</span>
-<span class="source-line-no">370</span><span id="line-370">   * Returns the WAL region directory based on the given table name and region name</span>
-<span class="source-line-no">371</span><span id="line-371">   * @param conf              configuration to determine WALRootDir</span>
-<span class="source-line-no">372</span><span id="line-372">   * @param tableName         Table that the region is under</span>
-<span class="source-line-no">373</span><span id="line-373">   * @param encodedRegionName Region name used for creating the final region directory</span>
-<span class="source-line-no">374</span><span id="line-374">   * @return the region directory used to store WALs under the WALRootDir</span>
-<span class="source-line-no">375</span><span id="line-375">   * @throws IOException if there is an exception determining the WALRootDir</span>
-<span class="source-line-no">376</span><span id="line-376">   */</span>
-<span class="source-line-no">377</span><span id="line-377">  public static Path getWALRegionDir(final Configuration conf, final TableName tableName,</span>
-<span class="source-line-no">378</span><span id="line-378">    final String encodedRegionName) throws IOException {</span>
-<span class="source-line-no">379</span><span id="line-379">    return new Path(getWALTableDir(conf, tableName), encodedRegionName);</span>
-<span class="source-line-no">380</span><span id="line-380">  }</span>
-<span class="source-line-no">381</span><span id="line-381"></span>
-<span class="source-line-no">382</span><span id="line-382">  /**</span>
-<span class="source-line-no">383</span><span id="line-383">   * Returns the Table directory under the WALRootDir for the specified table name</span>
-<span class="source-line-no">384</span><span id="line-384">   * @param conf      configuration used to get the WALRootDir</span>
-<span class="source-line-no">385</span><span id="line-385">   * @param tableName Table to get the directory for</span>
-<span class="source-line-no">386</span><span id="line-386">   * @return a path to the WAL table directory for the specified table</span>
-<span class="source-line-no">387</span><span id="line-387">   * @throws IOException if there is an exception determining the WALRootDir</span>
-<span class="source-line-no">388</span><span id="line-388">   */</span>
-<span class="source-line-no">389</span><span id="line-389">  public static Path getWALTableDir(final Configuration conf, final TableName tableName)</span>
-<span class="source-line-no">390</span><span id="line-390">    throws IOException {</span>
-<span class="source-line-no">391</span><span id="line-391">    Path baseDir = new Path(getWALRootDir(conf), HConstants.BASE_NAMESPACE_DIR);</span>
-<span class="source-line-no">392</span><span id="line-392">    return new Path(new Path(baseDir, tableName.getNamespaceAsString()),</span>
-<span class="source-line-no">393</span><span id="line-393">      tableName.getQualifierAsString());</span>
-<span class="source-line-no">394</span><span id="line-394">  }</span>
-<span class="source-line-no">395</span><span id="line-395"></span>
-<span class="source-line-no">396</span><span id="line-396">  /**</span>
-<span class="source-line-no">397</span><span id="line-397">   * For backward compatibility with HBASE-20734, where we store recovered edits in a wrong</span>
-<span class="source-line-no">398</span><span id="line-398">   * directory without BASE_NAMESPACE_DIR. See HBASE-22617 for more details.</span>
-<span class="source-line-no">399</span><span id="line-399">   * @deprecated For compatibility, will be removed in 4.0.0.</span>
-<span class="source-line-no">400</span><span id="line-400">   */</span>
-<span class="source-line-no">401</span><span id="line-401">  @Deprecated</span>
-<span class="source-line-no">402</span><span id="line-402">  public static Path getWrongWALRegionDir(final Configuration conf, final TableName tableName,</span>
-<span class="source-line-no">403</span><span id="line-403">    final String encodedRegionName) throws IOException {</span>
-<span class="source-line-no">404</span><span id="line-404">    Path wrongTableDir = new Path(new Path(getWALRootDir(conf), tableName.getNamespaceAsString()),</span>
-<span class="source-line-no">405</span><span id="line-405">      tableName.getQualifierAsString());</span>
-<span class="source-line-no">406</span><span id="line-406">    return new Path(wrongTableDir, encodedRegionName);</span>
-<span class="source-line-no">407</span><span id="line-407">  }</span>
-<span class="source-line-no">408</span><span id="line-408"></span>
-<span class="source-line-no">409</span><span id="line-409">  /**</span>
-<span class="source-line-no">410</span><span id="line-410">   * Returns the {@link org.apache.hadoop.fs.Path} object representing the table directory under</span>
-<span class="source-line-no">411</span><span id="line-411">   * path rootdir</span>
-<span class="source-line-no">412</span><span id="line-412">   * @param rootdir   qualified path of HBase root directory</span>
-<span class="source-line-no">413</span><span id="line-413">   * @param tableName name of table</span>
-<span class="source-line-no">414</span><span id="line-414">   * @return {@link org.apache.hadoop.fs.Path} for table</span>
-<span class="source-line-no">415</span><span id="line-415">   */</span>
-<span class="source-line-no">416</span><span id="line-416">  public static Path getTableDir(Path rootdir, final TableName tableName) {</span>
-<span class="source-line-no">417</span><span id="line-417">    return new Path(getNamespaceDir(rootdir, tableName.getNamespaceAsString()),</span>
-<span class="source-line-no">418</span><span id="line-418">      tableName.getQualifierAsString());</span>
-<span class="source-line-no">419</span><span id="line-419">  }</span>
-<span class="source-line-no">420</span><span id="line-420"></span>
-<span class="source-line-no">421</span><span id="line-421">  /**</span>
-<span class="source-line-no">422</span><span id="line-422">   * Returns the {@link org.apache.hadoop.fs.Path} object representing the region directory under</span>
-<span class="source-line-no">423</span><span id="line-423">   * path rootdir</span>
-<span class="source-line-no">424</span><span id="line-424">   * @param rootdir    qualified path of HBase root directory</span>
-<span class="source-line-no">425</span><span id="line-425">   * @param tableName  name of table</span>
-<span class="source-line-no">426</span><span id="line-426">   * @param regionName The encoded region name</span>
-<span class="source-line-no">427</span><span id="line-427">   * @return {@link org.apache.hadoop.fs.Path} for region</span>
-<span class="source-line-no">428</span><span id="line-428">   */</span>
-<span class="source-line-no">429</span><span id="line-429">  public static Path getRegionDir(Path rootdir, TableName tableName, String regionName) {</span>
-<span class="source-line-no">430</span><span id="line-430">    return new Path(getTableDir(rootdir, tableName), regionName);</span>
-<span class="source-line-no">431</span><span id="line-431">  }</span>
-<span class="source-line-no">432</span><span id="line-432"></span>
-<span class="source-line-no">433</span><span id="line-433">  /**</span>
-<span class="source-line-no">434</span><span id="line-434">   * Returns the {@link org.apache.hadoop.hbase.TableName} object representing the table directory</span>
-<span class="source-line-no">435</span><span id="line-435">   * under path rootdir</span>
-<span class="source-line-no">436</span><span id="line-436">   * @param tablePath path of table</span>
-<span class="source-line-no">437</span><span id="line-437">   * @return {@link org.apache.hadoop.fs.Path} for table</span>
-<span class="source-line-no">438</span><span id="line-438">   */</span>
-<span class="source-line-no">439</span><span id="line-439">  public static TableName getTableName(Path tablePath) {</span>
-<span class="source-line-no">440</span><span id="line-440">    return TableName.valueOf(tablePath.getParent().getName(), tablePath.getName());</span>
-<span class="source-line-no">441</span><span id="line-441">  }</span>
-<span class="source-line-no">442</span><span id="line-442"></span>
-<span class="source-line-no">443</span><span id="line-443">  /**</span>
-<span class="source-line-no">444</span><span id="line-444">   * Returns the {@link org.apache.hadoop.fs.Path} object representing the namespace directory under</span>
-<span class="source-line-no">445</span><span id="line-445">   * path rootdir</span>
-<span class="source-line-no">446</span><span id="line-446">   * @param rootdir   qualified path of HBase root directory</span>
-<span class="source-line-no">447</span><span id="line-447">   * @param namespace namespace name</span>
-<span class="source-line-no">448</span><span id="line-448">   * @return {@link org.apache.hadoop.fs.Path} for table</span>
-<span class="source-line-no">449</span><span id="line-449">   */</span>
-<span class="source-line-no">450</span><span id="line-450">  public static Path getNamespaceDir(Path rootdir, final String namespace) {</span>
-<span class="source-line-no">451</span><span id="line-451">    return new Path(rootdir, new Path(HConstants.BASE_NAMESPACE_DIR, new Path(namespace)));</span>
-<span class="source-line-no">452</span><span id="line-452">  }</span>
-<span class="source-line-no">453</span><span id="line-453"></span>
-<span class="source-line-no">454</span><span id="line-454">  // this mapping means that under a federated FileSystem implementation, we'll</span>
-<span class="source-line-no">455</span><span id="line-455">  // only log the first failure from any of the underlying FileSystems at WARN and all others</span>
-<span class="source-line-no">456</span><span id="line-456">  // will be at DEBUG.</span>
-<span class="source-line-no">457</span><span id="line-457">  private static final Map&lt;FileSystem, Boolean&gt; warningMap = new ConcurrentHashMap&lt;&gt;();</span>
-<span class="source-line-no">458</span><span id="line-458"></span>
-<span class="source-line-no">459</span><span id="line-459">  /**</span>
-<span class="source-line-no">460</span><span id="line-460">   * Sets storage policy for given path. If the passed path is a directory, we'll set the storage</span>
-<span class="source-line-no">461</span><span id="line-461">   * policy for all files created in the future in said directory. Note that this change in storage</span>
-<span class="source-line-no">462</span><span id="line-462">   * policy takes place at the FileSystem level; it will persist beyond this RS's lifecycle. If</span>
-<span class="source-line-no">463</span><span id="line-463">   * we're running on a version of FileSystem that doesn't support the given storage policy (or</span>
-<span class="source-line-no">464</span><span id="line-464">   * storage policies at all), then we'll issue a log message and continue. See</span>
-<span class="source-line-no">465</span><span id="line-465">   * http://hadoop.apache.org/docs/r2.6.0/hadoop-project-dist/hadoop-hdfs/ArchivalStorage.html</span>
-<span class="source-line-no">466</span><span id="line-466">   * @param fs            We only do anything it implements a setStoragePolicy method</span>
-<span class="source-line-no">467</span><span id="line-467">   * @param path          the Path whose storage policy is to be set</span>
-<span class="source-line-no">468</span><span id="line-468">   * @param storagePolicy Policy to set on &lt;code&gt;path&lt;/code&gt;; see hadoop 2.6+</span>
-<span class="source-line-no">469</span><span id="line-469">   *                      org.apache.hadoop.hdfs.protocol.HdfsConstants for possible list e.g</span>
-<span class="source-line-no">470</span><span id="line-470">   *                      'COLD', 'WARM', 'HOT', 'ONE_SSD', 'ALL_SSD', 'LAZY_PERSIST'.</span>
-<span class="source-line-no">471</span><span id="line-471">   */</span>
-<span class="source-line-no">472</span><span id="line-472">  public static void setStoragePolicy(final FileSystem fs, final Path path,</span>
-<span class="source-line-no">473</span><span id="line-473">    final String storagePolicy) {</span>
-<span class="source-line-no">474</span><span id="line-474">    try {</span>
-<span class="source-line-no">475</span><span id="line-475">      setStoragePolicy(fs, path, storagePolicy, false);</span>
-<span class="source-line-no">476</span><span id="line-476">    } catch (IOException e) {</span>
-<span class="source-line-no">477</span><span id="line-477">      // should never arrive here</span>
-<span class="source-line-no">478</span><span id="line-478">      LOG.warn("We have chosen not to throw exception but some unexpectedly thrown out", e);</span>
-<span class="source-line-no">479</span><span id="line-479">    }</span>
-<span class="source-line-no">480</span><span id="line-480">  }</span>
-<span class="source-line-no">481</span><span id="line-481"></span>
-<span class="source-line-no">482</span><span id="line-482">  static void setStoragePolicy(final FileSystem fs, final Path path, final String storagePolicy,</span>
-<span class="source-line-no">483</span><span id="line-483">    boolean throwException) throws IOException {</span>
-<span class="source-line-no">484</span><span id="line-484">    if (storagePolicy == null) {</span>
-<span class="source-line-no">485</span><span id="line-485">      if (LOG.isTraceEnabled()) {</span>
-<span class="source-line-no">486</span><span id="line-486">        LOG.trace("We were passed a null storagePolicy, exiting early.");</span>
-<span class="source-line-no">487</span><span id="line-487">      }</span>
-<span class="source-line-no">488</span><span id="line-488">      return;</span>
-<span class="source-line-no">489</span><span id="line-489">    }</span>
-<span class="source-line-no">490</span><span id="line-490">    String trimmedStoragePolicy = storagePolicy.trim();</span>
-<span class="source-line-no">491</span><span id="line-491">    if (trimmedStoragePolicy.isEmpty()) {</span>
-<span class="source-line-no">492</span><span id="line-492">      LOG.trace("We were passed an empty storagePolicy, exiting early.");</span>
-<span class="source-line-no">493</span><span id="line-493">      return;</span>
-<span class="source-line-no">494</span><span id="line-494">    } else {</span>
-<span class="source-line-no">495</span><span id="line-495">      trimmedStoragePolicy = trimmedStoragePolicy.toUpperCase(Locale.ROOT);</span>
-<span class="source-line-no">496</span><span id="line-496">    }</span>
-<span class="source-line-no">497</span><span id="line-497">    if (trimmedStoragePolicy.equals(HConstants.DEFER_TO_HDFS_STORAGE_POLICY)) {</span>
-<span class="source-line-no">498</span><span id="line-498">      LOG.trace("We were passed the defer-to-hdfs policy {}, exiting early.", trimmedStoragePolicy);</span>
-<span class="source-line-no">499</span><span id="line-499">      return;</span>
-<span class="source-line-no">500</span><span id="line-500">    }</span>
-<span class="source-line-no">501</span><span id="line-501">    try {</span>
-<span class="source-line-no">502</span><span id="line-502">      invokeSetStoragePolicy(fs, path, trimmedStoragePolicy);</span>
-<span class="source-line-no">503</span><span id="line-503">    } catch (IOException e) {</span>
-<span class="source-line-no">504</span><span id="line-504">      LOG.trace("Failed to invoke set storage policy API on FS", e);</span>
-<span class="source-line-no">505</span><span id="line-505">      if (throwException) {</span>
-<span class="source-line-no">506</span><span id="line-506">        throw e;</span>
-<span class="source-line-no">507</span><span id="line-507">      }</span>
-<span class="source-line-no">508</span><span id="line-508">    }</span>
-<span class="source-line-no">509</span><span id="line-509">  }</span>
-<span class="source-line-no">510</span><span id="line-510"></span>
-<span class="source-line-no">511</span><span id="line-511">  /*</span>
-<span class="source-line-no">512</span><span id="line-512">   * All args have been checked and are good. Run the setStoragePolicy invocation.</span>
-<span class="source-line-no">513</span><span id="line-513">   */</span>
-<span class="source-line-no">514</span><span id="line-514">  private static void invokeSetStoragePolicy(final FileSystem fs, final Path path,</span>
-<span class="source-line-no">515</span><span id="line-515">    final String storagePolicy) throws IOException {</span>
-<span class="source-line-no">516</span><span id="line-516">    Exception toThrow = null;</span>
-<span class="source-line-no">517</span><span id="line-517"></span>
-<span class="source-line-no">518</span><span id="line-518">    try {</span>
-<span class="source-line-no">519</span><span id="line-519">      fs.setStoragePolicy(path, storagePolicy);</span>
-<span class="source-line-no">520</span><span id="line-520">      LOG.debug("Set storagePolicy={} for path={}", storagePolicy, path);</span>
-<span class="source-line-no">521</span><span id="line-521">    } catch (Exception e) {</span>
-<span class="source-line-no">522</span><span id="line-522">      toThrow = e;</span>
-<span class="source-line-no">523</span><span id="line-523">      // This swallows FNFE, should we be throwing it? seems more likely to indicate dev</span>
-<span class="source-line-no">524</span><span id="line-524">      // misuse than a runtime problem with HDFS.</span>
-<span class="source-line-no">525</span><span id="line-525">      if (!warningMap.containsKey(fs)) {</span>
-<span class="source-line-no">526</span><span id="line-526">        warningMap.put(fs, true);</span>
-<span class="source-line-no">527</span><span id="line-527">        LOG.warn("Unable to set storagePolicy=" + storagePolicy + " for path=" + path + ". "</span>
-<span class="source-line-no">528</span><span id="line-528">          + "DEBUG log level might have more details.", e);</span>
-<span class="source-line-no">529</span><span id="line-529">      } else if (LOG.isDebugEnabled()) {</span>
-<span class="source-line-no">530</span><span id="line-530">        LOG.debug("Unable to set storagePolicy=" + storagePolicy + " for path=" + path, e);</span>
-<span class="source-line-no">531</span><span id="line-531">      }</span>
-<span class="source-line-no">532</span><span id="line-532"></span>
-<span class="source-line-no">533</span><span id="line-533">      // Hadoop 2.8+, 3.0-a1+ added FileSystem.setStoragePolicy with a default implementation</span>
-<span class="source-line-no">534</span><span id="line-534">      // that throws UnsupportedOperationException</span>
-<span class="source-line-no">535</span><span id="line-535">      if (e instanceof UnsupportedOperationException) {</span>
-<span class="source-line-no">536</span><span id="line-536">        if (LOG.isDebugEnabled()) {</span>
-<span class="source-line-no">537</span><span id="line-537">          LOG.debug("The underlying FileSystem implementation doesn't support "</span>
-<span class="source-line-no">538</span><span id="line-538">            + "setStoragePolicy. This is probably intentional on their part, since HDFS-9345 "</span>
-<span class="source-line-no">539</span><span id="line-539">            + "appears to be present in your version of Hadoop. For more information check "</span>
-<span class="source-line-no">540</span><span id="line-540">            + "the Hadoop documentation on 'ArchivalStorage', the Hadoop FileSystem "</span>
-<span class="source-line-no">541</span><span id="line-541">            + "specification docs from HADOOP-11981, and/or related documentation from the "</span>
-<span class="source-line-no">542</span><span id="line-542">            + "provider of the underlying FileSystem (its name should appear in the "</span>
-<span class="source-line-no">543</span><span id="line-543">            + "stacktrace that accompanies this message). Note in particular that Hadoop's "</span>
-<span class="source-line-no">544</span><span id="line-544">            + "local filesystem implementation doesn't support storage policies.", e);</span>
-<span class="source-line-no">545</span><span id="line-545">        }</span>
-<span class="source-line-no">546</span><span id="line-546">      }</span>
-<span class="source-line-no">547</span><span id="line-547">    }</span>
-<span class="source-line-no">548</span><span id="line-548"></span>
-<span class="source-line-no">549</span><span id="line-549">    if (toThrow != null) {</span>
-<span class="source-line-no">550</span><span id="line-550">      throw new IOException(toThrow);</span>
-<span class="source-line-no">551</span><span id="line-551">    }</span>
-<span class="source-line-no">552</span><span id="line-552">  }</span>
-<span class="source-line-no">553</span><span id="line-553"></span>
-<span class="source-line-no">554</span><span id="line-554">  /**</span>
-<span class="source-line-no">555</span><span id="line-555">   * Return true if this is a filesystem whose scheme is 'hdfs'.</span>
-<span class="source-line-no">556</span><span id="line-556">   * @throws IOException from underlying FileSystem</span>
-<span class="source-line-no">557</span><span id="line-557">   */</span>
-<span class="source-line-no">558</span><span id="line-558">  public static boolean isHDFS(final Configuration conf) throws IOException {</span>
-<span class="source-line-no">559</span><span id="line-559">    FileSystem fs = FileSystem.get(conf);</span>
-<span class="source-line-no">560</span><span id="line-560">    String scheme = fs.getUri().getScheme();</span>
-<span class="source-line-no">561</span><span id="line-561">    return scheme.equalsIgnoreCase("hdfs");</span>
-<span class="source-line-no">562</span><span id="line-562">  }</span>
-<span class="source-line-no">563</span><span id="line-563"></span>
-<span class="source-line-no">564</span><span id="line-564">  /**</span>
-<span class="source-line-no">565</span><span id="line-565">   * Checks if the given path is the one with 'recovered.edits' dir.</span>
-<span class="source-line-no">566</span><span id="line-566">   * @param path must not be null</span>
-<span class="source-line-no">567</span><span id="line-567">   * @return True if we recovered edits</span>
-<span class="source-line-no">568</span><span id="line-568">   */</span>
-<span class="source-line-no">569</span><span id="line-569">  public static boolean isRecoveredEdits(Path path) {</span>
-<span class="source-line-no">570</span><span id="line-570">    return path.toString().contains(HConstants.RECOVERED_EDITS_DIR);</span>
-<span class="source-line-no">571</span><span id="line-571">  }</span>
-<span class="source-line-no">572</span><span id="line-572"></span>
-<span class="source-line-no">573</span><span id="line-573">  /**</span>
-<span class="source-line-no">574</span><span id="line-574">   * Returns the filesystem of the hbase rootdir.</span>
-<span class="source-line-no">575</span><span id="line-575">   * @throws IOException from underlying FileSystem</span>
-<span class="source-line-no">576</span><span id="line-576">   */</span>
-<span class="source-line-no">577</span><span id="line-577">  public static FileSystem getCurrentFileSystem(Configuration conf) throws IOException {</span>
-<span class="source-line-no">578</span><span id="line-578">    return getRootDir(conf).getFileSystem(conf);</span>
-<span class="source-line-no">579</span><span id="line-579">  }</span>
-<span class="source-line-no">580</span><span id="line-580"></span>
-<span class="source-line-no">581</span><span id="line-581">  /**</span>
-<span class="source-line-no">582</span><span id="line-582">   * Calls fs.listStatus() and treats FileNotFoundException as non-fatal This accommodates</span>
-<span class="source-line-no">583</span><span id="line-583">   * differences between hadoop versions, where hadoop 1 does not throw a FileNotFoundException, and</span>
-<span class="source-line-no">584</span><span id="line-584">   * return an empty FileStatus[] while Hadoop 2 will throw FileNotFoundException. Where possible,</span>
-<span class="source-line-no">585</span><span id="line-585">   * prefer FSUtils#listStatusWithStatusFilter(FileSystem, Path, FileStatusFilter) instead.</span>
-<span class="source-line-no">586</span><span id="line-586">   * @param fs     file system</span>
-<span class="source-line-no">587</span><span id="line-587">   * @param dir    directory</span>
-<span class="source-line-no">588</span><span id="line-588">   * @param filter path filter</span>
-<span class="source-line-no">589</span><span id="line-589">   * @return null if dir is empty or doesn't exist, otherwise FileStatus array</span>
-<span class="source-line-no">590</span><span id="line-590">   */</span>
-<span class="source-line-no">591</span><span id="line-591">  public static FileStatus[] listStatus(final FileSystem fs, final Path dir,</span>
-<span class="source-line-no">592</span><span id="line-592">    final PathFilter filter) throws IOException {</span>
-<span class="source-line-no">593</span><span id="line-593">    FileStatus[] status = null;</span>
-<span class="source-line-no">594</span><span id="line-594">    try {</span>
-<span class="source-line-no">595</span><span id="line-595">      status = filter == null ? fs.listStatus(dir) : fs.listStatus(dir, filter);</span>
-<span class="source-line-no">596</span><span id="line-596">    } catch (FileNotFoundException fnfe) {</span>
-<span class="source-line-no">597</span><span id="line-597">      // if directory doesn't exist, return null</span>
-<span class="source-line-no">598</span><span id="line-598">      if (LOG.isTraceEnabled()) {</span>
-<span class="source-line-no">599</span><span id="line-599">        LOG.trace("{} doesn't exist", dir);</span>
-<span class="source-line-no">600</span><span id="line-600">      }</span>
-<span class="source-line-no">601</span><span id="line-601">    }</span>
-<span class="source-line-no">602</span><span id="line-602">    if (status == null || status.length &lt; 1) {</span>
-<span class="source-line-no">603</span><span id="line-603">      return null;</span>
-<span class="source-line-no">604</span><span id="line-604">    }</span>
-<span class="source-line-no">605</span><span id="line-605">    return status;</span>
-<span class="source-line-no">606</span><span id="line-606">  }</span>
-<span class="source-line-no">607</span><span id="line-607"></span>
-<span class="source-line-no">608</span><span id="line-608">  /**</span>
-<span class="source-line-no">609</span><span id="line-609">   * Calls fs.listStatus() and treats FileNotFoundException as non-fatal This would accommodates</span>
-<span class="source-line-no">610</span><span id="line-610">   * differences between hadoop versions</span>
-<span class="source-line-no">611</span><span id="line-611">   * @param fs  file system</span>
-<span class="source-line-no">612</span><span id="line-612">   * @param dir directory</span>
-<span class="source-line-no">613</span><span id="line-613">   * @return null if dir is empty or doesn't exist, otherwise FileStatus array</span>
-<span class="source-line-no">614</span><span id="line-614">   */</span>
-<span class="source-line-no">615</span><span id="line-615">  public static FileStatus[] listStatus(final FileSystem fs, final Path dir) throws IOException {</span>
-<span class="source-line-no">616</span><span id="line-616">    return listStatus(fs, dir, null);</span>
-<span class="source-line-no">617</span><span id="line-617">  }</span>
-<span class="source-line-no">618</span><span id="line-618"></span>
-<span class="source-line-no">619</span><span id="line-619">  /**</span>
-<span class="source-line-no">620</span><span id="line-620">   * Calls fs.listFiles() to get FileStatus and BlockLocations together for reducing rpc call</span>
-<span class="source-line-no">621</span><span id="line-621">   * @param fs  file system</span>
-<span class="source-line-no">622</span><span id="line-622">   * @param dir directory</span>
-<span class="source-line-no">623</span><span id="line-623">   * @return LocatedFileStatus list</span>
-<span class="source-line-no">624</span><span id="line-624">   */</span>
-<span class="source-line-no">625</span><span id="line-625">  public static List&lt;LocatedFileStatus&gt; listLocatedStatus(final FileSystem fs, final Path dir)</span>
-<span class="source-line-no">626</span><span id="line-626">    throws IOException {</span>
-<span class="source-line-no">627</span><span id="line-627">    List&lt;LocatedFileStatus&gt; status = null;</span>
-<span class="source-line-no">628</span><span id="line-628">    try {</span>
-<span class="source-line-no">629</span><span id="line-629">      RemoteIterator&lt;LocatedFileStatus&gt; locatedFileStatusRemoteIterator = fs.listFiles(dir, false);</span>
-<span class="source-line-no">630</span><span id="line-630">      while (locatedFileStatusRemoteIterator.hasNext()) {</span>
-<span class="source-line-no">631</span><span id="line-631">        if (status == null) {</span>
-<span class="source-line-no">632</span><span id="line-632">          status = Lists.newArrayList();</span>
-<span class="source-line-no">633</span><span id="line-633">        }</span>
-<span class="source-line-no">634</span><span id="line-634">        status.add(locatedFileStatusRemoteIterator.next());</span>
-<span class="source-line-no">635</span><span id="line-635">      }</span>
-<span class="source-line-no">636</span><span id="line-636">    } catch (FileNotFoundException fnfe) {</span>
-<span class="source-line-no">637</span><span id="line-637">      // if directory doesn't exist, return null</span>
-<span class="source-line-no">638</span><span id="line-638">      if (LOG.isTraceEnabled()) {</span>
-<span class="source-line-no">639</span><span id="line-639">        LOG.trace("{} doesn't exist", dir);</span>
-<span class="source-line-no">640</span><span id="line-640">      }</span>
-<span class="source-line-no">641</span><span id="line-641">    }</span>
-<span class="source-line-no">642</span><span id="line-642">    return status;</span>
-<span class="source-line-no">643</span><span id="line-643">  }</span>
-<span class="source-line-no">644</span><span id="line-644"></span>
-<span class="source-line-no">645</span><span id="line-645">  /**</span>
-<span class="source-line-no">646</span><span id="line-646">   * Calls fs.delete() and returns the value returned by the fs.delete()</span>
-<span class="source-line-no">647</span><span id="line-647">   * @param fs        must not be null</span>
-<span class="source-line-no">648</span><span id="line-648">   * @param path      must not be null</span>
-<span class="source-line-no">649</span><span id="line-649">   * @param recursive delete tree rooted at path</span>
-<span class="source-line-no">650</span><span id="line-650">   * @return the value returned by the fs.delete()</span>
-<span class="source-line-no">651</span><span id="line-651">   * @throws IOException from underlying FileSystem</span>
-<span class="source-line-no">652</span><span id="line-652">   */</span>
-<span class="source-line-no">653</span><span id="line-653">  public static boolean delete(final FileSystem fs, final Path path, final boolean recursive)</span>
-<span class="source-line-no">654</span><span id="line-654">    throws IOException {</span>
-<span class="source-line-no">655</span><span id="line-655">    return fs.delete(path, recursive);</span>
-<span class="source-line-no">656</span><span id="line-656">  }</span>
-<span class="source-line-no">657</span><span id="line-657"></span>
-<span class="source-line-no">658</span><span id="line-658">  /**</span>
-<span class="source-line-no">659</span><span id="line-659">   * Calls fs.exists(). Checks if the specified path exists</span>
-<span class="source-line-no">660</span><span id="line-660">   * @param fs   must not be null</span>
-<span class="source-line-no">661</span><span id="line-661">   * @param path must not be null</span>
-<span class="source-line-no">662</span><span id="line-662">   * @return the value returned by fs.exists()</span>
-<span class="source-line-no">663</span><span id="line-663">   * @throws IOException from underlying FileSystem</span>
-<span class="source-line-no">664</span><span id="line-664">   */</span>
-<span class="source-line-no">665</span><span id="line-665">  public static boolean isExists(final FileSystem fs, final Path path) throws IOException {</span>
-<span class="source-line-no">666</span><span id="line-666">    return fs.exists(path);</span>
-<span class="source-line-no">667</span><span id="line-667">  }</span>
-<span class="source-line-no">668</span><span id="line-668"></span>
-<span class="source-line-no">669</span><span id="line-669">  /**</span>
-<span class="source-line-no">670</span><span id="line-670">   * Log the current state of the filesystem from a certain root directory</span>
-<span class="source-line-no">671</span><span id="line-671">   * @param fs   filesystem to investigate</span>
-<span class="source-line-no">672</span><span id="line-672">   * @param root root file/directory to start logging from</span>
-<span class="source-line-no">673</span><span id="line-673">   * @param log  log to output information</span>
-<span class="source-line-no">674</span><span id="line-674">   * @throws IOException if an unexpected exception occurs</span>
-<span class="source-line-no">675</span><span id="line-675">   */</span>
-<span class="source-line-no">676</span><span id="line-676">  public static void logFileSystemState(final FileSystem fs, final Path root, Logger log)</span>
-<span class="source-line-no">677</span><span id="line-677">    throws IOException {</span>
-<span class="source-line-no">678</span><span id="line-678">    log.debug("File system contents for path {}", root);</span>
-<span class="source-line-no">679</span><span id="line-679">    logFSTree(log, fs, root, "|-");</span>
-<span class="source-line-no">680</span><span id="line-680">  }</span>
-<span class="source-line-no">681</span><span id="line-681"></span>
-<span class="source-line-no">682</span><span id="line-682">  /**</span>
-<span class="source-line-no">683</span><span id="line-683">   * Recursive helper to log the state of the FS</span>
-<span class="source-line-no">684</span><span id="line-684">   * @see #logFileSystemState(FileSystem, Path, Logger)</span>
-<span class="source-line-no">685</span><span id="line-685">   */</span>
-<span class="source-line-no">686</span><span id="line-686">  private static void logFSTree(Logger log, final FileSystem fs, final Path root, String prefix)</span>
-<span class="source-line-no">687</span><span id="line-687">    throws IOException {</span>
-<span class="source-line-no">688</span><span id="line-688">    FileStatus[] files = listStatus(fs, root, null);</span>
-<span class="source-line-no">689</span><span id="line-689">    if (files == null) {</span>
-<span class="source-line-no">690</span><span id="line-690">      return;</span>
-<span class="source-line-no">691</span><span id="line-691">    }</span>
-<span class="source-line-no">692</span><span id="line-692"></span>
-<span class="source-line-no">693</span><span id="line-693">    for (FileStatus file : files) {</span>
-<span class="source-line-no">694</span><span id="line-694">      if (file.isDirectory()) {</span>
-<span class="source-line-no">695</span><span id="line-695">        log.debug(prefix + file.getPath().getName() + "/");</span>
-<span class="source-line-no">696</span><span id="line-696">        logFSTree(log, fs, file.getPath(), prefix + "---");</span>
-<span class="source-line-no">697</span><span id="line-697">      } else {</span>
-<span class="source-line-no">698</span><span id="line-698">        log.debug(prefix + file.getPath().getName());</span>
-<span class="source-line-no">699</span><span id="line-699">      }</span>
-<span class="source-line-no">700</span><span id="line-700">    }</span>
-<span class="source-line-no">701</span><span id="line-701">  }</span>
-<span class="source-line-no">702</span><span id="line-702"></span>
-<span class="source-line-no">703</span><span id="line-703">  public static boolean renameAndSetModifyTime(final FileSystem fs, final Path src, final Path dest)</span>
-<span class="source-line-no">704</span><span id="line-704">    throws IOException {</span>
-<span class="source-line-no">705</span><span id="line-705">    // set the modify time for TimeToLive Cleaner</span>
-<span class="source-line-no">706</span><span id="line-706">    fs.setTimes(src, EnvironmentEdgeManager.currentTime(), -1);</span>
-<span class="source-line-no">707</span><span id="line-707">    return fs.rename(src, dest);</span>
+<span class="source-line-no">045</span><span id="line-45">import org.apache.hbase.thirdparty.com.google.common.collect.Lists;</span>
+<span class="source-line-no">046</span><span id="line-46"></span>
+<span class="source-line-no">047</span><span id="line-47">/**</span>
+<span class="source-line-no">048</span><span id="line-48"> * Utility methods for interacting with the underlying file system.</span>
+<span class="source-line-no">049</span><span id="line-49"> * &lt;p/&gt;</span>
+<span class="source-line-no">050</span><span id="line-50"> * Note that {@link #setStoragePolicy(FileSystem, Path, String)} is tested in TestFSUtils and</span>
+<span class="source-line-no">051</span><span id="line-51"> * pre-commit will run the hbase-server tests if there's code change in this class. See</span>
+<span class="source-line-no">052</span><span id="line-52"> * &lt;a href="https://issues.apache.org/jira/browse/HBASE-20838"&gt;HBASE-20838&lt;/a&gt; for more details.</span>
+<span class="source-line-no">053</span><span id="line-53"> */</span>
+<span class="source-line-no">054</span><span id="line-54">@InterfaceAudience.Private</span>
+<span class="source-line-no">055</span><span id="line-55">public final class CommonFSUtils {</span>
+<span class="source-line-no">056</span><span id="line-56">  private static final Logger LOG = LoggerFactory.getLogger(CommonFSUtils.class);</span>
+<span class="source-line-no">057</span><span id="line-57"></span>
+<span class="source-line-no">058</span><span id="line-58">  /** Parameter name for HBase WAL directory */</span>
+<span class="source-line-no">059</span><span id="line-59">  public static final String HBASE_WAL_DIR = "hbase.wal.dir";</span>
+<span class="source-line-no">060</span><span id="line-60"></span>
+<span class="source-line-no">061</span><span id="line-61">  /** Parameter to disable stream capability enforcement checks */</span>
+<span class="source-line-no">062</span><span id="line-62">  public static final String UNSAFE_STREAM_CAPABILITY_ENFORCE =</span>
+<span class="source-line-no">063</span><span id="line-63">    "hbase.unsafe.stream.capability.enforce";</span>
+<span class="source-line-no">064</span><span id="line-64"></span>
+<span class="source-line-no">065</span><span id="line-65">  /** Full access permissions (starting point for a umask) */</span>
+<span class="source-line-no">066</span><span id="line-66">  public static final String FULL_RWX_PERMISSIONS = "777";</span>
+<span class="source-line-no">067</span><span id="line-67"></span>
+<span class="source-line-no">068</span><span id="line-68">  private CommonFSUtils() {</span>
+<span class="source-line-no">069</span><span id="line-69">  }</span>
+<span class="source-line-no">070</span><span id="line-70"></span>
+<span class="source-line-no">071</span><span id="line-71">  /**</span>
+<span class="source-line-no">072</span><span id="line-72">   * Compare of path component. Does not consider schema; i.e. if schemas different but</span>
+<span class="source-line-no">073</span><span id="line-73">   * &lt;code&gt;path&lt;/code&gt; starts with &lt;code&gt;rootPath&lt;/code&gt;, then the function returns true</span>
+<span class="source-line-no">074</span><span id="line-74">   * @param rootPath value to check for</span>
+<span class="source-line-no">075</span><span id="line-75">   * @param path     subject to check</span>
+<span class="source-line-no">076</span><span id="line-76">   * @return True if &lt;code&gt;path&lt;/code&gt; starts with &lt;code&gt;rootPath&lt;/code&gt;</span>
+<span class="source-line-no">077</span><span id="line-77">   */</span>
+<span class="source-line-no">078</span><span id="line-78">  public static boolean isStartingWithPath(final Path rootPath, final String path) {</span>
+<span class="source-line-no">079</span><span id="line-79">    String uriRootPath = rootPath.toUri().getPath();</span>
+<span class="source-line-no">080</span><span id="line-80">    String tailUriPath = new Path(path).toUri().getPath();</span>
+<span class="source-line-no">081</span><span id="line-81">    return tailUriPath.startsWith(uriRootPath);</span>
+<span class="source-line-no">082</span><span id="line-82">  }</span>
+<span class="source-line-no">083</span><span id="line-83"></span>
+<span class="source-line-no">084</span><span id="line-84">  /**</span>
+<span class="source-line-no">085</span><span id="line-85">   * Compare path component of the Path URI; e.g. if hdfs://a/b/c and /a/b/c, it will compare the</span>
+<span class="source-line-no">086</span><span id="line-86">   * '/a/b/c' part. Does not consider schema; i.e. if schemas different but path or subpath matches,</span>
+<span class="source-line-no">087</span><span id="line-87">   * the two will equate.</span>
+<span class="source-line-no">088</span><span id="line-88">   * @param pathToSearch Path we will be trying to match against.</span>
+<span class="source-line-no">089</span><span id="line-89">   * @param pathTail     what to match</span>
+<span class="source-line-no">090</span><span id="line-90">   * @return True if &lt;code&gt;pathTail&lt;/code&gt; is tail on the path of &lt;code&gt;pathToSearch&lt;/code&gt;</span>
+<span class="source-line-no">091</span><span id="line-91">   */</span>
+<span class="source-line-no">092</span><span id="line-92">  public static boolean isMatchingTail(final Path pathToSearch, String pathTail) {</span>
+<span class="source-line-no">093</span><span id="line-93">    return isMatchingTail(pathToSearch, new Path(pathTail));</span>
+<span class="source-line-no">094</span><span id="line-94">  }</span>
+<span class="source-line-no">095</span><span id="line-95"></span>
+<span class="source-line-no">096</span><span id="line-96">  /**</span>
+<span class="source-line-no">097</span><span id="line-97">   * Compare path component of the Path URI; e.g. if hdfs://a/b/c and /a/b/c, it will compare the</span>
+<span class="source-line-no">098</span><span id="line-98">   * '/a/b/c' part. If you passed in 'hdfs://a/b/c and b/c, it would return true. Does not consider</span>
+<span class="source-line-no">099</span><span id="line-99">   * schema; i.e. if schemas different but path or subpath matches, the two will equate.</span>
+<span class="source-line-no">100</span><span id="line-100">   * @param pathToSearch Path we will be trying to match agains against</span>
+<span class="source-line-no">101</span><span id="line-101">   * @param pathTail     what to match</span>
+<span class="source-line-no">102</span><span id="line-102">   * @return True if &lt;code&gt;pathTail&lt;/code&gt; is tail on the path of &lt;code&gt;pathToSearch&lt;/code&gt;</span>
+<span class="source-line-no">103</span><span id="line-103">   */</span>
+<span class="source-line-no">104</span><span id="line-104">  public static boolean isMatchingTail(final Path pathToSearch, final Path pathTail) {</span>
+<span class="source-line-no">105</span><span id="line-105">    if (pathToSearch.depth() != pathTail.depth()) {</span>
+<span class="source-line-no">106</span><span id="line-106">      return false;</span>
+<span class="source-line-no">107</span><span id="line-107">    }</span>
+<span class="source-line-no">108</span><span id="line-108">    Path tailPath = pathTail;</span>
+<span class="source-line-no">109</span><span id="line-109">    String tailName;</span>
+<span class="source-line-no">110</span><span id="line-110">    Path toSearch = pathToSearch;</span>
+<span class="source-line-no">111</span><span id="line-111">    String toSearchName;</span>
+<span class="source-line-no">112</span><span id="line-112">    boolean result = false;</span>
+<span class="source-line-no">113</span><span id="line-113">    do {</span>
+<span class="source-line-no">114</span><span id="line-114">      tailName = tailPath.getName();</span>
+<span class="source-line-no">115</span><span id="line-115">      if (tailName == null || tailName.length() &lt;= 0) {</span>
+<span class="source-line-no">116</span><span id="line-116">        result = true;</span>
+<span class="source-line-no">117</span><span id="line-117">        break;</span>
+<span class="source-line-no">118</span><span id="line-118">      }</span>
+<span class="source-line-no">119</span><span id="line-119">      toSearchName = toSearch.getName();</span>
+<span class="source-line-no">120</span><span id="line-120">      if (toSearchName == null || toSearchName.length() &lt;= 0) {</span>
+<span class="source-line-no">121</span><span id="line-121">        break;</span>
+<span class="source-line-no">122</span><span id="line-122">      }</span>
+<span class="source-line-no">123</span><span id="line-123">      // Move up a parent on each path for next go around. Path doesn't let us go off the end.</span>
+<span class="source-line-no">124</span><span id="line-124">      tailPath = tailPath.getParent();</span>
+<span class="source-line-no">125</span><span id="line-125">      toSearch = toSearch.getParent();</span>
+<span class="source-line-no">126</span><span id="line-126">    } while (tailName.equals(toSearchName));</span>
+<span class="source-line-no">127</span><span id="line-127">    return result;</span>
+<span class="source-line-no">128</span><span id="line-128">  }</span>
+<span class="source-line-no">129</span><span id="line-129"></span>
+<span class="source-line-no">130</span><span id="line-130">  /**</span>
+<span class="source-line-no">131</span><span id="line-131">   * Delete if exists.</span>
+<span class="source-line-no">132</span><span id="line-132">   * @param fs  filesystem object</span>
+<span class="source-line-no">133</span><span id="line-133">   * @param dir directory to delete</span>
+<span class="source-line-no">134</span><span id="line-134">   * @return True if deleted &lt;code&gt;dir&lt;/code&gt;</span>
+<span class="source-line-no">135</span><span id="line-135">   * @throws IOException e</span>
+<span class="source-line-no">136</span><span id="line-136">   */</span>
+<span class="source-line-no">137</span><span id="line-137">  public static boolean deleteDirectory(final FileSystem fs, final Path dir) throws IOException {</span>
+<span class="source-line-no">138</span><span id="line-138">    return fs.exists(dir) &amp;&amp; fs.delete(dir, true);</span>
+<span class="source-line-no">139</span><span id="line-139">  }</span>
+<span class="source-line-no">140</span><span id="line-140"></span>
+<span class="source-line-no">141</span><span id="line-141">  /**</span>
+<span class="source-line-no">142</span><span id="line-142">   * Return the number of bytes that large input files should be optimally be split into to minimize</span>
+<span class="source-line-no">143</span><span id="line-143">   * i/o time.</span>
+<span class="source-line-no">144</span><span id="line-144">   * @param fs filesystem object</span>
+<span class="source-line-no">145</span><span id="line-145">   * @return the default block size for the path's filesystem</span>
+<span class="source-line-no">146</span><span id="line-146">   */</span>
+<span class="source-line-no">147</span><span id="line-147">  public static long getDefaultBlockSize(final FileSystem fs, final Path path) {</span>
+<span class="source-line-no">148</span><span id="line-148">    return fs.getDefaultBlockSize(path);</span>
+<span class="source-line-no">149</span><span id="line-149">  }</span>
+<span class="source-line-no">150</span><span id="line-150"></span>
+<span class="source-line-no">151</span><span id="line-151">  /*</span>
+<span class="source-line-no">152</span><span id="line-152">   * Get the default replication.</span>
+<span class="source-line-no">153</span><span id="line-153">   * @param fs filesystem object</span>
+<span class="source-line-no">154</span><span id="line-154">   * @param f path of file</span>
+<span class="source-line-no">155</span><span id="line-155">   * @return default replication for the path's filesystem</span>
+<span class="source-line-no">156</span><span id="line-156">   */</span>
+<span class="source-line-no">157</span><span id="line-157">  public static short getDefaultReplication(final FileSystem fs, final Path path) {</span>
+<span class="source-line-no">158</span><span id="line-158">    return fs.getDefaultReplication(path);</span>
+<span class="source-line-no">159</span><span id="line-159">  }</span>
+<span class="source-line-no">160</span><span id="line-160"></span>
+<span class="source-line-no">161</span><span id="line-161">  /**</span>
+<span class="source-line-no">162</span><span id="line-162">   * Returns the default buffer size to use during writes. The size of the buffer should probably be</span>
+<span class="source-line-no">163</span><span id="line-163">   * a multiple of hardware page size (4096 on Intel x86), and it determines how much data is</span>
+<span class="source-line-no">164</span><span id="line-164">   * buffered during read and write operations.</span>
+<span class="source-line-no">165</span><span id="line-165">   * @param fs filesystem object</span>
+<span class="source-line-no">166</span><span id="line-166">   * @return default buffer size to use during writes</span>
+<span class="source-line-no">167</span><span id="line-167">   */</span>
+<span class="source-line-no">168</span><span id="line-168">  public static int getDefaultBufferSize(final FileSystem fs) {</span>
+<span class="source-line-no">169</span><span id="line-169">    return fs.getConf().getInt("io.file.buffer.size", 4096);</span>
+<span class="source-line-no">170</span><span id="line-170">  }</span>
+<span class="source-line-no">171</span><span id="line-171"></span>
+<span class="source-line-no">172</span><span id="line-172">  /**</span>
+<span class="source-line-no">173</span><span id="line-173">   * Create the specified file on the filesystem. By default, this will:</span>
+<span class="source-line-no">174</span><span id="line-174">   * &lt;ol&gt;</span>
+<span class="source-line-no">175</span><span id="line-175">   * &lt;li&gt;apply the umask in the configuration (if it is enabled)&lt;/li&gt;</span>
+<span class="source-line-no">176</span><span id="line-176">   * &lt;li&gt;use the fs configured buffer size (or 4096 if not set)&lt;/li&gt;</span>
+<span class="source-line-no">177</span><span id="line-177">   * &lt;li&gt;use the default replication&lt;/li&gt;</span>
+<span class="source-line-no">178</span><span id="line-178">   * &lt;li&gt;use the default block size&lt;/li&gt;</span>
+<span class="source-line-no">179</span><span id="line-179">   * &lt;li&gt;not track progress&lt;/li&gt;</span>
+<span class="source-line-no">180</span><span id="line-180">   * &lt;/ol&gt;</span>
+<span class="source-line-no">181</span><span id="line-181">   * @param fs        {@link FileSystem} on which to write the file</span>
+<span class="source-line-no">182</span><span id="line-182">   * @param path      {@link Path} to the file to write</span>
+<span class="source-line-no">183</span><span id="line-183">   * @param perm      intial permissions</span>
+<span class="source-line-no">184</span><span id="line-184">   * @param overwrite Whether or not the created file should be overwritten.</span>
+<span class="source-line-no">185</span><span id="line-185">   * @return output stream to the created file</span>
+<span class="source-line-no">186</span><span id="line-186">   * @throws IOException if the file cannot be created</span>
+<span class="source-line-no">187</span><span id="line-187">   */</span>
+<span class="source-line-no">188</span><span id="line-188">  public static FSDataOutputStream create(FileSystem fs, Path path, FsPermission perm,</span>
+<span class="source-line-no">189</span><span id="line-189">    boolean overwrite) throws IOException {</span>
+<span class="source-line-no">190</span><span id="line-190">    if (LOG.isTraceEnabled()) {</span>
+<span class="source-line-no">191</span><span id="line-191">      LOG.trace("Creating file={} with permission={}, overwrite={}", path, perm, overwrite);</span>
+<span class="source-line-no">192</span><span id="line-192">    }</span>
+<span class="source-line-no">193</span><span id="line-193">    return fs.create(path, perm, overwrite, getDefaultBufferSize(fs),</span>
+<span class="source-line-no">194</span><span id="line-194">      getDefaultReplication(fs, path), getDefaultBlockSize(fs, path), null);</span>
+<span class="source-line-no">195</span><span id="line-195">  }</span>
+<span class="source-line-no">196</span><span id="line-196"></span>
+<span class="source-line-no">197</span><span id="line-197">  /**</span>
+<span class="source-line-no">198</span><span id="line-198">   * Get the file permissions specified in the configuration, if they are enabled.</span>
+<span class="source-line-no">199</span><span id="line-199">   * @param fs               filesystem that the file will be created on.</span>
+<span class="source-line-no">200</span><span id="line-200">   * @param conf             configuration to read for determining if permissions are enabled and</span>
+<span class="source-line-no">201</span><span id="line-201">   *                         which to use</span>
+<span class="source-line-no">202</span><span id="line-202">   * @param permssionConfKey property key in the configuration to use when finding the permission</span>
+<span class="source-line-no">203</span><span id="line-203">   * @return the permission to use when creating a new file on the fs. If special permissions are</span>
+<span class="source-line-no">204</span><span id="line-204">   *         not specified in the configuration, then the default permissions on the the fs will be</span>
+<span class="source-line-no">205</span><span id="line-205">   *         returned.</span>
+<span class="source-line-no">206</span><span id="line-206">   */</span>
+<span class="source-line-no">207</span><span id="line-207">  public static FsPermission getFilePermissions(final FileSystem fs, final Configuration conf,</span>
+<span class="source-line-no">208</span><span id="line-208">    final String permssionConfKey) {</span>
+<span class="source-line-no">209</span><span id="line-209">    boolean enablePermissions = conf.getBoolean(HConstants.ENABLE_DATA_FILE_UMASK, false);</span>
+<span class="source-line-no">210</span><span id="line-210"></span>
+<span class="source-line-no">211</span><span id="line-211">    if (enablePermissions) {</span>
+<span class="source-line-no">212</span><span id="line-212">      try {</span>
+<span class="source-line-no">213</span><span id="line-213">        FsPermission perm = new FsPermission(FULL_RWX_PERMISSIONS);</span>
+<span class="source-line-no">214</span><span id="line-214">        // make sure that we have a mask, if not, go default.</span>
+<span class="source-line-no">215</span><span id="line-215">        String mask = conf.get(permssionConfKey);</span>
+<span class="source-line-no">216</span><span id="line-216">        if (mask == null) {</span>
+<span class="source-line-no">217</span><span id="line-217">          return FsPermission.getFileDefault();</span>
+<span class="source-line-no">218</span><span id="line-218">        }</span>
+<span class="source-line-no">219</span><span id="line-219">        // appy the umask</span>
+<span class="source-line-no">220</span><span id="line-220">        FsPermission umask = new FsPermission(mask);</span>
+<span class="source-line-no">221</span><span id="line-221">        return perm.applyUMask(umask);</span>
+<span class="source-line-no">222</span><span id="line-222">      } catch (IllegalArgumentException e) {</span>
+<span class="source-line-no">223</span><span id="line-223">        LOG.warn("Incorrect umask attempted to be created: " + conf.get(permssionConfKey)</span>
+<span class="source-line-no">224</span><span id="line-224">          + ", using default file permissions.", e);</span>
+<span class="source-line-no">225</span><span id="line-225">        return FsPermission.getFileDefault();</span>
+<span class="source-line-no">226</span><span id="line-226">      }</span>
+<span class="source-line-no">227</span><span id="line-227">    }</span>
+<span class="source-line-no">228</span><span id="line-228">    return FsPermission.getFileDefault();</span>
+<span class="source-line-no">229</span><span id="line-229">  }</span>
+<span class="source-line-no">230</span><span id="line-230"></span>
+<span class="source-line-no">231</span><span id="line-231">  /**</span>
+<span class="source-line-no">232</span><span id="line-232">   * Verifies root directory path is a valid URI with a scheme</span>
+<span class="source-line-no">233</span><span id="line-233">   * @param root root directory path</span>
+<span class="source-line-no">234</span><span id="line-234">   * @return Passed &lt;code&gt;root&lt;/code&gt; argument.</span>
+<span class="source-line-no">235</span><span id="line-235">   * @throws IOException if not a valid URI with a scheme</span>
+<span class="source-line-no">236</span><span id="line-236">   */</span>
+<span class="source-line-no">237</span><span id="line-237">  public static Path validateRootPath(Path root) throws IOException {</span>
+<span class="source-line-no">238</span><span id="line-238">    try {</span>
+<span class="source-line-no">239</span><span id="line-239">      URI rootURI = new URI(root.toString());</span>
+<span class="source-line-no">240</span><span id="line-240">      String scheme = rootURI.getScheme();</span>
+<span class="source-line-no">241</span><span id="line-241">      if (scheme == null) {</span>
+<span class="source-line-no">242</span><span id="line-242">        throw new IOException("Root directory does not have a scheme");</span>
+<span class="source-line-no">243</span><span id="line-243">      }</span>
+<span class="source-line-no">244</span><span id="line-244">      return root;</span>
+<span class="source-line-no">245</span><span id="line-245">    } catch (URISyntaxException e) {</span>
+<span class="source-line-no">246</span><span id="line-246">      throw new IOException("Root directory path is not a valid " + "URI -- check your "</span>
+<span class="source-line-no">247</span><span id="line-247">        + HConstants.HBASE_DIR + " configuration", e);</span>
+<span class="source-line-no">248</span><span id="line-248">    }</span>
+<span class="source-line-no">249</span><span id="line-249">  }</span>
+<span class="source-line-no">250</span><span id="line-250"></span>
+<span class="source-line-no">251</span><span id="line-251">  /**</span>
+<span class="source-line-no">252</span><span id="line-252">   * Checks for the presence of the WAL log root path (using the provided conf object) in the given</span>
+<span class="source-line-no">253</span><span id="line-253">   * path. If it exists, this method removes it and returns the String representation of remaining</span>
+<span class="source-line-no">254</span><span id="line-254">   * relative path.</span>
+<span class="source-line-no">255</span><span id="line-255">   * @param path must not be null</span>
+<span class="source-line-no">256</span><span id="line-256">   * @param conf must not be null</span>
+<span class="source-line-no">257</span><span id="line-257">   * @return String representation of the remaining relative path</span>
+<span class="source-line-no">258</span><span id="line-258">   * @throws IOException from underlying filesystem</span>
+<span class="source-line-no">259</span><span id="line-259">   */</span>
+<span class="source-line-no">260</span><span id="line-260">  public static String removeWALRootPath(Path path, final Configuration conf) throws IOException {</span>
+<span class="source-line-no">261</span><span id="line-261">    Path root = getWALRootDir(conf);</span>
+<span class="source-line-no">262</span><span id="line-262">    String pathStr = path.toString();</span>
+<span class="source-line-no">263</span><span id="line-263">    // check that the path is absolute... it has the root path in it.</span>
+<span class="source-line-no">264</span><span id="line-264">    if (!pathStr.startsWith(root.toString())) {</span>
+<span class="source-line-no">265</span><span id="line-265">      return pathStr;</span>
+<span class="source-line-no">266</span><span id="line-266">    }</span>
+<span class="source-line-no">267</span><span id="line-267">    // if not, return as it is.</span>
+<span class="source-line-no">268</span><span id="line-268">    return pathStr.substring(root.toString().length() + 1);// remove the "/" too.</span>
+<span class="source-line-no">269</span><span id="line-269">  }</span>
+<span class="source-line-no">270</span><span id="line-270"></span>
+<span class="source-line-no">271</span><span id="line-271">  /**</span>
+<span class="source-line-no">272</span><span id="line-272">   * Return the 'path' component of a Path. In Hadoop, Path is a URI. This method returns the 'path'</span>
+<span class="source-line-no">273</span><span id="line-273">   * component of a Path's URI: e.g. If a Path is</span>
+<span class="source-line-no">274</span><span id="line-274">   * &lt;code&gt;hdfs://example.org:9000/hbase_trunk/TestTable/compaction.dir&lt;/code&gt;, this method returns</span>
+<span class="source-line-no">275</span><span id="line-275">   * &lt;code&gt;/hbase_trunk/TestTable/compaction.dir&lt;/code&gt;. This method is useful if you want to print</span>
+<span class="source-line-no">276</span><span id="line-276">   * out a Path without qualifying Filesystem instance.</span>
+<span class="source-line-no">277</span><span id="line-277">   * @param p Filesystem Path whose 'path' component we are to return.</span>
+<span class="source-line-no">278</span><span id="line-278">   * @return Path portion of the Filesystem</span>
+<span class="source-line-no">279</span><span id="line-279">   */</span>
+<span class="source-line-no">280</span><span id="line-280">  public static String getPath(Path p) {</span>
+<span class="source-line-no">281</span><span id="line-281">    return p.toUri().getPath();</span>
+<span class="source-line-no">282</span><span id="line-282">  }</span>
+<span class="source-line-no">283</span><span id="line-283"></span>
+<span class="source-line-no">284</span><span id="line-284">  /**</span>
+<span class="source-line-no">285</span><span id="line-285">   * Get the path for the root data directory</span>
+<span class="source-line-no">286</span><span id="line-286">   * @param c configuration</span>
+<span class="source-line-no">287</span><span id="line-287">   * @return {@link Path} to hbase root directory from configuration as a qualified Path.</span>
+<span class="source-line-no">288</span><span id="line-288">   * @throws IOException e</span>
+<span class="source-line-no">289</span><span id="line-289">   */</span>
+<span class="source-line-no">290</span><span id="line-290">  public static Path getRootDir(final Configuration c) throws IOException {</span>
+<span class="source-line-no">291</span><span id="line-291">    Path p = new Path(c.get(HConstants.HBASE_DIR));</span>
+<span class="source-line-no">292</span><span id="line-292">    FileSystem fs = p.getFileSystem(c);</span>
+<span class="source-line-no">293</span><span id="line-293">    return p.makeQualified(fs.getUri(), fs.getWorkingDirectory());</span>
+<span class="source-line-no">294</span><span id="line-294">  }</span>
+<span class="source-line-no">295</span><span id="line-295"></span>
+<span class="source-line-no">296</span><span id="line-296">  public static void setRootDir(final Configuration c, final Path root) {</span>
+<span class="source-line-no">297</span><span id="line-297">    c.set(HConstants.HBASE_DIR, root.toString());</span>
+<span class="source-line-no">298</span><span id="line-298">  }</span>
+<span class="source-line-no">299</span><span id="line-299"></span>
+<span class="source-line-no">300</span><span id="line-300">  public static void setFsDefault(final Configuration c, final Path root) {</span>
+<span class="source-line-no">301</span><span id="line-301">    c.set("fs.defaultFS", root.toString()); // for hadoop 0.21+</span>
+<span class="source-line-no">302</span><span id="line-302">  }</span>
+<span class="source-line-no">303</span><span id="line-303"></span>
+<span class="source-line-no">304</span><span id="line-304">  public static void setFsDefault(final Configuration c, final String uri) {</span>
+<span class="source-line-no">305</span><span id="line-305">    c.set("fs.defaultFS", uri); // for hadoop 0.21+</span>
+<span class="source-line-no">306</span><span id="line-306">  }</span>
+<span class="source-line-no">307</span><span id="line-307"></span>
+<span class="source-line-no">308</span><span id="line-308">  public static FileSystem getRootDirFileSystem(final Configuration c) throws IOException {</span>
+<span class="source-line-no">309</span><span id="line-309">    Path p = getRootDir(c);</span>
+<span class="source-line-no">310</span><span id="line-310">    return p.getFileSystem(c);</span>
+<span class="source-line-no">311</span><span id="line-311">  }</span>
+<span class="source-line-no">312</span><span id="line-312"></span>
+<span class="source-line-no">313</span><span id="line-313">  /**</span>
+<span class="source-line-no">314</span><span id="line-314">   * Get the path for the root directory for WAL data</span>
+<span class="source-line-no">315</span><span id="line-315">   * @param c configuration</span>
+<span class="source-line-no">316</span><span id="line-316">   * @return {@link Path} to hbase log root directory: e.g. {@value HBASE_WAL_DIR} from</span>
+<span class="source-line-no">317</span><span id="line-317">   *         configuration as a qualified Path. Defaults to HBase root dir.</span>
+<span class="source-line-no">318</span><span id="line-318">   * @throws IOException e</span>
+<span class="source-line-no">319</span><span id="line-319">   */</span>
+<span class="source-line-no">320</span><span id="line-320">  public static Path getWALRootDir(final Configuration c) throws IOException {</span>
+<span class="source-line-no">321</span><span id="line-321">    Path p = new Path(c.get(HBASE_WAL_DIR, c.get(HConstants.HBASE_DIR)));</span>
+<span class="source-line-no">322</span><span id="line-322">    if (!isValidWALRootDir(p, c)) {</span>
+<span class="source-line-no">323</span><span id="line-323">      return getRootDir(c);</span>
+<span class="source-line-no">324</span><span id="line-324">    }</span>
+<span class="source-line-no">325</span><span id="line-325">    FileSystem fs = p.getFileSystem(c);</span>
+<span class="source-line-no">326</span><span id="line-326">    return p.makeQualified(fs.getUri(), fs.getWorkingDirectory());</span>
+<span class="source-line-no">327</span><span id="line-327">  }</span>
+<span class="source-line-no">328</span><span id="line-328"></span>
+<span class="source-line-no">329</span><span id="line-329">  /**</span>
+<span class="source-line-no">330</span><span id="line-330">   * Returns the URI in the string format</span>
+<span class="source-line-no">331</span><span id="line-331">   * @param c configuration</span>
+<span class="source-line-no">332</span><span id="line-332">   * @param p path</span>
+<span class="source-line-no">333</span><span id="line-333">   * @return - the URI's to string format</span>
+<span class="source-line-no">334</span><span id="line-334">   */</span>
+<span class="source-line-no">335</span><span id="line-335">  public static String getDirUri(final Configuration c, Path p) throws IOException {</span>
+<span class="source-line-no">336</span><span id="line-336">    if (p.toUri().getScheme() != null) {</span>
+<span class="source-line-no">337</span><span id="line-337">      return p.toUri().toString();</span>
+<span class="source-line-no">338</span><span id="line-338">    }</span>
+<span class="source-line-no">339</span><span id="line-339">    return null;</span>
+<span class="source-line-no">340</span><span id="line-340">  }</span>
+<span class="source-line-no">341</span><span id="line-341"></span>
+<span class="source-line-no">342</span><span id="line-342">  public static void setWALRootDir(final Configuration c, final Path root) {</span>
+<span class="source-line-no">343</span><span id="line-343">    c.set(HBASE_WAL_DIR, root.toString());</span>
+<span class="source-line-no">344</span><span id="line-344">  }</span>
+<span class="source-line-no">345</span><span id="line-345"></span>
+<span class="source-line-no">346</span><span id="line-346">  public static FileSystem getWALFileSystem(final Configuration c) throws IOException {</span>
+<span class="source-line-no">347</span><span id="line-347">    Path p = getWALRootDir(c);</span>
+<span class="source-line-no">348</span><span id="line-348">    FileSystem fs = p.getFileSystem(c);</span>
+<span class="source-line-no">349</span><span id="line-349">    // hadoop-core does fs caching, so need to propagate this if set</span>
+<span class="source-line-no">350</span><span id="line-350">    String enforceStreamCapability = c.get(UNSAFE_STREAM_CAPABILITY_ENFORCE);</span>
+<span class="source-line-no">351</span><span id="line-351">    if (enforceStreamCapability != null) {</span>
+<span class="source-line-no">352</span><span id="line-352">      fs.getConf().set(UNSAFE_STREAM_CAPABILITY_ENFORCE, enforceStreamCapability);</span>
+<span class="source-line-no">353</span><span id="line-353">    }</span>
+<span class="source-line-no">354</span><span id="line-354">    return fs;</span>
+<span class="source-line-no">355</span><span id="line-355">  }</span>
+<span class="source-line-no">356</span><span id="line-356"></span>
+<span class="source-line-no">357</span><span id="line-357">  private static boolean isValidWALRootDir(Path walDir, final Configuration c) throws IOException {</span>
+<span class="source-line-no">358</span><span id="line-358">    Path rootDir = getRootDir(c);</span>
+<span class="source-line-no">359</span><span id="line-359">    FileSystem fs = walDir.getFileSystem(c);</span>
+<span class="source-line-no">360</span><span id="line-360">    Path qualifiedWalDir = walDir.makeQualified(fs.getUri(), fs.getWorkingDirectory());</span>
+<span class="source-line-no">361</span><span id="line-361">    if (!qualifiedWalDir.equals(rootDir)) {</span>
+<span class="source-line-no">362</span><span id="line-362">      if (qualifiedWalDir.toString().startsWith(rootDir.toString() + "/")) {</span>
+<span class="source-line-no">363</span><span id="line-363">        throw new IllegalStateException("Illegal WAL directory specified. "</span>
+<span class="source-line-no">364</span><span id="line-364">          + "WAL directories are not permitted to be under root directory: rootDir="</span>
+<span class="source-line-no">365</span><span id="line-365">          + rootDir.toString() + ", qualifiedWALDir=" + qualifiedWalDir);</span>
+<span class="source-line-no">366</span><span id="line-366">      }</span>
+<span class="source-line-no">367</span><span id="line-367">    }</span>
+<span class="source-line-no">368</span><span id="line-368">    return true;</span>
+<span class="source-line-no">369</span><span id="line-369">  }</span>
+<span class="source-line-no">370</span><span id="line-370"></span>
+<span class="source-line-no">371</span><span id="line-371">  /**</span>
+<span class="source-line-no">372</span><span id="line-372">   * Returns the WAL region directory based on the given table name and region name</span>
+<span class="source-line-no">373</span><span id="line-373">   * @param conf              configuration to determine WALRootDir</span>
+<span class="source-line-no">374</span><span id="line-374">   * @param tableName         Table that the region is under</span>
+<span class="source-line-no">375</span><span id="line-375">   * @param encodedRegionName Region name used for creating the final region directory</span>
+<span class="source-line-no">376</span><span id="line-376">   * @return the region directory used to store WALs under the WALRootDir</span>
+<span class="source-line-no">377</span><span id="line-377">   * @throws IOException if there is an exception determining the WALRootDir</span>
+<span class="source-line-no">378</span><span id="line-378">   */</span>
+<span class="source-line-no">379</span><span id="line-379">  public static Path getWALRegionDir(final Configuration conf, final TableName tableName,</span>
+<span class="source-line-no">380</span><span id="line-380">    final String encodedRegionName) throws IOException {</span>
+<span class="source-line-no">381</span><span id="line-381">    return new Path(getWALTableDir(conf, tableName), encodedRegionName);</span>
+<span class="source-line-no">382</span><span id="line-382">  }</span>
+<span class="source-line-no">383</span><span id="line-383"></span>
+<span class="source-line-no">384</span><span id="line-384">  /**</span>
+<span class="source-line-no">385</span><span id="line-385">   * Returns the Table directory under the WALRootDir for the specified table name</span>
+<span class="source-line-no">386</span><span id="line-386">   * @param conf      configuration used to get the WALRootDir</span>
+<span class="source-line-no">387</span><span id="line-387">   * @param tableName Table to get the directory for</span>
+<span class="source-line-no">388</span><span id="line-388">   * @return a path to the WAL table directory for the specified table</span>
+<span class="source-line-no">389</span><span id="line-389">   * @throws IOException if there is an exception determining the WALRootDir</span>
+<span class="source-line-no">390</span><span id="line-390">   */</span>
+<span class="source-line-no">391</span><span id="line-391">  public static Path getWALTableDir(final Configuration conf, final TableName tableName)</span>
+<span class="source-line-no">392</span><span id="line-392">    throws IOException {</span>
+<span class="source-line-no">393</span><span id="line-393">    Path baseDir = new Path(getWALRootDir(conf), HConstants.BASE_NAMESPACE_DIR);</span>
+<span class="source-line-no">394</span><span id="line-394">    return new Path(new Path(baseDir, tableName.getNamespaceAsString()),</span>
+<span class="source-line-no">395</span><span id="line-395">      tableName.getQualifierAsString());</span>
+<span class="source-line-no">396</span><span id="line-396">  }</span>
+<span class="source-line-no">397</span><span id="line-397"></span>
+<span class="source-line-no">398</span><span id="line-398">  /**</span>
+<span class="source-line-no">399</span><span id="line-399">   * For backward compatibility with HBASE-20734, where we store recovered edits in a wrong</span>
+<span class="source-line-no">400</span><span id="line-400">   * directory without BASE_NAMESPACE_DIR. See HBASE-22617 for more details.</span>
+<span class="source-line-no">401</span><span id="line-401">   * @deprecated For compatibility, will be removed in 4.0.0.</span>
+<span class="source-line-no">402</span><span id="line-402">   */</span>
+<span class="source-line-no">403</span><span id="line-403">  @Deprecated</span>
+<span class="source-line-no">404</span><span id="line-404">  public static Path getWrongWALRegionDir(final Configuration conf, final TableName tableName,</span>
+<span class="source-line-no">405</span><span id="line-405">    final String encodedRegionName) throws IOException {</span>
+<span class="source-line-no">406</span><span id="line-406">    Path wrongTableDir = new Path(new Path(getWALRootDir(conf), tableName.getNamespaceAsString()),</span>
+<span class="source-line-no">407</span><span id="line-407">      tableName.getQualifierAsString());</span>
+<span class="source-line-no">408</span><span id="line-408">    return new Path(wrongTableDir, encodedRegionName);</span>
+<span class="source-line-no">409</span><span id="line-409">  }</span>
+<span class="source-line-no">410</span><span id="line-410"></span>
+<span class="source-line-no">411</span><span id="line-411">  /**</span>
+<span class="source-line-no">412</span><span id="line-412">   * Returns the {@link org.apache.hadoop.fs.Path} object representing the table directory under</span>
+<span class="source-line-no">413</span><span id="line-413">   * path rootdir</span>
+<span class="source-line-no">414</span><span id="line-414">   * @param rootdir   qualified path of HBase root directory</span>
+<span class="source-line-no">415</span><span id="line-415">   * @param tableName name of table</span>
+<span class="source-line-no">416</span><span id="line-416">   * @return {@link org.apache.hadoop.fs.Path} for table</span>
+<span class="source-line-no">417</span><span id="line-417">   */</span>
+<span class="source-line-no">418</span><span id="line-418">  public static Path getTableDir(Path rootdir, final TableName tableName) {</span>
+<span class="source-line-no">419</span><span id="line-419">    return new Path(getNamespaceDir(rootdir, tableName.getNamespaceAsString()),</span>
+<span class="source-line-no">420</span><span id="line-420">      tableName.getQualifierAsString());</span>
+<span class="source-line-no">421</span><span id="line-421">  }</span>
+<span class="source-line-no">422</span><span id="line-422"></span>
+<span class="source-line-no">423</span><span id="line-423">  /**</span>
+<span class="source-line-no">424</span><span id="line-424">   * Returns the {@link org.apache.hadoop.fs.Path} object representing the region directory under</span>
+<span class="source-line-no">425</span><span id="line-425">   * path rootdir</span>
+<span class="source-line-no">426</span><span id="line-426">   * @param rootdir    qualified path of HBase root directory</span>
+<span class="source-line-no">427</span><span id="line-427">   * @param tableName  name of table</span>
+<span class="source-line-no">428</span><span id="line-428">   * @param regionName The encoded region name</span>
+<span class="source-line-no">429</span><span id="line-429">   * @return {@link org.apache.hadoop.fs.Path} for region</span>
+<span class="source-line-no">430</span><span id="line-430">   */</span>
+<span class="source-line-no">431</span><span id="line-431">  public static Path getRegionDir(Path rootdir, TableName tableName, String regionName) {</span>
+<span class="source-line-no">432</span><span id="line-432">    return new Path(getTableDir(rootdir, tableName), regionName);</span>
+<span class="source-line-no">433</span><span id="line-433">  }</span>
+<span class="source-line-no">434</span><span id="line-434"></span>
+<span class="source-line-no">435</span><span id="line-435">  /**</span>
+<span class="source-line-no">436</span><span id="line-436">   * Returns the {@link org.apache.hadoop.hbase.TableName} object representing the table directory</span>
+<span class="source-line-no">437</span><span id="line-437">   * under path rootdir</span>
+<span class="source-line-no">438</span><span id="line-438">   * @param tablePath path of table</span>
+<span class="source-line-no">439</span><span id="line-439">   * @return {@link org.apache.hadoop.fs.Path} for table</span>
+<span class="source-line-no">440</span><span id="line-440">   */</span>
+<span class="source-line-no">441</span><span id="line-441">  public static TableName getTableName(Path tablePath) {</span>
+<span class="source-line-no">442</span><span id="line-442">    return TableName.valueOf(tablePath.getParent().getName(), tablePath.getName());</span>
+<span class="source-line-no">443</span><span id="line-443">  }</span>
+<span class="source-line-no">444</span><span id="line-444"></span>
+<span class="source-line-no">445</span><span id="line-445">  /**</span>
+<span class="source-line-no">446</span><span id="line-446">   * Returns the {@link org.apache.hadoop.fs.Path} object representing the namespace directory under</span>
+<span class="source-line-no">447</span><span id="line-447">   * path rootdir</span>
+<span class="source-line-no">448</span><span id="line-448">   * @param rootdir   qualified path of HBase root directory</span>
+<span class="source-line-no">449</span><span id="line-449">   * @param namespace namespace name</span>
+<span class="source-line-no">450</span><span id="line-450">   * @return {@link org.apache.hadoop.fs.Path} for table</span>
+<span class="source-line-no">451</span><span id="line-451">   */</span>
+<span class="source-line-no">452</span><span id="line-452">  public static Path getNamespaceDir(Path rootdir, final String namespace) {</span>
+<span class="source-line-no">453</span><span id="line-453">    return new Path(rootdir, new Path(HConstants.BASE_NAMESPACE_DIR, new Path(namespace)));</span>
+<span class="source-line-no">454</span><span id="line-454">  }</span>
+<span class="source-line-no">455</span><span id="line-455"></span>
+<span class="source-line-no">456</span><span id="line-456">  // this mapping means that under a federated FileSystem implementation, we'll</span>
+<span class="source-line-no">457</span><span id="line-457">  // only log the first failure from any of the underlying FileSystems at WARN and all others</span>
+<span class="source-line-no">458</span><span id="line-458">  // will be at DEBUG.</span>
+<span class="source-line-no">459</span><span id="line-459">  private static final Map&lt;FileSystem, Boolean&gt; warningMap = new ConcurrentHashMap&lt;&gt;();</span>
+<span class="source-line-no">460</span><span id="line-460"></span>
+<span class="source-line-no">461</span><span id="line-461">  /**</span>
+<span class="source-line-no">462</span><span id="line-462">   * Sets storage policy for given path. If the passed path is a directory, we'll set the storage</span>
+<span class="source-line-no">463</span><span id="line-463">   * policy for all files created in the future in said directory. Note that this change in storage</span>
+<span class="source-line-no">464</span><span id="line-464">   * policy takes place at the FileSystem level; it will persist beyond this RS's lifecycle. If</span>
+<span class="source-line-no">465</span><span id="line-465">   * we're running on a version of FileSystem that doesn't support the given storage policy (or</span>
+<span class="source-line-no">466</span><span id="line-466">   * storage policies at all), then we'll issue a log message and continue. See</span>
+<span class="source-line-no">467</span><span id="line-467">   * http://hadoop.apache.org/docs/r2.6.0/hadoop-project-dist/hadoop-hdfs/ArchivalStorage.html</span>
+<span class="source-line-no">468</span><span id="line-468">   * @param fs            We only do anything it implements a setStoragePolicy method</span>
+<span class="source-line-no">469</span><span id="line-469">   * @param path          the Path whose storage policy is to be set</span>
+<span class="source-line-no">470</span><span id="line-470">   * @param storagePolicy Policy to set on &lt;code&gt;path&lt;/code&gt;; see hadoop 2.6+</span>
+<span class="source-line-no">471</span><span id="line-471">   *                      org.apache.hadoop.hdfs.protocol.HdfsConstants for possible list e.g</span>
+<span class="source-line-no">472</span><span id="line-472">   *                      'COLD', 'WARM', 'HOT', 'ONE_SSD', 'ALL_SSD', 'LAZY_PERSIST'.</span>
+<span class="source-line-no">473</span><span id="line-473">   */</span>
+<span class="source-line-no">474</span><span id="line-474">  public static void setStoragePolicy(final FileSystem fs, final Path path,</span>
+<span class="source-line-no">475</span><span id="line-475">    final String storagePolicy) {</span>
+<span class="source-line-no">476</span><span id="line-476">    try {</span>
+<span class="source-line-no">477</span><span id="line-477">      setStoragePolicy(fs, path, storagePolicy, false);</span>
+<span class="source-line-no">478</span><span id="line-478">    } catch (IOException e) {</span>
+<span class="source-line-no">479</span><span id="line-479">      // should never arrive here</span>
+<span class="source-line-no">480</span><span id="line-480">      LOG.warn("We have chosen not to throw exception but some unexpectedly thrown out", e);</span>
+<span class="source-line-no">481</span><span id="line-481">    }</span>
+<span class="source-line-no">482</span><span id="line-482">  }</span>
+<span class="source-line-no">483</span><span id="line-483"></span>
+<span class="source-line-no">484</span><span id="line-484">  static void setStoragePolicy(final FileSystem fs, final Path path, final String storagePolicy,</span>
+<span class="source-line-no">485</span><span id="line-485">    boolean throwException) throws IOException {</span>
+<span class="source-line-no">486</span><span id="line-486">    if (storagePolicy == null) {</span>
+<span class="source-line-no">487</span><span id="line-487">      if (LOG.isTraceEnabled()) {</span>
+<span class="source-line-no">488</span><span id="line-488">        LOG.trace("We were passed a null storagePolicy, exiting early.");</span>
+<span class="source-line-no">489</span><span id="line-489">      }</span>
+<span class="source-line-no">490</span><span id="line-490">      return;</span>
+<span class="source-line-no">491</span><span id="line-491">    }</span>
+<span class="source-line-no">492</span><span id="line-492">    String trimmedStoragePolicy = storagePolicy.trim();</span>
+<span class="source-line-no">493</span><span id="line-493">    if (trimmedStoragePolicy.isEmpty()) {</span>
+<span class="source-line-no">494</span><span id="line-494">      LOG.trace("We were passed an empty storagePolicy, exiting early.");</span>
+<span class="source-line-no">495</span><span id="line-495">      return;</span>
+<span class="source-line-no">496</span><span id="line-496">    } else {</span>
+<span class="source-line-no">497</span><span id="line-497">      trimmedStoragePolicy = trimmedStoragePolicy.toUpperCase(Locale.ROOT);</span>
+<span class="source-line-no">498</span><span id="line-498">    }</span>
+<span class="source-line-no">499</span><span id="line-499">    if (trimmedStoragePolicy.equals(HConstants.DEFER_TO_HDFS_STORAGE_POLICY)) {</span>
+<span class="source-line-no">500</span><span id="line-500">      LOG.trace("We were passed the defer-to-hdfs policy {}, exiting early.", trimmedStoragePolicy);</span>
+<span class="source-line-no">501</span><span id="line-501">      return;</span>
+<span class="source-line-no">502</span><span id="line-502">    }</span>
+<span class="source-line-no">503</span><span id="line-503">    try {</span>
+<span class="source-line-no">504</span><span id="line-504">      invokeSetStoragePolicy(fs, path, trimmedStoragePolicy);</span>
+<span class="source-line-no">505</span><span id="line-505">    } catch (IOException e) {</span>
+<span class="source-line-no">506</span><span id="line-506">      LOG.trace("Failed to invoke set storage policy API on FS", e);</span>
+<span class="source-line-no">507</span><span id="line-507">      if (throwException) {</span>
+<span class="source-line-no">508</span><span id="line-508">        throw e;</span>
+<span class="source-line-no">509</span><span id="line-509">      }</span>
+<span class="source-line-no">510</span><span id="line-510">    }</span>
+<span class="source-line-no">511</span><span id="line-511">  }</span>
+<span class="source-line-no">512</span><span id="line-512"></span>
+<span class="source-line-no">513</span><span id="line-513">  /*</span>
+<span class="source-line-no">514</span><span id="line-514">   * All args have been checked and are good. Run the setStoragePolicy invocation.</span>
+<span class="source-line-no">515</span><span id="line-515">   */</span>
+<span class="source-line-no">516</span><span id="line-516">  private static void invokeSetStoragePolicy(final FileSystem fs, final Path path,</span>
+<span class="source-line-no">517</span><span id="line-517">    final String storagePolicy) throws IOException {</span>
+<span class="source-line-no">518</span><span id="line-518">    Exception toThrow = null;</span>
+<span class="source-line-no">519</span><span id="line-519"></span>
+<span class="source-line-no">520</span><span id="line-520">    if (!fs.hasPathCapability(path, FS_STORAGEPOLICY)) {</span>
+<span class="source-line-no">521</span><span id="line-521">      LOG.debug("The file system does not support storage policy.");</span>
+<span class="source-line-no">522</span><span id="line-522">      return;</span>
+<span class="source-line-no">523</span><span id="line-523">    }</span>
+<span class="source-line-no">524</span><span id="line-524"></span>
+<span class="source-line-no">525</span><span id="line-525">    try {</span>
+<span class="source-line-no">526</span><span id="line-526">      fs.setStoragePolicy(path, storagePolicy);</span>
+<span class="source-line-no">527</span><span id="line-527">      LOG.debug("Set storagePolicy={} for path={}", storagePolicy, path);</span>
+<span class="source-line-no">528</span><span id="line-528">    } catch (Exception e) {</span>
+<span class="source-line-no">529</span><span id="line-529">      toThrow = e;</span>
+<span class="source-line-no">530</span><span id="line-530">      // This swallows FNFE, should we be throwing it? seems more likely to indicate dev</span>
+<span class="source-line-no">531</span><span id="line-531">      // misuse than a runtime problem with HDFS.</span>
+<span class="source-line-no">532</span><span id="line-532">      if (!warningMap.containsKey(fs)) {</span>
+<span class="source-line-no">533</span><span id="line-533">        warningMap.put(fs, true);</span>
+<span class="source-line-no">534</span><span id="line-534">        LOG.warn("Unable to set storagePolicy=" + storagePolicy + " for path=" + path + ". "</span>
+<span class="source-line-no">535</span><span id="line-535">          + "DEBUG log level might have more details.", e);</span>
+<span class="source-line-no">536</span><span id="line-536">      } else if (LOG.isDebugEnabled()) {</span>
+<span class="source-line-no">537</span><span id="line-537">        LOG.debug("Unable to set storagePolicy=" + storagePolicy + " for path=" + path, e);</span>
+<span class="source-line-no">538</span><span id="line-538">      }</span>
+<span class="source-line-no">539</span><span id="line-539"></span>
+<span class="source-line-no">540</span><span id="line-540">      // Hadoop 2.8+, 3.0-a1+ added FileSystem.setStoragePolicy with a default implementation</span>
+<span class="source-line-no">541</span><span id="line-541">      // that throws UnsupportedOperationException</span>
+<span class="source-line-no">542</span><span id="line-542">      if (e instanceof UnsupportedOperationException) {</span>
+<span class="source-line-no">543</span><span id="line-543">        if (LOG.isDebugEnabled()) {</span>
+<span class="source-line-no">544</span><span id="line-544">          LOG.debug("The underlying FileSystem implementation doesn't support "</span>
+<span class="source-line-no">545</span><span id="line-545">            + "setStoragePolicy. This is probably intentional on their part, since HDFS-9345 "</span>
+<span class="source-line-no">546</span><span id="line-546">            + "appears to be present in your version of Hadoop. For more information check "</span>
+<span class="source-line-no">547</span><span id="line-547">            + "the Hadoop documentation on 'ArchivalStorage', the Hadoop FileSystem "</span>
+<span class="source-line-no">548</span><span id="line-548">            + "specification docs from HADOOP-11981, and/or related documentation from the "</span>
+<span class="source-line-no">549</span><span id="line-549">            + "provider of the underlying FileSystem (its name should appear in the "</span>
+<span class="source-line-no">550</span><span id="line-550">            + "stacktrace that accompanies this message). Note in particular that Hadoop's "</span>
+<span class="source-line-no">551</span><span id="line-551">            + "local filesystem implementation doesn't support storage policies.", e);</span>
+<span class="source-line-no">552</span><span id="line-552">        }</span>
+<span class="source-line-no">553</span><span id="line-553">      }</span>
+<span class="source-line-no">554</span><span id="line-554">    }</span>
+<span class="source-line-no">555</span><span id="line-555"></span>
+<span class="source-line-no">556</span><span id="line-556">    if (toThrow != null) {</span>
+<span class="source-line-no">557</span><span id="line-557">      throw new IOException(toThrow);</span>
+<span class="source-line-no">558</span><span id="line-558">    }</span>
+<span class="source-line-no">559</span><span id="line-559">  }</span>
+<span class="source-line-no">560</span><span id="line-560"></span>
+<span class="source-line-no">561</span><span id="line-561">  /**</span>
+<span class="source-line-no">562</span><span id="line-562">   * Return true if this is a filesystem whose scheme is 'hdfs'.</span>
+<span class="source-line-no">563</span><span id="line-563">   * @throws IOException from underlying FileSystem</span>
+<span class="source-line-no">564</span><span id="line-564">   */</span>
+<span class="source-line-no">565</span><span id="line-565">  public static boolean isHDFS(final Configuration conf) throws IOException {</span>
+<span class="source-line-no">566</span><span id="line-566">    FileSystem fs = FileSystem.get(conf);</span>
+<span class="source-line-no">567</span><span id="line-567">    String scheme = fs.getUri().getScheme();</span>
+<span class="source-line-no">568</span><span id="line-568">    return scheme.equalsIgnoreCase("hdfs");</span>
+<span class="source-line-no">569</span><span id="line-569">  }</span>
+<span class="source-line-no">570</span><span id="line-570"></span>
+<span class="source-line-no">571</span><span id="line-571">  /**</span>
+<span class="source-line-no">572</span><span id="line-572">   * Checks if the given path is the one with 'recovered.edits' dir.</span>
+<span class="source-line-no">573</span><span id="line-573">   * @param path must not be null</span>
+<span class="source-line-no">574</span><span id="line-574">   * @return True if we recovered edits</span>
+<span class="source-line-no">575</span><span id="line-575">   */</span>
+<span class="source-line-no">576</span><span id="line-576">  public static boolean isRecoveredEdits(Path path) {</span>
+<span class="source-line-no">577</span><span id="line-577">    return path.toString().contains(HConstants.RECOVERED_EDITS_DIR);</span>
+<span class="source-line-no">578</span><span id="line-578">  }</span>
+<span class="source-line-no">579</span><span id="line-579"></span>
+<span class="source-line-no">580</span><span id="line-580">  /**</span>
+<span class="source-line-no">581</span><span id="line-581">   * Returns the filesystem of the hbase rootdir.</span>
+<span class="source-line-no">582</span><span id="line-582">   * @throws IOException from underlying FileSystem</span>
+<span class="source-line-no">583</span><span id="line-583">   */</span>
+<span class="source-line-no">584</span><span id="line-584">  public static FileSystem getCurrentFileSystem(Configuration conf) throws IOException {</span>
+<span class="source-line-no">585</span><span id="line-585">    return getRootDir(conf).getFileSystem(conf);</span>
+<span class="source-line-no">586</span><span id="line-586">  }</span>
+<span class="source-line-no">587</span><span id="line-587"></span>
+<span class="source-line-no">588</span><span id="line-588">  /**</span>
+<span class="source-line-no">589</span><span id="line-589">   * Calls fs.listStatus() and treats FileNotFoundException as non-fatal This accommodates</span>
+<span class="source-line-no">590</span><span id="line-590">   * differences between hadoop versions, where hadoop 1 does not throw a FileNotFoundException, and</span>
+<span class="source-line-no">591</span><span id="line-591">   * return an empty FileStatus[] while Hadoop 2 will throw FileNotFoundException. Where possible,</span>
+<span class="source-line-no">592</span><span id="line-592">   * prefer FSUtils#listStatusWithStatusFilter(FileSystem, Path, FileStatusFilter) instead.</span>
+<span class="source-line-no">593</span><span id="line-593">   * @param fs     file system</span>
+<span class="source-line-no">594</span><span id="line-594">   * @param dir    directory</span>
+<span class="source-line-no">595</span><span id="line-595">   * @param filter path filter</span>
+<span class="source-line-no">596</span><span id="line-596">   * @return null if dir is empty or doesn't exist, otherwise FileStatus array</span>
+<span class="source-line-no">597</span><span id="line-597">   */</span>
+<span class="source-line-no">598</span><span id="line-598">  public static FileStatus[] listStatus(final FileSystem fs, final Path dir,</span>
+<span class="source-line-no">599</span><span id="line-599">    final PathFilter filter) throws IOException {</span>
+<span class="source-line-no">600</span><span id="line-600">    FileStatus[] status = null;</span>
+<span class="source-line-no">601</span><span id="line-601">    try {</span>
+<span class="source-line-no">602</span><span id="line-602">      status = filter == null ? fs.listStatus(dir) : fs.listStatus(dir, filter);</span>
+<span class="source-line-no">603</span><span id="line-603">    } catch (FileNotFoundException fnfe) {</span>
+<span class="source-line-no">604</span><span id="line-604">      // if directory doesn't exist, return null</span>
+<span class="source-line-no">605</span><span id="line-605">      if (LOG.isTraceEnabled()) {</span>
+<span class="source-line-no">606</span><span id="line-606">        LOG.trace("{} doesn't exist", dir);</span>
+<span class="source-line-no">607</span><span id="line-607">      }</span>
+<span class="source-line-no">608</span><span id="line-608">    }</span>
+<span class="source-line-no">609</span><span id="line-609">    if (status == null || status.length &lt; 1) {</span>
+<span class="source-line-no">610</span><span id="line-610">      return null;</span>
+<span class="source-line-no">611</span><span id="line-611">    }</span>
+<span class="source-line-no">612</span><span id="line-612">    return status;</span>
+<span class="source-line-no">613</span><span id="line-613">  }</span>
+<span class="source-line-no">614</span><span id="line-614"></span>
+<span class="source-line-no">615</span><span id="line-615">  /**</span>
+<span class="source-line-no">616</span><span id="line-616">   * Calls fs.listStatus() and treats FileNotFoundException as non-fatal This would accommodates</span>
+<span class="source-line-no">617</span><span id="line-617">   * differences between hadoop versions</span>
+<span class="source-line-no">618</span><span id="line-618">   * @param fs  file system</span>
+<span class="source-line-no">619</span><span id="line-619">   * @param dir directory</span>
+<span class="source-line-no">620</span><span id="line-620">   * @return null if dir is empty or doesn't exist, otherwise FileStatus array</span>
+<span class="source-line-no">621</span><span id="line-621">   */</span>
+<span class="source-line-no">622</span><span id="line-622">  public static FileStatus[] listStatus(final FileSystem fs, final Path dir) throws IOException {</span>
+<span class="source-line-no">623</span><span id="line-623">    return listStatus(fs, dir, null);</span>
+<span class="source-line-no">624</span><span id="line-624">  }</span>
+<span class="source-line-no">625</span><span id="line-625"></span>
+<span class="source-line-no">626</span><span id="line-626">  /**</span>
+<span class="source-line-no">627</span><span id="line-627">   * Calls fs.listFiles() to get FileStatus and BlockLocations together for reducing rpc call</span>
+<span class="source-line-no">628</span><span id="line-628">   * @param fs  file system</span>
+<span class="source-line-no">629</span><span id="line-629">   * @param dir directory</span>
+<span class="source-line-no">630</span><span id="line-630">   * @return LocatedFileStatus list</span>
+<span class="source-line-no">631</span><span id="line-631">   */</span>
+<span class="source-line-no">632</span><span id="line-632">  public static List&lt;LocatedFileStatus&gt; listLocatedStatus(final FileSystem fs, final Path dir)</span>
+<span class="source-line-no">633</span><span id="line-633">    throws IOException {</span>
+<span class="source-line-no">634</span><span id="line-634">    List&lt;LocatedFileStatus&gt; status = null;</span>
+<span class="source-line-no">635</span><span id="line-635">    try {</span>
+<span class="source-line-no">636</span><span id="line-636">      RemoteIterator&lt;LocatedFileStatus&gt; locatedFileStatusRemoteIterator = fs.listFiles(dir, false);</span>
+<span class="source-line-no">637</span><span id="line-637">      while (locatedFileStatusRemoteIterator.hasNext()) {</span>
+<span class="source-line-no">638</span><span id="line-638">        if (status == null) {</span>
+<span class="source-line-no">639</span><span id="line-639">          status = Lists.newArrayList();</span>
+<span class="source-line-no">640</span><span id="line-640">        }</span>
+<span class="source-line-no">641</span><span id="line-641">        status.add(locatedFileStatusRemoteIterator.next());</span>
+<span class="source-line-no">642</span><span id="line-642">      }</span>
+<span class="source-line-no">643</span><span id="line-643">    } catch (FileNotFoundException fnfe) {</span>
+<span class="source-line-no">644</span><span id="line-644">      // if directory doesn't exist, return null</span>
+<span class="source-line-no">645</span><span id="line-645">      if (LOG.isTraceEnabled()) {</span>
+<span class="source-line-no">646</span><span id="line-646">        LOG.trace("{} doesn't exist", dir);</span>
+<span class="source-line-no">647</span><span id="line-647">      }</span>
+<span class="source-line-no">648</span><span id="line-648">    }</span>
+<span class="source-line-no">649</span><span id="line-649">    return status;</span>
+<span class="source-line-no">650</span><span id="line-650">  }</span>
+<span class="source-line-no">651</span><span id="line-651"></span>
+<span class="source-line-no">652</span><span id="line-652">  /**</span>
+<span class="source-line-no">653</span><span id="line-653">   * Calls fs.delete() and returns the value returned by the fs.delete()</span>
+<span class="source-line-no">654</span><span id="line-654">   * @param fs        must not be null</span>
+<span class="source-line-no">655</span><span id="line-655">   * @param path      must not be null</span>
+<span class="source-line-no">656</span><span id="line-656">   * @param recursive delete tree rooted at path</span>
+<span class="source-line-no">657</span><span id="line-657">   * @return the value returned by the fs.delete()</span>
+<span class="source-line-no">658</span><span id="line-658">   * @throws IOException from underlying FileSystem</span>
+<span class="source-line-no">659</span><span id="line-659">   */</span>
+<span class="source-line-no">660</span><span id="line-660">  public static boolean delete(final FileSystem fs, final Path path, final boolean recursive)</span>
+<span class="source-line-no">661</span><span id="line-661">    throws IOException {</span>
+<span class="source-line-no">662</span><span id="line-662">    return fs.delete(path, recursive);</span>
+<span class="source-line-no">663</span><span id="line-663">  }</span>
+<span class="source-line-no">664</span><span id="line-664"></span>
+<span class="source-line-no">665</span><span id="line-665">  /**</span>
+<span class="source-line-no">666</span><span id="line-666">   * Calls fs.exists(). Checks if the specified path exists</span>
+<span class="source-line-no">667</span><span id="line-667">   * @param fs   must not be null</span>
+<span class="source-line-no">668</span><span id="line-668">   * @param path must not be null</span>
+<span class="source-line-no">669</span><span id="line-669">   * @return the value returned by fs.exists()</span>
+<span class="source-line-no">670</span><span id="line-670">   * @throws IOException from underlying FileSystem</span>
+<span class="source-line-no">671</span><span id="line-671">   */</span>
+<span class="source-line-no">672</span><span id="line-672">  public static boolean isExists(final FileSystem fs, final Path path) throws IOException {</span>
+<span class="source-line-no">673</span><span id="line-673">    return fs.exists(path);</span>
+<span class="source-line-no">674</span><span id="line-674">  }</span>
+<span class="source-line-no">675</span><span id="line-675"></span>
+<span class="source-line-no">676</span><span id="line-676">  /**</span>
+<span class="source-line-no">677</span><span id="line-677">   * Log the current state of the filesystem from a certain root directory</span>
+<span class="source-line-no">678</span><span id="line-678">   * @param fs   filesystem to investigate</span>
+<span class="source-line-no">679</span><span id="line-679">   * @param root root file/directory to start logging from</span>
+<span class="source-line-no">680</span><span id="line-680">   * @param log  log to output information</span>
+<span class="source-line-no">681</span><span id="line-681">   * @throws IOException if an unexpected exception occurs</span>
+<span class="source-line-no">682</span><span id="line-682">   */</span>
+<span class="source-line-no">683</span><span id="line-683">  public static void logFileSystemState(final FileSystem fs, final Path root, Logger log)</span>
+<span class="source-line-no">684</span><span id="line-684">    throws IOException {</span>
+<span class="source-line-no">685</span><span id="line-685">    log.debug("File system contents for path {}", root);</span>
+<span class="source-line-no">686</span><span id="line-686">    logFSTree(log, fs, root, "|-");</span>
+<span class="source-line-no">687</span><span id="line-687">  }</span>
+<span class="source-line-no">688</span><span id="line-688"></span>
+<span class="source-line-no">689</span><span id="line-689">  /**</span>
+<span class="source-line-no">690</span><span id="line-690">   * Recursive helper to log the state of the FS</span>
+<span class="source-line-no">691</span><span id="line-691">   * @see #logFileSystemState(FileSystem, Path, Logger)</span>
+<span class="source-line-no">692</span><span id="line-692">   */</span>
+<span class="source-line-no">693</span><span id="line-693">  private static void logFSTree(Logger log, final FileSystem fs, final Path root, String prefix)</span>
+<span class="source-line-no">694</span><span id="line-694">    throws IOException {</span>
+<span class="source-line-no">695</span><span id="line-695">    FileStatus[] files = listStatus(fs, root, null);</span>
+<span class="source-line-no">696</span><span id="line-696">    if (files == null) {</span>
+<span class="source-line-no">697</span><span id="line-697">      return;</span>
+<span class="source-line-no">698</span><span id="line-698">    }</span>
+<span class="source-line-no">699</span><span id="line-699"></span>
+<span class="source-line-no">700</span><span id="line-700">    for (FileStatus file : files) {</span>
+<span class="source-line-no">701</span><span id="line-701">      if (file.isDirectory()) {</span>
+<span class="source-line-no">702</span><span id="line-702">        log.debug(prefix + file.getPath().getName() + "/");</span>
+<span class="source-line-no">703</span><span id="line-703">        logFSTree(log, fs, file.getPath(), prefix + "---");</span>
+<span class="source-line-no">704</span><span id="line-704">      } else {</span>
+<span class="source-line-no">705</span><span id="line-705">        log.debug(prefix + file.getPath().getName());</span>
+<span class="source-line-no">706</span><span id="line-706">      }</span>
+<span class="source-line-no">707</span><span id="line-707">    }</span>
 <span class="source-line-no">708</span><span id="line-708">  }</span>
 <span class="source-line-no">709</span><span id="line-709"></span>
-<span class="source-line-no">710</span><span id="line-710">  /**</span>
-<span class="source-line-no">711</span><span id="line-711">   * Check if short circuit read buffer size is set and if not, set it to hbase value.</span>
-<span class="source-line-no">712</span><span id="line-712">   * @param conf must not be null</span>
-<span class="source-line-no">713</span><span id="line-713">   */</span>
-<span class="source-line-no">714</span><span id="line-714">  public static void checkShortCircuitReadBufferSize(final Configuration conf) {</span>
-<span class="source-line-no">715</span><span id="line-715">    final int defaultSize = HConstants.DEFAULT_BLOCKSIZE * 2;</span>
-<span class="source-line-no">716</span><span id="line-716">    final int notSet = -1;</span>
-<span class="source-line-no">717</span><span id="line-717">    // DFSConfigKeys.DFS_CLIENT_READ_SHORTCIRCUIT_BUFFER_SIZE_KEY is only defined in h2</span>
-<span class="source-line-no">718</span><span id="line-718">    final String dfsKey = "dfs.client.read.shortcircuit.buffer.size";</span>
-<span class="source-line-no">719</span><span id="line-719">    int size = conf.getInt(dfsKey, notSet);</span>
-<span class="source-line-no">720</span><span id="line-720">    // If a size is set, return -- we will use it.</span>
-<span class="source-line-no">721</span><span id="line-721">    if (size != notSet) {</span>
-<span class="source-line-no">722</span><span id="line-722">      return;</span>
-<span class="source-line-no">723</span><span id="line-723">    }</span>
-<span class="source-line-no">724</span><span id="line-724">    // But short circuit buffer size is normally not set. Put in place the hbase wanted size.</span>
-<span class="source-line-no">725</span><span id="line-725">    int hbaseSize = conf.getInt("hbase." + dfsKey, defaultSize);</span>
-<span class="source-line-no">726</span><span id="line-726">    conf.setIfUnset(dfsKey, Integer.toString(hbaseSize));</span>
-<span class="source-line-no">727</span><span id="line-727">  }</span>
-<span class="source-line-no">728</span><span id="line-728"></span>
-<span class="source-line-no">729</span><span id="line-729">  /**</span>
-<span class="source-line-no">730</span><span id="line-730">   * Helper exception for those cases where the place where we need to check a stream capability is</span>
-<span class="source-line-no">731</span><span id="line-731">   * not where we have the needed context to explain the impact and mitigation for a lack.</span>
-<span class="source-line-no">732</span><span id="line-732">   */</span>
-<span class="source-line-no">733</span><span id="line-733">  public static class StreamLacksCapabilityException extends Exception {</span>
-<span class="source-line-no">734</span><span id="line-734">    public StreamLacksCapabilityException(String message, Throwable cause) {</span>
-<span class="source-line-no">735</span><span id="line-735">      super(message, cause);</span>
-<span class="source-line-no">736</span><span id="line-736">    }</span>
-<span class="source-line-no">737</span><span id="line-737"></span>
-<span class="source-line-no">738</span><span id="line-738">    public StreamLacksCapabilityException(String message) {</span>
-<span class="source-line-no">739</span><span id="line-739">      super(message);</span>
-<span class="source-line-no">740</span><span id="line-740">    }</span>
-<span class="source-line-no">741</span><span id="line-741">  }</span>
-<span class="source-line-no">742</span><span id="line-742">}</span>
+<span class="source-line-no">710</span><span id="line-710">  public static boolean renameAndSetModifyTime(final FileSystem fs, final Path src, final Path dest)</span>
+<span class="source-line-no">711</span><span id="line-711">    throws IOException {</span>
+<span class="source-line-no">712</span><span id="line-712">    // set the modify time for TimeToLive Cleaner</span>
+<span class="source-line-no">713</span><span id="line-713">    fs.setTimes(src, EnvironmentEdgeManager.currentTime(), -1);</span>
+<span class="source-line-no">714</span><span id="line-714">    return fs.rename(src, dest);</span>
+<span class="source-line-no">715</span><span id="line-715">  }</span>
+<span class="source-line-no">716</span><span id="line-716"></span>
+<span class="source-line-no">717</span><span id="line-717">  /**</span>
+<span class="source-line-no">718</span><span id="line-718">   * Check if short circuit read buffer size is set and if not, set it to hbase value.</span>
+<span class="source-line-no">719</span><span id="line-719">   * @param conf must not be null</span>
+<span class="source-line-no">720</span><span id="line-720">   */</span>
+<span class="source-line-no">721</span><span id="line-721">  public static void checkShortCircuitReadBufferSize(final Configuration conf) {</span>
+<span class="source-line-no">722</span><span id="line-722">    final int defaultSize = HConstants.DEFAULT_BLOCKSIZE * 2;</span>
+<span class="source-line-no">723</span><span id="line-723">    final int notSet = -1;</span>
+<span class="source-line-no">724</span><span id="line-724">    // DFSConfigKeys.DFS_CLIENT_READ_SHORTCIRCUIT_BUFFER_SIZE_KEY is only defined in h2</span>
+<span class="source-line-no">725</span><span id="line-725">    final String dfsKey = "dfs.client.read.shortcircuit.buffer.size";</span>
+<span class="source-line-no">726</span><span id="line-726">    int size = conf.getInt(dfsKey, notSet);</span>
+<span class="source-line-no">727</span><span id="line-727">    // If a size is set, return -- we will use it.</span>
+<span class="source-line-no">728</span><span id="line-728">    if (size != notSet) {</span>
+<span class="source-line-no">729</span><span id="line-729">      return;</span>
+<span class="source-line-no">730</span><span id="line-730">    }</span>
+<span class="source-line-no">731</span><span id="line-731">    // But short circuit buffer size is normally not set. Put in place the hbase wanted size.</span>
+<span class="source-line-no">732</span><span id="line-732">    int hbaseSize = conf.getInt("hbase." + dfsKey, defaultSize);</span>
+<span class="source-line-no">733</span><span id="line-733">    conf.setIfUnset(dfsKey, Integer.toString(hbaseSize));</span>
+<span class="source-line-no">734</span><span id="line-734">  }</span>
+<span class="source-line-no">735</span><span id="line-735"></span>
+<span class="source-line-no">736</span><span id="line-736">  /**</span>
+<span class="source-line-no">737</span><span id="line-737">   * Helper exception for those cases where the place where we need to check a stream capability is</span>
+<span class="source-line-no">738</span><span id="line-738">   * not where we have the needed context to explain the impact and mitigation for a lack.</span>
+<span class="source-line-no">739</span><span id="line-739">   */</span>
+<span class="source-line-no">740</span><span id="line-740">  public static class StreamLacksCapabilityException extends Exception {</span>
+<span class="source-line-no">741</span><span id="line-741">    public StreamLacksCapabilityException(String message, Throwable cause) {</span>
+<span class="source-line-no">742</span><span id="line-742">      super(message, cause);</span>
+<span class="source-line-no">743</span><span id="line-743">    }</span>
+<span class="source-line-no">744</span><span id="line-744"></span>
+<span class="source-line-no">745</span><span id="line-745">    public StreamLacksCapabilityException(String message) {</span>
+<span class="source-line-no">746</span><span id="line-746">      super(message);</span>
+<span class="source-line-no">747</span><span id="line-747">    }</span>
+<span class="source-line-no">748</span><span id="line-748">  }</span>
+<span class="source-line-no">749</span><span id="line-749">}</span>
 
 
 
diff --git a/apidocs/src-html/org/apache/hadoop/hbase/util/CommonFSUtils.html b/apidocs/src-html/org/apache/hadoop/hbase/util/CommonFSUtils.html
index e66a891ebb2..38c535d23c5 100644
--- a/apidocs/src-html/org/apache/hadoop/hbase/util/CommonFSUtils.html
+++ b/apidocs/src-html/org/apache/hadoop/hbase/util/CommonFSUtils.html
@@ -30,729 +30,736 @@
 <span class="source-line-no">017</span><span id="line-17"> */</span>
 <span class="source-line-no">018</span><span id="line-18">package org.apache.hadoop.hbase.util;</span>
 <span class="source-line-no">019</span><span id="line-19"></span>
-<span class="source-line-no">020</span><span id="line-20">import java.io.FileNotFoundException;</span>
-<span class="source-line-no">021</span><span id="line-21">import java.io.IOException;</span>
-<span class="source-line-no">022</span><span id="line-22">import java.net.URI;</span>
-<span class="source-line-no">023</span><span id="line-23">import java.net.URISyntaxException;</span>
-<span class="source-line-no">024</span><span id="line-24">import java.util.List;</span>
-<span class="source-line-no">025</span><span id="line-25">import java.util.Locale;</span>
-<span class="source-line-no">026</span><span id="line-26">import java.util.Map;</span>
-<span class="source-line-no">027</span><span id="line-27">import java.util.concurrent.ConcurrentHashMap;</span>
-<span class="source-line-no">028</span><span id="line-28">import org.apache.hadoop.conf.Configuration;</span>
-<span class="source-line-no">029</span><span id="line-29">import org.apache.hadoop.fs.FSDataOutputStream;</span>
-<span class="source-line-no">030</span><span id="line-30">import org.apache.hadoop.fs.FileStatus;</span>
-<span class="source-line-no">031</span><span id="line-31">import org.apache.hadoop.fs.FileSystem;</span>
-<span class="source-line-no">032</span><span id="line-32">import org.apache.hadoop.fs.LocatedFileStatus;</span>
-<span class="source-line-no">033</span><span id="line-33">import org.apache.hadoop.fs.Path;</span>
-<span class="source-line-no">034</span><span id="line-34">import org.apache.hadoop.fs.PathFilter;</span>
-<span class="source-line-no">035</span><span id="line-35">import org.apache.hadoop.fs.RemoteIterator;</span>
-<span class="source-line-no">036</span><span id="line-36">import org.apache.hadoop.fs.permission.FsPermission;</span>
-<span class="source-line-no">037</span><span id="line-37">import org.apache.hadoop.hbase.HConstants;</span>
-<span class="source-line-no">038</span><span id="line-38">import org.apache.hadoop.hbase.TableName;</span>
-<span class="source-line-no">039</span><span id="line-39">import org.apache.yetus.audience.InterfaceAudience;</span>
-<span class="source-line-no">040</span><span id="line-40">import org.slf4j.Logger;</span>
-<span class="source-line-no">041</span><span id="line-41">import org.slf4j.LoggerFactory;</span>
-<span class="source-line-no">042</span><span id="line-42"></span>
-<span class="source-line-no">043</span><span id="line-43">import org.apache.hbase.thirdparty.com.google.common.collect.Lists;</span>
+<span class="source-line-no">020</span><span id="line-20">import static org.apache.hadoop.fs.CommonPathCapabilities.FS_STORAGEPOLICY;</span>
+<span class="source-line-no">021</span><span id="line-21"></span>
+<span class="source-line-no">022</span><span id="line-22">import java.io.FileNotFoundException;</span>
+<span class="source-line-no">023</span><span id="line-23">import java.io.IOException;</span>
+<span class="source-line-no">024</span><span id="line-24">import java.net.URI;</span>
+<span class="source-line-no">025</span><span id="line-25">import java.net.URISyntaxException;</span>
+<span class="source-line-no">026</span><span id="line-26">import java.util.List;</span>
+<span class="source-line-no">027</span><span id="line-27">import java.util.Locale;</span>
+<span class="source-line-no">028</span><span id="line-28">import java.util.Map;</span>
+<span class="source-line-no">029</span><span id="line-29">import java.util.concurrent.ConcurrentHashMap;</span>
+<span class="source-line-no">030</span><span id="line-30">import org.apache.hadoop.conf.Configuration;</span>
+<span class="source-line-no">031</span><span id="line-31">import org.apache.hadoop.fs.FSDataOutputStream;</span>
+<span class="source-line-no">032</span><span id="line-32">import org.apache.hadoop.fs.FileStatus;</span>
+<span class="source-line-no">033</span><span id="line-33">import org.apache.hadoop.fs.FileSystem;</span>
+<span class="source-line-no">034</span><span id="line-34">import org.apache.hadoop.fs.LocatedFileStatus;</span>
+<span class="source-line-no">035</span><span id="line-35">import org.apache.hadoop.fs.Path;</span>
+<span class="source-line-no">036</span><span id="line-36">import org.apache.hadoop.fs.PathFilter;</span>
+<span class="source-line-no">037</span><span id="line-37">import org.apache.hadoop.fs.RemoteIterator;</span>
+<span class="source-line-no">038</span><span id="line-38">import org.apache.hadoop.fs.permission.FsPermission;</span>
+<span class="source-line-no">039</span><span id="line-39">import org.apache.hadoop.hbase.HConstants;</span>
+<span class="source-line-no">040</span><span id="line-40">import org.apache.hadoop.hbase.TableName;</span>
+<span class="source-line-no">041</span><span id="line-41">import org.apache.yetus.audience.InterfaceAudience;</span>
+<span class="source-line-no">042</span><span id="line-42">import org.slf4j.Logger;</span>
+<span class="source-line-no">043</span><span id="line-43">import org.slf4j.LoggerFactory;</span>
 <span class="source-line-no">044</span><span id="line-44"></span>
-<span class="source-line-no">045</span><span id="line-45">/**</span>
-<span class="source-line-no">046</span><span id="line-46"> * Utility methods for interacting with the underlying file system.</span>
-<span class="source-line-no">047</span><span id="line-47"> * &lt;p/&gt;</span>
-<span class="source-line-no">048</span><span id="line-48"> * Note that {@link #setStoragePolicy(FileSystem, Path, String)} is tested in TestFSUtils and</span>
-<span class="source-line-no">049</span><span id="line-49"> * pre-commit will run the hbase-server tests if there's code change in this class. See</span>
-<span class="source-line-no">050</span><span id="line-50"> * &lt;a href="https://issues.apache.org/jira/browse/HBASE-20838"&gt;HBASE-20838&lt;/a&gt; for more details.</span>
-<span class="source-line-no">051</span><span id="line-51"> */</span>
-<span class="source-line-no">052</span><span id="line-52">@InterfaceAudience.Private</span>
-<span class="source-line-no">053</span><span id="line-53">public final class CommonFSUtils {</span>
-<span class="source-line-no">054</span><span id="line-54">  private static final Logger LOG = LoggerFactory.getLogger(CommonFSUtils.class);</span>
-<span class="source-line-no">055</span><span id="line-55"></span>
-<span class="source-line-no">056</span><span id="line-56">  /** Parameter name for HBase WAL directory */</span>
-<span class="source-line-no">057</span><span id="line-57">  public static final String HBASE_WAL_DIR = "hbase.wal.dir";</span>
-<span class="source-line-no">058</span><span id="line-58"></span>
-<span class="source-line-no">059</span><span id="line-59">  /** Parameter to disable stream capability enforcement checks */</span>
-<span class="source-line-no">060</span><span id="line-60">  public static final String UNSAFE_STREAM_CAPABILITY_ENFORCE =</span>
-<span class="source-line-no">061</span><span id="line-61">    "hbase.unsafe.stream.capability.enforce";</span>
-<span class="source-line-no">062</span><span id="line-62"></span>
-<span class="source-line-no">063</span><span id="line-63">  /** Full access permissions (starting point for a umask) */</span>
-<span class="source-line-no">064</span><span id="line-64">  public static final String FULL_RWX_PERMISSIONS = "777";</span>
-<span class="source-line-no">065</span><span id="line-65"></span>
-<span class="source-line-no">066</span><span id="line-66">  private CommonFSUtils() {</span>
-<span class="source-line-no">067</span><span id="line-67">  }</span>
-<span class="source-line-no">068</span><span id="line-68"></span>
-<span class="source-line-no">069</span><span id="line-69">  /**</span>
-<span class="source-line-no">070</span><span id="line-70">   * Compare of path component. Does not consider schema; i.e. if schemas different but</span>
-<span class="source-line-no">071</span><span id="line-71">   * &lt;code&gt;path&lt;/code&gt; starts with &lt;code&gt;rootPath&lt;/code&gt;, then the function returns true</span>
-<span class="source-line-no">072</span><span id="line-72">   * @param rootPath value to check for</span>
-<span class="source-line-no">073</span><span id="line-73">   * @param path     subject to check</span>
-<span class="source-line-no">074</span><span id="line-74">   * @return True if &lt;code&gt;path&lt;/code&gt; starts with &lt;code&gt;rootPath&lt;/code&gt;</span>
-<span class="source-line-no">075</span><span id="line-75">   */</span>
-<span class="source-line-no">076</span><span id="line-76">  public static boolean isStartingWithPath(final Path rootPath, final String path) {</span>
-<span class="source-line-no">077</span><span id="line-77">    String uriRootPath = rootPath.toUri().getPath();</span>
-<span class="source-line-no">078</span><span id="line-78">    String tailUriPath = new Path(path).toUri().getPath();</span>
-<span class="source-line-no">079</span><span id="line-79">    return tailUriPath.startsWith(uriRootPath);</span>
-<span class="source-line-no">080</span><span id="line-80">  }</span>
-<span class="source-line-no">081</span><span id="line-81"></span>
-<span class="source-line-no">082</span><span id="line-82">  /**</span>
-<span class="source-line-no">083</span><span id="line-83">   * Compare path component of the Path URI; e.g. if hdfs://a/b/c and /a/b/c, it will compare the</span>
-<span class="source-line-no">084</span><span id="line-84">   * '/a/b/c' part. Does not consider schema; i.e. if schemas different but path or subpath matches,</span>
-<span class="source-line-no">085</span><span id="line-85">   * the two will equate.</span>
-<span class="source-line-no">086</span><span id="line-86">   * @param pathToSearch Path we will be trying to match against.</span>
-<span class="source-line-no">087</span><span id="line-87">   * @param pathTail     what to match</span>
-<span class="source-line-no">088</span><span id="line-88">   * @return True if &lt;code&gt;pathTail&lt;/code&gt; is tail on the path of &lt;code&gt;pathToSearch&lt;/code&gt;</span>
-<span class="source-line-no">089</span><span id="line-89">   */</span>
-<span class="source-line-no">090</span><span id="line-90">  public static boolean isMatchingTail(final Path pathToSearch, String pathTail) {</span>
-<span class="source-line-no">091</span><span id="line-91">    return isMatchingTail(pathToSearch, new Path(pathTail));</span>
-<span class="source-line-no">092</span><span id="line-92">  }</span>
-<span class="source-line-no">093</span><span id="line-93"></span>
-<span class="source-line-no">094</span><span id="line-94">  /**</span>
-<span class="source-line-no">095</span><span id="line-95">   * Compare path component of the Path URI; e.g. if hdfs://a/b/c and /a/b/c, it will compare the</span>
-<span class="source-line-no">096</span><span id="line-96">   * '/a/b/c' part. If you passed in 'hdfs://a/b/c and b/c, it would return true. Does not consider</span>
-<span class="source-line-no">097</span><span id="line-97">   * schema; i.e. if schemas different but path or subpath matches, the two will equate.</span>
-<span class="source-line-no">098</span><span id="line-98">   * @param pathToSearch Path we will be trying to match agains against</span>
-<span class="source-line-no">099</span><span id="line-99">   * @param pathTail     what to match</span>
-<span class="source-line-no">100</span><span id="line-100">   * @return True if &lt;code&gt;pathTail&lt;/code&gt; is tail on the path of &lt;code&gt;pathToSearch&lt;/code&gt;</span>
-<span class="source-line-no">101</span><span id="line-101">   */</span>
-<span class="source-line-no">102</span><span id="line-102">  public static boolean isMatchingTail(final Path pathToSearch, final Path pathTail) {</span>
-<span class="source-line-no">103</span><span id="line-103">    if (pathToSearch.depth() != pathTail.depth()) {</span>
-<span class="source-line-no">104</span><span id="line-104">      return false;</span>
-<span class="source-line-no">105</span><span id="line-105">    }</span>
-<span class="source-line-no">106</span><span id="line-106">    Path tailPath = pathTail;</span>
-<span class="source-line-no">107</span><span id="line-107">    String tailName;</span>
-<span class="source-line-no">108</span><span id="line-108">    Path toSearch = pathToSearch;</span>
-<span class="source-line-no">109</span><span id="line-109">    String toSearchName;</span>
-<span class="source-line-no">110</span><span id="line-110">    boolean result = false;</span>
-<span class="source-line-no">111</span><span id="line-111">    do {</span>
-<span class="source-line-no">112</span><span id="line-112">      tailName = tailPath.getName();</span>
-<span class="source-line-no">113</span><span id="line-113">      if (tailName == null || tailName.length() &lt;= 0) {</span>
-<span class="source-line-no">114</span><span id="line-114">        result = true;</span>
-<span class="source-line-no">115</span><span id="line-115">        break;</span>
-<span class="source-line-no">116</span><span id="line-116">      }</span>
-<span class="source-line-no">117</span><span id="line-117">      toSearchName = toSearch.getName();</span>
-<span class="source-line-no">118</span><span id="line-118">      if (toSearchName == null || toSearchName.length() &lt;= 0) {</span>
-<span class="source-line-no">119</span><span id="line-119">        break;</span>
-<span class="source-line-no">120</span><span id="line-120">      }</span>
-<span class="source-line-no">121</span><span id="line-121">      // Move up a parent on each path for next go around. Path doesn't let us go off the end.</span>
-<span class="source-line-no">122</span><span id="line-122">      tailPath = tailPath.getParent();</span>
-<span class="source-line-no">123</span><span id="line-123">      toSearch = toSearch.getParent();</span>
-<span class="source-line-no">124</span><span id="line-124">    } while (tailName.equals(toSearchName));</span>
-<span class="source-line-no">125</span><span id="line-125">    return result;</span>
-<span class="source-line-no">126</span><span id="line-126">  }</span>
-<span class="source-line-no">127</span><span id="line-127"></span>
-<span class="source-line-no">128</span><span id="line-128">  /**</span>
-<span class="source-line-no">129</span><span id="line-129">   * Delete if exists.</span>
-<span class="source-line-no">130</span><span id="line-130">   * @param fs  filesystem object</span>
-<span class="source-line-no">131</span><span id="line-131">   * @param dir directory to delete</span>
-<span class="source-line-no">132</span><span id="line-132">   * @return True if deleted &lt;code&gt;dir&lt;/code&gt;</span>
-<span class="source-line-no">133</span><span id="line-133">   * @throws IOException e</span>
-<span class="source-line-no">134</span><span id="line-134">   */</span>
-<span class="source-line-no">135</span><span id="line-135">  public static boolean deleteDirectory(final FileSystem fs, final Path dir) throws IOException {</span>
-<span class="source-line-no">136</span><span id="line-136">    return fs.exists(dir) &amp;&amp; fs.delete(dir, true);</span>
-<span class="source-line-no">137</span><span id="line-137">  }</span>
-<span class="source-line-no">138</span><span id="line-138"></span>
-<span class="source-line-no">139</span><span id="line-139">  /**</span>
-<span class="source-line-no">140</span><span id="line-140">   * Return the number of bytes that large input files should be optimally be split into to minimize</span>
-<span class="source-line-no">141</span><span id="line-141">   * i/o time.</span>
-<span class="source-line-no">142</span><span id="line-142">   * @param fs filesystem object</span>
-<span class="source-line-no">143</span><span id="line-143">   * @return the default block size for the path's filesystem</span>
-<span class="source-line-no">144</span><span id="line-144">   */</span>
-<span class="source-line-no">145</span><span id="line-145">  public static long getDefaultBlockSize(final FileSystem fs, final Path path) {</span>
-<span class="source-line-no">146</span><span id="line-146">    return fs.getDefaultBlockSize(path);</span>
-<span class="source-line-no">147</span><span id="line-147">  }</span>
-<span class="source-line-no">148</span><span id="line-148"></span>
-<span class="source-line-no">149</span><span id="line-149">  /*</span>
-<span class="source-line-no">150</span><span id="line-150">   * Get the default replication.</span>
-<span class="source-line-no">151</span><span id="line-151">   * @param fs filesystem object</span>
-<span class="source-line-no">152</span><span id="line-152">   * @param f path of file</span>
-<span class="source-line-no">153</span><span id="line-153">   * @return default replication for the path's filesystem</span>
-<span class="source-line-no">154</span><span id="line-154">   */</span>
-<span class="source-line-no">155</span><span id="line-155">  public static short getDefaultReplication(final FileSystem fs, final Path path) {</span>
-<span class="source-line-no">156</span><span id="line-156">    return fs.getDefaultReplication(path);</span>
-<span class="source-line-no">157</span><span id="line-157">  }</span>
-<span class="source-line-no">158</span><span id="line-158"></span>
-<span class="source-line-no">159</span><span id="line-159">  /**</span>
-<span class="source-line-no">160</span><span id="line-160">   * Returns the default buffer size to use during writes. The size of the buffer should probably be</span>
-<span class="source-line-no">161</span><span id="line-161">   * a multiple of hardware page size (4096 on Intel x86), and it determines how much data is</span>
-<span class="source-line-no">162</span><span id="line-162">   * buffered during read and write operations.</span>
-<span class="source-line-no">163</span><span id="line-163">   * @param fs filesystem object</span>
-<span class="source-line-no">164</span><span id="line-164">   * @return default buffer size to use during writes</span>
-<span class="source-line-no">165</span><span id="line-165">   */</span>
-<span class="source-line-no">166</span><span id="line-166">  public static int getDefaultBufferSize(final FileSystem fs) {</span>
-<span class="source-line-no">167</span><span id="line-167">    return fs.getConf().getInt("io.file.buffer.size", 4096);</span>
-<span class="source-line-no">168</span><span id="line-168">  }</span>
-<span class="source-line-no">169</span><span id="line-169"></span>
-<span class="source-line-no">170</span><span id="line-170">  /**</span>
-<span class="source-line-no">171</span><span id="line-171">   * Create the specified file on the filesystem. By default, this will:</span>
-<span class="source-line-no">172</span><span id="line-172">   * &lt;ol&gt;</span>
-<span class="source-line-no">173</span><span id="line-173">   * &lt;li&gt;apply the umask in the configuration (if it is enabled)&lt;/li&gt;</span>
-<span class="source-line-no">174</span><span id="line-174">   * &lt;li&gt;use the fs configured buffer size (or 4096 if not set)&lt;/li&gt;</span>
-<span class="source-line-no">175</span><span id="line-175">   * &lt;li&gt;use the default replication&lt;/li&gt;</span>
-<span class="source-line-no">176</span><span id="line-176">   * &lt;li&gt;use the default block size&lt;/li&gt;</span>
-<span class="source-line-no">177</span><span id="line-177">   * &lt;li&gt;not track progress&lt;/li&gt;</span>
-<span class="source-line-no">178</span><span id="line-178">   * &lt;/ol&gt;</span>
-<span class="source-line-no">179</span><span id="line-179">   * @param fs        {@link FileSystem} on which to write the file</span>
-<span class="source-line-no">180</span><span id="line-180">   * @param path      {@link Path} to the file to write</span>
-<span class="source-line-no">181</span><span id="line-181">   * @param perm      intial permissions</span>
-<span class="source-line-no">182</span><span id="line-182">   * @param overwrite Whether or not the created file should be overwritten.</span>
-<span class="source-line-no">183</span><span id="line-183">   * @return output stream to the created file</span>
-<span class="source-line-no">184</span><span id="line-184">   * @throws IOException if the file cannot be created</span>
-<span class="source-line-no">185</span><span id="line-185">   */</span>
-<span class="source-line-no">186</span><span id="line-186">  public static FSDataOutputStream create(FileSystem fs, Path path, FsPermission perm,</span>
-<span class="source-line-no">187</span><span id="line-187">    boolean overwrite) throws IOException {</span>
-<span class="source-line-no">188</span><span id="line-188">    if (LOG.isTraceEnabled()) {</span>
-<span class="source-line-no">189</span><span id="line-189">      LOG.trace("Creating file={} with permission={}, overwrite={}", path, perm, overwrite);</span>
-<span class="source-line-no">190</span><span id="line-190">    }</span>
-<span class="source-line-no">191</span><span id="line-191">    return fs.create(path, perm, overwrite, getDefaultBufferSize(fs),</span>
-<span class="source-line-no">192</span><span id="line-192">      getDefaultReplication(fs, path), getDefaultBlockSize(fs, path), null);</span>
-<span class="source-line-no">193</span><span id="line-193">  }</span>
-<span class="source-line-no">194</span><span id="line-194"></span>
-<span class="source-line-no">195</span><span id="line-195">  /**</span>
-<span class="source-line-no">196</span><span id="line-196">   * Get the file permissions specified in the configuration, if they are enabled.</span>
-<span class="source-line-no">197</span><span id="line-197">   * @param fs               filesystem that the file will be created on.</span>
-<span class="source-line-no">198</span><span id="line-198">   * @param conf             configuration to read for determining if permissions are enabled and</span>
-<span class="source-line-no">199</span><span id="line-199">   *                         which to use</span>
-<span class="source-line-no">200</span><span id="line-200">   * @param permssionConfKey property key in the configuration to use when finding the permission</span>
-<span class="source-line-no">201</span><span id="line-201">   * @return the permission to use when creating a new file on the fs. If special permissions are</span>
-<span class="source-line-no">202</span><span id="line-202">   *         not specified in the configuration, then the default permissions on the the fs will be</span>
-<span class="source-line-no">203</span><span id="line-203">   *         returned.</span>
-<span class="source-line-no">204</span><span id="line-204">   */</span>
-<span class="source-line-no">205</span><span id="line-205">  public static FsPermission getFilePermissions(final FileSystem fs, final Configuration conf,</span>
-<span class="source-line-no">206</span><span id="line-206">    final String permssionConfKey) {</span>
-<span class="source-line-no">207</span><span id="line-207">    boolean enablePermissions = conf.getBoolean(HConstants.ENABLE_DATA_FILE_UMASK, false);</span>
-<span class="source-line-no">208</span><span id="line-208"></span>
-<span class="source-line-no">209</span><span id="line-209">    if (enablePermissions) {</span>
-<span class="source-line-no">210</span><span id="line-210">      try {</span>
-<span class="source-line-no">211</span><span id="line-211">        FsPermission perm = new FsPermission(FULL_RWX_PERMISSIONS);</span>
-<span class="source-line-no">212</span><span id="line-212">        // make sure that we have a mask, if not, go default.</span>
-<span class="source-line-no">213</span><span id="line-213">        String mask = conf.get(permssionConfKey);</span>
-<span class="source-line-no">214</span><span id="line-214">        if (mask == null) {</span>
-<span class="source-line-no">215</span><span id="line-215">          return FsPermission.getFileDefault();</span>
-<span class="source-line-no">216</span><span id="line-216">        }</span>
-<span class="source-line-no">217</span><span id="line-217">        // appy the umask</span>
-<span class="source-line-no">218</span><span id="line-218">        FsPermission umask = new FsPermission(mask);</span>
-<span class="source-line-no">219</span><span id="line-219">        return perm.applyUMask(umask);</span>
-<span class="source-line-no">220</span><span id="line-220">      } catch (IllegalArgumentException e) {</span>
-<span class="source-line-no">221</span><span id="line-221">        LOG.warn("Incorrect umask attempted to be created: " + conf.get(permssionConfKey)</span>
-<span class="source-line-no">222</span><span id="line-222">          + ", using default file permissions.", e);</span>
-<span class="source-line-no">223</span><span id="line-223">        return FsPermission.getFileDefault();</span>
-<span class="source-line-no">224</span><span id="line-224">      }</span>
-<span class="source-line-no">225</span><span id="line-225">    }</span>
-<span class="source-line-no">226</span><span id="line-226">    return FsPermission.getFileDefault();</span>
-<span class="source-line-no">227</span><span id="line-227">  }</span>
-<span class="source-line-no">228</span><span id="line-228"></span>
-<span class="source-line-no">229</span><span id="line-229">  /**</span>
-<span class="source-line-no">230</span><span id="line-230">   * Verifies root directory path is a valid URI with a scheme</span>
-<span class="source-line-no">231</span><span id="line-231">   * @param root root directory path</span>
-<span class="source-line-no">232</span><span id="line-232">   * @return Passed &lt;code&gt;root&lt;/code&gt; argument.</span>
-<span class="source-line-no">233</span><span id="line-233">   * @throws IOException if not a valid URI with a scheme</span>
-<span class="source-line-no">234</span><span id="line-234">   */</span>
-<span class="source-line-no">235</span><span id="line-235">  public static Path validateRootPath(Path root) throws IOException {</span>
-<span class="source-line-no">236</span><span id="line-236">    try {</span>
-<span class="source-line-no">237</span><span id="line-237">      URI rootURI = new URI(root.toString());</span>
-<span class="source-line-no">238</span><span id="line-238">      String scheme = rootURI.getScheme();</span>
-<span class="source-line-no">239</span><span id="line-239">      if (scheme == null) {</span>
-<span class="source-line-no">240</span><span id="line-240">        throw new IOException("Root directory does not have a scheme");</span>
-<span class="source-line-no">241</span><span id="line-241">      }</span>
-<span class="source-line-no">242</span><span id="line-242">      return root;</span>
-<span class="source-line-no">243</span><span id="line-243">    } catch (URISyntaxException e) {</span>
-<span class="source-line-no">244</span><span id="line-244">      throw new IOException("Root directory path is not a valid " + "URI -- check your "</span>
-<span class="source-line-no">245</span><span id="line-245">        + HConstants.HBASE_DIR + " configuration", e);</span>
-<span class="source-line-no">246</span><span id="line-246">    }</span>
-<span class="source-line-no">247</span><span id="line-247">  }</span>
-<span class="source-line-no">248</span><span id="line-248"></span>
-<span class="source-line-no">249</span><span id="line-249">  /**</span>
-<span class="source-line-no">250</span><span id="line-250">   * Checks for the presence of the WAL log root path (using the provided conf object) in the given</span>
-<span class="source-line-no">251</span><span id="line-251">   * path. If it exists, this method removes it and returns the String representation of remaining</span>
-<span class="source-line-no">252</span><span id="line-252">   * relative path.</span>
-<span class="source-line-no">253</span><span id="line-253">   * @param path must not be null</span>
-<span class="source-line-no">254</span><span id="line-254">   * @param conf must not be null</span>
-<span class="source-line-no">255</span><span id="line-255">   * @return String representation of the remaining relative path</span>
-<span class="source-line-no">256</span><span id="line-256">   * @throws IOException from underlying filesystem</span>
-<span class="source-line-no">257</span><span id="line-257">   */</span>
-<span class="source-line-no">258</span><span id="line-258">  public static String removeWALRootPath(Path path, final Configuration conf) throws IOException {</span>
-<span class="source-line-no">259</span><span id="line-259">    Path root = getWALRootDir(conf);</span>
-<span class="source-line-no">260</span><span id="line-260">    String pathStr = path.toString();</span>
-<span class="source-line-no">261</span><span id="line-261">    // check that the path is absolute... it has the root path in it.</span>
-<span class="source-line-no">262</span><span id="line-262">    if (!pathStr.startsWith(root.toString())) {</span>
-<span class="source-line-no">263</span><span id="line-263">      return pathStr;</span>
-<span class="source-line-no">264</span><span id="line-264">    }</span>
-<span class="source-line-no">265</span><span id="line-265">    // if not, return as it is.</span>
-<span class="source-line-no">266</span><span id="line-266">    return pathStr.substring(root.toString().length() + 1);// remove the "/" too.</span>
-<span class="source-line-no">267</span><span id="line-267">  }</span>
-<span class="source-line-no">268</span><span id="line-268"></span>
-<span class="source-line-no">269</span><span id="line-269">  /**</span>
-<span class="source-line-no">270</span><span id="line-270">   * Return the 'path' component of a Path. In Hadoop, Path is a URI. This method returns the 'path'</span>
-<span class="source-line-no">271</span><span id="line-271">   * component of a Path's URI: e.g. If a Path is</span>
-<span class="source-line-no">272</span><span id="line-272">   * &lt;code&gt;hdfs://example.org:9000/hbase_trunk/TestTable/compaction.dir&lt;/code&gt;, this method returns</span>
-<span class="source-line-no">273</span><span id="line-273">   * &lt;code&gt;/hbase_trunk/TestTable/compaction.dir&lt;/code&gt;. This method is useful if you want to print</span>
-<span class="source-line-no">274</span><span id="line-274">   * out a Path without qualifying Filesystem instance.</span>
-<span class="source-line-no">275</span><span id="line-275">   * @param p Filesystem Path whose 'path' component we are to return.</span>
-<span class="source-line-no">276</span><span id="line-276">   * @return Path portion of the Filesystem</span>
-<span class="source-line-no">277</span><span id="line-277">   */</span>
-<span class="source-line-no">278</span><span id="line-278">  public static String getPath(Path p) {</span>
-<span class="source-line-no">279</span><span id="line-279">    return p.toUri().getPath();</span>
-<span class="source-line-no">280</span><span id="line-280">  }</span>
-<span class="source-line-no">281</span><span id="line-281"></span>
-<span class="source-line-no">282</span><span id="line-282">  /**</span>
-<span class="source-line-no">283</span><span id="line-283">   * Get the path for the root data directory</span>
-<span class="source-line-no">284</span><span id="line-284">   * @param c configuration</span>
-<span class="source-line-no">285</span><span id="line-285">   * @return {@link Path} to hbase root directory from configuration as a qualified Path.</span>
-<span class="source-line-no">286</span><span id="line-286">   * @throws IOException e</span>
-<span class="source-line-no">287</span><span id="line-287">   */</span>
-<span class="source-line-no">288</span><span id="line-288">  public static Path getRootDir(final Configuration c) throws IOException {</span>
-<span class="source-line-no">289</span><span id="line-289">    Path p = new Path(c.get(HConstants.HBASE_DIR));</span>
-<span class="source-line-no">290</span><span id="line-290">    FileSystem fs = p.getFileSystem(c);</span>
-<span class="source-line-no">291</span><span id="line-291">    return p.makeQualified(fs.getUri(), fs.getWorkingDirectory());</span>
-<span class="source-line-no">292</span><span id="line-292">  }</span>
-<span class="source-line-no">293</span><span id="line-293"></span>
-<span class="source-line-no">294</span><span id="line-294">  public static void setRootDir(final Configuration c, final Path root) {</span>
-<span class="source-line-no">295</span><span id="line-295">    c.set(HConstants.HBASE_DIR, root.toString());</span>
-<span class="source-line-no">296</span><span id="line-296">  }</span>
-<span class="source-line-no">297</span><span id="line-297"></span>
-<span class="source-line-no">298</span><span id="line-298">  public static void setFsDefault(final Configuration c, final Path root) {</span>
-<span class="source-line-no">299</span><span id="line-299">    c.set("fs.defaultFS", root.toString()); // for hadoop 0.21+</span>
-<span class="source-line-no">300</span><span id="line-300">  }</span>
-<span class="source-line-no">301</span><span id="line-301"></span>
-<span class="source-line-no">302</span><span id="line-302">  public static void setFsDefault(final Configuration c, final String uri) {</span>
-<span class="source-line-no">303</span><span id="line-303">    c.set("fs.defaultFS", uri); // for hadoop 0.21+</span>
-<span class="source-line-no">304</span><span id="line-304">  }</span>
-<span class="source-line-no">305</span><span id="line-305"></span>
-<span class="source-line-no">306</span><span id="line-306">  public static FileSystem getRootDirFileSystem(final Configuration c) throws IOException {</span>
-<span class="source-line-no">307</span><span id="line-307">    Path p = getRootDir(c);</span>
-<span class="source-line-no">308</span><span id="line-308">    return p.getFileSystem(c);</span>
-<span class="source-line-no">309</span><span id="line-309">  }</span>
-<span class="source-line-no">310</span><span id="line-310"></span>
-<span class="source-line-no">311</span><span id="line-311">  /**</span>
-<span class="source-line-no">312</span><span id="line-312">   * Get the path for the root directory for WAL data</span>
-<span class="source-line-no">313</span><span id="line-313">   * @param c configuration</span>
-<span class="source-line-no">314</span><span id="line-314">   * @return {@link Path} to hbase log root directory: e.g. {@value HBASE_WAL_DIR} from</span>
-<span class="source-line-no">315</span><span id="line-315">   *         configuration as a qualified Path. Defaults to HBase root dir.</span>
-<span class="source-line-no">316</span><span id="line-316">   * @throws IOException e</span>
-<span class="source-line-no">317</span><span id="line-317">   */</span>
-<span class="source-line-no">318</span><span id="line-318">  public static Path getWALRootDir(final Configuration c) throws IOException {</span>
-<span class="source-line-no">319</span><span id="line-319">    Path p = new Path(c.get(HBASE_WAL_DIR, c.get(HConstants.HBASE_DIR)));</span>
-<span class="source-line-no">320</span><span id="line-320">    if (!isValidWALRootDir(p, c)) {</span>
-<span class="source-line-no">321</span><span id="line-321">      return getRootDir(c);</span>
-<span class="source-line-no">322</span><span id="line-322">    }</span>
-<span class="source-line-no">323</span><span id="line-323">    FileSystem fs = p.getFileSystem(c);</span>
-<span class="source-line-no">324</span><span id="line-324">    return p.makeQualified(fs.getUri(), fs.getWorkingDirectory());</span>
-<span class="source-line-no">325</span><span id="line-325">  }</span>
-<span class="source-line-no">326</span><span id="line-326"></span>
-<span class="source-line-no">327</span><span id="line-327">  /**</span>
-<span class="source-line-no">328</span><span id="line-328">   * Returns the URI in the string format</span>
-<span class="source-line-no">329</span><span id="line-329">   * @param c configuration</span>
-<span class="source-line-no">330</span><span id="line-330">   * @param p path</span>
-<span class="source-line-no">331</span><span id="line-331">   * @return - the URI's to string format</span>
-<span class="source-line-no">332</span><span id="line-332">   */</span>
-<span class="source-line-no">333</span><span id="line-333">  public static String getDirUri(final Configuration c, Path p) throws IOException {</span>
-<span class="source-line-no">334</span><span id="line-334">    if (p.toUri().getScheme() != null) {</span>
-<span class="source-line-no">335</span><span id="line-335">      return p.toUri().toString();</span>
-<span class="source-line-no">336</span><span id="line-336">    }</span>
-<span class="source-line-no">337</span><span id="line-337">    return null;</span>
-<span class="source-line-no">338</span><span id="line-338">  }</span>
-<span class="source-line-no">339</span><span id="line-339"></span>
-<span class="source-line-no">340</span><span id="line-340">  public static void setWALRootDir(final Configuration c, final Path root) {</span>
-<span class="source-line-no">341</span><span id="line-341">    c.set(HBASE_WAL_DIR, root.toString());</span>
-<span class="source-line-no">342</span><span id="line-342">  }</span>
-<span class="source-line-no">343</span><span id="line-343"></span>
-<span class="source-line-no">344</span><span id="line-344">  public static FileSystem getWALFileSystem(final Configuration c) throws IOException {</span>
-<span class="source-line-no">345</span><span id="line-345">    Path p = getWALRootDir(c);</span>
-<span class="source-line-no">346</span><span id="line-346">    FileSystem fs = p.getFileSystem(c);</span>
-<span class="source-line-no">347</span><span id="line-347">    // hadoop-core does fs caching, so need to propagate this if set</span>
-<span class="source-line-no">348</span><span id="line-348">    String enforceStreamCapability = c.get(UNSAFE_STREAM_CAPABILITY_ENFORCE);</span>
-<span class="source-line-no">349</span><span id="line-349">    if (enforceStreamCapability != null) {</span>
-<span class="source-line-no">350</span><span id="line-350">      fs.getConf().set(UNSAFE_STREAM_CAPABILITY_ENFORCE, enforceStreamCapability);</span>
-<span class="source-line-no">351</span><span id="line-351">    }</span>
-<span class="source-line-no">352</span><span id="line-352">    return fs;</span>
-<span class="source-line-no">353</span><span id="line-353">  }</span>
-<span class="source-line-no">354</span><span id="line-354"></span>
-<span class="source-line-no">355</span><span id="line-355">  private static boolean isValidWALRootDir(Path walDir, final Configuration c) throws IOException {</span>
-<span class="source-line-no">356</span><span id="line-356">    Path rootDir = getRootDir(c);</span>
-<span class="source-line-no">357</span><span id="line-357">    FileSystem fs = walDir.getFileSystem(c);</span>
-<span class="source-line-no">358</span><span id="line-358">    Path qualifiedWalDir = walDir.makeQualified(fs.getUri(), fs.getWorkingDirectory());</span>
-<span class="source-line-no">359</span><span id="line-359">    if (!qualifiedWalDir.equals(rootDir)) {</span>
-<span class="source-line-no">360</span><span id="line-360">      if (qualifiedWalDir.toString().startsWith(rootDir.toString() + "/")) {</span>
-<span class="source-line-no">361</span><span id="line-361">        throw new IllegalStateException("Illegal WAL directory specified. "</span>
-<span class="source-line-no">362</span><span id="line-362">          + "WAL directories are not permitted to be under root directory: rootDir="</span>
-<span class="source-line-no">363</span><span id="line-363">          + rootDir.toString() + ", qualifiedWALDir=" + qualifiedWalDir);</span>
-<span class="source-line-no">364</span><span id="line-364">      }</span>
-<span class="source-line-no">365</span><span id="line-365">    }</span>
-<span class="source-line-no">366</span><span id="line-366">    return true;</span>
-<span class="source-line-no">367</span><span id="line-367">  }</span>
-<span class="source-line-no">368</span><span id="line-368"></span>
-<span class="source-line-no">369</span><span id="line-369">  /**</span>
-<span class="source-line-no">370</span><span id="line-370">   * Returns the WAL region directory based on the given table name and region name</span>
-<span class="source-line-no">371</span><span id="line-371">   * @param conf              configuration to determine WALRootDir</span>
-<span class="source-line-no">372</span><span id="line-372">   * @param tableName         Table that the region is under</span>
-<span class="source-line-no">373</span><span id="line-373">   * @param encodedRegionName Region name used for creating the final region directory</span>
-<span class="source-line-no">374</span><span id="line-374">   * @return the region directory used to store WALs under the WALRootDir</span>
-<span class="source-line-no">375</span><span id="line-375">   * @throws IOException if there is an exception determining the WALRootDir</span>
-<span class="source-line-no">376</span><span id="line-376">   */</span>
-<span class="source-line-no">377</span><span id="line-377">  public static Path getWALRegionDir(final Configuration conf, final TableName tableName,</span>
-<span class="source-line-no">378</span><span id="line-378">    final String encodedRegionName) throws IOException {</span>
-<span class="source-line-no">379</span><span id="line-379">    return new Path(getWALTableDir(conf, tableName), encodedRegionName);</span>
-<span class="source-line-no">380</span><span id="line-380">  }</span>
-<span class="source-line-no">381</span><span id="line-381"></span>
-<span class="source-line-no">382</span><span id="line-382">  /**</span>
-<span class="source-line-no">383</span><span id="line-383">   * Returns the Table directory under the WALRootDir for the specified table name</span>
-<span class="source-line-no">384</span><span id="line-384">   * @param conf      configuration used to get the WALRootDir</span>
-<span class="source-line-no">385</span><span id="line-385">   * @param tableName Table to get the directory for</span>
-<span class="source-line-no">386</span><span id="line-386">   * @return a path to the WAL table directory for the specified table</span>
-<span class="source-line-no">387</span><span id="line-387">   * @throws IOException if there is an exception determining the WALRootDir</span>
-<span class="source-line-no">388</span><span id="line-388">   */</span>
-<span class="source-line-no">389</span><span id="line-389">  public static Path getWALTableDir(final Configuration conf, final TableName tableName)</span>
-<span class="source-line-no">390</span><span id="line-390">    throws IOException {</span>
-<span class="source-line-no">391</span><span id="line-391">    Path baseDir = new Path(getWALRootDir(conf), HConstants.BASE_NAMESPACE_DIR);</span>
-<span class="source-line-no">392</span><span id="line-392">    return new Path(new Path(baseDir, tableName.getNamespaceAsString()),</span>
-<span class="source-line-no">393</span><span id="line-393">      tableName.getQualifierAsString());</span>
-<span class="source-line-no">394</span><span id="line-394">  }</span>
-<span class="source-line-no">395</span><span id="line-395"></span>
-<span class="source-line-no">396</span><span id="line-396">  /**</span>
-<span class="source-line-no">397</span><span id="line-397">   * For backward compatibility with HBASE-20734, where we store recovered edits in a wrong</span>
-<span class="source-line-no">398</span><span id="line-398">   * directory without BASE_NAMESPACE_DIR. See HBASE-22617 for more details.</span>
-<span class="source-line-no">399</span><span id="line-399">   * @deprecated For compatibility, will be removed in 4.0.0.</span>
-<span class="source-line-no">400</span><span id="line-400">   */</span>
-<span class="source-line-no">401</span><span id="line-401">  @Deprecated</span>
-<span class="source-line-no">402</span><span id="line-402">  public static Path getWrongWALRegionDir(final Configuration conf, final TableName tableName,</span>
-<span class="source-line-no">403</span><span id="line-403">    final String encodedRegionName) throws IOException {</span>
-<span class="source-line-no">404</span><span id="line-404">    Path wrongTableDir = new Path(new Path(getWALRootDir(conf), tableName.getNamespaceAsString()),</span>
-<span class="source-line-no">405</span><span id="line-405">      tableName.getQualifierAsString());</span>
-<span class="source-line-no">406</span><span id="line-406">    return new Path(wrongTableDir, encodedRegionName);</span>
-<span class="source-line-no">407</span><span id="line-407">  }</span>
-<span class="source-line-no">408</span><span id="line-408"></span>
-<span class="source-line-no">409</span><span id="line-409">  /**</span>
-<span class="source-line-no">410</span><span id="line-410">   * Returns the {@link org.apache.hadoop.fs.Path} object representing the table directory under</span>
-<span class="source-line-no">411</span><span id="line-411">   * path rootdir</span>
-<span class="source-line-no">412</span><span id="line-412">   * @param rootdir   qualified path of HBase root directory</span>
-<span class="source-line-no">413</span><span id="line-413">   * @param tableName name of table</span>
-<span class="source-line-no">414</span><span id="line-414">   * @return {@link org.apache.hadoop.fs.Path} for table</span>
-<span class="source-line-no">415</span><span id="line-415">   */</span>
-<span class="source-line-no">416</span><span id="line-416">  public static Path getTableDir(Path rootdir, final TableName tableName) {</span>
-<span class="source-line-no">417</span><span id="line-417">    return new Path(getNamespaceDir(rootdir, tableName.getNamespaceAsString()),</span>
-<span class="source-line-no">418</span><span id="line-418">      tableName.getQualifierAsString());</span>
-<span class="source-line-no">419</span><span id="line-419">  }</span>
-<span class="source-line-no">420</span><span id="line-420"></span>
-<span class="source-line-no">421</span><span id="line-421">  /**</span>
-<span class="source-line-no">422</span><span id="line-422">   * Returns the {@link org.apache.hadoop.fs.Path} object representing the region directory under</span>
-<span class="source-line-no">423</span><span id="line-423">   * path rootdir</span>
-<span class="source-line-no">424</span><span id="line-424">   * @param rootdir    qualified path of HBase root directory</span>
-<span class="source-line-no">425</span><span id="line-425">   * @param tableName  name of table</span>
-<span class="source-line-no">426</span><span id="line-426">   * @param regionName The encoded region name</span>
-<span class="source-line-no">427</span><span id="line-427">   * @return {@link org.apache.hadoop.fs.Path} for region</span>
-<span class="source-line-no">428</span><span id="line-428">   */</span>
-<span class="source-line-no">429</span><span id="line-429">  public static Path getRegionDir(Path rootdir, TableName tableName, String regionName) {</span>
-<span class="source-line-no">430</span><span id="line-430">    return new Path(getTableDir(rootdir, tableName), regionName);</span>
-<span class="source-line-no">431</span><span id="line-431">  }</span>
-<span class="source-line-no">432</span><span id="line-432"></span>
-<span class="source-line-no">433</span><span id="line-433">  /**</span>
-<span class="source-line-no">434</span><span id="line-434">   * Returns the {@link org.apache.hadoop.hbase.TableName} object representing the table directory</span>
-<span class="source-line-no">435</span><span id="line-435">   * under path rootdir</span>
-<span class="source-line-no">436</span><span id="line-436">   * @param tablePath path of table</span>
-<span class="source-line-no">437</span><span id="line-437">   * @return {@link org.apache.hadoop.fs.Path} for table</span>
-<span class="source-line-no">438</span><span id="line-438">   */</span>
-<span class="source-line-no">439</span><span id="line-439">  public static TableName getTableName(Path tablePath) {</span>
-<span class="source-line-no">440</span><span id="line-440">    return TableName.valueOf(tablePath.getParent().getName(), tablePath.getName());</span>
-<span class="source-line-no">441</span><span id="line-441">  }</span>
-<span class="source-line-no">442</span><span id="line-442"></span>
-<span class="source-line-no">443</span><span id="line-443">  /**</span>
-<span class="source-line-no">444</span><span id="line-444">   * Returns the {@link org.apache.hadoop.fs.Path} object representing the namespace directory under</span>
-<span class="source-line-no">445</span><span id="line-445">   * path rootdir</span>
-<span class="source-line-no">446</span><span id="line-446">   * @param rootdir   qualified path of HBase root directory</span>
-<span class="source-line-no">447</span><span id="line-447">   * @param namespace namespace name</span>
-<span class="source-line-no">448</span><span id="line-448">   * @return {@link org.apache.hadoop.fs.Path} for table</span>
-<span class="source-line-no">449</span><span id="line-449">   */</span>
-<span class="source-line-no">450</span><span id="line-450">  public static Path getNamespaceDir(Path rootdir, final String namespace) {</span>
-<span class="source-line-no">451</span><span id="line-451">    return new Path(rootdir, new Path(HConstants.BASE_NAMESPACE_DIR, new Path(namespace)));</span>
-<span class="source-line-no">452</span><span id="line-452">  }</span>
-<span class="source-line-no">453</span><span id="line-453"></span>
-<span class="source-line-no">454</span><span id="line-454">  // this mapping means that under a federated FileSystem implementation, we'll</span>
-<span class="source-line-no">455</span><span id="line-455">  // only log the first failure from any of the underlying FileSystems at WARN and all others</span>
-<span class="source-line-no">456</span><span id="line-456">  // will be at DEBUG.</span>
-<span class="source-line-no">457</span><span id="line-457">  private static final Map&lt;FileSystem, Boolean&gt; warningMap = new ConcurrentHashMap&lt;&gt;();</span>
-<span class="source-line-no">458</span><span id="line-458"></span>
-<span class="source-line-no">459</span><span id="line-459">  /**</span>
-<span class="source-line-no">460</span><span id="line-460">   * Sets storage policy for given path. If the passed path is a directory, we'll set the storage</span>
-<span class="source-line-no">461</span><span id="line-461">   * policy for all files created in the future in said directory. Note that this change in storage</span>
-<span class="source-line-no">462</span><span id="line-462">   * policy takes place at the FileSystem level; it will persist beyond this RS's lifecycle. If</span>
-<span class="source-line-no">463</span><span id="line-463">   * we're running on a version of FileSystem that doesn't support the given storage policy (or</span>
-<span class="source-line-no">464</span><span id="line-464">   * storage policies at all), then we'll issue a log message and continue. See</span>
-<span class="source-line-no">465</span><span id="line-465">   * http://hadoop.apache.org/docs/r2.6.0/hadoop-project-dist/hadoop-hdfs/ArchivalStorage.html</span>
-<span class="source-line-no">466</span><span id="line-466">   * @param fs            We only do anything it implements a setStoragePolicy method</span>
-<span class="source-line-no">467</span><span id="line-467">   * @param path          the Path whose storage policy is to be set</span>
-<span class="source-line-no">468</span><span id="line-468">   * @param storagePolicy Policy to set on &lt;code&gt;path&lt;/code&gt;; see hadoop 2.6+</span>
-<span class="source-line-no">469</span><span id="line-469">   *                      org.apache.hadoop.hdfs.protocol.HdfsConstants for possible list e.g</span>
-<span class="source-line-no">470</span><span id="line-470">   *                      'COLD', 'WARM', 'HOT', 'ONE_SSD', 'ALL_SSD', 'LAZY_PERSIST'.</span>
-<span class="source-line-no">471</span><span id="line-471">   */</span>
-<span class="source-line-no">472</span><span id="line-472">  public static void setStoragePolicy(final FileSystem fs, final Path path,</span>
-<span class="source-line-no">473</span><span id="line-473">    final String storagePolicy) {</span>
-<span class="source-line-no">474</span><span id="line-474">    try {</span>
-<span class="source-line-no">475</span><span id="line-475">      setStoragePolicy(fs, path, storagePolicy, false);</span>
-<span class="source-line-no">476</span><span id="line-476">    } catch (IOException e) {</span>
-<span class="source-line-no">477</span><span id="line-477">      // should never arrive here</span>
-<span class="source-line-no">478</span><span id="line-478">      LOG.warn("We have chosen not to throw exception but some unexpectedly thrown out", e);</span>
-<span class="source-line-no">479</span><span id="line-479">    }</span>
-<span class="source-line-no">480</span><span id="line-480">  }</span>
-<span class="source-line-no">481</span><span id="line-481"></span>
-<span class="source-line-no">482</span><span id="line-482">  static void setStoragePolicy(final FileSystem fs, final Path path, final String storagePolicy,</span>
-<span class="source-line-no">483</span><span id="line-483">    boolean throwException) throws IOException {</span>
-<span class="source-line-no">484</span><span id="line-484">    if (storagePolicy == null) {</span>
-<span class="source-line-no">485</span><span id="line-485">      if (LOG.isTraceEnabled()) {</span>
-<span class="source-line-no">486</span><span id="line-486">        LOG.trace("We were passed a null storagePolicy, exiting early.");</span>
-<span class="source-line-no">487</span><span id="line-487">      }</span>
-<span class="source-line-no">488</span><span id="line-488">      return;</span>
-<span class="source-line-no">489</span><span id="line-489">    }</span>
-<span class="source-line-no">490</span><span id="line-490">    String trimmedStoragePolicy = storagePolicy.trim();</span>
-<span class="source-line-no">491</span><span id="line-491">    if (trimmedStoragePolicy.isEmpty()) {</span>
-<span class="source-line-no">492</span><span id="line-492">      LOG.trace("We were passed an empty storagePolicy, exiting early.");</span>
-<span class="source-line-no">493</span><span id="line-493">      return;</span>
-<span class="source-line-no">494</span><span id="line-494">    } else {</span>
-<span class="source-line-no">495</span><span id="line-495">      trimmedStoragePolicy = trimmedStoragePolicy.toUpperCase(Locale.ROOT);</span>
-<span class="source-line-no">496</span><span id="line-496">    }</span>
-<span class="source-line-no">497</span><span id="line-497">    if (trimmedStoragePolicy.equals(HConstants.DEFER_TO_HDFS_STORAGE_POLICY)) {</span>
-<span class="source-line-no">498</span><span id="line-498">      LOG.trace("We were passed the defer-to-hdfs policy {}, exiting early.", trimmedStoragePolicy);</span>
-<span class="source-line-no">499</span><span id="line-499">      return;</span>
-<span class="source-line-no">500</span><span id="line-500">    }</span>
-<span class="source-line-no">501</span><span id="line-501">    try {</span>
-<span class="source-line-no">502</span><span id="line-502">      invokeSetStoragePolicy(fs, path, trimmedStoragePolicy);</span>
-<span class="source-line-no">503</span><span id="line-503">    } catch (IOException e) {</span>
-<span class="source-line-no">504</span><span id="line-504">      LOG.trace("Failed to invoke set storage policy API on FS", e);</span>
-<span class="source-line-no">505</span><span id="line-505">      if (throwException) {</span>
-<span class="source-line-no">506</span><span id="line-506">        throw e;</span>
-<span class="source-line-no">507</span><span id="line-507">      }</span>
-<span class="source-line-no">508</span><span id="line-508">    }</span>
-<span class="source-line-no">509</span><span id="line-509">  }</span>
-<span class="source-line-no">510</span><span id="line-510"></span>
-<span class="source-line-no">511</span><span id="line-511">  /*</span>
-<span class="source-line-no">512</span><span id="line-512">   * All args have been checked and are good. Run the setStoragePolicy invocation.</span>
-<span class="source-line-no">513</span><span id="line-513">   */</span>
-<span class="source-line-no">514</span><span id="line-514">  private static void invokeSetStoragePolicy(final FileSystem fs, final Path path,</span>
-<span class="source-line-no">515</span><span id="line-515">    final String storagePolicy) throws IOException {</span>
-<span class="source-line-no">516</span><span id="line-516">    Exception toThrow = null;</span>
-<span class="source-line-no">517</span><span id="line-517"></span>
-<span class="source-line-no">518</span><span id="line-518">    try {</span>
-<span class="source-line-no">519</span><span id="line-519">      fs.setStoragePolicy(path, storagePolicy);</span>
-<span class="source-line-no">520</span><span id="line-520">      LOG.debug("Set storagePolicy={} for path={}", storagePolicy, path);</span>
-<span class="source-line-no">521</span><span id="line-521">    } catch (Exception e) {</span>
-<span class="source-line-no">522</span><span id="line-522">      toThrow = e;</span>
-<span class="source-line-no">523</span><span id="line-523">      // This swallows FNFE, should we be throwing it? seems more likely to indicate dev</span>
-<span class="source-line-no">524</span><span id="line-524">      // misuse than a runtime problem with HDFS.</span>
-<span class="source-line-no">525</span><span id="line-525">      if (!warningMap.containsKey(fs)) {</span>
-<span class="source-line-no">526</span><span id="line-526">        warningMap.put(fs, true);</span>
-<span class="source-line-no">527</span><span id="line-527">        LOG.warn("Unable to set storagePolicy=" + storagePolicy + " for path=" + path + ". "</span>
-<span class="source-line-no">528</span><span id="line-528">          + "DEBUG log level might have more details.", e);</span>
-<span class="source-line-no">529</span><span id="line-529">      } else if (LOG.isDebugEnabled()) {</span>
-<span class="source-line-no">530</span><span id="line-530">        LOG.debug("Unable to set storagePolicy=" + storagePolicy + " for path=" + path, e);</span>
-<span class="source-line-no">531</span><span id="line-531">      }</span>
-<span class="source-line-no">532</span><span id="line-532"></span>
-<span class="source-line-no">533</span><span id="line-533">      // Hadoop 2.8+, 3.0-a1+ added FileSystem.setStoragePolicy with a default implementation</span>
-<span class="source-line-no">534</span><span id="line-534">      // that throws UnsupportedOperationException</span>
-<span class="source-line-no">535</span><span id="line-535">      if (e instanceof UnsupportedOperationException) {</span>
-<span class="source-line-no">536</span><span id="line-536">        if (LOG.isDebugEnabled()) {</span>
-<span class="source-line-no">537</span><span id="line-537">          LOG.debug("The underlying FileSystem implementation doesn't support "</span>
-<span class="source-line-no">538</span><span id="line-538">            + "setStoragePolicy. This is probably intentional on their part, since HDFS-9345 "</span>
-<span class="source-line-no">539</span><span id="line-539">            + "appears to be present in your version of Hadoop. For more information check "</span>
-<span class="source-line-no">540</span><span id="line-540">            + "the Hadoop documentation on 'ArchivalStorage', the Hadoop FileSystem "</span>
-<span class="source-line-no">541</span><span id="line-541">            + "specification docs from HADOOP-11981, and/or related documentation from the "</span>
-<span class="source-line-no">542</span><span id="line-542">            + "provider of the underlying FileSystem (its name should appear in the "</span>
-<span class="source-line-no">543</span><span id="line-543">            + "stacktrace that accompanies this message). Note in particular that Hadoop's "</span>
-<span class="source-line-no">544</span><span id="line-544">            + "local filesystem implementation doesn't support storage policies.", e);</span>
-<span class="source-line-no">545</span><span id="line-545">        }</span>
-<span class="source-line-no">546</span><span id="line-546">      }</span>
-<span class="source-line-no">547</span><span id="line-547">    }</span>
-<span class="source-line-no">548</span><span id="line-548"></span>
-<span class="source-line-no">549</span><span id="line-549">    if (toThrow != null) {</span>
-<span class="source-line-no">550</span><span id="line-550">      throw new IOException(toThrow);</span>
-<span class="source-line-no">551</span><span id="line-551">    }</span>
-<span class="source-line-no">552</span><span id="line-552">  }</span>
-<span class="source-line-no">553</span><span id="line-553"></span>
-<span class="source-line-no">554</span><span id="line-554">  /**</span>
-<span class="source-line-no">555</span><span id="line-555">   * Return true if this is a filesystem whose scheme is 'hdfs'.</span>
-<span class="source-line-no">556</span><span id="line-556">   * @throws IOException from underlying FileSystem</span>
-<span class="source-line-no">557</span><span id="line-557">   */</span>
-<span class="source-line-no">558</span><span id="line-558">  public static boolean isHDFS(final Configuration conf) throws IOException {</span>
-<span class="source-line-no">559</span><span id="line-559">    FileSystem fs = FileSystem.get(conf);</span>
-<span class="source-line-no">560</span><span id="line-560">    String scheme = fs.getUri().getScheme();</span>
-<span class="source-line-no">561</span><span id="line-561">    return scheme.equalsIgnoreCase("hdfs");</span>
-<span class="source-line-no">562</span><span id="line-562">  }</span>
-<span class="source-line-no">563</span><span id="line-563"></span>
-<span class="source-line-no">564</span><span id="line-564">  /**</span>
-<span class="source-line-no">565</span><span id="line-565">   * Checks if the given path is the one with 'recovered.edits' dir.</span>
-<span class="source-line-no">566</span><span id="line-566">   * @param path must not be null</span>
-<span class="source-line-no">567</span><span id="line-567">   * @return True if we recovered edits</span>
-<span class="source-line-no">568</span><span id="line-568">   */</span>
-<span class="source-line-no">569</span><span id="line-569">  public static boolean isRecoveredEdits(Path path) {</span>
-<span class="source-line-no">570</span><span id="line-570">    return path.toString().contains(HConstants.RECOVERED_EDITS_DIR);</span>
-<span class="source-line-no">571</span><span id="line-571">  }</span>
-<span class="source-line-no">572</span><span id="line-572"></span>
-<span class="source-line-no">573</span><span id="line-573">  /**</span>
-<span class="source-line-no">574</span><span id="line-574">   * Returns the filesystem of the hbase rootdir.</span>
-<span class="source-line-no">575</span><span id="line-575">   * @throws IOException from underlying FileSystem</span>
-<span class="source-line-no">576</span><span id="line-576">   */</span>
-<span class="source-line-no">577</span><span id="line-577">  public static FileSystem getCurrentFileSystem(Configuration conf) throws IOException {</span>
-<span class="source-line-no">578</span><span id="line-578">    return getRootDir(conf).getFileSystem(conf);</span>
-<span class="source-line-no">579</span><span id="line-579">  }</span>
-<span class="source-line-no">580</span><span id="line-580"></span>
-<span class="source-line-no">581</span><span id="line-581">  /**</span>
-<span class="source-line-no">582</span><span id="line-582">   * Calls fs.listStatus() and treats FileNotFoundException as non-fatal This accommodates</span>
-<span class="source-line-no">583</span><span id="line-583">   * differences between hadoop versions, where hadoop 1 does not throw a FileNotFoundException, and</span>
-<span class="source-line-no">584</span><span id="line-584">   * return an empty FileStatus[] while Hadoop 2 will throw FileNotFoundException. Where possible,</span>
-<span class="source-line-no">585</span><span id="line-585">   * prefer FSUtils#listStatusWithStatusFilter(FileSystem, Path, FileStatusFilter) instead.</span>
-<span class="source-line-no">586</span><span id="line-586">   * @param fs     file system</span>
-<span class="source-line-no">587</span><span id="line-587">   * @param dir    directory</span>
-<span class="source-line-no">588</span><span id="line-588">   * @param filter path filter</span>
-<span class="source-line-no">589</span><span id="line-589">   * @return null if dir is empty or doesn't exist, otherwise FileStatus array</span>
-<span class="source-line-no">590</span><span id="line-590">   */</span>
-<span class="source-line-no">591</span><span id="line-591">  public static FileStatus[] listStatus(final FileSystem fs, final Path dir,</span>
-<span class="source-line-no">592</span><span id="line-592">    final PathFilter filter) throws IOException {</span>
-<span class="source-line-no">593</span><span id="line-593">    FileStatus[] status = null;</span>
-<span class="source-line-no">594</span><span id="line-594">    try {</span>
-<span class="source-line-no">595</span><span id="line-595">      status = filter == null ? fs.listStatus(dir) : fs.listStatus(dir, filter);</span>
-<span class="source-line-no">596</span><span id="line-596">    } catch (FileNotFoundException fnfe) {</span>
-<span class="source-line-no">597</span><span id="line-597">      // if directory doesn't exist, return null</span>
-<span class="source-line-no">598</span><span id="line-598">      if (LOG.isTraceEnabled()) {</span>
-<span class="source-line-no">599</span><span id="line-599">        LOG.trace("{} doesn't exist", dir);</span>
-<span class="source-line-no">600</span><span id="line-600">      }</span>
-<span class="source-line-no">601</span><span id="line-601">    }</span>
-<span class="source-line-no">602</span><span id="line-602">    if (status == null || status.length &lt; 1) {</span>
-<span class="source-line-no">603</span><span id="line-603">      return null;</span>
-<span class="source-line-no">604</span><span id="line-604">    }</span>
-<span class="source-line-no">605</span><span id="line-605">    return status;</span>
-<span class="source-line-no">606</span><span id="line-606">  }</span>
-<span class="source-line-no">607</span><span id="line-607"></span>
-<span class="source-line-no">608</span><span id="line-608">  /**</span>
-<span class="source-line-no">609</span><span id="line-609">   * Calls fs.listStatus() and treats FileNotFoundException as non-fatal This would accommodates</span>
-<span class="source-line-no">610</span><span id="line-610">   * differences between hadoop versions</span>
-<span class="source-line-no">611</span><span id="line-611">   * @param fs  file system</span>
-<span class="source-line-no">612</span><span id="line-612">   * @param dir directory</span>
-<span class="source-line-no">613</span><span id="line-613">   * @return null if dir is empty or doesn't exist, otherwise FileStatus array</span>
-<span class="source-line-no">614</span><span id="line-614">   */</span>
-<span class="source-line-no">615</span><span id="line-615">  public static FileStatus[] listStatus(final FileSystem fs, final Path dir) throws IOException {</span>
-<span class="source-line-no">616</span><span id="line-616">    return listStatus(fs, dir, null);</span>
-<span class="source-line-no">617</span><span id="line-617">  }</span>
-<span class="source-line-no">618</span><span id="line-618"></span>
-<span class="source-line-no">619</span><span id="line-619">  /**</span>
-<span class="source-line-no">620</span><span id="line-620">   * Calls fs.listFiles() to get FileStatus and BlockLocations together for reducing rpc call</span>
-<span class="source-line-no">621</span><span id="line-621">   * @param fs  file system</span>
-<span class="source-line-no">622</span><span id="line-622">   * @param dir directory</span>
-<span class="source-line-no">623</span><span id="line-623">   * @return LocatedFileStatus list</span>
-<span class="source-line-no">624</span><span id="line-624">   */</span>
-<span class="source-line-no">625</span><span id="line-625">  public static List&lt;LocatedFileStatus&gt; listLocatedStatus(final FileSystem fs, final Path dir)</span>
-<span class="source-line-no">626</span><span id="line-626">    throws IOException {</span>
-<span class="source-line-no">627</span><span id="line-627">    List&lt;LocatedFileStatus&gt; status = null;</span>
-<span class="source-line-no">628</span><span id="line-628">    try {</span>
-<span class="source-line-no">629</span><span id="line-629">      RemoteIterator&lt;LocatedFileStatus&gt; locatedFileStatusRemoteIterator = fs.listFiles(dir, false);</span>
-<span class="source-line-no">630</span><span id="line-630">      while (locatedFileStatusRemoteIterator.hasNext()) {</span>
-<span class="source-line-no">631</span><span id="line-631">        if (status == null) {</span>
-<span class="source-line-no">632</span><span id="line-632">          status = Lists.newArrayList();</span>
-<span class="source-line-no">633</span><span id="line-633">        }</span>
-<span class="source-line-no">634</span><span id="line-634">        status.add(locatedFileStatusRemoteIterator.next());</span>
-<span class="source-line-no">635</span><span id="line-635">      }</span>
-<span class="source-line-no">636</span><span id="line-636">    } catch (FileNotFoundException fnfe) {</span>
-<span class="source-line-no">637</span><span id="line-637">      // if directory doesn't exist, return null</span>
-<span class="source-line-no">638</span><span id="line-638">      if (LOG.isTraceEnabled()) {</span>
-<span class="source-line-no">639</span><span id="line-639">        LOG.trace("{} doesn't exist", dir);</span>
-<span class="source-line-no">640</span><span id="line-640">      }</span>
-<span class="source-line-no">641</span><span id="line-641">    }</span>
-<span class="source-line-no">642</span><span id="line-642">    return status;</span>
-<span class="source-line-no">643</span><span id="line-643">  }</span>
-<span class="source-line-no">644</span><span id="line-644"></span>
-<span class="source-line-no">645</span><span id="line-645">  /**</span>
-<span class="source-line-no">646</span><span id="line-646">   * Calls fs.delete() and returns the value returned by the fs.delete()</span>
-<span class="source-line-no">647</span><span id="line-647">   * @param fs        must not be null</span>
-<span class="source-line-no">648</span><span id="line-648">   * @param path      must not be null</span>
-<span class="source-line-no">649</span><span id="line-649">   * @param recursive delete tree rooted at path</span>
-<span class="source-line-no">650</span><span id="line-650">   * @return the value returned by the fs.delete()</span>
-<span class="source-line-no">651</span><span id="line-651">   * @throws IOException from underlying FileSystem</span>
-<span class="source-line-no">652</span><span id="line-652">   */</span>
-<span class="source-line-no">653</span><span id="line-653">  public static boolean delete(final FileSystem fs, final Path path, final boolean recursive)</span>
-<span class="source-line-no">654</span><span id="line-654">    throws IOException {</span>
-<span class="source-line-no">655</span><span id="line-655">    return fs.delete(path, recursive);</span>
-<span class="source-line-no">656</span><span id="line-656">  }</span>
-<span class="source-line-no">657</span><span id="line-657"></span>
-<span class="source-line-no">658</span><span id="line-658">  /**</span>
-<span class="source-line-no">659</span><span id="line-659">   * Calls fs.exists(). Checks if the specified path exists</span>
-<span class="source-line-no">660</span><span id="line-660">   * @param fs   must not be null</span>
-<span class="source-line-no">661</span><span id="line-661">   * @param path must not be null</span>
-<span class="source-line-no">662</span><span id="line-662">   * @return the value returned by fs.exists()</span>
-<span class="source-line-no">663</span><span id="line-663">   * @throws IOException from underlying FileSystem</span>
-<span class="source-line-no">664</span><span id="line-664">   */</span>
-<span class="source-line-no">665</span><span id="line-665">  public static boolean isExists(final FileSystem fs, final Path path) throws IOException {</span>
-<span class="source-line-no">666</span><span id="line-666">    return fs.exists(path);</span>
-<span class="source-line-no">667</span><span id="line-667">  }</span>
-<span class="source-line-no">668</span><span id="line-668"></span>
-<span class="source-line-no">669</span><span id="line-669">  /**</span>
-<span class="source-line-no">670</span><span id="line-670">   * Log the current state of the filesystem from a certain root directory</span>
-<span class="source-line-no">671</span><span id="line-671">   * @param fs   filesystem to investigate</span>
-<span class="source-line-no">672</span><span id="line-672">   * @param root root file/directory to start logging from</span>
-<span class="source-line-no">673</span><span id="line-673">   * @param log  log to output information</span>
-<span class="source-line-no">674</span><span id="line-674">   * @throws IOException if an unexpected exception occurs</span>
-<span class="source-line-no">675</span><span id="line-675">   */</span>
-<span class="source-line-no">676</span><span id="line-676">  public static void logFileSystemState(final FileSystem fs, final Path root, Logger log)</span>
-<span class="source-line-no">677</span><span id="line-677">    throws IOException {</span>
-<span class="source-line-no">678</span><span id="line-678">    log.debug("File system contents for path {}", root);</span>
-<span class="source-line-no">679</span><span id="line-679">    logFSTree(log, fs, root, "|-");</span>
-<span class="source-line-no">680</span><span id="line-680">  }</span>
-<span class="source-line-no">681</span><span id="line-681"></span>
-<span class="source-line-no">682</span><span id="line-682">  /**</span>
-<span class="source-line-no">683</span><span id="line-683">   * Recursive helper to log the state of the FS</span>
-<span class="source-line-no">684</span><span id="line-684">   * @see #logFileSystemState(FileSystem, Path, Logger)</span>
-<span class="source-line-no">685</span><span id="line-685">   */</span>
-<span class="source-line-no">686</span><span id="line-686">  private static void logFSTree(Logger log, final FileSystem fs, final Path root, String prefix)</span>
-<span class="source-line-no">687</span><span id="line-687">    throws IOException {</span>
-<span class="source-line-no">688</span><span id="line-688">    FileStatus[] files = listStatus(fs, root, null);</span>
-<span class="source-line-no">689</span><span id="line-689">    if (files == null) {</span>
-<span class="source-line-no">690</span><span id="line-690">      return;</span>
-<span class="source-line-no">691</span><span id="line-691">    }</span>
-<span class="source-line-no">692</span><span id="line-692"></span>
-<span class="source-line-no">693</span><span id="line-693">    for (FileStatus file : files) {</span>
-<span class="source-line-no">694</span><span id="line-694">      if (file.isDirectory()) {</span>
-<span class="source-line-no">695</span><span id="line-695">        log.debug(prefix + file.getPath().getName() + "/");</span>
-<span class="source-line-no">696</span><span id="line-696">        logFSTree(log, fs, file.getPath(), prefix + "---");</span>
-<span class="source-line-no">697</span><span id="line-697">      } else {</span>
-<span class="source-line-no">698</span><span id="line-698">        log.debug(prefix + file.getPath().getName());</span>
-<span class="source-line-no">699</span><span id="line-699">      }</span>
-<span class="source-line-no">700</span><span id="line-700">    }</span>
-<span class="source-line-no">701</span><span id="line-701">  }</span>
-<span class="source-line-no">702</span><span id="line-702"></span>
-<span class="source-line-no">703</span><span id="line-703">  public static boolean renameAndSetModifyTime(final FileSystem fs, final Path src, final Path dest)</span>
-<span class="source-line-no">704</span><span id="line-704">    throws IOException {</span>
-<span class="source-line-no">705</span><span id="line-705">    // set the modify time for TimeToLive Cleaner</span>
-<span class="source-line-no">706</span><span id="line-706">    fs.setTimes(src, EnvironmentEdgeManager.currentTime(), -1);</span>
-<span class="source-line-no">707</span><span id="line-707">    return fs.rename(src, dest);</span>
+<span class="source-line-no">045</span><span id="line-45">import org.apache.hbase.thirdparty.com.google.common.collect.Lists;</span>
+<span class="source-line-no">046</span><span id="line-46"></span>
+<span class="source-line-no">047</span><span id="line-47">/**</span>
+<span class="source-line-no">048</span><span id="line-48"> * Utility methods for interacting with the underlying file system.</span>
+<span class="source-line-no">049</span><span id="line-49"> * &lt;p/&gt;</span>
+<span class="source-line-no">050</span><span id="line-50"> * Note that {@link #setStoragePolicy(FileSystem, Path, String)} is tested in TestFSUtils and</span>
+<span class="source-line-no">051</span><span id="line-51"> * pre-commit will run the hbase-server tests if there's code change in this class. See</span>
+<span class="source-line-no">052</span><span id="line-52"> * &lt;a href="https://issues.apache.org/jira/browse/HBASE-20838"&gt;HBASE-20838&lt;/a&gt; for more details.</span>
+<span class="source-line-no">053</span><span id="line-53"> */</span>
+<span class="source-line-no">054</span><span id="line-54">@InterfaceAudience.Private</span>
+<span class="source-line-no">055</span><span id="line-55">public final class CommonFSUtils {</span>
+<span class="source-line-no">056</span><span id="line-56">  private static final Logger LOG = LoggerFactory.getLogger(CommonFSUtils.class);</span>
+<span class="source-line-no">057</span><span id="line-57"></span>
+<span class="source-line-no">058</span><span id="line-58">  /** Parameter name for HBase WAL directory */</span>
+<span class="source-line-no">059</span><span id="line-59">  public static final String HBASE_WAL_DIR = "hbase.wal.dir";</span>
+<span class="source-line-no">060</span><span id="line-60"></span>
+<span class="source-line-no">061</span><span id="line-61">  /** Parameter to disable stream capability enforcement checks */</span>
+<span class="source-line-no">062</span><span id="line-62">  public static final String UNSAFE_STREAM_CAPABILITY_ENFORCE =</span>
+<span class="source-line-no">063</span><span id="line-63">    "hbase.unsafe.stream.capability.enforce";</span>
+<span class="source-line-no">064</span><span id="line-64"></span>
+<span class="source-line-no">065</span><span id="line-65">  /** Full access permissions (starting point for a umask) */</span>
+<span class="source-line-no">066</span><span id="line-66">  public static final String FULL_RWX_PERMISSIONS = "777";</span>
+<span class="source-line-no">067</span><span id="line-67"></span>
+<span class="source-line-no">068</span><span id="line-68">  private CommonFSUtils() {</span>
+<span class="source-line-no">069</span><span id="line-69">  }</span>
+<span class="source-line-no">070</span><span id="line-70"></span>
+<span class="source-line-no">071</span><span id="line-71">  /**</span>
+<span class="source-line-no">072</span><span id="line-72">   * Compare of path component. Does not consider schema; i.e. if schemas different but</span>
+<span class="source-line-no">073</span><span id="line-73">   * &lt;code&gt;path&lt;/code&gt; starts with &lt;code&gt;rootPath&lt;/code&gt;, then the function returns true</span>
+<span class="source-line-no">074</span><span id="line-74">   * @param rootPath value to check for</span>
+<span class="source-line-no">075</span><span id="line-75">   * @param path     subject to check</span>
+<span class="source-line-no">076</span><span id="line-76">   * @return True if &lt;code&gt;path&lt;/code&gt; starts with &lt;code&gt;rootPath&lt;/code&gt;</span>
+<span class="source-line-no">077</span><span id="line-77">   */</span>
+<span class="source-line-no">078</span><span id="line-78">  public static boolean isStartingWithPath(final Path rootPath, final String path) {</span>
+<span class="source-line-no">079</span><span id="line-79">    String uriRootPath = rootPath.toUri().getPath();</span>
+<span class="source-line-no">080</span><span id="line-80">    String tailUriPath = new Path(path).toUri().getPath();</span>
+<span class="source-line-no">081</span><span id="line-81">    return tailUriPath.startsWith(uriRootPath);</span>
+<span class="source-line-no">082</span><span id="line-82">  }</span>
+<span class="source-line-no">083</span><span id="line-83"></span>
+<span class="source-line-no">084</span><span id="line-84">  /**</span>
+<span class="source-line-no">085</span><span id="line-85">   * Compare path component of the Path URI; e.g. if hdfs://a/b/c and /a/b/c, it will compare the</span>
+<span class="source-line-no">086</span><span id="line-86">   * '/a/b/c' part. Does not consider schema; i.e. if schemas different but path or subpath matches,</span>
+<span class="source-line-no">087</span><span id="line-87">   * the two will equate.</span>
+<span class="source-line-no">088</span><span id="line-88">   * @param pathToSearch Path we will be trying to match against.</span>
+<span class="source-line-no">089</span><span id="line-89">   * @param pathTail     what to match</span>
+<span class="source-line-no">090</span><span id="line-90">   * @return True if &lt;code&gt;pathTail&lt;/code&gt; is tail on the path of &lt;code&gt;pathToSearch&lt;/code&gt;</span>
+<span class="source-line-no">091</span><span id="line-91">   */</span>
+<span class="source-line-no">092</span><span id="line-92">  public static boolean isMatchingTail(final Path pathToSearch, String pathTail) {</span>
+<span class="source-line-no">093</span><span id="line-93">    return isMatchingTail(pathToSearch, new Path(pathTail));</span>
+<span class="source-line-no">094</span><span id="line-94">  }</span>
+<span class="source-line-no">095</span><span id="line-95"></span>
+<span class="source-line-no">096</span><span id="line-96">  /**</span>
+<span class="source-line-no">097</span><span id="line-97">   * Compare path component of the Path URI; e.g. if hdfs://a/b/c and /a/b/c, it will compare the</span>
+<span class="source-line-no">098</span><span id="line-98">   * '/a/b/c' part. If you passed in 'hdfs://a/b/c and b/c, it would return true. Does not consider</span>
+<span class="source-line-no">099</span><span id="line-99">   * schema; i.e. if schemas different but path or subpath matches, the two will equate.</span>
+<span class="source-line-no">100</span><span id="line-100">   * @param pathToSearch Path we will be trying to match agains against</span>
+<span class="source-line-no">101</span><span id="line-101">   * @param pathTail     what to match</span>
+<span class="source-line-no">102</span><span id="line-102">   * @return True if &lt;code&gt;pathTail&lt;/code&gt; is tail on the path of &lt;code&gt;pathToSearch&lt;/code&gt;</span>
+<span class="source-line-no">103</span><span id="line-103">   */</span>
+<span class="source-line-no">104</span><span id="line-104">  public static boolean isMatchingTail(final Path pathToSearch, final Path pathTail) {</span>
+<span class="source-line-no">105</span><span id="line-105">    if (pathToSearch.depth() != pathTail.depth()) {</span>
+<span class="source-line-no">106</span><span id="line-106">      return false;</span>
+<span class="source-line-no">107</span><span id="line-107">    }</span>
+<span class="source-line-no">108</span><span id="line-108">    Path tailPath = pathTail;</span>
+<span class="source-line-no">109</span><span id="line-109">    String tailName;</span>
+<span class="source-line-no">110</span><span id="line-110">    Path toSearch = pathToSearch;</span>
+<span class="source-line-no">111</span><span id="line-111">    String toSearchName;</span>
+<span class="source-line-no">112</span><span id="line-112">    boolean result = false;</span>
+<span class="source-line-no">113</span><span id="line-113">    do {</span>
+<span class="source-line-no">114</span><span id="line-114">      tailName = tailPath.getName();</span>
+<span class="source-line-no">115</span><span id="line-115">      if (tailName == null || tailName.length() &lt;= 0) {</span>
+<span class="source-line-no">116</span><span id="line-116">        result = true;</span>
+<span class="source-line-no">117</span><span id="line-117">        break;</span>
+<span class="source-line-no">118</span><span id="line-118">      }</span>
+<span class="source-line-no">119</span><span id="line-119">      toSearchName = toSearch.getName();</span>
+<span class="source-line-no">120</span><span id="line-120">      if (toSearchName == null || toSearchName.length() &lt;= 0) {</span>
+<span class="source-line-no">121</span><span id="line-121">        break;</span>
+<span class="source-line-no">122</span><span id="line-122">      }</span>
+<span class="source-line-no">123</span><span id="line-123">      // Move up a parent on each path for next go around. Path doesn't let us go off the end.</span>
+<span class="source-line-no">124</span><span id="line-124">      tailPath = tailPath.getParent();</span>
+<span class="source-line-no">125</span><span id="line-125">      toSearch = toSearch.getParent();</span>
+<span class="source-line-no">126</span><span id="line-126">    } while (tailName.equals(toSearchName));</span>
+<span class="source-line-no">127</span><span id="line-127">    return result;</span>
+<span class="source-line-no">128</span><span id="line-128">  }</span>
+<span class="source-line-no">129</span><span id="line-129"></span>
+<span class="source-line-no">130</span><span id="line-130">  /**</span>
+<span class="source-line-no">131</span><span id="line-131">   * Delete if exists.</span>
+<span class="source-line-no">132</span><span id="line-132">   * @param fs  filesystem object</span>
+<span class="source-line-no">133</span><span id="line-133">   * @param dir directory to delete</span>
+<span class="source-line-no">134</span><span id="line-134">   * @return True if deleted &lt;code&gt;dir&lt;/code&gt;</span>
+<span class="source-line-no">135</span><span id="line-135">   * @throws IOException e</span>
+<span class="source-line-no">136</span><span id="line-136">   */</span>
+<span class="source-line-no">137</span><span id="line-137">  public static boolean deleteDirectory(final FileSystem fs, final Path dir) throws IOException {</span>
+<span class="source-line-no">138</span><span id="line-138">    return fs.exists(dir) &amp;&amp; fs.delete(dir, true);</span>
+<span class="source-line-no">139</span><span id="line-139">  }</span>
+<span class="source-line-no">140</span><span id="line-140"></span>
+<span class="source-line-no">141</span><span id="line-141">  /**</span>
+<span class="source-line-no">142</span><span id="line-142">   * Return the number of bytes that large input files should be optimally be split into to minimize</span>
+<span class="source-line-no">143</span><span id="line-143">   * i/o time.</span>
+<span class="source-line-no">144</span><span id="line-144">   * @param fs filesystem object</span>
+<span class="source-line-no">145</span><span id="line-145">   * @return the default block size for the path's filesystem</span>
+<span class="source-line-no">146</span><span id="line-146">   */</span>
+<span class="source-line-no">147</span><span id="line-147">  public static long getDefaultBlockSize(final FileSystem fs, final Path path) {</span>
+<span class="source-line-no">148</span><span id="line-148">    return fs.getDefaultBlockSize(path);</span>
+<span class="source-line-no">149</span><span id="line-149">  }</span>
+<span class="source-line-no">150</span><span id="line-150"></span>
+<span class="source-line-no">151</span><span id="line-151">  /*</span>
+<span class="source-line-no">152</span><span id="line-152">   * Get the default replication.</span>
+<span class="source-line-no">153</span><span id="line-153">   * @param fs filesystem object</span>
+<span class="source-line-no">154</span><span id="line-154">   * @param f path of file</span>
+<span class="source-line-no">155</span><span id="line-155">   * @return default replication for the path's filesystem</span>
+<span class="source-line-no">156</span><span id="line-156">   */</span>
+<span class="source-line-no">157</span><span id="line-157">  public static short getDefaultReplication(final FileSystem fs, final Path path) {</span>
+<span class="source-line-no">158</span><span id="line-158">    return fs.getDefaultReplication(path);</span>
+<span class="source-line-no">159</span><span id="line-159">  }</span>
+<span class="source-line-no">160</span><span id="line-160"></span>
+<span class="source-line-no">161</span><span id="line-161">  /**</span>
+<span class="source-line-no">162</span><span id="line-162">   * Returns the default buffer size to use during writes. The size of the buffer should probably be</span>
+<span class="source-line-no">163</span><span id="line-163">   * a multiple of hardware page size (4096 on Intel x86), and it determines how much data is</span>
+<span class="source-line-no">164</span><span id="line-164">   * buffered during read and write operations.</span>
+<span class="source-line-no">165</span><span id="line-165">   * @param fs filesystem object</span>
+<span class="source-line-no">166</span><span id="line-166">   * @return default buffer size to use during writes</span>
+<span class="source-line-no">167</span><span id="line-167">   */</span>
+<span class="source-line-no">168</span><span id="line-168">  public static int getDefaultBufferSize(final FileSystem fs) {</span>
+<span class="source-line-no">169</span><span id="line-169">    return fs.getConf().getInt("io.file.buffer.size", 4096);</span>
+<span class="source-line-no">170</span><span id="line-170">  }</span>
+<span class="source-line-no">171</span><span id="line-171"></span>
+<span class="source-line-no">172</span><span id="line-172">  /**</span>
+<span class="source-line-no">173</span><span id="line-173">   * Create the specified file on the filesystem. By default, this will:</span>
+<span class="source-line-no">174</span><span id="line-174">   * &lt;ol&gt;</span>
+<span class="source-line-no">175</span><span id="line-175">   * &lt;li&gt;apply the umask in the configuration (if it is enabled)&lt;/li&gt;</span>
+<span class="source-line-no">176</span><span id="line-176">   * &lt;li&gt;use the fs configured buffer size (or 4096 if not set)&lt;/li&gt;</span>
+<span class="source-line-no">177</span><span id="line-177">   * &lt;li&gt;use the default replication&lt;/li&gt;</span>
+<span class="source-line-no">178</span><span id="line-178">   * &lt;li&gt;use the default block size&lt;/li&gt;</span>
+<span class="source-line-no">179</span><span id="line-179">   * &lt;li&gt;not track progress&lt;/li&gt;</span>
+<span class="source-line-no">180</span><span id="line-180">   * &lt;/ol&gt;</span>
+<span class="source-line-no">181</span><span id="line-181">   * @param fs        {@link FileSystem} on which to write the file</span>
+<span class="source-line-no">182</span><span id="line-182">   * @param path      {@link Path} to the file to write</span>
+<span class="source-line-no">183</span><span id="line-183">   * @param perm      intial permissions</span>
+<span class="source-line-no">184</span><span id="line-184">   * @param overwrite Whether or not the created file should be overwritten.</span>
+<span class="source-line-no">185</span><span id="line-185">   * @return output stream to the created file</span>
+<span class="source-line-no">186</span><span id="line-186">   * @throws IOException if the file cannot be created</span>
+<span class="source-line-no">187</span><span id="line-187">   */</span>
+<span class="source-line-no">188</span><span id="line-188">  public static FSDataOutputStream create(FileSystem fs, Path path, FsPermission perm,</span>
+<span class="source-line-no">189</span><span id="line-189">    boolean overwrite) throws IOException {</span>
+<span class="source-line-no">190</span><span id="line-190">    if (LOG.isTraceEnabled()) {</span>
+<span class="source-line-no">191</span><span id="line-191">      LOG.trace("Creating file={} with permission={}, overwrite={}", path, perm, overwrite);</span>
+<span class="source-line-no">192</span><span id="line-192">    }</span>
+<span class="source-line-no">193</span><span id="line-193">    return fs.create(path, perm, overwrite, getDefaultBufferSize(fs),</span>
+<span class="source-line-no">194</span><span id="line-194">      getDefaultReplication(fs, path), getDefaultBlockSize(fs, path), null);</span>
+<span class="source-line-no">195</span><span id="line-195">  }</span>
+<span class="source-line-no">196</span><span id="line-196"></span>
+<span class="source-line-no">197</span><span id="line-197">  /**</span>
+<span class="source-line-no">198</span><span id="line-198">   * Get the file permissions specified in the configuration, if they are enabled.</span>
+<span class="source-line-no">199</span><span id="line-199">   * @param fs               filesystem that the file will be created on.</span>
+<span class="source-line-no">200</span><span id="line-200">   * @param conf             configuration to read for determining if permissions are enabled and</span>
+<span class="source-line-no">201</span><span id="line-201">   *                         which to use</span>
+<span class="source-line-no">202</span><span id="line-202">   * @param permssionConfKey property key in the configuration to use when finding the permission</span>
+<span class="source-line-no">203</span><span id="line-203">   * @return the permission to use when creating a new file on the fs. If special permissions are</span>
+<span class="source-line-no">204</span><span id="line-204">   *         not specified in the configuration, then the default permissions on the the fs will be</span>
+<span class="source-line-no">205</span><span id="line-205">   *         returned.</span>
+<span class="source-line-no">206</span><span id="line-206">   */</span>
+<span class="source-line-no">207</span><span id="line-207">  public static FsPermission getFilePermissions(final FileSystem fs, final Configuration conf,</span>
+<span class="source-line-no">208</span><span id="line-208">    final String permssionConfKey) {</span>
+<span class="source-line-no">209</span><span id="line-209">    boolean enablePermissions = conf.getBoolean(HConstants.ENABLE_DATA_FILE_UMASK, false);</span>
+<span class="source-line-no">210</span><span id="line-210"></span>
+<span class="source-line-no">211</span><span id="line-211">    if (enablePermissions) {</span>
+<span class="source-line-no">212</span><span id="line-212">      try {</span>
+<span class="source-line-no">213</span><span id="line-213">        FsPermission perm = new FsPermission(FULL_RWX_PERMISSIONS);</span>
+<span class="source-line-no">214</span><span id="line-214">        // make sure that we have a mask, if not, go default.</span>
+<span class="source-line-no">215</span><span id="line-215">        String mask = conf.get(permssionConfKey);</span>
+<span class="source-line-no">216</span><span id="line-216">        if (mask == null) {</span>
+<span class="source-line-no">217</span><span id="line-217">          return FsPermission.getFileDefault();</span>
+<span class="source-line-no">218</span><span id="line-218">        }</span>
+<span class="source-line-no">219</span><span id="line-219">        // appy the umask</span>
+<span class="source-line-no">220</span><span id="line-220">        FsPermission umask = new FsPermission(mask);</span>
+<span class="source-line-no">221</span><span id="line-221">        return perm.applyUMask(umask);</span>
+<span class="source-line-no">222</span><span id="line-222">      } catch (IllegalArgumentException e) {</span>
+<span class="source-line-no">223</span><span id="line-223">        LOG.warn("Incorrect umask attempted to be created: " + conf.get(permssionConfKey)</span>
+<span class="source-line-no">224</span><span id="line-224">          + ", using default file permissions.", e);</span>
+<span class="source-line-no">225</span><span id="line-225">        return FsPermission.getFileDefault();</span>
+<span class="source-line-no">226</span><span id="line-226">      }</span>
+<span class="source-line-no">227</span><span id="line-227">    }</span>
+<span class="source-line-no">228</span><span id="line-228">    return FsPermission.getFileDefault();</span>
+<span class="source-line-no">229</span><span id="line-229">  }</span>
+<span class="source-line-no">230</span><span id="line-230"></span>
+<span class="source-line-no">231</span><span id="line-231">  /**</span>
+<span class="source-line-no">232</span><span id="line-232">   * Verifies root directory path is a valid URI with a scheme</span>
+<span class="source-line-no">233</span><span id="line-233">   * @param root root directory path</span>
+<span class="source-line-no">234</span><span id="line-234">   * @return Passed &lt;code&gt;root&lt;/code&gt; argument.</span>
+<span class="source-line-no">235</span><span id="line-235">   * @throws IOException if not a valid URI with a scheme</span>
+<span class="source-line-no">236</span><span id="line-236">   */</span>
+<span class="source-line-no">237</span><span id="line-237">  public static Path validateRootPath(Path root) throws IOException {</span>
+<span class="source-line-no">238</span><span id="line-238">    try {</span>
+<span class="source-line-no">239</span><span id="line-239">      URI rootURI = new URI(root.toString());</span>
+<span class="source-line-no">240</span><span id="line-240">      String scheme = rootURI.getScheme();</span>
+<span class="source-line-no">241</span><span id="line-241">      if (scheme == null) {</span>
+<span class="source-line-no">242</span><span id="line-242">        throw new IOException("Root directory does not have a scheme");</span>
+<span class="source-line-no">243</span><span id="line-243">      }</span>
+<span class="source-line-no">244</span><span id="line-244">      return root;</span>
+<span class="source-line-no">245</span><span id="line-245">    } catch (URISyntaxException e) {</span>
+<span class="source-line-no">246</span><span id="line-246">      throw new IOException("Root directory path is not a valid " + "URI -- check your "</span>
+<span class="source-line-no">247</span><span id="line-247">        + HConstants.HBASE_DIR + " configuration", e);</span>
+<span class="source-line-no">248</span><span id="line-248">    }</span>
+<span class="source-line-no">249</span><span id="line-249">  }</span>
+<span class="source-line-no">250</span><span id="line-250"></span>
+<span class="source-line-no">251</span><span id="line-251">  /**</span>
+<span class="source-line-no">252</span><span id="line-252">   * Checks for the presence of the WAL log root path (using the provided conf object) in the given</span>
+<span class="source-line-no">253</span><span id="line-253">   * path. If it exists, this method removes it and returns the String representation of remaining</span>
+<span class="source-line-no">254</span><span id="line-254">   * relative path.</span>
+<span class="source-line-no">255</span><span id="line-255">   * @param path must not be null</span>
+<span class="source-line-no">256</span><span id="line-256">   * @param conf must not be null</span>
+<span class="source-line-no">257</span><span id="line-257">   * @return String representation of the remaining relative path</span>
+<span class="source-line-no">258</span><span id="line-258">   * @throws IOException from underlying filesystem</span>
+<span class="source-line-no">259</span><span id="line-259">   */</span>
+<span class="source-line-no">260</span><span id="line-260">  public static String removeWALRootPath(Path path, final Configuration conf) throws IOException {</span>
+<span class="source-line-no">261</span><span id="line-261">    Path root = getWALRootDir(conf);</span>
+<span class="source-line-no">262</span><span id="line-262">    String pathStr = path.toString();</span>
+<span class="source-line-no">263</span><span id="line-263">    // check that the path is absolute... it has the root path in it.</span>
+<span class="source-line-no">264</span><span id="line-264">    if (!pathStr.startsWith(root.toString())) {</span>
+<span class="source-line-no">265</span><span id="line-265">      return pathStr;</span>
+<span class="source-line-no">266</span><span id="line-266">    }</span>
+<span class="source-line-no">267</span><span id="line-267">    // if not, return as it is.</span>
+<span class="source-line-no">268</span><span id="line-268">    return pathStr.substring(root.toString().length() + 1);// remove the "/" too.</span>
+<span class="source-line-no">269</span><span id="line-269">  }</span>
+<span class="source-line-no">270</span><span id="line-270"></span>
+<span class="source-line-no">271</span><span id="line-271">  /**</span>
+<span class="source-line-no">272</span><span id="line-272">   * Return the 'path' component of a Path. In Hadoop, Path is a URI. This method returns the 'path'</span>
+<span class="source-line-no">273</span><span id="line-273">   * component of a Path's URI: e.g. If a Path is</span>
+<span class="source-line-no">274</span><span id="line-274">   * &lt;code&gt;hdfs://example.org:9000/hbase_trunk/TestTable/compaction.dir&lt;/code&gt;, this method returns</span>
+<span class="source-line-no">275</span><span id="line-275">   * &lt;code&gt;/hbase_trunk/TestTable/compaction.dir&lt;/code&gt;. This method is useful if you want to print</span>
+<span class="source-line-no">276</span><span id="line-276">   * out a Path without qualifying Filesystem instance.</span>
+<span class="source-line-no">277</span><span id="line-277">   * @param p Filesystem Path whose 'path' component we are to return.</span>
+<span class="source-line-no">278</span><span id="line-278">   * @return Path portion of the Filesystem</span>
+<span class="source-line-no">279</span><span id="line-279">   */</span>
+<span class="source-line-no">280</span><span id="line-280">  public static String getPath(Path p) {</span>
+<span class="source-line-no">281</span><span id="line-281">    return p.toUri().getPath();</span>
+<span class="source-line-no">282</span><span id="line-282">  }</span>
+<span class="source-line-no">283</span><span id="line-283"></span>
+<span class="source-line-no">284</span><span id="line-284">  /**</span>
+<span class="source-line-no">285</span><span id="line-285">   * Get the path for the root data directory</span>
+<span class="source-line-no">286</span><span id="line-286">   * @param c configuration</span>
+<span class="source-line-no">287</span><span id="line-287">   * @return {@link Path} to hbase root directory from configuration as a qualified Path.</span>
+<span class="source-line-no">288</span><span id="line-288">   * @throws IOException e</span>
+<span class="source-line-no">289</span><span id="line-289">   */</span>
+<span class="source-line-no">290</span><span id="line-290">  public static Path getRootDir(final Configuration c) throws IOException {</span>
+<span class="source-line-no">291</span><span id="line-291">    Path p = new Path(c.get(HConstants.HBASE_DIR));</span>
+<span class="source-line-no">292</span><span id="line-292">    FileSystem fs = p.getFileSystem(c);</span>
+<span class="source-line-no">293</span><span id="line-293">    return p.makeQualified(fs.getUri(), fs.getWorkingDirectory());</span>
+<span class="source-line-no">294</span><span id="line-294">  }</span>
+<span class="source-line-no">295</span><span id="line-295"></span>
+<span class="source-line-no">296</span><span id="line-296">  public static void setRootDir(final Configuration c, final Path root) {</span>
+<span class="source-line-no">297</span><span id="line-297">    c.set(HConstants.HBASE_DIR, root.toString());</span>
+<span class="source-line-no">298</span><span id="line-298">  }</span>
+<span class="source-line-no">299</span><span id="line-299"></span>
+<span class="source-line-no">300</span><span id="line-300">  public static void setFsDefault(final Configuration c, final Path root) {</span>
+<span class="source-line-no">301</span><span id="line-301">    c.set("fs.defaultFS", root.toString()); // for hadoop 0.21+</span>
+<span class="source-line-no">302</span><span id="line-302">  }</span>
+<span class="source-line-no">303</span><span id="line-303"></span>
+<span class="source-line-no">304</span><span id="line-304">  public static void setFsDefault(final Configuration c, final String uri) {</span>
+<span class="source-line-no">305</span><span id="line-305">    c.set("fs.defaultFS", uri); // for hadoop 0.21+</span>
+<span class="source-line-no">306</span><span id="line-306">  }</span>
+<span class="source-line-no">307</span><span id="line-307"></span>
+<span class="source-line-no">308</span><span id="line-308">  public static FileSystem getRootDirFileSystem(final Configuration c) throws IOException {</span>
+<span class="source-line-no">309</span><span id="line-309">    Path p = getRootDir(c);</span>
+<span class="source-line-no">310</span><span id="line-310">    return p.getFileSystem(c);</span>
+<span class="source-line-no">311</span><span id="line-311">  }</span>
+<span class="source-line-no">312</span><span id="line-312"></span>
+<span class="source-line-no">313</span><span id="line-313">  /**</span>
+<span class="source-line-no">314</span><span id="line-314">   * Get the path for the root directory for WAL data</span>
+<span class="source-line-no">315</span><span id="line-315">   * @param c configuration</span>
+<span class="source-line-no">316</span><span id="line-316">   * @return {@link Path} to hbase log root directory: e.g. {@value HBASE_WAL_DIR} from</span>
+<span class="source-line-no">317</span><span id="line-317">   *         configuration as a qualified Path. Defaults to HBase root dir.</span>
+<span class="source-line-no">318</span><span id="line-318">   * @throws IOException e</span>
+<span class="source-line-no">319</span><span id="line-319">   */</span>
+<span class="source-line-no">320</span><span id="line-320">  public static Path getWALRootDir(final Configuration c) throws IOException {</span>
+<span class="source-line-no">321</span><span id="line-321">    Path p = new Path(c.get(HBASE_WAL_DIR, c.get(HConstants.HBASE_DIR)));</span>
+<span class="source-line-no">322</span><span id="line-322">    if (!isValidWALRootDir(p, c)) {</span>
+<span class="source-line-no">323</span><span id="line-323">      return getRootDir(c);</span>
+<span class="source-line-no">324</span><span id="line-324">    }</span>
+<span class="source-line-no">325</span><span id="line-325">    FileSystem fs = p.getFileSystem(c);</span>
+<span class="source-line-no">326</span><span id="line-326">    return p.makeQualified(fs.getUri(), fs.getWorkingDirectory());</span>
+<span class="source-line-no">327</span><span id="line-327">  }</span>
+<span class="source-line-no">328</span><span id="line-328"></span>
+<span class="source-line-no">329</span><span id="line-329">  /**</span>
+<span class="source-line-no">330</span><span id="line-330">   * Returns the URI in the string format</span>
+<span class="source-line-no">331</span><span id="line-331">   * @param c configuration</span>
+<span class="source-line-no">332</span><span id="line-332">   * @param p path</span>
+<span class="source-line-no">333</span><span id="line-333">   * @return - the URI's to string format</span>
+<span class="source-line-no">334</span><span id="line-334">   */</span>
+<span class="source-line-no">335</span><span id="line-335">  public static String getDirUri(final Configuration c, Path p) throws IOException {</span>
+<span class="source-line-no">336</span><span id="line-336">    if (p.toUri().getScheme() != null) {</span>
+<span class="source-line-no">337</span><span id="line-337">      return p.toUri().toString();</span>
+<span class="source-line-no">338</span><span id="line-338">    }</span>
+<span class="source-line-no">339</span><span id="line-339">    return null;</span>
+<span class="source-line-no">340</span><span id="line-340">  }</span>
+<span class="source-line-no">341</span><span id="line-341"></span>
+<span class="source-line-no">342</span><span id="line-342">  public static void setWALRootDir(final Configuration c, final Path root) {</span>
+<span class="source-line-no">343</span><span id="line-343">    c.set(HBASE_WAL_DIR, root.toString());</span>
+<span class="source-line-no">344</span><span id="line-344">  }</span>
+<span class="source-line-no">345</span><span id="line-345"></span>
+<span class="source-line-no">346</span><span id="line-346">  public static FileSystem getWALFileSystem(final Configuration c) throws IOException {</span>
+<span class="source-line-no">347</span><span id="line-347">    Path p = getWALRootDir(c);</span>
+<span class="source-line-no">348</span><span id="line-348">    FileSystem fs = p.getFileSystem(c);</span>
+<span class="source-line-no">349</span><span id="line-349">    // hadoop-core does fs caching, so need to propagate this if set</span>
+<span class="source-line-no">350</span><span id="line-350">    String enforceStreamCapability = c.get(UNSAFE_STREAM_CAPABILITY_ENFORCE);</span>
+<span class="source-line-no">351</span><span id="line-351">    if (enforceStreamCapability != null) {</span>
+<span class="source-line-no">352</span><span id="line-352">      fs.getConf().set(UNSAFE_STREAM_CAPABILITY_ENFORCE, enforceStreamCapability);</span>
+<span class="source-line-no">353</span><span id="line-353">    }</span>
+<span class="source-line-no">354</span><span id="line-354">    return fs;</span>
+<span class="source-line-no">355</span><span id="line-355">  }</span>
+<span class="source-line-no">356</span><span id="line-356"></span>
+<span class="source-line-no">357</span><span id="line-357">  private static boolean isValidWALRootDir(Path walDir, final Configuration c) throws IOException {</span>
+<span class="source-line-no">358</span><span id="line-358">    Path rootDir = getRootDir(c);</span>
+<span class="source-line-no">359</span><span id="line-359">    FileSystem fs = walDir.getFileSystem(c);</span>
+<span class="source-line-no">360</span><span id="line-360">    Path qualifiedWalDir = walDir.makeQualified(fs.getUri(), fs.getWorkingDirectory());</span>
+<span class="source-line-no">361</span><span id="line-361">    if (!qualifiedWalDir.equals(rootDir)) {</span>
+<span class="source-line-no">362</span><span id="line-362">      if (qualifiedWalDir.toString().startsWith(rootDir.toString() + "/")) {</span>
+<span class="source-line-no">363</span><span id="line-363">        throw new IllegalStateException("Illegal WAL directory specified. "</span>
+<span class="source-line-no">364</span><span id="line-364">          + "WAL directories are not permitted to be under root directory: rootDir="</span>
+<span class="source-line-no">365</span><span id="line-365">          + rootDir.toString() + ", qualifiedWALDir=" + qualifiedWalDir);</span>
+<span class="source-line-no">366</span><span id="line-366">      }</span>
+<span class="source-line-no">367</span><span id="line-367">    }</span>
+<span class="source-line-no">368</span><span id="line-368">    return true;</span>
+<span class="source-line-no">369</span><span id="line-369">  }</span>
+<span class="source-line-no">370</span><span id="line-370"></span>
+<span class="source-line-no">371</span><span id="line-371">  /**</span>
+<span class="source-line-no">372</span><span id="line-372">   * Returns the WAL region directory based on the given table name and region name</span>
+<span class="source-line-no">373</span><span id="line-373">   * @param conf              configuration to determine WALRootDir</span>
+<span class="source-line-no">374</span><span id="line-374">   * @param tableName         Table that the region is under</span>
+<span class="source-line-no">375</span><span id="line-375">   * @param encodedRegionName Region name used for creating the final region directory</span>
+<span class="source-line-no">376</span><span id="line-376">   * @return the region directory used to store WALs under the WALRootDir</span>
+<span class="source-line-no">377</span><span id="line-377">   * @throws IOException if there is an exception determining the WALRootDir</span>
+<span class="source-line-no">378</span><span id="line-378">   */</span>
+<span class="source-line-no">379</span><span id="line-379">  public static Path getWALRegionDir(final Configuration conf, final TableName tableName,</span>
+<span class="source-line-no">380</span><span id="line-380">    final String encodedRegionName) throws IOException {</span>
+<span class="source-line-no">381</span><span id="line-381">    return new Path(getWALTableDir(conf, tableName), encodedRegionName);</span>
+<span class="source-line-no">382</span><span id="line-382">  }</span>
+<span class="source-line-no">383</span><span id="line-383"></span>
+<span class="source-line-no">384</span><span id="line-384">  /**</span>
+<span class="source-line-no">385</span><span id="line-385">   * Returns the Table directory under the WALRootDir for the specified table name</span>
+<span class="source-line-no">386</span><span id="line-386">   * @param conf      configuration used to get the WALRootDir</span>
+<span class="source-line-no">387</span><span id="line-387">   * @param tableName Table to get the directory for</span>
+<span class="source-line-no">388</span><span id="line-388">   * @return a path to the WAL table directory for the specified table</span>
+<span class="source-line-no">389</span><span id="line-389">   * @throws IOException if there is an exception determining the WALRootDir</span>
+<span class="source-line-no">390</span><span id="line-390">   */</span>
+<span class="source-line-no">391</span><span id="line-391">  public static Path getWALTableDir(final Configuration conf, final TableName tableName)</span>
+<span class="source-line-no">392</span><span id="line-392">    throws IOException {</span>
+<span class="source-line-no">393</span><span id="line-393">    Path baseDir = new Path(getWALRootDir(conf), HConstants.BASE_NAMESPACE_DIR);</span>
+<span class="source-line-no">394</span><span id="line-394">    return new Path(new Path(baseDir, tableName.getNamespaceAsString()),</span>
+<span class="source-line-no">395</span><span id="line-395">      tableName.getQualifierAsString());</span>
+<span class="source-line-no">396</span><span id="line-396">  }</span>
+<span class="source-line-no">397</span><span id="line-397"></span>
+<span class="source-line-no">398</span><span id="line-398">  /**</span>
+<span class="source-line-no">399</span><span id="line-399">   * For backward compatibility with HBASE-20734, where we store recovered edits in a wrong</span>
+<span class="source-line-no">400</span><span id="line-400">   * directory without BASE_NAMESPACE_DIR. See HBASE-22617 for more details.</span>
+<span class="source-line-no">401</span><span id="line-401">   * @deprecated For compatibility, will be removed in 4.0.0.</span>
+<span class="source-line-no">402</span><span id="line-402">   */</span>
+<span class="source-line-no">403</span><span id="line-403">  @Deprecated</span>
+<span class="source-line-no">404</span><span id="line-404">  public static Path getWrongWALRegionDir(final Configuration conf, final TableName tableName,</span>
+<span class="source-line-no">405</span><span id="line-405">    final String encodedRegionName) throws IOException {</span>
+<span class="source-line-no">406</span><span id="line-406">    Path wrongTableDir = new Path(new Path(getWALRootDir(conf), tableName.getNamespaceAsString()),</span>
+<span class="source-line-no">407</span><span id="line-407">      tableName.getQualifierAsString());</span>
+<span class="source-line-no">408</span><span id="line-408">    return new Path(wrongTableDir, encodedRegionName);</span>
+<span class="source-line-no">409</span><span id="line-409">  }</span>
+<span class="source-line-no">410</span><span id="line-410"></span>
+<span class="source-line-no">411</span><span id="line-411">  /**</span>
+<span class="source-line-no">412</span><span id="line-412">   * Returns the {@link org.apache.hadoop.fs.Path} object representing the table directory under</span>
+<span class="source-line-no">413</span><span id="line-413">   * path rootdir</span>
+<span class="source-line-no">414</span><span id="line-414">   * @param rootdir   qualified path of HBase root directory</span>
+<span class="source-line-no">415</span><span id="line-415">   * @param tableName name of table</span>
+<span class="source-line-no">416</span><span id="line-416">   * @return {@link org.apache.hadoop.fs.Path} for table</span>
+<span class="source-line-no">417</span><span id="line-417">   */</span>
+<span class="source-line-no">418</span><span id="line-418">  public static Path getTableDir(Path rootdir, final TableName tableName) {</span>
+<span class="source-line-no">419</span><span id="line-419">    return new Path(getNamespaceDir(rootdir, tableName.getNamespaceAsString()),</span>
+<span class="source-line-no">420</span><span id="line-420">      tableName.getQualifierAsString());</span>
+<span class="source-line-no">421</span><span id="line-421">  }</span>
+<span class="source-line-no">422</span><span id="line-422"></span>
+<span class="source-line-no">423</span><span id="line-423">  /**</span>
+<span class="source-line-no">424</span><span id="line-424">   * Returns the {@link org.apache.hadoop.fs.Path} object representing the region directory under</span>
+<span class="source-line-no">425</span><span id="line-425">   * path rootdir</span>
+<span class="source-line-no">426</span><span id="line-426">   * @param rootdir    qualified path of HBase root directory</span>
+<span class="source-line-no">427</span><span id="line-427">   * @param tableName  name of table</span>
+<span class="source-line-no">428</span><span id="line-428">   * @param regionName The encoded region name</span>
+<span class="source-line-no">429</span><span id="line-429">   * @return {@link org.apache.hadoop.fs.Path} for region</span>
+<span class="source-line-no">430</span><span id="line-430">   */</span>
+<span class="source-line-no">431</span><span id="line-431">  public static Path getRegionDir(Path rootdir, TableName tableName, String regionName) {</span>
+<span class="source-line-no">432</span><span id="line-432">    return new Path(getTableDir(rootdir, tableName), regionName);</span>
+<span class="source-line-no">433</span><span id="line-433">  }</span>
+<span class="source-line-no">434</span><span id="line-434"></span>
+<span class="source-line-no">435</span><span id="line-435">  /**</span>
+<span class="source-line-no">436</span><span id="line-436">   * Returns the {@link org.apache.hadoop.hbase.TableName} object representing the table directory</span>
+<span class="source-line-no">437</span><span id="line-437">   * under path rootdir</span>
+<span class="source-line-no">438</span><span id="line-438">   * @param tablePath path of table</span>
+<span class="source-line-no">439</span><span id="line-439">   * @return {@link org.apache.hadoop.fs.Path} for table</span>
+<span class="source-line-no">440</span><span id="line-440">   */</span>
+<span class="source-line-no">441</span><span id="line-441">  public static TableName getTableName(Path tablePath) {</span>
+<span class="source-line-no">442</span><span id="line-442">    return TableName.valueOf(tablePath.getParent().getName(), tablePath.getName());</span>
+<span class="source-line-no">443</span><span id="line-443">  }</span>
+<span class="source-line-no">444</span><span id="line-444"></span>
+<span class="source-line-no">445</span><span id="line-445">  /**</span>
+<span class="source-line-no">446</span><span id="line-446">   * Returns the {@link org.apache.hadoop.fs.Path} object representing the namespace directory under</span>
+<span class="source-line-no">447</span><span id="line-447">   * path rootdir</span>
+<span class="source-line-no">448</span><span id="line-448">   * @param rootdir   qualified path of HBase root directory</span>
+<span class="source-line-no">449</span><span id="line-449">   * @param namespace namespace name</span>
+<span class="source-line-no">450</span><span id="line-450">   * @return {@link org.apache.hadoop.fs.Path} for table</span>
+<span class="source-line-no">451</span><span id="line-451">   */</span>
+<span class="source-line-no">452</span><span id="line-452">  public static Path getNamespaceDir(Path rootdir, final String namespace) {</span>
+<span class="source-line-no">453</span><span id="line-453">    return new Path(rootdir, new Path(HConstants.BASE_NAMESPACE_DIR, new Path(namespace)));</span>
+<span class="source-line-no">454</span><span id="line-454">  }</span>
+<span class="source-line-no">455</span><span id="line-455"></span>
+<span class="source-line-no">456</span><span id="line-456">  // this mapping means that under a federated FileSystem implementation, we'll</span>
+<span class="source-line-no">457</span><span id="line-457">  // only log the first failure from any of the underlying FileSystems at WARN and all others</span>
+<span class="source-line-no">458</span><span id="line-458">  // will be at DEBUG.</span>
+<span class="source-line-no">459</span><span id="line-459">  private static final Map&lt;FileSystem, Boolean&gt; warningMap = new ConcurrentHashMap&lt;&gt;();</span>
+<span class="source-line-no">460</span><span id="line-460"></span>
+<span class="source-line-no">461</span><span id="line-461">  /**</span>
+<span class="source-line-no">462</span><span id="line-462">   * Sets storage policy for given path. If the passed path is a directory, we'll set the storage</span>
+<span class="source-line-no">463</span><span id="line-463">   * policy for all files created in the future in said directory. Note that this change in storage</span>
+<span class="source-line-no">464</span><span id="line-464">   * policy takes place at the FileSystem level; it will persist beyond this RS's lifecycle. If</span>
+<span class="source-line-no">465</span><span id="line-465">   * we're running on a version of FileSystem that doesn't support the given storage policy (or</span>
+<span class="source-line-no">466</span><span id="line-466">   * storage policies at all), then we'll issue a log message and continue. See</span>
+<span class="source-line-no">467</span><span id="line-467">   * http://hadoop.apache.org/docs/r2.6.0/hadoop-project-dist/hadoop-hdfs/ArchivalStorage.html</span>
+<span class="source-line-no">468</span><span id="line-468">   * @param fs            We only do anything it implements a setStoragePolicy method</span>
+<span class="source-line-no">469</span><span id="line-469">   * @param path          the Path whose storage policy is to be set</span>
+<span class="source-line-no">470</span><span id="line-470">   * @param storagePolicy Policy to set on &lt;code&gt;path&lt;/code&gt;; see hadoop 2.6+</span>
+<span class="source-line-no">471</span><span id="line-471">   *                      org.apache.hadoop.hdfs.protocol.HdfsConstants for possible list e.g</span>
+<span class="source-line-no">472</span><span id="line-472">   *                      'COLD', 'WARM', 'HOT', 'ONE_SSD', 'ALL_SSD', 'LAZY_PERSIST'.</span>
+<span class="source-line-no">473</span><span id="line-473">   */</span>
+<span class="source-line-no">474</span><span id="line-474">  public static void setStoragePolicy(final FileSystem fs, final Path path,</span>
+<span class="source-line-no">475</span><span id="line-475">    final String storagePolicy) {</span>
+<span class="source-line-no">476</span><span id="line-476">    try {</span>
+<span class="source-line-no">477</span><span id="line-477">      setStoragePolicy(fs, path, storagePolicy, false);</span>
+<span class="source-line-no">478</span><span id="line-478">    } catch (IOException e) {</span>
+<span class="source-line-no">479</span><span id="line-479">      // should never arrive here</span>
+<span class="source-line-no">480</span><span id="line-480">      LOG.warn("We have chosen not to throw exception but some unexpectedly thrown out", e);</span>
+<span class="source-line-no">481</span><span id="line-481">    }</span>
+<span class="source-line-no">482</span><span id="line-482">  }</span>
+<span class="source-line-no">483</span><span id="line-483"></span>
+<span class="source-line-no">484</span><span id="line-484">  static void setStoragePolicy(final FileSystem fs, final Path path, final String storagePolicy,</span>
+<span class="source-line-no">485</span><span id="line-485">    boolean throwException) throws IOException {</span>
+<span class="source-line-no">486</span><span id="line-486">    if (storagePolicy == null) {</span>
+<span class="source-line-no">487</span><span id="line-487">      if (LOG.isTraceEnabled()) {</span>
+<span class="source-line-no">488</span><span id="line-488">        LOG.trace("We were passed a null storagePolicy, exiting early.");</span>
+<span class="source-line-no">489</span><span id="line-489">      }</span>
+<span class="source-line-no">490</span><span id="line-490">      return;</span>
+<span class="source-line-no">491</span><span id="line-491">    }</span>
+<span class="source-line-no">492</span><span id="line-492">    String trimmedStoragePolicy = storagePolicy.trim();</span>
+<span class="source-line-no">493</span><span id="line-493">    if (trimmedStoragePolicy.isEmpty()) {</span>
+<span class="source-line-no">494</span><span id="line-494">      LOG.trace("We were passed an empty storagePolicy, exiting early.");</span>
+<span class="source-line-no">495</span><span id="line-495">      return;</span>
+<span class="source-line-no">496</span><span id="line-496">    } else {</span>
+<span class="source-line-no">497</span><span id="line-497">      trimmedStoragePolicy = trimmedStoragePolicy.toUpperCase(Locale.ROOT);</span>
+<span class="source-line-no">498</span><span id="line-498">    }</span>
+<span class="source-line-no">499</span><span id="line-499">    if (trimmedStoragePolicy.equals(HConstants.DEFER_TO_HDFS_STORAGE_POLICY)) {</span>
+<span class="source-line-no">500</span><span id="line-500">      LOG.trace("We were passed the defer-to-hdfs policy {}, exiting early.", trimmedStoragePolicy);</span>
+<span class="source-line-no">501</span><span id="line-501">      return;</span>
+<span class="source-line-no">502</span><span id="line-502">    }</span>
+<span class="source-line-no">503</span><span id="line-503">    try {</span>
+<span class="source-line-no">504</span><span id="line-504">      invokeSetStoragePolicy(fs, path, trimmedStoragePolicy);</span>
+<span class="source-line-no">505</span><span id="line-505">    } catch (IOException e) {</span>
+<span class="source-line-no">506</span><span id="line-506">      LOG.trace("Failed to invoke set storage policy API on FS", e);</span>
+<span class="source-line-no">507</span><span id="line-507">      if (throwException) {</span>
+<span class="source-line-no">508</span><span id="line-508">        throw e;</span>
+<span class="source-line-no">509</span><span id="line-509">      }</span>
+<span class="source-line-no">510</span><span id="line-510">    }</span>
+<span class="source-line-no">511</span><span id="line-511">  }</span>
+<span class="source-line-no">512</span><span id="line-512"></span>
+<span class="source-line-no">513</span><span id="line-513">  /*</span>
+<span class="source-line-no">514</span><span id="line-514">   * All args have been checked and are good. Run the setStoragePolicy invocation.</span>
+<span class="source-line-no">515</span><span id="line-515">   */</span>
+<span class="source-line-no">516</span><span id="line-516">  private static void invokeSetStoragePolicy(final FileSystem fs, final Path path,</span>
+<span class="source-line-no">517</span><span id="line-517">    final String storagePolicy) throws IOException {</span>
+<span class="source-line-no">518</span><span id="line-518">    Exception toThrow = null;</span>
+<span class="source-line-no">519</span><span id="line-519"></span>
+<span class="source-line-no">520</span><span id="line-520">    if (!fs.hasPathCapability(path, FS_STORAGEPOLICY)) {</span>
+<span class="source-line-no">521</span><span id="line-521">      LOG.debug("The file system does not support storage policy.");</span>
+<span class="source-line-no">522</span><span id="line-522">      return;</span>
+<span class="source-line-no">523</span><span id="line-523">    }</span>
+<span class="source-line-no">524</span><span id="line-524"></span>
+<span class="source-line-no">525</span><span id="line-525">    try {</span>
+<span class="source-line-no">526</span><span id="line-526">      fs.setStoragePolicy(path, storagePolicy);</span>
+<span class="source-line-no">527</span><span id="line-527">      LOG.debug("Set storagePolicy={} for path={}", storagePolicy, path);</span>
+<span class="source-line-no">528</span><span id="line-528">    } catch (Exception e) {</span>
+<span class="source-line-no">529</span><span id="line-529">      toThrow = e;</span>
+<span class="source-line-no">530</span><span id="line-530">      // This swallows FNFE, should we be throwing it? seems more likely to indicate dev</span>
+<span class="source-line-no">531</span><span id="line-531">      // misuse than a runtime problem with HDFS.</span>
+<span class="source-line-no">532</span><span id="line-532">      if (!warningMap.containsKey(fs)) {</span>
+<span class="source-line-no">533</span><span id="line-533">        warningMap.put(fs, true);</span>
+<span class="source-line-no">534</span><span id="line-534">        LOG.warn("Unable to set storagePolicy=" + storagePolicy + " for path=" + path + ". "</span>
+<span class="source-line-no">535</span><span id="line-535">          + "DEBUG log level might have more details.", e);</span>
+<span class="source-line-no">536</span><span id="line-536">      } else if (LOG.isDebugEnabled()) {</span>
+<span class="source-line-no">537</span><span id="line-537">        LOG.debug("Unable to set storagePolicy=" + storagePolicy + " for path=" + path, e);</span>
+<span class="source-line-no">538</span><span id="line-538">      }</span>
+<span class="source-line-no">539</span><span id="line-539"></span>
+<span class="source-line-no">540</span><span id="line-540">      // Hadoop 2.8+, 3.0-a1+ added FileSystem.setStoragePolicy with a default implementation</span>
+<span class="source-line-no">541</span><span id="line-541">      // that throws UnsupportedOperationException</span>
+<span class="source-line-no">542</span><span id="line-542">      if (e instanceof UnsupportedOperationException) {</span>
+<span class="source-line-no">543</span><span id="line-543">        if (LOG.isDebugEnabled()) {</span>
+<span class="source-line-no">544</span><span id="line-544">          LOG.debug("The underlying FileSystem implementation doesn't support "</span>
+<span class="source-line-no">545</span><span id="line-545">            + "setStoragePolicy. This is probably intentional on their part, since HDFS-9345 "</span>
+<span class="source-line-no">546</span><span id="line-546">            + "appears to be present in your version of Hadoop. For more information check "</span>
+<span class="source-line-no">547</span><span id="line-547">            + "the Hadoop documentation on 'ArchivalStorage', the Hadoop FileSystem "</span>
+<span class="source-line-no">548</span><span id="line-548">            + "specification docs from HADOOP-11981, and/or related documentation from the "</span>
+<span class="source-line-no">549</span><span id="line-549">            + "provider of the underlying FileSystem (its name should appear in the "</span>
+<span class="source-line-no">550</span><span id="line-550">            + "stacktrace that accompanies this message). Note in particular that Hadoop's "</span>
+<span class="source-line-no">551</span><span id="line-551">            + "local filesystem implementation doesn't support storage policies.", e);</span>
+<span class="source-line-no">552</span><span id="line-552">        }</span>
+<span class="source-line-no">553</span><span id="line-553">      }</span>
+<span class="source-line-no">554</span><span id="line-554">    }</span>
+<span class="source-line-no">555</span><span id="line-555"></span>
+<span class="source-line-no">556</span><span id="line-556">    if (toThrow != null) {</span>
+<span class="source-line-no">557</span><span id="line-557">      throw new IOException(toThrow);</span>
+<span class="source-line-no">558</span><span id="line-558">    }</span>
+<span class="source-line-no">559</span><span id="line-559">  }</span>
+<span class="source-line-no">560</span><span id="line-560"></span>
+<span class="source-line-no">561</span><span id="line-561">  /**</span>
+<span class="source-line-no">562</span><span id="line-562">   * Return true if this is a filesystem whose scheme is 'hdfs'.</span>
+<span class="source-line-no">563</span><span id="line-563">   * @throws IOException from underlying FileSystem</span>
+<span class="source-line-no">564</span><span id="line-564">   */</span>
+<span class="source-line-no">565</span><span id="line-565">  public static boolean isHDFS(final Configuration conf) throws IOException {</span>
+<span class="source-line-no">566</span><span id="line-566">    FileSystem fs = FileSystem.get(conf);</span>
+<span class="source-line-no">567</span><span id="line-567">    String scheme = fs.getUri().getScheme();</span>
+<span class="source-line-no">568</span><span id="line-568">    return scheme.equalsIgnoreCase("hdfs");</span>
+<span class="source-line-no">569</span><span id="line-569">  }</span>
+<span class="source-line-no">570</span><span id="line-570"></span>
+<span class="source-line-no">571</span><span id="line-571">  /**</span>
+<span class="source-line-no">572</span><span id="line-572">   * Checks if the given path is the one with 'recovered.edits' dir.</span>
+<span class="source-line-no">573</span><span id="line-573">   * @param path must not be null</span>
+<span class="source-line-no">574</span><span id="line-574">   * @return True if we recovered edits</span>
+<span class="source-line-no">575</span><span id="line-575">   */</span>
+<span class="source-line-no">576</span><span id="line-576">  public static boolean isRecoveredEdits(Path path) {</span>
+<span class="source-line-no">577</span><span id="line-577">    return path.toString().contains(HConstants.RECOVERED_EDITS_DIR);</span>
+<span class="source-line-no">578</span><span id="line-578">  }</span>
+<span class="source-line-no">579</span><span id="line-579"></span>
+<span class="source-line-no">580</span><span id="line-580">  /**</span>
+<span class="source-line-no">581</span><span id="line-581">   * Returns the filesystem of the hbase rootdir.</span>
+<span class="source-line-no">582</span><span id="line-582">   * @throws IOException from underlying FileSystem</span>
+<span class="source-line-no">583</span><span id="line-583">   */</span>
+<span class="source-line-no">584</span><span id="line-584">  public static FileSystem getCurrentFileSystem(Configuration conf) throws IOException {</span>
+<span class="source-line-no">585</span><span id="line-585">    return getRootDir(conf).getFileSystem(conf);</span>
+<span class="source-line-no">586</span><span id="line-586">  }</span>
+<span class="source-line-no">587</span><span id="line-587"></span>
+<span class="source-line-no">588</span><span id="line-588">  /**</span>
+<span class="source-line-no">589</span><span id="line-589">   * Calls fs.listStatus() and treats FileNotFoundException as non-fatal This accommodates</span>
+<span class="source-line-no">590</span><span id="line-590">   * differences between hadoop versions, where hadoop 1 does not throw a FileNotFoundException, and</span>
+<span class="source-line-no">591</span><span id="line-591">   * return an empty FileStatus[] while Hadoop 2 will throw FileNotFoundException. Where possible,</span>
+<span class="source-line-no">592</span><span id="line-592">   * prefer FSUtils#listStatusWithStatusFilter(FileSystem, Path, FileStatusFilter) instead.</span>
+<span class="source-line-no">593</span><span id="line-593">   * @param fs     file system</span>
+<span class="source-line-no">594</span><span id="line-594">   * @param dir    directory</span>
+<span class="source-line-no">595</span><span id="line-595">   * @param filter path filter</span>
+<span class="source-line-no">596</span><span id="line-596">   * @return null if dir is empty or doesn't exist, otherwise FileStatus array</span>
+<span class="source-line-no">597</span><span id="line-597">   */</span>
+<span class="source-line-no">598</span><span id="line-598">  public static FileStatus[] listStatus(final FileSystem fs, final Path dir,</span>
+<span class="source-line-no">599</span><span id="line-599">    final PathFilter filter) throws IOException {</span>
+<span class="source-line-no">600</span><span id="line-600">    FileStatus[] status = null;</span>
+<span class="source-line-no">601</span><span id="line-601">    try {</span>
+<span class="source-line-no">602</span><span id="line-602">      status = filter == null ? fs.listStatus(dir) : fs.listStatus(dir, filter);</span>
+<span class="source-line-no">603</span><span id="line-603">    } catch (FileNotFoundException fnfe) {</span>
+<span class="source-line-no">604</span><span id="line-604">      // if directory doesn't exist, return null</span>
+<span class="source-line-no">605</span><span id="line-605">      if (LOG.isTraceEnabled()) {</span>
+<span class="source-line-no">606</span><span id="line-606">        LOG.trace("{} doesn't exist", dir);</span>
+<span class="source-line-no">607</span><span id="line-607">      }</span>
+<span class="source-line-no">608</span><span id="line-608">    }</span>
+<span class="source-line-no">609</span><span id="line-609">    if (status == null || status.length &lt; 1) {</span>
+<span class="source-line-no">610</span><span id="line-610">      return null;</span>
+<span class="source-line-no">611</span><span id="line-611">    }</span>
+<span class="source-line-no">612</span><span id="line-612">    return status;</span>
+<span class="source-line-no">613</span><span id="line-613">  }</span>
+<span class="source-line-no">614</span><span id="line-614"></span>
+<span class="source-line-no">615</span><span id="line-615">  /**</span>
+<span class="source-line-no">616</span><span id="line-616">   * Calls fs.listStatus() and treats FileNotFoundException as non-fatal This would accommodates</span>
+<span class="source-line-no">617</span><span id="line-617">   * differences between hadoop versions</span>
+<span class="source-line-no">618</span><span id="line-618">   * @param fs  file system</span>
+<span class="source-line-no">619</span><span id="line-619">   * @param dir directory</span>
+<span class="source-line-no">620</span><span id="line-620">   * @return null if dir is empty or doesn't exist, otherwise FileStatus array</span>
+<span class="source-line-no">621</span><span id="line-621">   */</span>
+<span class="source-line-no">622</span><span id="line-622">  public static FileStatus[] listStatus(final FileSystem fs, final Path dir) throws IOException {</span>
+<span class="source-line-no">623</span><span id="line-623">    return listStatus(fs, dir, null);</span>
+<span class="source-line-no">624</span><span id="line-624">  }</span>
+<span class="source-line-no">625</span><span id="line-625"></span>
+<span class="source-line-no">626</span><span id="line-626">  /**</span>
+<span class="source-line-no">627</span><span id="line-627">   * Calls fs.listFiles() to get FileStatus and BlockLocations together for reducing rpc call</span>
+<span class="source-line-no">628</span><span id="line-628">   * @param fs  file system</span>
+<span class="source-line-no">629</span><span id="line-629">   * @param dir directory</span>
+<span class="source-line-no">630</span><span id="line-630">   * @return LocatedFileStatus list</span>
+<span class="source-line-no">631</span><span id="line-631">   */</span>
+<span class="source-line-no">632</span><span id="line-632">  public static List&lt;LocatedFileStatus&gt; listLocatedStatus(final FileSystem fs, final Path dir)</span>
+<span class="source-line-no">633</span><span id="line-633">    throws IOException {</span>
+<span class="source-line-no">634</span><span id="line-634">    List&lt;LocatedFileStatus&gt; status = null;</span>
+<span class="source-line-no">635</span><span id="line-635">    try {</span>
+<span class="source-line-no">636</span><span id="line-636">      RemoteIterator&lt;LocatedFileStatus&gt; locatedFileStatusRemoteIterator = fs.listFiles(dir, false);</span>
+<span class="source-line-no">637</span><span id="line-637">      while (locatedFileStatusRemoteIterator.hasNext()) {</span>
+<span class="source-line-no">638</span><span id="line-638">        if (status == null) {</span>
+<span class="source-line-no">639</span><span id="line-639">          status = Lists.newArrayList();</span>
+<span class="source-line-no">640</span><span id="line-640">        }</span>
+<span class="source-line-no">641</span><span id="line-641">        status.add(locatedFileStatusRemoteIterator.next());</span>
+<span class="source-line-no">642</span><span id="line-642">      }</span>
+<span class="source-line-no">643</span><span id="line-643">    } catch (FileNotFoundException fnfe) {</span>
+<span class="source-line-no">644</span><span id="line-644">      // if directory doesn't exist, return null</span>
+<span class="source-line-no">645</span><span id="line-645">      if (LOG.isTraceEnabled()) {</span>
+<span class="source-line-no">646</span><span id="line-646">        LOG.trace("{} doesn't exist", dir);</span>
+<span class="source-line-no">647</span><span id="line-647">      }</span>
+<span class="source-line-no">648</span><span id="line-648">    }</span>
+<span class="source-line-no">649</span><span id="line-649">    return status;</span>
+<span class="source-line-no">650</span><span id="line-650">  }</span>
+<span class="source-line-no">651</span><span id="line-651"></span>
+<span class="source-line-no">652</span><span id="line-652">  /**</span>
+<span class="source-line-no">653</span><span id="line-653">   * Calls fs.delete() and returns the value returned by the fs.delete()</span>
+<span class="source-line-no">654</span><span id="line-654">   * @param fs        must not be null</span>
+<span class="source-line-no">655</span><span id="line-655">   * @param path      must not be null</span>
+<span class="source-line-no">656</span><span id="line-656">   * @param recursive delete tree rooted at path</span>
+<span class="source-line-no">657</span><span id="line-657">   * @return the value returned by the fs.delete()</span>
+<span class="source-line-no">658</span><span id="line-658">   * @throws IOException from underlying FileSystem</span>
+<span class="source-line-no">659</span><span id="line-659">   */</span>
+<span class="source-line-no">660</span><span id="line-660">  public static boolean delete(final FileSystem fs, final Path path, final boolean recursive)</span>
+<span class="source-line-no">661</span><span id="line-661">    throws IOException {</span>
+<span class="source-line-no">662</span><span id="line-662">    return fs.delete(path, recursive);</span>
+<span class="source-line-no">663</span><span id="line-663">  }</span>
+<span class="source-line-no">664</span><span id="line-664"></span>
+<span class="source-line-no">665</span><span id="line-665">  /**</span>
+<span class="source-line-no">666</span><span id="line-666">   * Calls fs.exists(). Checks if the specified path exists</span>
+<span class="source-line-no">667</span><span id="line-667">   * @param fs   must not be null</span>
+<span class="source-line-no">668</span><span id="line-668">   * @param path must not be null</span>
+<span class="source-line-no">669</span><span id="line-669">   * @return the value returned by fs.exists()</span>
+<span class="source-line-no">670</span><span id="line-670">   * @throws IOException from underlying FileSystem</span>
+<span class="source-line-no">671</span><span id="line-671">   */</span>
+<span class="source-line-no">672</span><span id="line-672">  public static boolean isExists(final FileSystem fs, final Path path) throws IOException {</span>
+<span class="source-line-no">673</span><span id="line-673">    return fs.exists(path);</span>
+<span class="source-line-no">674</span><span id="line-674">  }</span>
+<span class="source-line-no">675</span><span id="line-675"></span>
+<span class="source-line-no">676</span><span id="line-676">  /**</span>
+<span class="source-line-no">677</span><span id="line-677">   * Log the current state of the filesystem from a certain root directory</span>
+<span class="source-line-no">678</span><span id="line-678">   * @param fs   filesystem to investigate</span>
+<span class="source-line-no">679</span><span id="line-679">   * @param root root file/directory to start logging from</span>
+<span class="source-line-no">680</span><span id="line-680">   * @param log  log to output information</span>
+<span class="source-line-no">681</span><span id="line-681">   * @throws IOException if an unexpected exception occurs</span>
+<span class="source-line-no">682</span><span id="line-682">   */</span>
+<span class="source-line-no">683</span><span id="line-683">  public static void logFileSystemState(final FileSystem fs, final Path root, Logger log)</span>
+<span class="source-line-no">684</span><span id="line-684">    throws IOException {</span>
+<span class="source-line-no">685</span><span id="line-685">    log.debug("File system contents for path {}", root);</span>
+<span class="source-line-no">686</span><span id="line-686">    logFSTree(log, fs, root, "|-");</span>
+<span class="source-line-no">687</span><span id="line-687">  }</span>
+<span class="source-line-no">688</span><span id="line-688"></span>
+<span class="source-line-no">689</span><span id="line-689">  /**</span>
+<span class="source-line-no">690</span><span id="line-690">   * Recursive helper to log the state of the FS</span>
+<span class="source-line-no">691</span><span id="line-691">   * @see #logFileSystemState(FileSystem, Path, Logger)</span>
+<span class="source-line-no">692</span><span id="line-692">   */</span>
+<span class="source-line-no">693</span><span id="line-693">  private static void logFSTree(Logger log, final FileSystem fs, final Path root, String prefix)</span>
+<span class="source-line-no">694</span><span id="line-694">    throws IOException {</span>
+<span class="source-line-no">695</span><span id="line-695">    FileStatus[] files = listStatus(fs, root, null);</span>
+<span class="source-line-no">696</span><span id="line-696">    if (files == null) {</span>
+<span class="source-line-no">697</span><span id="line-697">      return;</span>
+<span class="source-line-no">698</span><span id="line-698">    }</span>
+<span class="source-line-no">699</span><span id="line-699"></span>
+<span class="source-line-no">700</span><span id="line-700">    for (FileStatus file : files) {</span>
+<span class="source-line-no">701</span><span id="line-701">      if (file.isDirectory()) {</span>
+<span class="source-line-no">702</span><span id="line-702">        log.debug(prefix + file.getPath().getName() + "/");</span>
+<span class="source-line-no">703</span><span id="line-703">        logFSTree(log, fs, file.getPath(), prefix + "---");</span>
+<span class="source-line-no">704</span><span id="line-704">      } else {</span>
+<span class="source-line-no">705</span><span id="line-705">        log.debug(prefix + file.getPath().getName());</span>
+<span class="source-line-no">706</span><span id="line-706">      }</span>
+<span class="source-line-no">707</span><span id="line-707">    }</span>
 <span class="source-line-no">708</span><span id="line-708">  }</span>
 <span class="source-line-no">709</span><span id="line-709"></span>
-<span class="source-line-no">710</span><span id="line-710">  /**</span>
-<span class="source-line-no">711</span><span id="line-711">   * Check if short circuit read buffer size is set and if not, set it to hbase value.</span>
-<span class="source-line-no">712</span><span id="line-712">   * @param conf must not be null</span>
-<span class="source-line-no">713</span><span id="line-713">   */</span>
-<span class="source-line-no">714</span><span id="line-714">  public static void checkShortCircuitReadBufferSize(final Configuration conf) {</span>
-<span class="source-line-no">715</span><span id="line-715">    final int defaultSize = HConstants.DEFAULT_BLOCKSIZE * 2;</span>
-<span class="source-line-no">716</span><span id="line-716">    final int notSet = -1;</span>
-<span class="source-line-no">717</span><span id="line-717">    // DFSConfigKeys.DFS_CLIENT_READ_SHORTCIRCUIT_BUFFER_SIZE_KEY is only defined in h2</span>
-<span class="source-line-no">718</span><span id="line-718">    final String dfsKey = "dfs.client.read.shortcircuit.buffer.size";</span>
-<span class="source-line-no">719</span><span id="line-719">    int size = conf.getInt(dfsKey, notSet);</span>
-<span class="source-line-no">720</span><span id="line-720">    // If a size is set, return -- we will use it.</span>
-<span class="source-line-no">721</span><span id="line-721">    if (size != notSet) {</span>
-<span class="source-line-no">722</span><span id="line-722">      return;</span>
-<span class="source-line-no">723</span><span id="line-723">    }</span>
-<span class="source-line-no">724</span><span id="line-724">    // But short circuit buffer size is normally not set. Put in place the hbase wanted size.</span>
-<span class="source-line-no">725</span><span id="line-725">    int hbaseSize = conf.getInt("hbase." + dfsKey, defaultSize);</span>
-<span class="source-line-no">726</span><span id="line-726">    conf.setIfUnset(dfsKey, Integer.toString(hbaseSize));</span>
-<span class="source-line-no">727</span><span id="line-727">  }</span>
-<span class="source-line-no">728</span><span id="line-728"></span>
-<span class="source-line-no">729</span><span id="line-729">  /**</span>
-<span class="source-line-no">730</span><span id="line-730">   * Helper exception for those cases where the place where we need to check a stream capability is</span>
-<span class="source-line-no">731</span><span id="line-731">   * not where we have the needed context to explain the impact and mitigation for a lack.</span>
-<span class="source-line-no">732</span><span id="line-732">   */</span>
-<span class="source-line-no">733</span><span id="line-733">  public static class StreamLacksCapabilityException extends Exception {</span>
-<span class="source-line-no">734</span><span id="line-734">    public StreamLacksCapabilityException(String message, Throwable cause) {</span>
-<span class="source-line-no">735</span><span id="line-735">      super(message, cause);</span>
-<span class="source-line-no">736</span><span id="line-736">    }</span>
-<span class="source-line-no">737</span><span id="line-737"></span>
-<span class="source-line-no">738</span><span id="line-738">    public StreamLacksCapabilityException(String message) {</span>
-<span class="source-line-no">739</span><span id="line-739">      super(message);</span>
-<span class="source-line-no">740</span><span id="line-740">    }</span>
-<span class="source-line-no">741</span><span id="line-741">  }</span>
-<span class="source-line-no">742</span><span id="line-742">}</span>
+<span class="source-line-no">710</span><span id="line-710">  public static boolean renameAndSetModifyTime(final FileSystem fs, final Path src, final Path dest)</span>
+<span class="source-line-no">711</span><span id="line-711">    throws IOException {</span>
+<span class="source-line-no">712</span><span id="line-712">    // set the modify time for TimeToLive Cleaner</span>
+<span class="source-line-no">713</span><span id="line-713">    fs.setTimes(src, EnvironmentEdgeManager.currentTime(), -1);</span>
+<span class="source-line-no">714</span><span id="line-714">    return fs.rename(src, dest);</span>
+<span class="source-line-no">715</span><span id="line-715">  }</span>
+<span class="source-line-no">716</span><span id="line-716"></span>
+<span class="source-line-no">717</span><span id="line-717">  /**</span>
+<span class="source-line-no">718</span><span id="line-718">   * Check if short circuit read buffer size is set and if not, set it to hbase value.</span>
+<span class="source-line-no">719</span><span id="line-719">   * @param conf must not be null</span>
+<span class="source-line-no">720</span><span id="line-720">   */</span>
+<span class="source-line-no">721</span><span id="line-721">  public static void checkShortCircuitReadBufferSize(final Configuration conf) {</span>
+<span class="source-line-no">722</span><span id="line-722">    final int defaultSize = HConstants.DEFAULT_BLOCKSIZE * 2;</span>
+<span class="source-line-no">723</span><span id="line-723">    final int notSet = -1;</span>
+<span class="source-line-no">724</span><span id="line-724">    // DFSConfigKeys.DFS_CLIENT_READ_SHORTCIRCUIT_BUFFER_SIZE_KEY is only defined in h2</span>
+<span class="source-line-no">725</span><span id="line-725">    final String dfsKey = "dfs.client.read.shortcircuit.buffer.size";</span>
+<span class="source-line-no">726</span><span id="line-726">    int size = conf.getInt(dfsKey, notSet);</span>
+<span class="source-line-no">727</span><span id="line-727">    // If a size is set, return -- we will use it.</span>
+<span class="source-line-no">728</span><span id="line-728">    if (size != notSet) {</span>
+<span class="source-line-no">729</span><span id="line-729">      return;</span>
+<span class="source-line-no">730</span><span id="line-730">    }</span>
+<span class="source-line-no">731</span><span id="line-731">    // But short circuit buffer size is normally not set. Put in place the hbase wanted size.</span>
+<span class="source-line-no">732</span><span id="line-732">    int hbaseSize = conf.getInt("hbase." + dfsKey, defaultSize);</span>
+<span class="source-line-no">733</span><span id="line-733">    conf.setIfUnset(dfsKey, Integer.toString(hbaseSize));</span>
+<span class="source-line-no">734</span><span id="line-734">  }</span>
+<span class="source-line-no">735</span><span id="line-735"></span>
+<span class="source-line-no">736</span><span id="line-736">  /**</span>
+<span class="source-line-no">737</span><span id="line-737">   * Helper exception for those cases where the place where we need to check a stream capability is</span>
+<span class="source-line-no">738</span><span id="line-738">   * not where we have the needed context to explain the impact and mitigation for a lack.</span>
+<span class="source-line-no">739</span><span id="line-739">   */</span>
+<span class="source-line-no">740</span><span id="line-740">  public static class StreamLacksCapabilityException extends Exception {</span>
+<span class="source-line-no">741</span><span id="line-741">    public StreamLacksCapabilityException(String message, Throwable cause) {</span>
+<span class="source-line-no">742</span><span id="line-742">      super(message, cause);</span>
+<span class="source-line-no">743</span><span id="line-743">    }</span>
+<span class="source-line-no">744</span><span id="line-744"></span>
+<span class="source-line-no">745</span><span id="line-745">    public StreamLacksCapabilityException(String message) {</span>
+<span class="source-line-no">746</span><span id="line-746">      super(message);</span>
+<span class="source-line-no">747</span><span id="line-747">    }</span>
+<span class="source-line-no">748</span><span id="line-748">  }</span>
+<span class="source-line-no">749</span><span id="line-749">}</span>
 
 
 
diff --git a/book.html b/book.html
index bf221512d81..8e76474307f 100644
--- a/book.html
+++ b/book.html
@@ -49377,7 +49377,7 @@ org/apache/hadoop/hbase/security/access/AccessControlClient.revoke:(Lorg/apache/
 <div id="footer">
 <div id="footer-text">
 Version 4.0.0-alpha-1-SNAPSHOT<br>
-Last updated 2024-08-17 14:31:53 UTC
+Last updated 2024-08-21 14:30:55 UTC
 </div>
 </div>
 <script type="text/x-mathjax-config">
diff --git a/bulk-loads.html b/bulk-loads.html
index 04c9215ac88..b448e426411 100644
--- a/bulk-loads.html
+++ b/bulk-loads.html
@@ -175,7 +175,7 @@
         All other marks mentioned may be trademarks or registered trademarks of their respective owners.
       </div>
       <div style="float: right">
-        Last Published: 2024-08-17
+        Last Published: 2024-08-21
       </div>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/checkstyle-aggregate.html b/checkstyle-aggregate.html
index 169c1038387..1a255f34852 100644
--- a/checkstyle-aggregate.html
+++ b/checkstyle-aggregate.html
@@ -3210,7 +3210,7 @@
 <tr class="b">
 <td>annotation</td>
 <td><a class="externalLink" href="http://checkstyle.sourceforge.net/config_annotation.html#MissingDeprecated">MissingDeprecated</a></td>
-<td>9</td>
+<td>12</td>
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td></tr>
 <tr class="a">
 <td>blocks</td>
@@ -3284,27 +3284,20 @@
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td></tr>
 <tr class="a">
 <td>javadoc</td>
-<td><a class="externalLink" href="http://checkstyle.sourceforge.net/config_javadoc.html#JavadocTagContinuationIndentation">JavadocTagContinuationIndentation</a>
-<ul>
-<li>offset: <code>&quot;2&quot;</code></li></ul></td>
-<td>3</td>
-<td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td></tr>
-<tr class="b">
-<td></td>
 <td><a class="externalLink" href="http://checkstyle.sourceforge.net/config_javadoc.html#NonEmptyAtclauseDescription">NonEmptyAtclauseDescription</a></td>
 <td>46</td>
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td></tr>
-<tr class="a">
+<tr class="b">
 <td>misc</td>
 <td><a class="externalLink" href="http://checkstyle.sourceforge.net/config_misc.html#ArrayTypeStyle">ArrayTypeStyle</a></td>
 <td>110</td>
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td></tr>
-<tr class="b">
+<tr class="a">
 <td></td>
 <td><a class="externalLink" href="http://checkstyle.sourceforge.net/config_misc.html#UpperEll">UpperEll</a></td>
 <td>23</td>
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td></tr>
-<tr class="a">
+<tr class="b">
 <td>sizes</td>
 <td><a class="externalLink" href="http://checkstyle.sourceforge.net/config_sizes.html#LineLength">LineLength</a>
 <ul>
@@ -3312,12 +3305,12 @@
 <li>ignorePattern: <code>&quot;^package.*|^import.*|a href|href|http://|https://|ftp://|org.apache.thrift.|com.google.protobuf.|hbase.protobuf.generated&quot;</code></li></ul></td>
 <td>139</td>
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td></tr>
-<tr class="b">
+<tr class="a">
 <td></td>
 <td><a class="externalLink" href="http://checkstyle.sourceforge.net/config_sizes.html#MethodLength">MethodLength</a></td>
 <td>59</td>
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td></tr>
-<tr class="a">
+<tr class="b">
 <td>whitespace</td>
 <td><a class="externalLink" href="http://checkstyle.sourceforge.net/config_whitespace.html#FileTabCharacter">FileTabCharacter</a></td>
 <td>1</td>
@@ -3325,19 +3318,19 @@
 <h2><a name="Details"></a>Details</h2><section>
 <h3 id="log4j2.properties">log4j2.properties</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 105).</td>
 <td>65</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
@@ -3345,49 +3338,49 @@
 <td>65</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.AcidGuaranteesTestTool.java">org/apache/hadoop/hbase/AcidGuaranteesTestTool.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>141</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>165</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>217</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>218</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>284</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>285</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
@@ -3395,13 +3388,13 @@
 <td>339</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.CatalogFamilyFormat.java">org/apache/hadoop/hbase/CatalogFamilyFormat.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>HideUtilityClassConstructor</td>
@@ -3409,49 +3402,49 @@
 <td>81</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.CellUtil.java">org/apache/hadoop/hbase/CellUtil.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>328</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>337</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>401</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>512</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>622</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>706</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -3459,19 +3452,19 @@
 <td>839</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.CompoundConfiguration.java">org/apache/hadoop/hbase/CompoundConfiguration.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>172</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -3479,19 +3472,19 @@
 <td>174</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.DistributedHBaseCluster.java">org/apache/hadoop/hbase/DistributedHBaseCluster.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>488</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -3499,13 +3492,13 @@
 <td>490</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.HBaseConfiguration.java">org/apache/hadoop/hbase/HBaseConfiguration.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -3513,85 +3506,85 @@
 <td>42</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.HBaseTestingUtil.java">org/apache/hadoop/hbase/HBaseTestingUtil.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>351</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>353</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>488</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>492</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>EmptyBlock</td>
 <td>Must have at least one statement.</td>
 <td>1001</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>1216</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>2013</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>coding</td>
 <td>InnerAssignment</td>
 <td>Inner assignments should be avoided.</td>
 <td>3069</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>3502</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>3504</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>3535</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>3575</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -3599,121 +3592,121 @@
 <td>3577</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.HBaseTestingUtility.java">org/apache/hadoop/hbase/HBaseTestingUtility.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>339</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>341</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>476</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>480</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>491</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>576</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>591</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>607</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>607</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>EmptyBlock</td>
 <td>Must have at least one statement.</td>
 <td>1234</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>1449</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>2256</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>coding</td>
 <td>InnerAssignment</td>
 <td>Inner assignments should be avoided.</td>
 <td>3381</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>EmptyBlock</td>
 <td>Must have at least one statement.</td>
 <td>3506</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>3813</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>3815</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>3848</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>3889</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -3721,13 +3714,13 @@
 <td>3891</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.HTestConst.java">org/apache/hadoop/hbase/HTestConst.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>FinalClass</td>
@@ -3735,13 +3728,13 @@
 <td>36</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.IntegrationTestDDLMasterFailover.java">org/apache/hadoop/hbase/IntegrationTestDDLMasterFailover.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -3749,19 +3742,19 @@
 <td>902</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.IntegrationTestManyRegions.java">org/apache/hadoop/hbase/IntegrationTestManyRegions.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>88</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -3769,19 +3762,19 @@
 <td>99</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.IntegrationTestMetaReplicas.java">org/apache/hadoop/hbase/IntegrationTestMetaReplicas.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'else' construct must use '{}'s.</td>
 <td>87</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -3789,43 +3782,43 @@
 <td>89</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.IntegrationTestRegionReplicaPerf.java">org/apache/hadoop/hbase/IntegrationTestRegionReplicaPerf.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>UpperEll</td>
 <td>Should use uppercase 'L'.</td>
 <td>68</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>121</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>145</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>147</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>UpperEll</td>
 <td>Should use uppercase 'L'.</td>
 <td>282</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>UpperEll</td>
@@ -3833,13 +3826,13 @@
 <td>297</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.KeyValueTestUtil.java">org/apache/hadoop/hbase/KeyValueTestUtil.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>HideUtilityClassConstructor</td>
@@ -3847,25 +3840,25 @@
 <td>31</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.KeyValueUtil.java">org/apache/hadoop/hbase/KeyValueUtil.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>HideUtilityClassConstructor</td>
 <td>Utility classes should not have a public or default constructor.</td>
 <td>43</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>419</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -3873,19 +3866,19 @@
 <td>710</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.LocalHBaseCluster.java">org/apache/hadoop/hbase/LocalHBaseCluster.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>263</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -3893,13 +3886,13 @@
 <td>264</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.MetaMockingUtil.java">org/apache/hadoop/hbase/MetaMockingUtil.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>HideUtilityClassConstructor</td>
@@ -3907,19 +3900,19 @@
 <td>31</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.MiniHBaseCluster.java">org/apache/hadoop/hbase/MiniHBaseCluster.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>VisibilityModifier</td>
 <td>Variable 'hbaseCluster' must be private and have accessor methods.</td>
 <td>59</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>coding</td>
 <td>InnerAssignment</td>
@@ -3927,19 +3920,19 @@
 <td>624</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.MultithreadedTestUtil.java">org/apache/hadoop/hbase/MultithreadedTestUtil.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>68</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -3947,19 +3940,19 @@
 <td>83</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.NamespaceDescriptor.java">org/apache/hadoop/hbase/NamespaceDescriptor.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>FinalClass</td>
 <td>Class NamespaceDescriptor should be declared as final.</td>
 <td>35</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>FinalClass</td>
@@ -3967,169 +3960,169 @@
 <td>156</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.PerformanceEvaluation.java">org/apache/hadoop/hbase/PerformanceEvaluation.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>449</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>501</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 101).</td>
 <td>591</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 102).</td>
 <td>592</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>UpperEll</td>
 <td>Should use uppercase 'L'.</td>
 <td>739</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>UpperEll</td>
 <td>Should use uppercase 'L'.</td>
 <td>739</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>UpperEll</td>
 <td>Should use uppercase 'L'.</td>
 <td>739</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>1214</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'for' construct must use '{}'s.</td>
 <td>1215</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>1224</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>1231</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>1240</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>1245</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>1402</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>1404</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>1565</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>coding</td>
 <td>InnerAssignment</td>
 <td>Inner assignments should be avoided.</td>
 <td>1827</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>coding</td>
 <td>InnerAssignment</td>
 <td>Inner assignments should be avoided.</td>
 <td>1875</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>1984</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>UpperEll</td>
 <td>Should use uppercase 'L'.</td>
 <td>2221</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>2385</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>coding</td>
 <td>InnerAssignment</td>
 <td>Inner assignments should be avoided.</td>
 <td>2497</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>2654</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>2655</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 101).</td>
 <td>2765</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>MethodLength</td>
 <td>Method length is 314 lines (max allowed is 150).</td>
 <td>2806</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -4137,13 +4130,13 @@
 <td>2970</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.PerformanceEvaluationCommons.java">org/apache/hadoop/hbase/PerformanceEvaluationCommons.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>HideUtilityClassConstructor</td>
@@ -4151,25 +4144,25 @@
 <td>30</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.PrivateCellUtil.java">org/apache/hadoop/hbase/PrivateCellUtil.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>2586</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>2744</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -4177,25 +4170,25 @@
 <td>2757</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.RegionLocations.java">org/apache/hadoop/hbase/RegionLocations.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>144</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>145</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -4203,13 +4196,13 @@
 <td>147</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.ScanPerformanceEvaluation.java">org/apache/hadoop/hbase/ScanPerformanceEvaluation.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
@@ -4217,13 +4210,13 @@
 <td>80</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.SplitLogCounters.java">org/apache/hadoop/hbase/SplitLogCounters.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>FinalClass</td>
@@ -4231,13 +4224,13 @@
 <td>46</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.SplitLogTask.java">org/apache/hadoop/hbase/SplitLogTask.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -4245,19 +4238,19 @@
 <td>135</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.StripeCompactionsPerformanceEvaluation.java">org/apache/hadoop/hbase/StripeCompactionsPerformanceEvaluation.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>coding</td>
 <td>InnerAssignment</td>
 <td>Inner assignments should be avoided.</td>
 <td>121</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -4265,19 +4258,19 @@
 <td>144</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.TableName.java">org/apache/hadoop/hbase/TableName.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>515</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -4285,13 +4278,13 @@
 <td>516</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.TagBuilderFactory.java">org/apache/hadoop/hbase/TagBuilderFactory.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>HideUtilityClassConstructor</td>
@@ -4299,13 +4292,13 @@
 <td>25</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.TagType.java">org/apache/hadoop/hbase/TagType.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>HideUtilityClassConstructor</td>
@@ -4313,13 +4306,13 @@
 <td>23</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.TestClientClusterStatus.java">org/apache/hadoop/hbase/TestClientClusterStatus.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -4327,13 +4320,13 @@
 <td>176</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.TestGlobalMemStoreSize.java">org/apache/hadoop/hbase/TestGlobalMemStoreSize.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -4341,19 +4334,19 @@
 <td>175</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.TestIOFencing.java">org/apache/hadoop/hbase/TestIOFencing.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>EmptyBlock</td>
 <td>Must have at least one statement.</td>
 <td>91</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
@@ -4361,13 +4354,13 @@
 <td>319</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.TestLocalHBaseCluster.java">org/apache/hadoop/hbase/TestLocalHBaseCluster.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>imports</td>
 <td>AvoidStarImport</td>
@@ -4375,19 +4368,19 @@
 <td>20</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.TestMetaTableAccessor.java">org/apache/hadoop/hbase/TestMetaTableAccessor.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>229</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -4395,13 +4388,13 @@
 <td>230</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.TestNodeHealthCheckChore.java">org/apache/hadoop/hbase/TestNodeHealthCheckChore.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -4409,43 +4402,43 @@
 <td>61</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.TestPartialResultsFromClientSide.java">org/apache/hadoop/hbase/TestPartialResultsFromClientSide.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>332</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>384</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>641</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>662</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>668</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -4453,19 +4446,19 @@
 <td>669</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.TestRegionRebalancing.java">org/apache/hadoop/hbase/TestRegionRebalancing.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>206</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -4473,19 +4466,19 @@
 <td>232</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.TimestampTestBase.java">org/apache/hadoop/hbase/TimestampTestBase.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>HideUtilityClassConstructor</td>
 <td>Utility classes should not have a public or default constructor.</td>
 <td>37</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>EmptyBlock</td>
@@ -4493,13 +4486,13 @@
 <td>190</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.ZNodeClearer.java">org/apache/hadoop/hbase/ZNodeClearer.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -4507,13 +4500,13 @@
 <td>110</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.backup.BackupTestUtil.java">org/apache/hadoop/hbase/backup/BackupTestUtil.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>FinalClass</td>
@@ -4521,25 +4514,25 @@
 <td>30</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.backup.HFileArchiver.java">org/apache/hadoop/hbase/backup/HFileArchiver.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>FinalClass</td>
 <td>Class HFileArchiver should be declared as final.</td>
 <td>62</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>351</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -4547,13 +4540,13 @@
 <td>760</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.chaos.ChaosConstants.java">org/apache/hadoop/hbase/chaos/ChaosConstants.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>HideUtilityClassConstructor</td>
@@ -4561,19 +4554,19 @@
 <td>25</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.chaos.ChaosService.java">org/apache/hadoop/hbase/chaos/ChaosService.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>HideUtilityClassConstructor</td>
 <td>Utility classes should not have a public or default constructor.</td>
 <td>41</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -4581,13 +4574,13 @@
 <td>122</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.chaos.ChaosUtils.java">org/apache/hadoop/hbase/chaos/ChaosUtils.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>HideUtilityClassConstructor</td>
@@ -4595,13 +4588,13 @@
 <td>29</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.chaos.factories.MonkeyConstants.java">org/apache/hadoop/hbase/chaos/factories/MonkeyConstants.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>InterfaceIsType</td>
@@ -4609,13 +4602,13 @@
 <td>25</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.chaos.policies.PeriodicPolicy.java">org/apache/hadoop/hbase/chaos/policies/PeriodicPolicy.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -4623,27 +4616,27 @@
 <td>43</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.chaos.util.ChaosMonkeyRunner.java">org/apache/hadoop/hbase/chaos/util/ChaosMonkeyRunner.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
-<td>javadoc</td>
-<td>JavadocTagContinuationIndentation</td>
+<td>annotation</td>
+<td>MissingDeprecated</td>
 <td>Javadoc comment at column 20 has parse error. Missed HTML close tag 'path-to-conf'. Sometimes it means that close tag missed for one of previous tags.</td>
 <td>172</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.Action.java">org/apache/hadoop/hbase/client/Action.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -4651,25 +4644,25 @@
 <td>94</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.Admin.java">org/apache/hadoop/hbase/client/Admin.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 112).</td>
 <td>739</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 112).</td>
 <td>750</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
@@ -4677,25 +4670,25 @@
 <td>776</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.AsyncBatchRpcRetryingCaller.java">org/apache/hadoop/hbase/client/AsyncBatchRpcRetryingCaller.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>VisibilityModifier</td>
 <td>Variable 'loc' must be private and have accessor methods.</td>
 <td>123</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>VisibilityModifier</td>
 <td>Variable 'actions' must be private and have accessor methods.</td>
 <td>125</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>VisibilityModifier</td>
@@ -4703,31 +4696,31 @@
 <td>134</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.AsyncClientScanner.java">org/apache/hadoop/hbase/client/AsyncClientScanner.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>VisibilityModifier</td>
 <td>Variable 'loc' must be private and have accessor methods.</td>
 <td>143</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>VisibilityModifier</td>
 <td>Variable 'stub' must be private and have accessor methods.</td>
 <td>147</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>VisibilityModifier</td>
 <td>Variable 'controller' must be private and have accessor methods.</td>
 <td>149</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>VisibilityModifier</td>
@@ -4735,13 +4728,13 @@
 <td>151</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.AsyncTableImpl.java">org/apache/hadoop/hbase/client/AsyncTableImpl.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>coding</td>
 <td>InnerAssignment</td>
@@ -4749,13 +4742,13 @@
 <td>249</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.ClientInternalHelper.java">org/apache/hadoop/hbase/client/ClientInternalHelper.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>HideUtilityClassConstructor</td>
@@ -4763,13 +4756,13 @@
 <td>34</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.ClientUtil.java">org/apache/hadoop/hbase/client/ClientUtil.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>HideUtilityClassConstructor</td>
@@ -4777,13 +4770,13 @@
 <td>25</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.ColumnFamilyDescriptorBuilder.java">org/apache/hadoop/hbase/client/ColumnFamilyDescriptorBuilder.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>FinalClass</td>
@@ -4791,13 +4784,13 @@
 <td>46</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.HConnectionTestingUtility.java">org/apache/hadoop/hbase/client/HConnectionTestingUtility.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>HideUtilityClassConstructor</td>
@@ -4805,25 +4798,25 @@
 <td>27</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.Mutation.java">org/apache/hadoop/hbase/client/Mutation.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>352</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>371</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -4831,13 +4824,13 @@
 <td>381</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.Query.java">org/apache/hadoop/hbase/client/Query.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -4845,25 +4838,25 @@
 <td>78</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.RegionInfo.java">org/apache/hadoop/hbase/client/RegionInfo.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>346</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>355</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -4871,13 +4864,13 @@
 <td>368</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.RegionInfoBuilder.java">org/apache/hadoop/hbase/client/RegionInfoBuilder.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>FinalClass</td>
@@ -4885,43 +4878,43 @@
 <td>25</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.RegionInfoDisplay.java">org/apache/hadoop/hbase/client/RegionInfoDisplay.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>HideUtilityClassConstructor</td>
 <td>Utility classes should not have a public or default constructor.</td>
 <td>31</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>43</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>57</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>67</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>107</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -4929,13 +4922,13 @@
 <td>108</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.RegionReplicaUtil.java">org/apache/hadoop/hbase/client/RegionReplicaUtil.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>HideUtilityClassConstructor</td>
@@ -4943,13 +4936,13 @@
 <td>30</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.RequestControllerFactory.java">org/apache/hadoop/hbase/client/RequestControllerFactory.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>HideUtilityClassConstructor</td>
@@ -4957,13 +4950,13 @@
 <td>27</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.ResultScanner.java">org/apache/hadoop/hbase/client/ResultScanner.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>coding</td>
 <td>InnerAssignment</td>
@@ -4971,13 +4964,13 @@
 <td>51</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.RetriesExhaustedWithDetailsException.java">org/apache/hadoop/hbase/client/RetriesExhaustedWithDetailsException.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -4985,13 +4978,13 @@
 <td>145</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.SnapshotDescription.java">org/apache/hadoop/hbase/client/SnapshotDescription.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
@@ -4999,13 +4992,13 @@
 <td>67</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.TableDescriptorBuilder.java">org/apache/hadoop/hbase/client/TableDescriptorBuilder.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>FinalClass</td>
@@ -5013,13 +5006,13 @@
 <td>58</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.TableState.java">org/apache/hadoop/hbase/client/TableState.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -5027,13 +5020,13 @@
 <td>165</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.TestAdmin.java">org/apache/hadoop/hbase/client/TestAdmin.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>MethodLength</td>
@@ -5041,19 +5034,19 @@
 <td>174</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.TestAsyncRegionAdminApi.java">org/apache/hadoop/hbase/client/TestAsyncRegionAdminApi.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'for' construct must use '{}'s.</td>
 <td>286</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -5061,13 +5054,13 @@
 <td>293</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.TestAsyncReplicationAdminApi.java">org/apache/hadoop/hbase/client/TestAsyncReplicationAdminApi.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>coding</td>
 <td>EmptyStatement</td>
@@ -5075,19 +5068,19 @@
 <td>451</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.TestAsyncTableScanMetrics.java">org/apache/hadoop/hbase/client/TestAsyncTableScanMetrics.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>coding</td>
 <td>InnerAssignment</td>
 <td>Inner assignments should be avoided.</td>
 <td>118</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>coding</td>
 <td>InnerAssignment</td>
@@ -5095,13 +5088,13 @@
 <td>136</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.TestAsyncTableScanner.java">org/apache/hadoop/hbase/client/TestAsyncTableScanner.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>coding</td>
 <td>InnerAssignment</td>
@@ -5109,25 +5102,25 @@
 <td>92</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.TestAvoidCellReferencesIntoShippedBlocks.java">org/apache/hadoop/hbase/client/TestAvoidCellReferencesIntoShippedBlocks.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
 <td>101</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
 <td>124</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>EmptyBlock</td>
@@ -5135,31 +5128,31 @@
 <td>248</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.TestBlockEvictionFromClient.java">org/apache/hadoop/hbase/client/TestBlockEvictionFromClient.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
 <td>110</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
 <td>131</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
 <td>139</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
@@ -5167,19 +5160,19 @@
 <td>149</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.TestFromClientSide3.java">org/apache/hadoop/hbase/client/TestFromClientSide3.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
 <td>111</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
@@ -5187,19 +5180,19 @@
 <td>119</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.TestFromClientSideNoCodec.java">org/apache/hadoop/hbase/client/TestFromClientSideNoCodec.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
 <td>58</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
@@ -5207,13 +5200,13 @@
 <td>68</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.TestImmutableScan.java">org/apache/hadoop/hbase/client/TestImmutableScan.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>MethodLength</td>
@@ -5221,13 +5214,13 @@
 <td>118</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.TestIncrementsFromClientSide.java">org/apache/hadoop/hbase/client/TestIncrementsFromClientSide.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
@@ -5235,163 +5228,163 @@
 <td>98</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.TestMultipleTimestamps.java">org/apache/hadoop/hbase/client/TestMultipleTimestamps.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>imports</td>
 <td>AvoidStarImport</td>
 <td>Using the '.*' form of import should be avoided - org.junit.Assert.*.</td>
 <td>20</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
 <td>65</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
 <td>73</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
 <td>81</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
 <td>89</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>201</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>316</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>346</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>371</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>396</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>431</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>432</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>444</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>445</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>448</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>461</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>465</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>479</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>480</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>497</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>498</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>509</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>510</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>517</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>518</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
@@ -5399,19 +5392,19 @@
 <td>525</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.TestPutWithDelete.java">org/apache/hadoop/hbase/client/TestPutWithDelete.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
 <td>51</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
@@ -5419,13 +5412,13 @@
 <td>59</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.TestRawAsyncTableScan.java">org/apache/hadoop/hbase/client/TestRawAsyncTableScan.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>coding</td>
 <td>InnerAssignment</td>
@@ -5433,13 +5426,13 @@
 <td>85</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.TestReplicaWithCluster.java">org/apache/hadoop/hbase/client/TestReplicaWithCluster.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -5447,13 +5440,13 @@
 <td>271</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.TestReplicasClient.java">org/apache/hadoop/hbase/client/TestReplicasClient.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -5461,25 +5454,25 @@
 <td>259</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.TestScannerTimeout.java">org/apache/hadoop/hbase/client/TestScannerTimeout.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
 <td>64</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
 <td>83</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
@@ -5487,13 +5480,13 @@
 <td>91</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.TestScannersFromClientSide2.java">org/apache/hadoop/hbase/client/TestScannersFromClientSide2.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>coding</td>
 <td>InnerAssignment</td>
@@ -5501,91 +5494,91 @@
 <td>134</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.TestTimestampsFilter.java">org/apache/hadoop/hbase/client/TestTimestampsFilter.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
 <td>64</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
 <td>72</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
 <td>80</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
 <td>88</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>105</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>252</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>315</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>316</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>333</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>334</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>348</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>349</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>366</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
@@ -5593,13 +5586,13 @@
 <td>367</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.coprocessor.AggregationClient.java">org/apache/hadoop/hbase/client/coprocessor/AggregationClient.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
@@ -5607,19 +5600,19 @@
 <td>195</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.coprocessor.Batch.java">org/apache/hadoop/hbase/client/coprocessor/Batch.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 103).</td>
 <td>34</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
@@ -5627,19 +5620,19 @@
 <td>53</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.coprocessor.DoubleColumnInterpreter.java">org/apache/hadoop/hbase/client/coprocessor/DoubleColumnInterpreter.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>46</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -5647,31 +5640,31 @@
 <td>62</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.coprocessor.LongColumnInterpreter.java">org/apache/hadoop/hbase/client/coprocessor/LongColumnInterpreter.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>46</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>54</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>63</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>UpperEll</td>
@@ -5679,55 +5672,55 @@
 <td>74</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.coprocessor.package-info.java">org/apache/hadoop/hbase/client/coprocessor/package-info.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 146).</td>
 <td>54</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 200).</td>
 <td>55</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 144).</td>
 <td>75</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 206).</td>
 <td>76</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 111).</td>
 <td>95</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 105).</td>
 <td>96</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 124).</td>
 <td>149</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
@@ -5735,13 +5728,13 @@
 <td>190</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.locking.EntityLock.java">org/apache/hadoop/hbase/client/locking/EntityLock.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -5749,61 +5742,61 @@
 <td>125</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.client.metrics.ScanMetrics.java">org/apache/hadoop/hbase/client/metrics/ScanMetrics.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>VisibilityModifier</td>
 <td>Variable 'countOfRPCcalls' must be private and have accessor methods.</td>
 <td>54</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>VisibilityModifier</td>
 <td>Variable 'countOfRemoteRPCcalls' must be private and have accessor methods.</td>
 <td>59</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>VisibilityModifier</td>
 <td>Variable 'sumOfMillisSecBetweenNexts' must be private and have accessor methods.</td>
 <td>64</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>VisibilityModifier</td>
 <td>Variable 'countOfNSRE' must be private and have accessor methods.</td>
 <td>70</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>VisibilityModifier</td>
 <td>Variable 'countOfBytesInResults' must be private and have accessor methods.</td>
 <td>75</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>VisibilityModifier</td>
 <td>Variable 'countOfBytesInRemoteResults' must be private and have accessor methods.</td>
 <td>80</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>VisibilityModifier</td>
 <td>Variable 'countOfRegions' must be private and have accessor methods.</td>
 <td>86</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>VisibilityModifier</td>
 <td>Variable 'countOfRPCRetries' must be private and have accessor methods.</td>
 <td>91</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>VisibilityModifier</td>
@@ -5811,13 +5804,13 @@
 <td>96</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.codec.BaseDecoder.java">org/apache/hadoop/hbase/codec/BaseDecoder.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -5825,19 +5818,19 @@
 <td>82</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.codec.BaseEncoder.java">org/apache/hadoop/hbase/codec/BaseEncoder.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>48</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -5845,13 +5838,13 @@
 <td>53</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.codec.CodecPerformance.java">org/apache/hadoop/hbase/codec/CodecPerformance.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>HideUtilityClassConstructor</td>
@@ -5859,19 +5852,19 @@
 <td>40</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.constraint.CheckConfigurationConstraint.java">org/apache/hadoop/hbase/constraint/CheckConfigurationConstraint.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>47</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -5879,25 +5872,25 @@
 <td>51</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.constraint.Constraint.java">org/apache/hadoop/hbase/constraint/Constraint.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 119).</td>
 <td>30</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 101).</td>
 <td>35</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
@@ -5905,37 +5898,37 @@
 <td>37</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.constraint.package-info.java">org/apache/hadoop/hbase/constraint/package-info.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 120).</td>
 <td>42</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 121).</td>
 <td>45</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 127).</td>
 <td>63</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 155).</td>
 <td>64</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
@@ -5943,19 +5936,19 @@
 <td>66</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.coordination.ZKSplitLogManagerCoordination.java">org/apache/hadoop/hbase/coordination/ZKSplitLogManagerCoordination.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>VisibilityModifier</td>
 <td>Variable 'ignoreZKDeleteForTesting' must be private and have accessor methods.</td>
 <td>82</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>EmptyBlock</td>
@@ -5963,19 +5956,19 @@
 <td>447</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.coordination.ZkSplitLogWorkerCoordination.java">org/apache/hadoop/hbase/coordination/ZkSplitLogWorkerCoordination.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>EmptyBlock</td>
 <td>Must have at least one statement.</td>
 <td>154</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>coding</td>
 <td>InnerAssignment</td>
@@ -5983,13 +5976,13 @@
 <td>218</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.coprocessor.BaseEnvironment.java">org/apache/hadoop/hbase/coprocessor/BaseEnvironment.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>VisibilityModifier</td>
@@ -5997,19 +5990,19 @@
 <td>37</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.coprocessor.CoprocessorHost.java">org/apache/hadoop/hbase/coprocessor/CoprocessorHost.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>133</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -6017,13 +6010,13 @@
 <td>662</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.coprocessor.MetricsCoprocessor.java">org/apache/hadoop/hbase/coprocessor/MetricsCoprocessor.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>HideUtilityClassConstructor</td>
@@ -6031,13 +6024,13 @@
 <td>30</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.coprocessor.ObserverContextImpl.java">org/apache/hadoop/hbase/coprocessor/ObserverContextImpl.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>annotation</td>
 <td>MissingDeprecated</td>
@@ -6045,31 +6038,31 @@
 <td>98</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.coprocessor.RegionObserver.java">org/apache/hadoop/hbase/coprocessor/RegionObserver.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 109).</td>
 <td>684</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 109).</td>
 <td>713</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 109).</td>
 <td>842</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
@@ -6077,13 +6070,13 @@
 <td>871</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.coprocessor.TestCoprocessorInterface.java">org/apache/hadoop/hbase/coprocessor/TestCoprocessorInterface.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>coding</td>
 <td>InnerAssignment</td>
@@ -6091,37 +6084,37 @@
 <td>343</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.coprocessor.TestRegionObserverInterface.java">org/apache/hadoop/hbase/coprocessor/TestRegionObserverInterface.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>EmptyBlock</td>
 <td>Must have at least one statement.</td>
 <td>499</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>EmptyBlock</td>
 <td>Must have at least one statement.</td>
 <td>525</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>EmptyBlock</td>
 <td>Must have at least one statement.</td>
 <td>562</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>880</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
@@ -6129,13 +6122,13 @@
 <td>881</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.coprocessor.TestRegionObserverPreFlushAndPreCompact.java">org/apache/hadoop/hbase/coprocessor/TestRegionObserverPreFlushAndPreCompact.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
@@ -6143,13 +6136,13 @@
 <td>53</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.coprocessor.TestRegionObserverScannerOpenHook.java">org/apache/hadoop/hbase/coprocessor/TestRegionObserverScannerOpenHook.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -6157,13 +6150,13 @@
 <td>302</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.coprocessor.package-info.java">org/apache/hadoop/hbase/coprocessor/package-info.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
@@ -6171,13 +6164,13 @@
 <td>209</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.errorhandling.ForeignException.java">org/apache/hadoop/hbase/errorhandling/ForeignException.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -6185,13 +6178,13 @@
 <td>99</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.errorhandling.ForeignExceptionDispatcher.java">org/apache/hadoop/hbase/errorhandling/ForeignExceptionDispatcher.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -6199,13 +6192,13 @@
 <td>62</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.errorhandling.TimeoutExceptionInjector.java">org/apache/hadoop/hbase/errorhandling/TimeoutExceptionInjector.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -6213,31 +6206,31 @@
 <td>60</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.favored.FavoredNodeAssignmentHelper.java">org/apache/hadoop/hbase/favored/FavoredNodeAssignmentHelper.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>234</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'else' construct must use '{}'s.</td>
 <td>239</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>393</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -6245,19 +6238,19 @@
 <td>595</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.favored.StartcodeAgnosticServerName.java">org/apache/hadoop/hbase/favored/StartcodeAgnosticServerName.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>58</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -6265,13 +6258,13 @@
 <td>60</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.filter.ColumnCountGetFilter.java">org/apache/hadoop/hbase/filter/ColumnCountGetFilter.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -6279,13 +6272,13 @@
 <td>54</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.filter.ColumnPrefixFilter.java">org/apache/hadoop/hbase/filter/ColumnPrefixFilter.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -6293,31 +6286,31 @@
 <td>109</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.filter.ColumnRangeFilter.java">org/apache/hadoop/hbase/filter/ColumnRangeFilter.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>141</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>142</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>150</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -6325,13 +6318,13 @@
 <td>153</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.filter.CompareFilter.java">org/apache/hadoop/hbase/filter/CompareFilter.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -6339,13 +6332,13 @@
 <td>164</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.filter.DependentColumnFilter.java">org/apache/hadoop/hbase/filter/DependentColumnFilter.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -6353,19 +6346,19 @@
 <td>127</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.filter.FilterAllFilter.java">org/apache/hadoop/hbase/filter/FilterAllFilter.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>56</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -6373,61 +6366,61 @@
 <td>57</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.filter.FilterListWithAND.java">org/apache/hadoop/hbase/filter/FilterListWithAND.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 107).</td>
 <td>89</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 198).</td>
 <td>99</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 198).</td>
 <td>100</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 198).</td>
 <td>101</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 198).</td>
 <td>102</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 198).</td>
 <td>103</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 198).</td>
 <td>104</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 198).</td>
 <td>105</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
@@ -6435,67 +6428,67 @@
 <td>106</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.filter.FilterListWithOR.java">org/apache/hadoop/hbase/filter/FilterListWithOR.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 107).</td>
 <td>130</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 170).</td>
 <td>140</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 157).</td>
 <td>141</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 157).</td>
 <td>142</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 157).</td>
 <td>143</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 154).</td>
 <td>144</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 154).</td>
 <td>145</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 154).</td>
 <td>146</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 170).</td>
 <td>147</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -6503,13 +6496,13 @@
 <td>156</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.filter.FilterTestingCluster.java">org/apache/hadoop/hbase/filter/FilterTestingCluster.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>HideUtilityClassConstructor</td>
@@ -6517,31 +6510,31 @@
 <td>50</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.filter.FilterWrapper.java">org/apache/hadoop/hbase/filter/FilterWrapper.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
 <td>61</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>100</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>160</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -6549,13 +6542,13 @@
 <td>161</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.filter.FirstKeyOnlyFilter.java">org/apache/hadoop/hbase/filter/FirstKeyOnlyFilter.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -6563,31 +6556,31 @@
 <td>56</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.filter.FuzzyRowFilter.java">org/apache/hadoop/hbase/filter/FuzzyRowFilter.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>144</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>654</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>656</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -6595,25 +6588,25 @@
 <td>675</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.filter.InclusiveStopFilter.java">org/apache/hadoop/hbase/filter/InclusiveStopFilter.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>52</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>59</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -6621,37 +6614,37 @@
 <td>83</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.filter.MultiRowRangeFilter.java">org/apache/hadoop/hbase/filter/MultiRowRangeFilter.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>112</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>187</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>190</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>241</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>MethodLength</td>
@@ -6659,19 +6652,19 @@
 <td>262</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.filter.MultipleColumnPrefixFilter.java">org/apache/hadoop/hbase/filter/MultipleColumnPrefixFilter.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>125</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -6679,13 +6672,13 @@
 <td>179</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.filter.PageFilter.java">org/apache/hadoop/hbase/filter/PageFilter.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -6693,13 +6686,13 @@
 <td>62</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.filter.ParseConstants.java">org/apache/hadoop/hbase/filter/ParseConstants.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>HideUtilityClassConstructor</td>
@@ -6707,97 +6700,97 @@
 <td>27</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.filter.ParseFilter.java">org/apache/hadoop/hbase/filter/ParseFilter.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>783</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>784</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>786</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>787</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>789</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>790</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'else' construct must use '{}'s.</td>
 <td>791</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>801</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>806</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>808</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>810</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>812</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>815</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'else' construct must use '{}'s.</td>
 <td>817</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -6805,37 +6798,37 @@
 <td>866</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.filter.PrefixFilter.java">org/apache/hadoop/hbase/filter/PrefixFilter.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>53</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>54</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>56</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>78</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -6843,19 +6836,19 @@
 <td>108</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.filter.SingleColumnValueFilter.java">org/apache/hadoop/hbase/filter/SingleColumnValueFilter.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>322</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -6863,31 +6856,31 @@
 <td>323</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.filter.TestColumnPrefixFilter.java">org/apache/hadoop/hbase/filter/TestColumnPrefixFilter.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'while' construct must use '{}'s.</td>
 <td>121</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>coding</td>
 <td>EmptyStatement</td>
 <td>Empty statement.</td>
 <td>122</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'while' construct must use '{}'s.</td>
 <td>189</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>coding</td>
 <td>EmptyStatement</td>
@@ -6895,13 +6888,13 @@
 <td>190</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.filter.TestColumnRangeFilter.java">org/apache/hadoop/hbase/filter/TestColumnRangeFilter.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>imports</td>
 <td>AvoidStarImport</td>
@@ -6909,13 +6902,13 @@
 <td>20</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.filter.TestDependentColumnFilter.java">org/apache/hadoop/hbase/filter/TestDependentColumnFilter.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -6923,37 +6916,37 @@
 <td>152</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.filter.TestFilter.java">org/apache/hadoop/hbase/filter/TestFilter.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>MethodLength</td>
 <td>Method length is 154 lines (max allowed is 150).</td>
 <td>740</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>1760</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>1779</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>1797</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -6961,13 +6954,13 @@
 <td>1825</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.filter.TestFilterWrapper.java">org/apache/hadoop/hbase/filter/TestFilterWrapper.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -6975,37 +6968,37 @@
 <td>137</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.filter.TestFuzzyRowAndColumnRangeFilter.java">org/apache/hadoop/hbase/filter/TestFuzzyRowAndColumnRangeFilter.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
 <td>72</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
 <td>80</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
 <td>88</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
 <td>96</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -7013,19 +7006,19 @@
 <td>152</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.filter.TestFuzzyRowFilterEndToEnd.java">org/apache/hadoop/hbase/filter/TestFuzzyRowFilterEndToEnd.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'for' construct must use '{}'s.</td>
 <td>236</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -7033,55 +7026,55 @@
 <td>246</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.filter.TestMultipleColumnPrefixFilter.java">org/apache/hadoop/hbase/filter/TestMultipleColumnPrefixFilter.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'while' construct must use '{}'s.</td>
 <td>124</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>coding</td>
 <td>EmptyStatement</td>
 <td>Empty statement.</td>
 <td>125</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'while' construct must use '{}'s.</td>
 <td>197</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>coding</td>
 <td>EmptyStatement</td>
 <td>Empty statement.</td>
 <td>198</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'while' construct must use '{}'s.</td>
 <td>245</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>coding</td>
 <td>EmptyStatement</td>
 <td>Empty statement.</td>
 <td>246</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'while' construct must use '{}'s.</td>
 <td>256</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>coding</td>
 <td>EmptyStatement</td>
@@ -7089,13 +7082,13 @@
 <td>257</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.filter.TestPrefixFilter.java">org/apache/hadoop/hbase/filter/TestPrefixFilter.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>imports</td>
 <td>AvoidStarImport</td>
@@ -7103,13 +7096,13 @@
 <td>20</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.filter.TestRandomRowFilter.java">org/apache/hadoop/hbase/filter/TestRandomRowFilter.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>imports</td>
 <td>AvoidStarImport</td>
@@ -7117,19 +7110,19 @@
 <td>20</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.filter.TestRegexComparator.java">org/apache/hadoop/hbase/filter/TestRegexComparator.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>imports</td>
 <td>AvoidStarImport</td>
 <td>Using the '.*' form of import should be avoided - org.junit.Assert.*.</td>
 <td>20</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
@@ -7137,13 +7130,13 @@
 <td>91</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.filter.WhileMatchFilter.java">org/apache/hadoop/hbase/filter/WhileMatchFilter.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -7151,13 +7144,13 @@
 <td>67</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.hbtop.HBTop.java">org/apache/hadoop/hbase/hbtop/HBTop.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>MethodLength</td>
@@ -7165,85 +7158,85 @@
 <td>61</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.hbtop.screen.top.TopScreenPresenter.java">org/apache/hadoop/hbase/hbtop/screen/top/TopScreenPresenter.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'block' child has incorrect indentation level 8, expected level should be 6.</td>
 <td>251</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'block' child has incorrect indentation level 8, expected level should be 6.</td>
 <td>252</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'block' child has incorrect indentation level 8, expected level should be 6.</td>
 <td>253</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'block rcurly' has incorrect indentation level 6, expected level should be 4.</td>
 <td>254</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'if' has incorrect indentation level 8, expected level should be 6.</td>
 <td>324</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'if' child has incorrect indentation level 10, expected level should be 8.</td>
 <td>325</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'if rcurly' has incorrect indentation level 8, expected level should be 6.</td>
 <td>326</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'if' has incorrect indentation level 8, expected level should be 6.</td>
 <td>328</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'if' child has incorrect indentation level 10, expected level should be 8.</td>
 <td>329</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'if rcurly' has incorrect indentation level 8, expected level should be 6.</td>
 <td>330</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'block' child has incorrect indentation level 8, expected level should be 6.</td>
 <td>332</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'block' child has incorrect indentation level 8, expected level should be 6.</td>
 <td>333</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
@@ -7251,13 +7244,13 @@
 <td>334</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.http.HttpServerFunctionalTest.java">org/apache/hadoop/hbase/http/HttpServerFunctionalTest.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>HideUtilityClassConstructor</td>
@@ -7265,13 +7258,13 @@
 <td>44</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.http.lib.TestAuthenticationFilterInitializer.java">org/apache/hadoop/hbase/http/lib/TestAuthenticationFilterInitializer.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>imports</td>
 <td>AvoidStarImport</td>
@@ -7279,13 +7272,13 @@
 <td>20</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.http.prometheus.PrometheusHadoopServlet.java">org/apache/hadoop/hbase/http/prometheus/PrometheusHadoopServlet.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -7293,13 +7286,13 @@
 <td>73</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.ByteBuffInputStream.java">org/apache/hadoop/hbase/io/ByteBuffInputStream.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
@@ -7307,31 +7300,31 @@
 <td>62</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.FSDataInputStreamWrapper.java">org/apache/hadoop/hbase/io/FSDataInputStreamWrapper.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>coding</td>
 <td>InnerAssignment</td>
 <td>Inner assignments should be avoided.</td>
 <td>121</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>151</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>coding</td>
 <td>InnerAssignment</td>
 <td>Inner assignments should be avoided.</td>
 <td>160</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>coding</td>
 <td>InnerAssignment</td>
@@ -7339,31 +7332,31 @@
 <td>180</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.FileLink.java">org/apache/hadoop/hbase/io/FileLink.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>220</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>259</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>262</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -7371,25 +7364,25 @@
 <td>326</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.HalfStoreFileReader.java">org/apache/hadoop/hbase/io/HalfStoreFileReader.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>MethodLength</td>
 <td>Method length is 183 lines (max allowed is 150).</td>
 <td>98</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>VisibilityModifier</td>
 <td>Variable 'atEnd' must be private and have accessor methods.</td>
 <td>104</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -7397,13 +7390,13 @@
 <td>134</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.ImmutableBytesWritable.java">org/apache/hadoop/hbase/io/ImmutableBytesWritable.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -7411,49 +7404,49 @@
 <td>139</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.Reference.java">org/apache/hadoop/hbase/io/Reference.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>162</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>209</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>210</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>211</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>214</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>215</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -7461,13 +7454,13 @@
 <td>216</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.TestByteBufferOutputStream.java">org/apache/hadoop/hbase/io/TestByteBufferOutputStream.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>imports</td>
 <td>AvoidStarImport</td>
@@ -7475,25 +7468,25 @@
 <td>20</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.TestFileLink.java">org/apache/hadoop/hbase/io/TestFileLink.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>239</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>240</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -7501,25 +7494,25 @@
 <td>347</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.TestHFileLink.java">org/apache/hadoop/hbase/io/TestHFileLink.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>55</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>100</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
@@ -7527,13 +7520,13 @@
 <td>111</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.TestHalfStoreFileReader.java">org/apache/hadoop/hbase/io/TestHalfStoreFileReader.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
@@ -7541,19 +7534,19 @@
 <td>268</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.TestHeapSize.java">org/apache/hadoop/hbase/io/TestHeapSize.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>MethodLength</td>
 <td>Method length is 177 lines (max allowed is 150).</td>
 <td>116</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>MethodLength</td>
@@ -7561,19 +7554,19 @@
 <td>299</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.TestImmutableBytesWritable.java">org/apache/hadoop/hbase/io/TestImmutableBytesWritable.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>91</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -7581,13 +7574,13 @@
 <td>92</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.asyncfs.FanOutOneBlockAsyncDFSOutputHelper.java">org/apache/hadoop/hbase/io/asyncfs/FanOutOneBlockAsyncDFSOutputHelper.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>coding</td>
 <td>InnerAssignment</td>
@@ -7595,43 +7588,43 @@
 <td>313</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.compress.Compression.java">org/apache/hadoop/hbase/io/compress/Compression.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>108</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>461</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>476</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>485</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>502</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -7639,19 +7632,19 @@
 <td>505</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.crypto.Encryption.java">org/apache/hadoop/hbase/io/crypto/Encryption.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>FinalClass</td>
 <td>Class Context should be declared as final.</td>
 <td>99</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
@@ -7659,13 +7652,13 @@
 <td>409</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.crypto.aes.CryptoAES.java">org/apache/hadoop/hbase/io/crypto/aes/CryptoAES.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
@@ -7673,13 +7666,13 @@
 <td>212</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.crypto.tls.X509Util.java">org/apache/hadoop/hbase/io/crypto/tls/X509Util.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
@@ -7687,13 +7680,13 @@
 <td>555</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.encoding.CopyKeyDataBlockEncoder.java">org/apache/hadoop/hbase/io/encoding/CopyKeyDataBlockEncoder.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>FinalClass</td>
@@ -7701,13 +7694,13 @@
 <td>95</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.encoding.DiffKeyDeltaEncoder.java">org/apache/hadoop/hbase/io/encoding/DiffKeyDeltaEncoder.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>FinalClass</td>
@@ -7715,13 +7708,13 @@
 <td>389</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.encoding.FastDiffDeltaEncoder.java">org/apache/hadoop/hbase/io/encoding/FastDiffDeltaEncoder.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>FinalClass</td>
@@ -7729,13 +7722,13 @@
 <td>375</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.encoding.PrefixKeyDeltaEncoder.java">org/apache/hadoop/hbase/io/encoding/PrefixKeyDeltaEncoder.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>FinalClass</td>
@@ -7743,25 +7736,25 @@
 <td>191</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.hfile.BlockCacheUtil.java">org/apache/hadoop/hbase/io/hfile/BlockCacheUtil.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>HideUtilityClassConstructor</td>
 <td>Utility classes should not have a public or default constructor.</td>
 <td>47</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>165</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -7769,19 +7762,19 @@
 <td>324</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.hfile.BlockCachesIterator.java">org/apache/hadoop/hbase/io/hfile/BlockCachesIterator.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>39</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -7789,19 +7782,19 @@
 <td>41</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.hfile.BlockType.java">org/apache/hadoop/hbase/io/hfile/BlockType.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'for' construct must use '{}'s.</td>
 <td>155</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -7809,31 +7802,31 @@
 <td>156</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.hfile.CacheStats.java">org/apache/hadoop/hbase/io/hfile/CacheStats.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>148</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>149</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>194</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -7841,19 +7834,19 @@
 <td>195</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.hfile.CacheTestUtils.java">org/apache/hadoop/hbase/io/hfile/CacheTestUtils.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>HideUtilityClassConstructor</td>
 <td>Utility classes should not have a public or default constructor.</td>
 <td>47</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
@@ -7861,13 +7854,13 @@
 <td>231</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.hfile.CacheableDeserializerIdManager.java">org/apache/hadoop/hbase/io/hfile/CacheableDeserializerIdManager.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>HideUtilityClassConstructor</td>
@@ -7875,13 +7868,13 @@
 <td>32</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.hfile.ChecksumUtil.java">org/apache/hadoop/hbase/io/hfile/ChecksumUtil.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>HideUtilityClassConstructor</td>
@@ -7889,13 +7882,13 @@
 <td>34</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.hfile.CompoundBloomFilterWriter.java">org/apache/hadoop/hbase/io/hfile/CompoundBloomFilterWriter.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
@@ -7903,13 +7896,13 @@
 <td>239</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.hfile.FixedFileTrailer.java">org/apache/hadoop/hbase/io/hfile/FixedFileTrailer.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
@@ -7917,13 +7910,13 @@
 <td>374</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.hfile.HFileBlock.java">org/apache/hadoop/hbase/io/hfile/HFileBlock.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>MethodLength</td>
@@ -7931,73 +7924,73 @@
 <td>1695</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.hfile.HFileBlockIndex.java">org/apache/hadoop/hbase/io/hfile/HFileBlockIndex.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>HideUtilityClassConstructor</td>
 <td>Utility classes should not have a public or default constructor.</td>
 <td>62</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>779</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>781</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'else' construct must use '{}'s.</td>
 <td>782</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>1072</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>1106</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>1108</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>1251</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>1275</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>1463</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -8005,55 +7998,55 @@
 <td>1558</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.hfile.HFilePrettyPrinter.java">org/apache/hadoop/hbase/io/hfile/HFilePrettyPrinter.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>167</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>211</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>213</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>217</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>560</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>573</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>723</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>FinalClass</td>
@@ -8061,25 +8054,25 @@
 <td>749</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.hfile.KVGenerator.java">org/apache/hadoop/hbase/io/hfile/KVGenerator.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>39</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>60</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -8087,13 +8080,13 @@
 <td>95</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.hfile.LruCachedBlock.java">org/apache/hadoop/hbase/io/hfile/LruCachedBlock.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -8101,31 +8094,31 @@
 <td>96</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.hfile.NanoTimer.java">org/apache/hadoop/hbase/io/hfile/NanoTimer.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>36</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>65</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>106</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -8133,13 +8126,13 @@
 <td>108</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.hfile.NoOpDataBlockEncoder.java">org/apache/hadoop/hbase/io/hfile/NoOpDataBlockEncoder.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>FinalClass</td>
@@ -8147,19 +8140,19 @@
 <td>36</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.hfile.NoOpIndexBlockEncoder.java">org/apache/hadoop/hbase/io/hfile/NoOpIndexBlockEncoder.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>FinalClass</td>
 <td>Class NoOpIndexBlockEncoder should be declared as final.</td>
 <td>43</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -8167,73 +8160,73 @@
 <td>87</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.hfile.RandomKeyValueUtil.java">org/apache/hadoop/hbase/io/hfile/RandomKeyValueUtil.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>HideUtilityClassConstructor</td>
 <td>Utility classes should not have a public or default constructor.</td>
 <td>27</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>34</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>37</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>40</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'for' construct must use '{}'s.</td>
 <td>56</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>83</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'else' construct must use '{}'s.</td>
 <td>84</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'for' construct must use '{}'s.</td>
 <td>88</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>100</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'else' construct must use '{}'s.</td>
 <td>101</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -8241,13 +8234,13 @@
 <td>105</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.hfile.TestCacheConfig.java">org/apache/hadoop/hbase/io/hfile/TestCacheConfig.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -8255,19 +8248,19 @@
 <td>357</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.hfile.TestChecksum.java">org/apache/hadoop/hbase/io/hfile/TestChecksum.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'for' construct must use '{}'s.</td>
 <td>87</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -8275,13 +8268,13 @@
 <td>217</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.hfile.TestFixedFileTrailer.java">org/apache/hadoop/hbase/io/hfile/TestFixedFileTrailer.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -8289,19 +8282,19 @@
 <td>91</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.hfile.TestForceCacheImportantBlocks.java">org/apache/hadoop/hbase/io/hfile/TestForceCacheImportantBlocks.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>125</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -8309,31 +8302,31 @@
 <td>126</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.hfile.TestHFileBlock.java">org/apache/hadoop/hbase/io/hfile/TestHFileBlock.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>imports</td>
 <td>AvoidStarImport</td>
 <td>Using the '.*' form of import should be avoided - org.junit.Assert.*.</td>
 <td>23</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'for' construct must use '{}'s.</td>
 <td>178</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'for' construct must use '{}'s.</td>
 <td>366</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -8341,37 +8334,37 @@
 <td>842</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.hfile.TestHFileBlockIndex.java">org/apache/hadoop/hbase/io/hfile/TestHFileBlockIndex.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>347</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'while' construct must use '{}'s.</td>
 <td>356</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'for' construct must use '{}'s.</td>
 <td>373</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>643</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -8379,13 +8372,13 @@
 <td>694</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.hfile.TestHFileWriterV3.java">org/apache/hadoop/hbase/io/hfile/TestHFileWriterV3.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>sizes</td>
 <td>MethodLength</td>
@@ -8393,217 +8386,217 @@
 <td>124</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.hfile.TestPrefetch.java">org/apache/hadoop/hbase/io/hfile/TestPrefetch.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'block' child has incorrect indentation level 6, expected level should be 8.</td>
 <td>151</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'if' has incorrect indentation level 6, expected level should be 8.</td>
 <td>152</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'if' child has incorrect indentation level 10, expected level should be 12.</td>
 <td>154</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'if rparen' has incorrect indentation level 6, expected level should be 8.</td>
 <td>155</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'if' child has incorrect indentation level 8, expected level should be 10.</td>
 <td>156</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'if rcurly' has incorrect indentation level 6, expected level should be 8.</td>
 <td>157</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'block rcurly' has incorrect indentation level 4, expected level should be 6.</td>
 <td>158</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'block' child has incorrect indentation level 6, expected level should be 8.</td>
 <td>185</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'if' has incorrect indentation level 6, expected level should be 8.</td>
 <td>186</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'if' child has incorrect indentation level 10, expected level should be 12.</td>
 <td>188</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'if rparen' has incorrect indentation level 6, expected level should be 8.</td>
 <td>189</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'if' has incorrect indentation level 8, expected level should be 10.</td>
 <td>190</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'if' child has incorrect indentation level 10, expected level should be 12.</td>
 <td>191</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'if rcurly' has incorrect indentation level 8, expected level should be 10.</td>
 <td>192</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'else' child has incorrect indentation level 10, expected level should be 12.</td>
 <td>193</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'else rcurly' has incorrect indentation level 8, expected level should be 10.</td>
 <td>194</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'if rcurly' has incorrect indentation level 6, expected level should be 8.</td>
 <td>195</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'block rcurly' has incorrect indentation level 4, expected level should be 6.</td>
 <td>196</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'block' child has incorrect indentation level 6, expected level should be 8.</td>
 <td>256</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'if' has incorrect indentation level 6, expected level should be 8.</td>
 <td>257</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'if' child has incorrect indentation level 10, expected level should be 12.</td>
 <td>259</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'if rparen' has incorrect indentation level 6, expected level should be 8.</td>
 <td>260</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'if' child has incorrect indentation level 8, expected level should be 10.</td>
 <td>261</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'if rcurly' has incorrect indentation level 6, expected level should be 8.</td>
 <td>262</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'block rcurly' has incorrect indentation level 4, expected level should be 6.</td>
 <td>263</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'block' child has incorrect indentation level 6, expected level should be 8.</td>
 <td>276</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'if' has incorrect indentation level 6, expected level should be 8.</td>
 <td>277</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'if' child has incorrect indentation level 8, expected level should be 10.</td>
 <td>278</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'if rcurly' has incorrect indentation level 6, expected level should be 8.</td>
 <td>279</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'if' child has incorrect indentation level 10, expected level should be 12.</td>
 <td>281</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'if rparen' has incorrect indentation level 6, expected level should be 8.</td>
 <td>282</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'if' child has incorrect indentation level 8, expected level should be 10.</td>
 <td>283</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'if rcurly' has incorrect indentation level 6, expected level should be 8.</td>
 <td>284</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'block' child has incorrect indentation level 6, expected level should be 8.</td>
 <td>285</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
@@ -8611,49 +8604,49 @@
 <td>286</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.hfile.TestPrefetchWithBucketCache.java">org/apache/hadoop/hbase/io/hfile/TestPrefetchWithBucketCache.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'block' child has incorrect indentation level 6, expected level should be 8.</td>
 <td>280</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'if' has incorrect indentation level 6, expected level should be 8.</td>
 <td>281</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'if' child has incorrect indentation level 10, expected level should be 12.</td>
 <td>283</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'if rparen' has incorrect indentation level 6, expected level should be 8.</td>
 <td>284</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'if' child has incorrect indentation level 8, expected level should be 10.</td>
 <td>285</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'if rcurly' has incorrect indentation level 6, expected level should be 8.</td>
 <td>286</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
@@ -8661,13 +8654,13 @@
 <td>287</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.hfile.TestScannerSelectionUsingKeyRange.java">org/apache/hadoop/hbase/io/hfile/TestScannerSelectionUsingKeyRange.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>EmptyBlock</td>
@@ -8675,133 +8668,133 @@
 <td>131</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.hfile.bucket.BucketAllocator.java">org/apache/hadoop/hbase/io/hfile/bucket/BucketAllocator.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>55</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'for' construct must use '{}'s.</td>
 <td>71</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>131</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>137</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>138</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>140</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>161</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>207</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>209</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>219</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>220</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>253</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>254</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
 <td>291</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'for' construct must use '{}'s.</td>
 <td>300</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>301</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>325</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>426</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>462</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>470</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -8809,43 +8802,43 @@
 <td>687</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.hfile.bucket.BucketCache.java">org/apache/hadoop/hbase/io/hfile/bucket/BucketCache.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>1537</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'for' construct must use '{}'s.</td>
 <td>1542</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'for' construct must use '{}'s.</td>
 <td>1555</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>coding</td>
 <td>NoFinalizer</td>
 <td>Avoid using finalizer method.</td>
 <td>1587</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>1881</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -8853,19 +8846,19 @@
 <td>1884</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.hfile.bucket.TestBucketCache.java">org/apache/hadoop/hbase/io/hfile/bucket/TestBucketCache.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>186</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -8873,13 +8866,13 @@
 <td>862</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.hfile.bucket.TestBucketWriterThread.java">org/apache/hadoop/hbase/io/hfile/bucket/TestBucketWriterThread.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -8887,25 +8880,25 @@
 <td>103</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.util.LRUDictionary.java">org/apache/hadoop/hbase/io/util/LRUDictionary.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>66</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>coding</td>
 <td>InnerAssignment</td>
 <td>Inner assignments should be avoided.</td>
 <td>132</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>coding</td>
 <td>InnerAssignment</td>
@@ -8913,19 +8906,19 @@
 <td>144</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.util.MemorySizeUtil.java">org/apache/hadoop/hbase/io/util/MemorySizeUtil.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>HideUtilityClassConstructor</td>
 <td>Utility classes should not have a public or default constructor.</td>
 <td>34</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -8933,67 +8926,67 @@
 <td>137</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.io.util.StreamUtils.java">org/apache/hadoop/hbase/io/util/StreamUtils.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>HideUtilityClassConstructor</td>
 <td>Utility classes should not have a public or default constructor.</td>
 <td>38</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>coding</td>
 <td>InnerAssignment</td>
 <td>Inner assignments should be avoided.</td>
 <td>59</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>coding</td>
 <td>InnerAssignment</td>
 <td>Inner assignments should be avoided.</td>
 <td>63</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>coding</td>
 <td>InnerAssignment</td>
 <td>Inner assignments should be avoided.</td>
 <td>67</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>coding</td>
 <td>InnerAssignment</td>
 <td>Inner assignments should be avoided.</td>
 <td>71</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>coding</td>
 <td>InnerAssignment</td>
 <td>Inner assignments should be avoided.</td>
 <td>93</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>coding</td>
 <td>InnerAssignment</td>
 <td>Inner assignments should be avoided.</td>
 <td>97</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>coding</td>
 <td>InnerAssignment</td>
 <td>Inner assignments should be avoided.</td>
 <td>101</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>coding</td>
 <td>InnerAssignment</td>
 <td>Inner assignments should be avoided.</td>
 <td>105</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -9001,13 +8994,13 @@
 <td>260</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.ipc.BlockingRpcConnection.java">org/apache/hadoop/hbase/ipc/BlockingRpcConnection.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -9015,19 +9008,19 @@
 <td>627</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.ipc.BufferCallBeforeInitHandler.java">org/apache/hadoop/hbase/ipc/BufferCallBeforeInitHandler.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>VisibilityModifier</td>
 <td>Variable 'action' must be private and have accessor methods.</td>
 <td>50</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>VisibilityModifier</td>
@@ -9035,13 +9028,13 @@
 <td>52</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.ipc.BufferChain.java">org/apache/hadoop/hbase/ipc/BufferChain.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -9049,13 +9042,13 @@
 <td>48</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.ipc.IPCUtil.java">org/apache/hadoop/hbase/ipc/IPCUtil.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>HideUtilityClassConstructor</td>
@@ -9063,31 +9056,31 @@
 <td>64</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.ipc.RpcServer.java">org/apache/hadoop/hbase/ipc/RpcServer.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>408</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>409</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>509</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -9095,25 +9088,25 @@
 <td>510</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.ipc.RpcServerFactory.java">org/apache/hadoop/hbase/ipc/RpcServerFactory.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>design</td>
 <td>FinalClass</td>
 <td>Class RpcServerFactory should be declared as final.</td>
 <td>33</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>60</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -9121,31 +9114,31 @@
 <td>61</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.ipc.SimpleRpcServer.java">org/apache/hadoop/hbase/ipc/SimpleRpcServer.java</h3>
 <table border="0" class="table table-striped">
-<tr class="a">
+<tr class="b">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>annotation</td>
 <td>MissingDeprecated</td>
 <td>Must include both @java.lang.Deprecated annotation and @deprecated Javadoc tag with description.</td>
 <td>72</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>220</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>223</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -9153,25 +9146,25 @@
 <td>258</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.ipc.SimpleRpcServerResponder.java">org/apache/hadoop/hbase/ipc/SimpleRpcServerResponder.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>annotation</td>
 <td>MissingDeprecated</td>
 <td>Must include both @java.lang.Deprecated annotation and @deprecated Javadoc tag with description.</td>
 <td>42</td></tr>
-<tr class="b">
+<tr class="a">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
 <td>89</td></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
@@ -9179,13 +9172,13 @@
 <td>96</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.ipc.SimpleServerCall.java">org/apache/hadoop/hbase/ipc/SimpleServerCall.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
 <th>Category</th>
 <th>Rule</th>
 <th>Message</th>
 <th>Line</th></tr>
-<tr class="a">
+<tr class="b">
 <td><figure><img src="images/icon_error_sml.gif" alt="" /></figure>&#160;Error</td>
 <td>annotation</td>
 <td>MissingDeprecated</td>
@@ -9193,19 +9186,19 @@
 <td>37</td></tr></table></section><section>
 <h3 id="org.apache.hadoop.hbase.ipc.SimpleServerRpcConnection.java">org/apache/hadoop/hbase/ipc/SimpleServerRpcConnection.java</h3>
 <table border="0" class="table table-striped">
-<tr class="b">
+<tr class="a">
 <th>Severity</th>
... 23925 lines suppressed ...