hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From git-site-r...@apache.org
Subject [06/51] [partial] hbase-site git commit: Published site at 87f5b5f3411d96c31b4cb61b9a57ced22be91d1f.
Date Fri, 04 May 2018 14:48:05 GMT
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/de18d468/testdevapidocs/org/apache/hadoop/hbase/wal/package-tree.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/org/apache/hadoop/hbase/wal/package-tree.html b/testdevapidocs/org/apache/hadoop/hbase/wal/package-tree.html
index 434a274..f7d6df6 100644
--- a/testdevapidocs/org/apache/hadoop/hbase/wal/package-tree.html
+++ b/testdevapidocs/org/apache/hadoop/hbase/wal/package-tree.html
@@ -139,9 +139,9 @@
 <ul>
 <li type="circle">java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true"
title="class or interface in java.lang"><span class="typeNameLink">Enum</span></a>&lt;E&gt;
(implements java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true"
title="class or interface in java.lang">Comparable</a>&lt;T&gt;, java.io.<a
href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true"
title="class or interface in java.io">Serializable</a>)
 <ul>
-<li type="circle">org.apache.hadoop.hbase.wal.<a href="../../../../../org/apache/hadoop/hbase/wal/FaultyFSLog.FailureType.html"
title="enum in org.apache.hadoop.hbase.wal"><span class="typeNameLink">FaultyFSLog.FailureType</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.wal.<a href="../../../../../org/apache/hadoop/hbase/wal/IOTestProvider.AllowedOperations.html"
title="enum in org.apache.hadoop.hbase.wal"><span class="typeNameLink">IOTestProvider.AllowedOperations</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.wal.<a href="../../../../../org/apache/hadoop/hbase/wal/TestWALSplit.Corruptions.html"
title="enum in org.apache.hadoop.hbase.wal"><span class="typeNameLink">TestWALSplit.Corruptions</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.wal.<a href="../../../../../org/apache/hadoop/hbase/wal/FaultyFSLog.FailureType.html"
title="enum in org.apache.hadoop.hbase.wal"><span class="typeNameLink">FaultyFSLog.FailureType</span></a></li>
 </ul>
 </li>
 </ul>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/de18d468/testdevapidocs/overview-tree.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/overview-tree.html b/testdevapidocs/overview-tree.html
index a0bac17..a7e9eab 100644
--- a/testdevapidocs/overview-tree.html
+++ b/testdevapidocs/overview-tree.html
@@ -337,6 +337,7 @@
 <li type="circle">org.apache.hadoop.hbase.replication.regionserver.<a href="org/apache/hadoop/hbase/replication/regionserver/TestReplicator.FailureInjectingReplicationEndpointForTest.html"
title="class in org.apache.hadoop.hbase.replication.regionserver"><span class="typeNameLink">TestReplicator.FailureInjectingReplicationEndpointForTest</span></a></li>
 </ul>
 </li>
+<li type="circle">org.apache.hadoop.hbase.replication.regionserver.<a href="org/apache/hadoop/hbase/replication/regionserver/TestSerialReplicationEndpoint.TestEndpoint.html"
title="class in org.apache.hadoop.hbase.replication.regionserver"><span class="typeNameLink">TestSerialReplicationEndpoint.TestEndpoint</span></a></li>
 </ul>
 </li>
 </ul>
@@ -2679,6 +2680,7 @@
 <li type="circle">org.apache.hadoop.hbase.ipc.<a href="org/apache/hadoop/hbase/ipc/TestHBaseClient.html"
title="class in org.apache.hadoop.hbase.ipc"><span class="typeNameLink">TestHBaseClient</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.<a href="org/apache/hadoop/hbase/TestHBaseConfiguration.html"
title="class in org.apache.hadoop.hbase"><span class="typeNameLink">TestHBaseConfiguration</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.<a href="org/apache/hadoop/hbase/TestHBaseConfiguration.ReflectiveCredentialProviderClient.html"
title="class in org.apache.hadoop.hbase"><span class="typeNameLink">TestHBaseConfiguration.ReflectiveCredentialProviderClient</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.util.<a href="org/apache/hadoop/hbase/util/TestHBaseFsckCleanReplicationBarriers.html"
title="class in org.apache.hadoop.hbase.util"><span class="typeNameLink">TestHBaseFsckCleanReplicationBarriers</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.util.<a href="org/apache/hadoop/hbase/util/TestHBaseFsckComparator.html"
title="class in org.apache.hadoop.hbase.util"><span class="typeNameLink">TestHBaseFsckComparator</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.util.<a href="org/apache/hadoop/hbase/util/TestHBaseFsckEncryption.html"
title="class in org.apache.hadoop.hbase.util"><span class="typeNameLink">TestHBaseFsckEncryption</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.util.<a href="org/apache/hadoop/hbase/util/TestHBaseFsckReplication.html"
title="class in org.apache.hadoop.hbase.util"><span class="typeNameLink">TestHBaseFsckReplication</span></a></li>
@@ -3258,11 +3260,6 @@
 <li type="circle">org.apache.hadoop.hbase.replication.<a href="org/apache/hadoop/hbase/replication/TestReplicationEndpoint.EverythingPassesWALEntryFilterSubclass.html"
title="class in org.apache.hadoop.hbase.replication"><span class="typeNameLink">TestReplicationEndpoint.EverythingPassesWALEntryFilterSubclass</span></a></li>
 </ul>
 </li>
-<li type="circle">org.apache.hadoop.hbase.replication.<a href="org/apache/hadoop/hbase/replication/TestReplicationEndpoint.InterClusterReplicationEndpointForTest.DummyReplicator.html"
title="class in org.apache.hadoop.hbase.replication"><span class="typeNameLink">TestReplicationEndpoint.InterClusterReplicationEndpointForTest.DummyReplicator</span></a>
-<ul>
-<li type="circle">org.apache.hadoop.hbase.replication.<a href="org/apache/hadoop/hbase/replication/TestReplicationEndpoint.InterClusterReplicationEndpointForTest.FailingDummyReplicator.html"
title="class in org.apache.hadoop.hbase.replication"><span class="typeNameLink">TestReplicationEndpoint.InterClusterReplicationEndpointForTest.FailingDummyReplicator</span></a></li>
-</ul>
-</li>
 <li type="circle">org.apache.hadoop.hbase.master.cleaner.<a href="org/apache/hadoop/hbase/master/cleaner/TestReplicationHFileCleaner.html"
title="class in org.apache.hadoop.hbase.master.cleaner"><span class="typeNameLink">TestReplicationHFileCleaner</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.master.cleaner.<a href="org/apache/hadoop/hbase/master/cleaner/TestReplicationHFileCleaner.DummyServer.html"
title="class in org.apache.hadoop.hbase.master.cleaner"><span class="typeNameLink">TestReplicationHFileCleaner.DummyServer</span></a>
(implements org.apache.hadoop.hbase.Server)</li>
 <li type="circle">org.apache.hadoop.hbase.replication.<a href="org/apache/hadoop/hbase/replication/TestReplicationPeerConfig.html"
title="class in org.apache.hadoop.hbase.replication"><span class="typeNameLink">TestReplicationPeerConfig</span></a></li>
@@ -3290,12 +3287,6 @@
 <li type="circle">org.apache.hadoop.hbase.replication.<a href="org/apache/hadoop/hbase/replication/TestReplicationWithTags.html"
title="class in org.apache.hadoop.hbase.replication"><span class="typeNameLink">TestReplicationWithTags</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.replication.<a href="org/apache/hadoop/hbase/replication/TestReplicationWithTags.TestCoprocessorForTagsAtSink.html"
title="class in org.apache.hadoop.hbase.replication"><span class="typeNameLink">TestReplicationWithTags.TestCoprocessorForTagsAtSink</span></a>
(implements org.apache.hadoop.hbase.coprocessor.RegionCoprocessor, org.apache.hadoop.hbase.coprocessor.RegionObserver)</li>
 <li type="circle">org.apache.hadoop.hbase.replication.<a href="org/apache/hadoop/hbase/replication/TestReplicationWithTags.TestCoprocessorForTagsAtSource.html"
title="class in org.apache.hadoop.hbase.replication"><span class="typeNameLink">TestReplicationWithTags.TestCoprocessorForTagsAtSource</span></a>
(implements org.apache.hadoop.hbase.coprocessor.RegionCoprocessor, org.apache.hadoop.hbase.coprocessor.RegionObserver)</li>
-<li type="circle">org.apache.hadoop.hbase.replication.regionserver.<a href="org/apache/hadoop/hbase/replication/regionserver/TestReplicator.FailureInjectingReplicationEndpointForTest.FailureInjectingBlockingInterface.html"
title="class in org.apache.hadoop.hbase.replication.regionserver"><span class="typeNameLink">TestReplicator.FailureInjectingReplicationEndpointForTest.FailureInjectingBlockingInterface</span></a>
(implements org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.AdminService.BlockingInterface)</li>
-<li type="circle">org.apache.hadoop.hbase.replication.regionserver.<a href="org/apache/hadoop/hbase/replication/regionserver/TestReplicator.ReplicationEndpointForTest.ReplicatorForTest.html"
title="class in org.apache.hadoop.hbase.replication.regionserver"><span class="typeNameLink">TestReplicator.ReplicationEndpointForTest.ReplicatorForTest</span></a>
-<ul>
-<li type="circle">org.apache.hadoop.hbase.replication.regionserver.<a href="org/apache/hadoop/hbase/replication/regionserver/TestReplicator.FailureInjectingReplicationEndpointForTest.FailureInjectingReplicatorForTest.html"
title="class in org.apache.hadoop.hbase.replication.regionserver"><span class="typeNameLink">TestReplicator.FailureInjectingReplicationEndpointForTest.FailureInjectingReplicatorForTest</span></a></li>
-</ul>
-</li>
 <li type="circle">org.apache.hadoop.hbase.client.<a href="org/apache/hadoop/hbase/client/TestReplicaWithCluster.html"
title="class in org.apache.hadoop.hbase.client"><span class="typeNameLink">TestReplicaWithCluster</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.client.<a href="org/apache/hadoop/hbase/client/TestReplicaWithCluster.RegionServerHostingPrimayMetaRegionSlowOrStopCopro.html"
title="class in org.apache.hadoop.hbase.client"><span class="typeNameLink">TestReplicaWithCluster.RegionServerHostingPrimayMetaRegionSlowOrStopCopro</span></a>
(implements org.apache.hadoop.hbase.coprocessor.RegionCoprocessor, org.apache.hadoop.hbase.coprocessor.RegionObserver)</li>
 <li type="circle">org.apache.hadoop.hbase.client.<a href="org/apache/hadoop/hbase/client/TestReplicaWithCluster.RegionServerStoppedCopro.html"
title="class in org.apache.hadoop.hbase.client"><span class="typeNameLink">TestReplicaWithCluster.RegionServerStoppedCopro</span></a>
(implements org.apache.hadoop.hbase.coprocessor.RegionCoprocessor, org.apache.hadoop.hbase.coprocessor.RegionObserver)</li>
@@ -3406,6 +3397,7 @@
 <li type="circle">org.apache.hadoop.hbase.<a href="org/apache/hadoop/hbase/TestSequenceIdMonotonicallyIncreasing.html"
title="class in org.apache.hadoop.hbase"><span class="typeNameLink">TestSequenceIdMonotonicallyIncreasing</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.<a href="org/apache/hadoop/hbase/TestSerialization.html"
title="class in org.apache.hadoop.hbase"><span class="typeNameLink">TestSerialization</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.replication.regionserver.<a href="org/apache/hadoop/hbase/replication/regionserver/TestSerialReplicationChecker.html"
title="class in org.apache.hadoop.hbase.replication.regionserver"><span class="typeNameLink">TestSerialReplicationChecker</span></a></li>
+<li type="circle">org.apache.hadoop.hbase.replication.regionserver.<a href="org/apache/hadoop/hbase/replication/regionserver/TestSerialReplicationEndpoint.html"
title="class in org.apache.hadoop.hbase.replication.regionserver"><span class="typeNameLink">TestSerialReplicationEndpoint</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.master.balancer.<a href="org/apache/hadoop/hbase/master/balancer/TestServerAndLoad.html"
title="class in org.apache.hadoop.hbase.master.balancer"><span class="typeNameLink">TestServerAndLoad</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.client.<a href="org/apache/hadoop/hbase/client/TestServerBusyException.html"
title="class in org.apache.hadoop.hbase.client"><span class="typeNameLink">TestServerBusyException</span></a></li>
 <li type="circle">org.apache.hadoop.hbase.client.<a href="org/apache/hadoop/hbase/client/TestServerBusyException.SleepCoprocessor.html"
title="class in org.apache.hadoop.hbase.client"><span class="typeNameLink">TestServerBusyException.SleepCoprocessor</span></a>
(implements org.apache.hadoop.hbase.coprocessor.RegionCoprocessor, org.apache.hadoop.hbase.coprocessor.RegionObserver)</li>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/de18d468/testdevapidocs/src-html/org/apache/hadoop/hbase/client/replication/TestReplicationAdminWithClusters.TestUpdatableReplicationEndpoint.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/client/replication/TestReplicationAdminWithClusters.TestUpdatableReplicationEndpoint.html
b/testdevapidocs/src-html/org/apache/hadoop/hbase/client/replication/TestReplicationAdminWithClusters.TestUpdatableReplicationEndpoint.html
index f6a8245..d406856 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/client/replication/TestReplicationAdminWithClusters.TestUpdatableReplicationEndpoint.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/client/replication/TestReplicationAdminWithClusters.TestUpdatableReplicationEndpoint.html
@@ -305,18 +305,17 @@
 <span class="sourceLineNo">297</span>      notifyStopped();<a name="line.297"></a>
 <span class="sourceLineNo">298</span>    }<a name="line.298"></a>
 <span class="sourceLineNo">299</span><a name="line.299"></a>
-<span class="sourceLineNo">300</span><a name="line.300"></a>
-<span class="sourceLineNo">301</span>    @Override<a name="line.301"></a>
-<span class="sourceLineNo">302</span>    public UUID getPeerUUID() {<a name="line.302"></a>
-<span class="sourceLineNo">303</span>      return UUID.randomUUID();<a name="line.303"></a>
-<span class="sourceLineNo">304</span>    }<a name="line.304"></a>
-<span class="sourceLineNo">305</span><a name="line.305"></a>
-<span class="sourceLineNo">306</span>    @Override<a name="line.306"></a>
-<span class="sourceLineNo">307</span>    public boolean replicate(ReplicateContext
replicateContext) {<a name="line.307"></a>
-<span class="sourceLineNo">308</span>      return false;<a name="line.308"></a>
-<span class="sourceLineNo">309</span>    }<a name="line.309"></a>
-<span class="sourceLineNo">310</span>  }<a name="line.310"></a>
-<span class="sourceLineNo">311</span>}<a name="line.311"></a>
+<span class="sourceLineNo">300</span>    @Override<a name="line.300"></a>
+<span class="sourceLineNo">301</span>    public UUID getPeerUUID() {<a name="line.301"></a>
+<span class="sourceLineNo">302</span>      return UUID.randomUUID();<a name="line.302"></a>
+<span class="sourceLineNo">303</span>    }<a name="line.303"></a>
+<span class="sourceLineNo">304</span><a name="line.304"></a>
+<span class="sourceLineNo">305</span>    @Override<a name="line.305"></a>
+<span class="sourceLineNo">306</span>    public boolean replicate(ReplicateContext
replicateContext) {<a name="line.306"></a>
+<span class="sourceLineNo">307</span>      return false;<a name="line.307"></a>
+<span class="sourceLineNo">308</span>    }<a name="line.308"></a>
+<span class="sourceLineNo">309</span>  }<a name="line.309"></a>
+<span class="sourceLineNo">310</span>}<a name="line.310"></a>
 
 
 

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/de18d468/testdevapidocs/src-html/org/apache/hadoop/hbase/client/replication/TestReplicationAdminWithClusters.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/client/replication/TestReplicationAdminWithClusters.html
b/testdevapidocs/src-html/org/apache/hadoop/hbase/client/replication/TestReplicationAdminWithClusters.html
index f6a8245..d406856 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/client/replication/TestReplicationAdminWithClusters.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/client/replication/TestReplicationAdminWithClusters.html
@@ -305,18 +305,17 @@
 <span class="sourceLineNo">297</span>      notifyStopped();<a name="line.297"></a>
 <span class="sourceLineNo">298</span>    }<a name="line.298"></a>
 <span class="sourceLineNo">299</span><a name="line.299"></a>
-<span class="sourceLineNo">300</span><a name="line.300"></a>
-<span class="sourceLineNo">301</span>    @Override<a name="line.301"></a>
-<span class="sourceLineNo">302</span>    public UUID getPeerUUID() {<a name="line.302"></a>
-<span class="sourceLineNo">303</span>      return UUID.randomUUID();<a name="line.303"></a>
-<span class="sourceLineNo">304</span>    }<a name="line.304"></a>
-<span class="sourceLineNo">305</span><a name="line.305"></a>
-<span class="sourceLineNo">306</span>    @Override<a name="line.306"></a>
-<span class="sourceLineNo">307</span>    public boolean replicate(ReplicateContext
replicateContext) {<a name="line.307"></a>
-<span class="sourceLineNo">308</span>      return false;<a name="line.308"></a>
-<span class="sourceLineNo">309</span>    }<a name="line.309"></a>
-<span class="sourceLineNo">310</span>  }<a name="line.310"></a>
-<span class="sourceLineNo">311</span>}<a name="line.311"></a>
+<span class="sourceLineNo">300</span>    @Override<a name="line.300"></a>
+<span class="sourceLineNo">301</span>    public UUID getPeerUUID() {<a name="line.301"></a>
+<span class="sourceLineNo">302</span>      return UUID.randomUUID();<a name="line.302"></a>
+<span class="sourceLineNo">303</span>    }<a name="line.303"></a>
+<span class="sourceLineNo">304</span><a name="line.304"></a>
+<span class="sourceLineNo">305</span>    @Override<a name="line.305"></a>
+<span class="sourceLineNo">306</span>    public boolean replicate(ReplicateContext
replicateContext) {<a name="line.306"></a>
+<span class="sourceLineNo">307</span>      return false;<a name="line.307"></a>
+<span class="sourceLineNo">308</span>    }<a name="line.308"></a>
+<span class="sourceLineNo">309</span>  }<a name="line.309"></a>
+<span class="sourceLineNo">310</span>}<a name="line.310"></a>
 
 
 

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/de18d468/testdevapidocs/src-html/org/apache/hadoop/hbase/io/asyncfs/TestOverwriteFileUnderConstruction.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/io/asyncfs/TestOverwriteFileUnderConstruction.html
b/testdevapidocs/src-html/org/apache/hadoop/hbase/io/asyncfs/TestOverwriteFileUnderConstruction.html
index f902f89..bfbb1b8 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/io/asyncfs/TestOverwriteFileUnderConstruction.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/io/asyncfs/TestOverwriteFileUnderConstruction.html
@@ -30,90 +30,93 @@
 <span class="sourceLineNo">022</span>import static org.junit.Assert.assertThat;<a
name="line.22"></a>
 <span class="sourceLineNo">023</span>import static org.junit.Assert.fail;<a
name="line.23"></a>
 <span class="sourceLineNo">024</span><a name="line.24"></a>
-<span class="sourceLineNo">025</span>import java.io.IOException;<a name="line.25"></a>
-<span class="sourceLineNo">026</span>import org.apache.hadoop.fs.FSDataInputStream;<a
name="line.26"></a>
-<span class="sourceLineNo">027</span>import org.apache.hadoop.fs.FSDataOutputStream;<a
name="line.27"></a>
-<span class="sourceLineNo">028</span>import org.apache.hadoop.fs.FileSystem;<a
name="line.28"></a>
-<span class="sourceLineNo">029</span>import org.apache.hadoop.fs.Path;<a name="line.29"></a>
-<span class="sourceLineNo">030</span>import org.apache.hadoop.hbase.HBaseClassTestRule;<a
name="line.30"></a>
-<span class="sourceLineNo">031</span>import org.apache.hadoop.hbase.HBaseTestingUtility;<a
name="line.31"></a>
-<span class="sourceLineNo">032</span>import org.apache.hadoop.hbase.testclassification.MediumTests;<a
name="line.32"></a>
-<span class="sourceLineNo">033</span>import org.apache.hadoop.hbase.testclassification.MiscTests;<a
name="line.33"></a>
-<span class="sourceLineNo">034</span>import org.apache.hadoop.hdfs.protocol.AlreadyBeingCreatedException;<a
name="line.34"></a>
-<span class="sourceLineNo">035</span>import org.apache.hadoop.hdfs.server.namenode.LeaseExpiredException;<a
name="line.35"></a>
-<span class="sourceLineNo">036</span>import org.apache.hadoop.ipc.RemoteException;<a
name="line.36"></a>
-<span class="sourceLineNo">037</span>import org.junit.AfterClass;<a name="line.37"></a>
-<span class="sourceLineNo">038</span>import org.junit.BeforeClass;<a name="line.38"></a>
-<span class="sourceLineNo">039</span>import org.junit.ClassRule;<a name="line.39"></a>
-<span class="sourceLineNo">040</span>import org.junit.Rule;<a name="line.40"></a>
-<span class="sourceLineNo">041</span>import org.junit.Test;<a name="line.41"></a>
-<span class="sourceLineNo">042</span>import org.junit.experimental.categories.Category;<a
name="line.42"></a>
-<span class="sourceLineNo">043</span>import org.junit.rules.TestName;<a name="line.43"></a>
-<span class="sourceLineNo">044</span><a name="line.44"></a>
-<span class="sourceLineNo">045</span>/**<a name="line.45"></a>
-<span class="sourceLineNo">046</span> * Used to confirm that it is OK to overwrite
a file which is being written currently.<a name="line.46"></a>
-<span class="sourceLineNo">047</span> */<a name="line.47"></a>
-<span class="sourceLineNo">048</span>@Category({ MiscTests.class, MediumTests.class
})<a name="line.48"></a>
-<span class="sourceLineNo">049</span>public class TestOverwriteFileUnderConstruction
{<a name="line.49"></a>
-<span class="sourceLineNo">050</span><a name="line.50"></a>
-<span class="sourceLineNo">051</span>  @ClassRule<a name="line.51"></a>
-<span class="sourceLineNo">052</span>  public static final HBaseClassTestRule
CLASS_RULE =<a name="line.52"></a>
-<span class="sourceLineNo">053</span>    HBaseClassTestRule.forClass(TestOverwriteFileUnderConstruction.class);<a
name="line.53"></a>
-<span class="sourceLineNo">054</span><a name="line.54"></a>
-<span class="sourceLineNo">055</span>  private static final HBaseTestingUtility
UTIL = new HBaseTestingUtility();<a name="line.55"></a>
-<span class="sourceLineNo">056</span><a name="line.56"></a>
-<span class="sourceLineNo">057</span>  private static FileSystem FS;<a name="line.57"></a>
-<span class="sourceLineNo">058</span><a name="line.58"></a>
-<span class="sourceLineNo">059</span>  @Rule<a name="line.59"></a>
-<span class="sourceLineNo">060</span>  public final TestName name = new TestName();<a
name="line.60"></a>
-<span class="sourceLineNo">061</span><a name="line.61"></a>
-<span class="sourceLineNo">062</span>  @BeforeClass<a name="line.62"></a>
-<span class="sourceLineNo">063</span>  public static void setUp() throws Exception
{<a name="line.63"></a>
-<span class="sourceLineNo">064</span>    UTIL.startMiniDFSCluster(3);<a name="line.64"></a>
-<span class="sourceLineNo">065</span>    FS = UTIL.getDFSCluster().getFileSystem();<a
name="line.65"></a>
-<span class="sourceLineNo">066</span>  }<a name="line.66"></a>
-<span class="sourceLineNo">067</span><a name="line.67"></a>
-<span class="sourceLineNo">068</span>  @AfterClass<a name="line.68"></a>
-<span class="sourceLineNo">069</span>  public static void tearDown() throws Exception
{<a name="line.69"></a>
-<span class="sourceLineNo">070</span>    UTIL.shutdownMiniCluster();<a name="line.70"></a>
-<span class="sourceLineNo">071</span>  }<a name="line.71"></a>
-<span class="sourceLineNo">072</span><a name="line.72"></a>
-<span class="sourceLineNo">073</span>  @Test<a name="line.73"></a>
-<span class="sourceLineNo">074</span>  public void testNotOverwrite() throws
IOException {<a name="line.74"></a>
-<span class="sourceLineNo">075</span>    Path file = new Path("/" + name.getMethodName());<a
name="line.75"></a>
-<span class="sourceLineNo">076</span>    try (FSDataOutputStream out1 = FS.create(file))
{<a name="line.76"></a>
-<span class="sourceLineNo">077</span>      try {<a name="line.77"></a>
-<span class="sourceLineNo">078</span>        FS.create(file, false);<a name="line.78"></a>
-<span class="sourceLineNo">079</span>        fail("Should fail as there is a
file with the same name which is being written");<a name="line.79"></a>
-<span class="sourceLineNo">080</span>      } catch (RemoteException e) {<a
name="line.80"></a>
-<span class="sourceLineNo">081</span>        // expected<a name="line.81"></a>
-<span class="sourceLineNo">082</span>        assertThat(e.unwrapRemoteException(),
instanceOf(AlreadyBeingCreatedException.class));<a name="line.82"></a>
-<span class="sourceLineNo">083</span>      }<a name="line.83"></a>
-<span class="sourceLineNo">084</span>    }<a name="line.84"></a>
-<span class="sourceLineNo">085</span>  }<a name="line.85"></a>
-<span class="sourceLineNo">086</span><a name="line.86"></a>
-<span class="sourceLineNo">087</span>  @Test<a name="line.87"></a>
-<span class="sourceLineNo">088</span>  public void testOverwrite() throws IOException
{<a name="line.88"></a>
-<span class="sourceLineNo">089</span>    Path file = new Path("/" + name.getMethodName());<a
name="line.89"></a>
-<span class="sourceLineNo">090</span>    FSDataOutputStream out1 = FS.create(file);<a
name="line.90"></a>
-<span class="sourceLineNo">091</span>    FSDataOutputStream out2 = FS.create(file,
true);<a name="line.91"></a>
-<span class="sourceLineNo">092</span>    out1.write(2);<a name="line.92"></a>
-<span class="sourceLineNo">093</span>    out2.write(1);<a name="line.93"></a>
-<span class="sourceLineNo">094</span>    try {<a name="line.94"></a>
-<span class="sourceLineNo">095</span>      out1.close();<a name="line.95"></a>
-<span class="sourceLineNo">096</span>      // a successful close is also OK for
us so no assertion here, we just need to confirm that the<a name="line.96"></a>
-<span class="sourceLineNo">097</span>      // data in the file are correct.<a
name="line.97"></a>
-<span class="sourceLineNo">098</span>    } catch (RemoteException e) {<a name="line.98"></a>
-<span class="sourceLineNo">099</span>      // expected<a name="line.99"></a>
-<span class="sourceLineNo">100</span>      assertThat(e.unwrapRemoteException(),
instanceOf(LeaseExpiredException.class));<a name="line.100"></a>
-<span class="sourceLineNo">101</span>    }<a name="line.101"></a>
-<span class="sourceLineNo">102</span>    out2.close();<a name="line.102"></a>
-<span class="sourceLineNo">103</span>    try (FSDataInputStream in = FS.open(file))
{<a name="line.103"></a>
-<span class="sourceLineNo">104</span>      assertEquals(1, in.read());<a name="line.104"></a>
-<span class="sourceLineNo">105</span>      assertEquals(-1, in.read());<a
name="line.105"></a>
-<span class="sourceLineNo">106</span>    }<a name="line.106"></a>
-<span class="sourceLineNo">107</span>  }<a name="line.107"></a>
-<span class="sourceLineNo">108</span>}<a name="line.108"></a>
+<span class="sourceLineNo">025</span>import java.io.FileNotFoundException;<a
name="line.25"></a>
+<span class="sourceLineNo">026</span>import java.io.IOException;<a name="line.26"></a>
+<span class="sourceLineNo">027</span>import org.apache.hadoop.fs.FSDataInputStream;<a
name="line.27"></a>
+<span class="sourceLineNo">028</span>import org.apache.hadoop.fs.FSDataOutputStream;<a
name="line.28"></a>
+<span class="sourceLineNo">029</span>import org.apache.hadoop.fs.FileSystem;<a
name="line.29"></a>
+<span class="sourceLineNo">030</span>import org.apache.hadoop.fs.Path;<a name="line.30"></a>
+<span class="sourceLineNo">031</span>import org.apache.hadoop.hbase.HBaseClassTestRule;<a
name="line.31"></a>
+<span class="sourceLineNo">032</span>import org.apache.hadoop.hbase.HBaseTestingUtility;<a
name="line.32"></a>
+<span class="sourceLineNo">033</span>import org.apache.hadoop.hbase.testclassification.MediumTests;<a
name="line.33"></a>
+<span class="sourceLineNo">034</span>import org.apache.hadoop.hbase.testclassification.MiscTests;<a
name="line.34"></a>
+<span class="sourceLineNo">035</span>import org.apache.hadoop.hdfs.protocol.AlreadyBeingCreatedException;<a
name="line.35"></a>
+<span class="sourceLineNo">036</span>import org.apache.hadoop.hdfs.server.namenode.LeaseExpiredException;<a
name="line.36"></a>
+<span class="sourceLineNo">037</span>import org.apache.hadoop.ipc.RemoteException;<a
name="line.37"></a>
+<span class="sourceLineNo">038</span>import org.junit.AfterClass;<a name="line.38"></a>
+<span class="sourceLineNo">039</span>import org.junit.BeforeClass;<a name="line.39"></a>
+<span class="sourceLineNo">040</span>import org.junit.ClassRule;<a name="line.40"></a>
+<span class="sourceLineNo">041</span>import org.junit.Rule;<a name="line.41"></a>
+<span class="sourceLineNo">042</span>import org.junit.Test;<a name="line.42"></a>
+<span class="sourceLineNo">043</span>import org.junit.experimental.categories.Category;<a
name="line.43"></a>
+<span class="sourceLineNo">044</span>import org.junit.rules.TestName;<a name="line.44"></a>
+<span class="sourceLineNo">045</span><a name="line.45"></a>
+<span class="sourceLineNo">046</span>/**<a name="line.46"></a>
+<span class="sourceLineNo">047</span> * Used to confirm that it is OK to overwrite
a file which is being written currently.<a name="line.47"></a>
+<span class="sourceLineNo">048</span> */<a name="line.48"></a>
+<span class="sourceLineNo">049</span>@Category({ MiscTests.class, MediumTests.class
})<a name="line.49"></a>
+<span class="sourceLineNo">050</span>public class TestOverwriteFileUnderConstruction
{<a name="line.50"></a>
+<span class="sourceLineNo">051</span><a name="line.51"></a>
+<span class="sourceLineNo">052</span>  @ClassRule<a name="line.52"></a>
+<span class="sourceLineNo">053</span>  public static final HBaseClassTestRule
CLASS_RULE =<a name="line.53"></a>
+<span class="sourceLineNo">054</span>    HBaseClassTestRule.forClass(TestOverwriteFileUnderConstruction.class);<a
name="line.54"></a>
+<span class="sourceLineNo">055</span><a name="line.55"></a>
+<span class="sourceLineNo">056</span>  private static final HBaseTestingUtility
UTIL = new HBaseTestingUtility();<a name="line.56"></a>
+<span class="sourceLineNo">057</span><a name="line.57"></a>
+<span class="sourceLineNo">058</span>  private static FileSystem FS;<a name="line.58"></a>
+<span class="sourceLineNo">059</span><a name="line.59"></a>
+<span class="sourceLineNo">060</span>  @Rule<a name="line.60"></a>
+<span class="sourceLineNo">061</span>  public final TestName name = new TestName();<a
name="line.61"></a>
+<span class="sourceLineNo">062</span><a name="line.62"></a>
+<span class="sourceLineNo">063</span>  @BeforeClass<a name="line.63"></a>
+<span class="sourceLineNo">064</span>  public static void setUp() throws Exception
{<a name="line.64"></a>
+<span class="sourceLineNo">065</span>    UTIL.startMiniDFSCluster(3);<a name="line.65"></a>
+<span class="sourceLineNo">066</span>    FS = UTIL.getDFSCluster().getFileSystem();<a
name="line.66"></a>
+<span class="sourceLineNo">067</span>  }<a name="line.67"></a>
+<span class="sourceLineNo">068</span><a name="line.68"></a>
+<span class="sourceLineNo">069</span>  @AfterClass<a name="line.69"></a>
+<span class="sourceLineNo">070</span>  public static void tearDown() throws Exception
{<a name="line.70"></a>
+<span class="sourceLineNo">071</span>    UTIL.shutdownMiniCluster();<a name="line.71"></a>
+<span class="sourceLineNo">072</span>  }<a name="line.72"></a>
+<span class="sourceLineNo">073</span><a name="line.73"></a>
+<span class="sourceLineNo">074</span>  @Test<a name="line.74"></a>
+<span class="sourceLineNo">075</span>  public void testNotOverwrite() throws
IOException {<a name="line.75"></a>
+<span class="sourceLineNo">076</span>    Path file = new Path("/" + name.getMethodName());<a
name="line.76"></a>
+<span class="sourceLineNo">077</span>    try (FSDataOutputStream out1 = FS.create(file))
{<a name="line.77"></a>
+<span class="sourceLineNo">078</span>      try {<a name="line.78"></a>
+<span class="sourceLineNo">079</span>        FS.create(file, false);<a name="line.79"></a>
+<span class="sourceLineNo">080</span>        fail("Should fail as there is a
file with the same name which is being written");<a name="line.80"></a>
+<span class="sourceLineNo">081</span>      } catch (RemoteException e) {<a
name="line.81"></a>
+<span class="sourceLineNo">082</span>        // expected<a name="line.82"></a>
+<span class="sourceLineNo">083</span>        assertThat(e.unwrapRemoteException(),
instanceOf(AlreadyBeingCreatedException.class));<a name="line.83"></a>
+<span class="sourceLineNo">084</span>      }<a name="line.84"></a>
+<span class="sourceLineNo">085</span>    }<a name="line.85"></a>
+<span class="sourceLineNo">086</span>  }<a name="line.86"></a>
+<span class="sourceLineNo">087</span><a name="line.87"></a>
+<span class="sourceLineNo">088</span>  @Test<a name="line.88"></a>
+<span class="sourceLineNo">089</span>  public void testOverwrite() throws IOException
{<a name="line.89"></a>
+<span class="sourceLineNo">090</span>    Path file = new Path("/" + name.getMethodName());<a
name="line.90"></a>
+<span class="sourceLineNo">091</span>    FSDataOutputStream out1 = FS.create(file);<a
name="line.91"></a>
+<span class="sourceLineNo">092</span>    FSDataOutputStream out2 = FS.create(file,
true);<a name="line.92"></a>
+<span class="sourceLineNo">093</span>    out1.write(2);<a name="line.93"></a>
+<span class="sourceLineNo">094</span>    out2.write(1);<a name="line.94"></a>
+<span class="sourceLineNo">095</span>    try {<a name="line.95"></a>
+<span class="sourceLineNo">096</span>      out1.close();<a name="line.96"></a>
+<span class="sourceLineNo">097</span>      // a successful close is also OK for
us so no assertion here, we just need to confirm that the<a name="line.97"></a>
+<span class="sourceLineNo">098</span>      // data in the file are correct.<a
name="line.98"></a>
+<span class="sourceLineNo">099</span>    } catch (FileNotFoundException fnfe)
{<a name="line.99"></a>
+<span class="sourceLineNo">100</span>      // hadoop3 throws one of these.<a
name="line.100"></a>
+<span class="sourceLineNo">101</span>    } catch (RemoteException e) {<a name="line.101"></a>
+<span class="sourceLineNo">102</span>      // expected<a name="line.102"></a>
+<span class="sourceLineNo">103</span>      assertThat(e.unwrapRemoteException(),
instanceOf(LeaseExpiredException.class));<a name="line.103"></a>
+<span class="sourceLineNo">104</span>    }<a name="line.104"></a>
+<span class="sourceLineNo">105</span>    out2.close();<a name="line.105"></a>
+<span class="sourceLineNo">106</span>    try (FSDataInputStream in = FS.open(file))
{<a name="line.106"></a>
+<span class="sourceLineNo">107</span>      assertEquals(1, in.read());<a name="line.107"></a>
+<span class="sourceLineNo">108</span>      assertEquals(-1, in.read());<a
name="line.108"></a>
+<span class="sourceLineNo">109</span>    }<a name="line.109"></a>
+<span class="sourceLineNo">110</span>  }<a name="line.110"></a>
+<span class="sourceLineNo">111</span>}<a name="line.111"></a>
 
 
 

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/de18d468/testdevapidocs/src-html/org/apache/hadoop/hbase/replication/ReplicationSourceDummy.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/replication/ReplicationSourceDummy.html
b/testdevapidocs/src-html/org/apache/hadoop/hbase/replication/ReplicationSourceDummy.html
index 929be46..a49a4ef 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/replication/ReplicationSourceDummy.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/replication/ReplicationSourceDummy.html
@@ -88,12 +88,12 @@
 <span class="sourceLineNo">080</span><a name="line.80"></a>
 <span class="sourceLineNo">081</span>  @Override<a name="line.81"></a>
 <span class="sourceLineNo">082</span>  public void terminate(String reason) {<a
name="line.82"></a>
-<span class="sourceLineNo">083</span><a name="line.83"></a>
+<span class="sourceLineNo">083</span>    terminate(reason, null);<a name="line.83"></a>
 <span class="sourceLineNo">084</span>  }<a name="line.84"></a>
 <span class="sourceLineNo">085</span><a name="line.85"></a>
 <span class="sourceLineNo">086</span>  @Override<a name="line.86"></a>
 <span class="sourceLineNo">087</span>  public void terminate(String reason, Exception
e) {<a name="line.87"></a>
-<span class="sourceLineNo">088</span><a name="line.88"></a>
+<span class="sourceLineNo">088</span>    this.metrics.clear();<a name="line.88"></a>
 <span class="sourceLineNo">089</span>  }<a name="line.89"></a>
 <span class="sourceLineNo">090</span><a name="line.90"></a>
 <span class="sourceLineNo">091</span>  @Override<a name="line.91"></a>


Mime
View raw message