hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From git-site-r...@apache.org
Subject [05/51] [partial] hbase-site git commit: Published site at .
Date Fri, 12 Jan 2018 15:31:34 GMT
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/0b638133/testdevapidocs/src-html/org/apache/hadoop/hbase/TestKeyValue.MockKeyValue.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/TestKeyValue.MockKeyValue.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/TestKeyValue.MockKeyValue.html
index a4b20ad..e46ae3f 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/TestKeyValue.MockKeyValue.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/TestKeyValue.MockKeyValue.html
@@ -745,13 +745,8 @@
 <span class="sourceLineNo">737</span>    public byte[] getTagsArray() {<a name="line.737"></a>
 <span class="sourceLineNo">738</span>      return this.kv.getTagsArray();<a name="line.738"></a>
 <span class="sourceLineNo">739</span>    }<a name="line.739"></a>
-<span class="sourceLineNo">740</span><a name="line.740"></a>
-<span class="sourceLineNo">741</span>    @Override<a name="line.741"></a>
-<span class="sourceLineNo">742</span>    public Type getType() {<a name="line.742"></a>
-<span class="sourceLineNo">743</span>      return PrivateCellUtil.toType(getTypeByte());<a name="line.743"></a>
-<span class="sourceLineNo">744</span>    }<a name="line.744"></a>
-<span class="sourceLineNo">745</span>  }<a name="line.745"></a>
-<span class="sourceLineNo">746</span>}<a name="line.746"></a>
+<span class="sourceLineNo">740</span>  }<a name="line.740"></a>
+<span class="sourceLineNo">741</span>}<a name="line.741"></a>
 
 
 

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/0b638133/testdevapidocs/src-html/org/apache/hadoop/hbase/TestKeyValue.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/TestKeyValue.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/TestKeyValue.html
index a4b20ad..e46ae3f 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/TestKeyValue.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/TestKeyValue.html
@@ -745,13 +745,8 @@
 <span class="sourceLineNo">737</span>    public byte[] getTagsArray() {<a name="line.737"></a>
 <span class="sourceLineNo">738</span>      return this.kv.getTagsArray();<a name="line.738"></a>
 <span class="sourceLineNo">739</span>    }<a name="line.739"></a>
-<span class="sourceLineNo">740</span><a name="line.740"></a>
-<span class="sourceLineNo">741</span>    @Override<a name="line.741"></a>
-<span class="sourceLineNo">742</span>    public Type getType() {<a name="line.742"></a>
-<span class="sourceLineNo">743</span>      return PrivateCellUtil.toType(getTypeByte());<a name="line.743"></a>
-<span class="sourceLineNo">744</span>    }<a name="line.744"></a>
-<span class="sourceLineNo">745</span>  }<a name="line.745"></a>
-<span class="sourceLineNo">746</span>}<a name="line.746"></a>
+<span class="sourceLineNo">740</span>  }<a name="line.740"></a>
+<span class="sourceLineNo">741</span>}<a name="line.741"></a>
 
 
 

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/0b638133/testdevapidocs/src-html/org/apache/hadoop/hbase/client/AbstractTestCIOperationTimeout.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/client/AbstractTestCIOperationTimeout.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/client/AbstractTestCIOperationTimeout.html
new file mode 100644
index 0000000..68404b4
--- /dev/null
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/client/AbstractTestCIOperationTimeout.html
@@ -0,0 +1,155 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
+<head>
+<title>Source code</title>
+<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
+</head>
+<body>
+<div class="sourceContainer">
+<pre><span class="sourceLineNo">001</span>/**<a name="line.1"></a>
+<span class="sourceLineNo">002</span> * Licensed to the Apache Software Foundation (ASF) under one<a name="line.2"></a>
+<span class="sourceLineNo">003</span> * or more contributor license agreements.  See the NOTICE file<a name="line.3"></a>
+<span class="sourceLineNo">004</span> * distributed with this work for additional information<a name="line.4"></a>
+<span class="sourceLineNo">005</span> * regarding copyright ownership.  The ASF licenses this file<a name="line.5"></a>
+<span class="sourceLineNo">006</span> * to you under the Apache License, Version 2.0 (the<a name="line.6"></a>
+<span class="sourceLineNo">007</span> * "License"); you may not use this file except in compliance<a name="line.7"></a>
+<span class="sourceLineNo">008</span> * with the License.  You may obtain a copy of the License at<a name="line.8"></a>
+<span class="sourceLineNo">009</span> *<a name="line.9"></a>
+<span class="sourceLineNo">010</span> *     http://www.apache.org/licenses/LICENSE-2.0<a name="line.10"></a>
+<span class="sourceLineNo">011</span> *<a name="line.11"></a>
+<span class="sourceLineNo">012</span> * Unless required by applicable law or agreed to in writing, software<a name="line.12"></a>
+<span class="sourceLineNo">013</span> * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.13"></a>
+<span class="sourceLineNo">014</span> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.14"></a>
+<span class="sourceLineNo">015</span> * See the License for the specific language governing permissions and<a name="line.15"></a>
+<span class="sourceLineNo">016</span> * limitations under the License.<a name="line.16"></a>
+<span class="sourceLineNo">017</span> */<a name="line.17"></a>
+<span class="sourceLineNo">018</span>package org.apache.hadoop.hbase.client;<a name="line.18"></a>
+<span class="sourceLineNo">019</span><a name="line.19"></a>
+<span class="sourceLineNo">020</span>import static org.junit.Assert.fail;<a name="line.20"></a>
+<span class="sourceLineNo">021</span><a name="line.21"></a>
+<span class="sourceLineNo">022</span>import java.io.IOException;<a name="line.22"></a>
+<span class="sourceLineNo">023</span>import java.net.SocketTimeoutException;<a name="line.23"></a>
+<span class="sourceLineNo">024</span>import org.apache.hadoop.hbase.TableName;<a name="line.24"></a>
+<span class="sourceLineNo">025</span>import org.junit.Before;<a name="line.25"></a>
+<span class="sourceLineNo">026</span>import org.junit.Test;<a name="line.26"></a>
+<span class="sourceLineNo">027</span>import org.slf4j.Logger;<a name="line.27"></a>
+<span class="sourceLineNo">028</span>import org.slf4j.LoggerFactory;<a name="line.28"></a>
+<span class="sourceLineNo">029</span><a name="line.29"></a>
+<span class="sourceLineNo">030</span>/**<a name="line.30"></a>
+<span class="sourceLineNo">031</span> * Based class for testing operation timeout logic for {@link ConnectionImplementation}.<a name="line.31"></a>
+<span class="sourceLineNo">032</span> */<a name="line.32"></a>
+<span class="sourceLineNo">033</span>public abstract class AbstractTestCIOperationTimeout extends AbstractTestCITimeout {<a name="line.33"></a>
+<span class="sourceLineNo">034</span><a name="line.34"></a>
+<span class="sourceLineNo">035</span>  private static final Logger LOG = LoggerFactory.getLogger(AbstractTestCIOperationTimeout.class);<a name="line.35"></a>
+<span class="sourceLineNo">036</span><a name="line.36"></a>
+<span class="sourceLineNo">037</span>  private TableName tableName;<a name="line.37"></a>
+<span class="sourceLineNo">038</span><a name="line.38"></a>
+<span class="sourceLineNo">039</span>  @Before<a name="line.39"></a>
+<span class="sourceLineNo">040</span>  public void setUp() throws IOException {<a name="line.40"></a>
+<span class="sourceLineNo">041</span>    tableName = TableName.valueOf(name.getMethodName());<a name="line.41"></a>
+<span class="sourceLineNo">042</span>    TableDescriptor htd = TableDescriptorBuilder.newBuilder(tableName)<a name="line.42"></a>
+<span class="sourceLineNo">043</span>        .addCoprocessor(SleepAndFailFirstTime.class.getName())<a name="line.43"></a>
+<span class="sourceLineNo">044</span>        .addColumnFamily(ColumnFamilyDescriptorBuilder.of(FAM_NAM)).build();<a name="line.44"></a>
+<span class="sourceLineNo">045</span>    TEST_UTIL.getAdmin().createTable(htd);<a name="line.45"></a>
+<span class="sourceLineNo">046</span>  }<a name="line.46"></a>
+<span class="sourceLineNo">047</span><a name="line.47"></a>
+<span class="sourceLineNo">048</span>  protected abstract void execute(Table table) throws IOException;<a name="line.48"></a>
+<span class="sourceLineNo">049</span><a name="line.49"></a>
+<span class="sourceLineNo">050</span>  /**<a name="line.50"></a>
+<span class="sourceLineNo">051</span>   * Test that an operation can fail if we read the global operation timeout, even if the individual<a name="line.51"></a>
+<span class="sourceLineNo">052</span>   * timeout is fine. We do that with:<a name="line.52"></a>
+<span class="sourceLineNo">053</span>   * &lt;ul&gt;<a name="line.53"></a>
+<span class="sourceLineNo">054</span>   * &lt;li&gt;client side: an operation timeout of 30 seconds&lt;/li&gt;<a name="line.54"></a>
+<span class="sourceLineNo">055</span>   * &lt;li&gt;server side: we sleep 20 second at each attempt. The first work fails, the second one<a name="line.55"></a>
+<span class="sourceLineNo">056</span>   * succeeds. But the client won't wait that much, because 20 + 20 &gt; 30, so the client timed out<a name="line.56"></a>
+<span class="sourceLineNo">057</span>   * when the server answers.&lt;/li&gt;<a name="line.57"></a>
+<span class="sourceLineNo">058</span>   * &lt;/ul&gt;<a name="line.58"></a>
+<span class="sourceLineNo">059</span>   */<a name="line.59"></a>
+<span class="sourceLineNo">060</span>  @Test<a name="line.60"></a>
+<span class="sourceLineNo">061</span>  public void testOperationTimeout() throws IOException {<a name="line.61"></a>
+<span class="sourceLineNo">062</span>    TableBuilder builder =<a name="line.62"></a>
+<span class="sourceLineNo">063</span>      TEST_UTIL.getConnection().getTableBuilder(tableName, null).setRpcTimeout(Integer.MAX_VALUE)<a name="line.63"></a>
+<span class="sourceLineNo">064</span>          .setReadRpcTimeout(Integer.MAX_VALUE).setWriteRpcTimeout(Integer.MAX_VALUE);<a name="line.64"></a>
+<span class="sourceLineNo">065</span>    // Check that it works if the timeout is big enough<a name="line.65"></a>
+<span class="sourceLineNo">066</span>    SleepAndFailFirstTime.ct.set(0);<a name="line.66"></a>
+<span class="sourceLineNo">067</span>    try (Table table = builder.setOperationTimeout(120 * 1000).build()) {<a name="line.67"></a>
+<span class="sourceLineNo">068</span>      execute(table);<a name="line.68"></a>
+<span class="sourceLineNo">069</span>    }<a name="line.69"></a>
+<span class="sourceLineNo">070</span>    // Resetting and retrying. Will fail this time, not enough time for the second try<a name="line.70"></a>
+<span class="sourceLineNo">071</span>    SleepAndFailFirstTime.ct.set(0);<a name="line.71"></a>
+<span class="sourceLineNo">072</span>    try (Table table = builder.setOperationTimeout(30 * 1000).build()) {<a name="line.72"></a>
+<span class="sourceLineNo">073</span>      SleepAndFailFirstTime.ct.set(0);<a name="line.73"></a>
+<span class="sourceLineNo">074</span>      execute(table);<a name="line.74"></a>
+<span class="sourceLineNo">075</span>      fail("We expect an exception here");<a name="line.75"></a>
+<span class="sourceLineNo">076</span>    } catch (SocketTimeoutException | RetriesExhaustedWithDetailsException e) {<a name="line.76"></a>
+<span class="sourceLineNo">077</span>      // The client has a CallTimeout class, but it's not shared. We're not very clean today,<a name="line.77"></a>
+<span class="sourceLineNo">078</span>      // in the general case you can expect the call to stop, but the exception may vary.<a name="line.78"></a>
+<span class="sourceLineNo">079</span>      // In this test however, we're sure that it will be a socket timeout.<a name="line.79"></a>
+<span class="sourceLineNo">080</span>      LOG.info("We received an exception, as expected ", e);<a name="line.80"></a>
+<span class="sourceLineNo">081</span>    }<a name="line.81"></a>
+<span class="sourceLineNo">082</span>  }<a name="line.82"></a>
+<span class="sourceLineNo">083</span>}<a name="line.83"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/0b638133/testdevapidocs/src-html/org/apache/hadoop/hbase/client/AbstractTestCIRpcTimeout.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/client/AbstractTestCIRpcTimeout.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/client/AbstractTestCIRpcTimeout.html
new file mode 100644
index 0000000..d0f60c0
--- /dev/null
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/client/AbstractTestCIRpcTimeout.html
@@ -0,0 +1,151 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
+<head>
+<title>Source code</title>
+<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
+</head>
+<body>
+<div class="sourceContainer">
+<pre><span class="sourceLineNo">001</span>/**<a name="line.1"></a>
+<span class="sourceLineNo">002</span> * Licensed to the Apache Software Foundation (ASF) under one<a name="line.2"></a>
+<span class="sourceLineNo">003</span> * or more contributor license agreements.  See the NOTICE file<a name="line.3"></a>
+<span class="sourceLineNo">004</span> * distributed with this work for additional information<a name="line.4"></a>
+<span class="sourceLineNo">005</span> * regarding copyright ownership.  The ASF licenses this file<a name="line.5"></a>
+<span class="sourceLineNo">006</span> * to you under the Apache License, Version 2.0 (the<a name="line.6"></a>
+<span class="sourceLineNo">007</span> * "License"); you may not use this file except in compliance<a name="line.7"></a>
+<span class="sourceLineNo">008</span> * with the License.  You may obtain a copy of the License at<a name="line.8"></a>
+<span class="sourceLineNo">009</span> *<a name="line.9"></a>
+<span class="sourceLineNo">010</span> *     http://www.apache.org/licenses/LICENSE-2.0<a name="line.10"></a>
+<span class="sourceLineNo">011</span> *<a name="line.11"></a>
+<span class="sourceLineNo">012</span> * Unless required by applicable law or agreed to in writing, software<a name="line.12"></a>
+<span class="sourceLineNo">013</span> * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.13"></a>
+<span class="sourceLineNo">014</span> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.14"></a>
+<span class="sourceLineNo">015</span> * See the License for the specific language governing permissions and<a name="line.15"></a>
+<span class="sourceLineNo">016</span> * limitations under the License.<a name="line.16"></a>
+<span class="sourceLineNo">017</span> */<a name="line.17"></a>
+<span class="sourceLineNo">018</span>package org.apache.hadoop.hbase.client;<a name="line.18"></a>
+<span class="sourceLineNo">019</span><a name="line.19"></a>
+<span class="sourceLineNo">020</span>import static org.junit.Assert.fail;<a name="line.20"></a>
+<span class="sourceLineNo">021</span><a name="line.21"></a>
+<span class="sourceLineNo">022</span>import java.io.IOException;<a name="line.22"></a>
+<span class="sourceLineNo">023</span>import org.apache.hadoop.conf.Configuration;<a name="line.23"></a>
+<span class="sourceLineNo">024</span>import org.apache.hadoop.hbase.HConstants;<a name="line.24"></a>
+<span class="sourceLineNo">025</span>import org.apache.hadoop.hbase.TableName;<a name="line.25"></a>
+<span class="sourceLineNo">026</span>import org.junit.Before;<a name="line.26"></a>
+<span class="sourceLineNo">027</span>import org.junit.Test;<a name="line.27"></a>
+<span class="sourceLineNo">028</span>import org.slf4j.Logger;<a name="line.28"></a>
+<span class="sourceLineNo">029</span>import org.slf4j.LoggerFactory;<a name="line.29"></a>
+<span class="sourceLineNo">030</span><a name="line.30"></a>
+<span class="sourceLineNo">031</span>/**<a name="line.31"></a>
+<span class="sourceLineNo">032</span> * Based class for testing rpc timeout logic for {@link ConnectionImplementation}.<a name="line.32"></a>
+<span class="sourceLineNo">033</span> */<a name="line.33"></a>
+<span class="sourceLineNo">034</span>public abstract class AbstractTestCIRpcTimeout extends AbstractTestCITimeout {<a name="line.34"></a>
+<span class="sourceLineNo">035</span><a name="line.35"></a>
+<span class="sourceLineNo">036</span>  private static final Logger LOG = LoggerFactory.getLogger(AbstractTestCIRpcTimeout.class);<a name="line.36"></a>
+<span class="sourceLineNo">037</span><a name="line.37"></a>
+<span class="sourceLineNo">038</span>  private TableName tableName;<a name="line.38"></a>
+<span class="sourceLineNo">039</span><a name="line.39"></a>
+<span class="sourceLineNo">040</span>  @Before<a name="line.40"></a>
+<span class="sourceLineNo">041</span>  public void setUp() throws IOException {<a name="line.41"></a>
+<span class="sourceLineNo">042</span>    tableName = TableName.valueOf(name.getMethodName());<a name="line.42"></a>
+<span class="sourceLineNo">043</span>    TableDescriptor htd =<a name="line.43"></a>
+<span class="sourceLineNo">044</span>      TableDescriptorBuilder.newBuilder(tableName).addCoprocessor(SleepCoprocessor.class.getName())<a name="line.44"></a>
+<span class="sourceLineNo">045</span>          .addColumnFamily(ColumnFamilyDescriptorBuilder.of(FAM_NAM)).build();<a name="line.45"></a>
+<span class="sourceLineNo">046</span>    TEST_UTIL.getAdmin().createTable(htd);<a name="line.46"></a>
+<span class="sourceLineNo">047</span>  }<a name="line.47"></a>
+<span class="sourceLineNo">048</span><a name="line.48"></a>
+<span class="sourceLineNo">049</span>  protected abstract void execute(Table table) throws IOException;<a name="line.49"></a>
+<span class="sourceLineNo">050</span><a name="line.50"></a>
+<span class="sourceLineNo">051</span>  @Test<a name="line.51"></a>
+<span class="sourceLineNo">052</span>  public void testRpcTimeout() throws IOException {<a name="line.52"></a>
+<span class="sourceLineNo">053</span>    Configuration c = new Configuration(TEST_UTIL.getConfiguration());<a name="line.53"></a>
+<span class="sourceLineNo">054</span>    try (Table table = TEST_UTIL.getConnection().getTableBuilder(tableName, null)<a name="line.54"></a>
+<span class="sourceLineNo">055</span>        .setRpcTimeout(SleepCoprocessor.SLEEP_TIME / 2)<a name="line.55"></a>
+<span class="sourceLineNo">056</span>        .setReadRpcTimeout(SleepCoprocessor.SLEEP_TIME / 2)<a name="line.56"></a>
+<span class="sourceLineNo">057</span>        .setWriteRpcTimeout(SleepCoprocessor.SLEEP_TIME / 2)<a name="line.57"></a>
+<span class="sourceLineNo">058</span>        .setOperationTimeout(SleepCoprocessor.SLEEP_TIME * 100).build()) {<a name="line.58"></a>
+<span class="sourceLineNo">059</span>      execute(table);<a name="line.59"></a>
+<span class="sourceLineNo">060</span>      fail("Get should not have succeeded");<a name="line.60"></a>
+<span class="sourceLineNo">061</span>    } catch (RetriesExhaustedException e) {<a name="line.61"></a>
+<span class="sourceLineNo">062</span>      LOG.info("We received an exception, as expected ", e);<a name="line.62"></a>
+<span class="sourceLineNo">063</span>    }<a name="line.63"></a>
+<span class="sourceLineNo">064</span><a name="line.64"></a>
+<span class="sourceLineNo">065</span>    // Again, with configuration based override<a name="line.65"></a>
+<span class="sourceLineNo">066</span>    c.setInt(HConstants.HBASE_RPC_TIMEOUT_KEY, SleepCoprocessor.SLEEP_TIME / 2);<a name="line.66"></a>
+<span class="sourceLineNo">067</span>    c.setInt(HConstants.HBASE_RPC_READ_TIMEOUT_KEY, SleepCoprocessor.SLEEP_TIME / 2);<a name="line.67"></a>
+<span class="sourceLineNo">068</span>    c.setInt(HConstants.HBASE_RPC_WRITE_TIMEOUT_KEY, SleepCoprocessor.SLEEP_TIME / 2);<a name="line.68"></a>
+<span class="sourceLineNo">069</span>    c.setInt(HConstants.HBASE_CLIENT_OPERATION_TIMEOUT, SleepCoprocessor.SLEEP_TIME * 100);<a name="line.69"></a>
+<span class="sourceLineNo">070</span>    try (Connection conn = ConnectionFactory.createConnection(c)) {<a name="line.70"></a>
+<span class="sourceLineNo">071</span>      try (Table table = conn.getTable(tableName)) {<a name="line.71"></a>
+<span class="sourceLineNo">072</span>        execute(table);<a name="line.72"></a>
+<span class="sourceLineNo">073</span>        fail("Get should not have succeeded");<a name="line.73"></a>
+<span class="sourceLineNo">074</span>      } catch (RetriesExhaustedException e) {<a name="line.74"></a>
+<span class="sourceLineNo">075</span>        LOG.info("We received an exception, as expected ", e);<a name="line.75"></a>
+<span class="sourceLineNo">076</span>      }<a name="line.76"></a>
+<span class="sourceLineNo">077</span>    }<a name="line.77"></a>
+<span class="sourceLineNo">078</span>  }<a name="line.78"></a>
+<span class="sourceLineNo">079</span>}<a name="line.79"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/0b638133/testdevapidocs/src-html/org/apache/hadoop/hbase/client/AbstractTestCITimeout.SleepAndFailFirstTime.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/client/AbstractTestCITimeout.SleepAndFailFirstTime.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/client/AbstractTestCITimeout.SleepAndFailFirstTime.html
new file mode 100644
index 0000000..162e366
--- /dev/null
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/client/AbstractTestCITimeout.SleepAndFailFirstTime.html
@@ -0,0 +1,236 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
+<head>
+<title>Source code</title>
+<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
+</head>
+<body>
+<div class="sourceContainer">
+<pre><span class="sourceLineNo">001</span>/**<a name="line.1"></a>
+<span class="sourceLineNo">002</span> * Licensed to the Apache Software Foundation (ASF) under one<a name="line.2"></a>
+<span class="sourceLineNo">003</span> * or more contributor license agreements.  See the NOTICE file<a name="line.3"></a>
+<span class="sourceLineNo">004</span> * distributed with this work for additional information<a name="line.4"></a>
+<span class="sourceLineNo">005</span> * regarding copyright ownership.  The ASF licenses this file<a name="line.5"></a>
+<span class="sourceLineNo">006</span> * to you under the Apache License, Version 2.0 (the<a name="line.6"></a>
+<span class="sourceLineNo">007</span> * "License"); you may not use this file except in compliance<a name="line.7"></a>
+<span class="sourceLineNo">008</span> * with the License.  You may obtain a copy of the License at<a name="line.8"></a>
+<span class="sourceLineNo">009</span> *<a name="line.9"></a>
+<span class="sourceLineNo">010</span> *     http://www.apache.org/licenses/LICENSE-2.0<a name="line.10"></a>
+<span class="sourceLineNo">011</span> *<a name="line.11"></a>
+<span class="sourceLineNo">012</span> * Unless required by applicable law or agreed to in writing, software<a name="line.12"></a>
+<span class="sourceLineNo">013</span> * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.13"></a>
+<span class="sourceLineNo">014</span> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.14"></a>
+<span class="sourceLineNo">015</span> * See the License for the specific language governing permissions and<a name="line.15"></a>
+<span class="sourceLineNo">016</span> * limitations under the License.<a name="line.16"></a>
+<span class="sourceLineNo">017</span> */<a name="line.17"></a>
+<span class="sourceLineNo">018</span>package org.apache.hadoop.hbase.client;<a name="line.18"></a>
+<span class="sourceLineNo">019</span><a name="line.19"></a>
+<span class="sourceLineNo">020</span>import java.io.IOException;<a name="line.20"></a>
+<span class="sourceLineNo">021</span>import java.util.List;<a name="line.21"></a>
+<span class="sourceLineNo">022</span>import java.util.Optional;<a name="line.22"></a>
+<span class="sourceLineNo">023</span>import java.util.concurrent.atomic.AtomicLong;<a name="line.23"></a>
+<span class="sourceLineNo">024</span>import org.apache.hadoop.conf.Configuration;<a name="line.24"></a>
+<span class="sourceLineNo">025</span>import org.apache.hadoop.hbase.Cell;<a name="line.25"></a>
+<span class="sourceLineNo">026</span>import org.apache.hadoop.hbase.HBaseTestingUtility;<a name="line.26"></a>
+<span class="sourceLineNo">027</span>import org.apache.hadoop.hbase.HConstants;<a name="line.27"></a>
+<span class="sourceLineNo">028</span>import org.apache.hadoop.hbase.coprocessor.ObserverContext;<a name="line.28"></a>
+<span class="sourceLineNo">029</span>import org.apache.hadoop.hbase.coprocessor.RegionCoprocessor;<a name="line.29"></a>
+<span class="sourceLineNo">030</span>import org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment;<a name="line.30"></a>
+<span class="sourceLineNo">031</span>import org.apache.hadoop.hbase.coprocessor.RegionObserver;<a name="line.31"></a>
+<span class="sourceLineNo">032</span>import org.apache.hadoop.hbase.util.Bytes;<a name="line.32"></a>
+<span class="sourceLineNo">033</span>import org.apache.hadoop.hbase.util.Threads;<a name="line.33"></a>
+<span class="sourceLineNo">034</span>import org.apache.hadoop.hbase.wal.WALEdit;<a name="line.34"></a>
+<span class="sourceLineNo">035</span>import org.junit.AfterClass;<a name="line.35"></a>
+<span class="sourceLineNo">036</span>import org.junit.BeforeClass;<a name="line.36"></a>
+<span class="sourceLineNo">037</span>import org.junit.Rule;<a name="line.37"></a>
+<span class="sourceLineNo">038</span>import org.junit.rules.TestName;<a name="line.38"></a>
+<span class="sourceLineNo">039</span><a name="line.39"></a>
+<span class="sourceLineNo">040</span>/**<a name="line.40"></a>
+<span class="sourceLineNo">041</span> * Based class for testing timeout logic for {@link ConnectionImplementation}.<a name="line.41"></a>
+<span class="sourceLineNo">042</span> */<a name="line.42"></a>
+<span class="sourceLineNo">043</span>public abstract class AbstractTestCITimeout {<a name="line.43"></a>
+<span class="sourceLineNo">044</span><a name="line.44"></a>
+<span class="sourceLineNo">045</span>  protected static final HBaseTestingUtility TEST_UTIL = new HBaseTestingUtility();<a name="line.45"></a>
+<span class="sourceLineNo">046</span><a name="line.46"></a>
+<span class="sourceLineNo">047</span>  protected static final byte[] FAM_NAM = Bytes.toBytes("f");<a name="line.47"></a>
+<span class="sourceLineNo">048</span><a name="line.48"></a>
+<span class="sourceLineNo">049</span>  @Rule<a name="line.49"></a>
+<span class="sourceLineNo">050</span>  public final TestName name = new TestName();<a name="line.50"></a>
+<span class="sourceLineNo">051</span><a name="line.51"></a>
+<span class="sourceLineNo">052</span>  /**<a name="line.52"></a>
+<span class="sourceLineNo">053</span>   * This copro sleeps 20 second. The first call it fails. The second time, it works.<a name="line.53"></a>
+<span class="sourceLineNo">054</span>   */<a name="line.54"></a>
+<span class="sourceLineNo">055</span>  public static class SleepAndFailFirstTime implements RegionCoprocessor, RegionObserver {<a name="line.55"></a>
+<span class="sourceLineNo">056</span>    static final AtomicLong ct = new AtomicLong(0);<a name="line.56"></a>
+<span class="sourceLineNo">057</span>    static final String SLEEP_TIME_CONF_KEY = "hbase.coprocessor.SleepAndFailFirstTime.sleepTime";<a name="line.57"></a>
+<span class="sourceLineNo">058</span>    static final long DEFAULT_SLEEP_TIME = 20000;<a name="line.58"></a>
+<span class="sourceLineNo">059</span>    static final AtomicLong sleepTime = new AtomicLong(DEFAULT_SLEEP_TIME);<a name="line.59"></a>
+<span class="sourceLineNo">060</span><a name="line.60"></a>
+<span class="sourceLineNo">061</span>    public SleepAndFailFirstTime() {<a name="line.61"></a>
+<span class="sourceLineNo">062</span>    }<a name="line.62"></a>
+<span class="sourceLineNo">063</span><a name="line.63"></a>
+<span class="sourceLineNo">064</span>    @Override<a name="line.64"></a>
+<span class="sourceLineNo">065</span>    public Optional&lt;RegionObserver&gt; getRegionObserver() {<a name="line.65"></a>
+<span class="sourceLineNo">066</span>      return Optional.of(this);<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>    @Override<a name="line.69"></a>
+<span class="sourceLineNo">070</span>    public void postOpen(ObserverContext&lt;RegionCoprocessorEnvironment&gt; c) {<a name="line.70"></a>
+<span class="sourceLineNo">071</span>      RegionCoprocessorEnvironment env = c.getEnvironment();<a name="line.71"></a>
+<span class="sourceLineNo">072</span>      Configuration conf = env.getConfiguration();<a name="line.72"></a>
+<span class="sourceLineNo">073</span>      sleepTime.set(conf.getLong(SLEEP_TIME_CONF_KEY, DEFAULT_SLEEP_TIME));<a name="line.73"></a>
+<span class="sourceLineNo">074</span>    }<a name="line.74"></a>
+<span class="sourceLineNo">075</span><a name="line.75"></a>
+<span class="sourceLineNo">076</span>    @Override<a name="line.76"></a>
+<span class="sourceLineNo">077</span>    public void preGetOp(final ObserverContext&lt;RegionCoprocessorEnvironment&gt; e, final Get get,<a name="line.77"></a>
+<span class="sourceLineNo">078</span>        final List&lt;Cell&gt; results) throws IOException {<a name="line.78"></a>
+<span class="sourceLineNo">079</span>      Threads.sleep(sleepTime.get());<a name="line.79"></a>
+<span class="sourceLineNo">080</span>      if (ct.incrementAndGet() == 1) {<a name="line.80"></a>
+<span class="sourceLineNo">081</span>        throw new IOException("first call I fail");<a name="line.81"></a>
+<span class="sourceLineNo">082</span>      }<a name="line.82"></a>
+<span class="sourceLineNo">083</span>    }<a name="line.83"></a>
+<span class="sourceLineNo">084</span><a name="line.84"></a>
+<span class="sourceLineNo">085</span>    @Override<a name="line.85"></a>
+<span class="sourceLineNo">086</span>    public void prePut(final ObserverContext&lt;RegionCoprocessorEnvironment&gt; e, final Put put,<a name="line.86"></a>
+<span class="sourceLineNo">087</span>        final WALEdit edit, final Durability durability) throws IOException {<a name="line.87"></a>
+<span class="sourceLineNo">088</span>      Threads.sleep(sleepTime.get());<a name="line.88"></a>
+<span class="sourceLineNo">089</span>      if (ct.incrementAndGet() == 1) {<a name="line.89"></a>
+<span class="sourceLineNo">090</span>        throw new IOException("first call I fail");<a name="line.90"></a>
+<span class="sourceLineNo">091</span>      }<a name="line.91"></a>
+<span class="sourceLineNo">092</span>    }<a name="line.92"></a>
+<span class="sourceLineNo">093</span><a name="line.93"></a>
+<span class="sourceLineNo">094</span>    @Override<a name="line.94"></a>
+<span class="sourceLineNo">095</span>    public void preDelete(final ObserverContext&lt;RegionCoprocessorEnvironment&gt; e,<a name="line.95"></a>
+<span class="sourceLineNo">096</span>        final Delete delete, final WALEdit edit, final Durability durability) throws IOException {<a name="line.96"></a>
+<span class="sourceLineNo">097</span>      Threads.sleep(sleepTime.get());<a name="line.97"></a>
+<span class="sourceLineNo">098</span>      if (ct.incrementAndGet() == 1) {<a name="line.98"></a>
+<span class="sourceLineNo">099</span>        throw new IOException("first call I fail");<a name="line.99"></a>
+<span class="sourceLineNo">100</span>      }<a name="line.100"></a>
+<span class="sourceLineNo">101</span>    }<a name="line.101"></a>
+<span class="sourceLineNo">102</span><a name="line.102"></a>
+<span class="sourceLineNo">103</span>    @Override<a name="line.103"></a>
+<span class="sourceLineNo">104</span>    public Result preIncrement(final ObserverContext&lt;RegionCoprocessorEnvironment&gt; e,<a name="line.104"></a>
+<span class="sourceLineNo">105</span>        final Increment increment) throws IOException {<a name="line.105"></a>
+<span class="sourceLineNo">106</span>      Threads.sleep(sleepTime.get());<a name="line.106"></a>
+<span class="sourceLineNo">107</span>      if (ct.incrementAndGet() == 1) {<a name="line.107"></a>
+<span class="sourceLineNo">108</span>        throw new IOException("first call I fail");<a name="line.108"></a>
+<span class="sourceLineNo">109</span>      }<a name="line.109"></a>
+<span class="sourceLineNo">110</span>      return null;<a name="line.110"></a>
+<span class="sourceLineNo">111</span>    }<a name="line.111"></a>
+<span class="sourceLineNo">112</span><a name="line.112"></a>
+<span class="sourceLineNo">113</span>  }<a name="line.113"></a>
+<span class="sourceLineNo">114</span><a name="line.114"></a>
+<span class="sourceLineNo">115</span>  public static class SleepCoprocessor implements RegionCoprocessor, RegionObserver {<a name="line.115"></a>
+<span class="sourceLineNo">116</span>    public static final int SLEEP_TIME = 5000;<a name="line.116"></a>
+<span class="sourceLineNo">117</span><a name="line.117"></a>
+<span class="sourceLineNo">118</span>    @Override<a name="line.118"></a>
+<span class="sourceLineNo">119</span>    public Optional&lt;RegionObserver&gt; getRegionObserver() {<a name="line.119"></a>
+<span class="sourceLineNo">120</span>      return Optional.of(this);<a name="line.120"></a>
+<span class="sourceLineNo">121</span>    }<a name="line.121"></a>
+<span class="sourceLineNo">122</span><a name="line.122"></a>
+<span class="sourceLineNo">123</span>    @Override<a name="line.123"></a>
+<span class="sourceLineNo">124</span>    public void preGetOp(final ObserverContext&lt;RegionCoprocessorEnvironment&gt; e, final Get get,<a name="line.124"></a>
+<span class="sourceLineNo">125</span>        final List&lt;Cell&gt; results) throws IOException {<a name="line.125"></a>
+<span class="sourceLineNo">126</span>      Threads.sleep(SLEEP_TIME);<a name="line.126"></a>
+<span class="sourceLineNo">127</span>    }<a name="line.127"></a>
+<span class="sourceLineNo">128</span><a name="line.128"></a>
+<span class="sourceLineNo">129</span>    @Override<a name="line.129"></a>
+<span class="sourceLineNo">130</span>    public void prePut(final ObserverContext&lt;RegionCoprocessorEnvironment&gt; e, final Put put,<a name="line.130"></a>
+<span class="sourceLineNo">131</span>        final WALEdit edit, final Durability durability) throws IOException {<a name="line.131"></a>
+<span class="sourceLineNo">132</span>      Threads.sleep(SLEEP_TIME);<a name="line.132"></a>
+<span class="sourceLineNo">133</span>    }<a name="line.133"></a>
+<span class="sourceLineNo">134</span><a name="line.134"></a>
+<span class="sourceLineNo">135</span>    @Override<a name="line.135"></a>
+<span class="sourceLineNo">136</span>    public Result preIncrement(final ObserverContext&lt;RegionCoprocessorEnvironment&gt; e,<a name="line.136"></a>
+<span class="sourceLineNo">137</span>        final Increment increment) throws IOException {<a name="line.137"></a>
+<span class="sourceLineNo">138</span>      Threads.sleep(SLEEP_TIME);<a name="line.138"></a>
+<span class="sourceLineNo">139</span>      return null;<a name="line.139"></a>
+<span class="sourceLineNo">140</span>    }<a name="line.140"></a>
+<span class="sourceLineNo">141</span><a name="line.141"></a>
+<span class="sourceLineNo">142</span>    @Override<a name="line.142"></a>
+<span class="sourceLineNo">143</span>    public void preDelete(final ObserverContext&lt;RegionCoprocessorEnvironment&gt; e,<a name="line.143"></a>
+<span class="sourceLineNo">144</span>        final Delete delete, final WALEdit edit, final Durability durability) throws IOException {<a name="line.144"></a>
+<span class="sourceLineNo">145</span>      Threads.sleep(SLEEP_TIME);<a name="line.145"></a>
+<span class="sourceLineNo">146</span>    }<a name="line.146"></a>
+<span class="sourceLineNo">147</span>  }<a name="line.147"></a>
+<span class="sourceLineNo">148</span><a name="line.148"></a>
+<span class="sourceLineNo">149</span>  @BeforeClass<a name="line.149"></a>
+<span class="sourceLineNo">150</span>  public static void setUpBeforeClass() throws Exception {<a name="line.150"></a>
+<span class="sourceLineNo">151</span>    TEST_UTIL.getConfiguration().setBoolean(HConstants.STATUS_PUBLISHED, true);<a name="line.151"></a>
+<span class="sourceLineNo">152</span>    // Up the handlers; this test needs more than usual.<a name="line.152"></a>
+<span class="sourceLineNo">153</span>    TEST_UTIL.getConfiguration().setInt(HConstants.REGION_SERVER_HIGH_PRIORITY_HANDLER_COUNT, 10);<a name="line.153"></a>
+<span class="sourceLineNo">154</span>    TEST_UTIL.getConfiguration().setInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER, 5);<a name="line.154"></a>
+<span class="sourceLineNo">155</span>    TEST_UTIL.getConfiguration().setInt(HConstants.REGION_SERVER_HANDLER_COUNT, 3);<a name="line.155"></a>
+<span class="sourceLineNo">156</span>    TEST_UTIL.startMiniCluster(2);<a name="line.156"></a>
+<span class="sourceLineNo">157</span><a name="line.157"></a>
+<span class="sourceLineNo">158</span>  }<a name="line.158"></a>
+<span class="sourceLineNo">159</span><a name="line.159"></a>
+<span class="sourceLineNo">160</span>  @AfterClass<a name="line.160"></a>
+<span class="sourceLineNo">161</span>  public static void tearDownAfterClass() throws Exception {<a name="line.161"></a>
+<span class="sourceLineNo">162</span>    TEST_UTIL.shutdownMiniCluster();<a name="line.162"></a>
+<span class="sourceLineNo">163</span>  }<a name="line.163"></a>
+<span class="sourceLineNo">164</span>}<a name="line.164"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/0b638133/testdevapidocs/src-html/org/apache/hadoop/hbase/client/AbstractTestCITimeout.SleepCoprocessor.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/client/AbstractTestCITimeout.SleepCoprocessor.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/client/AbstractTestCITimeout.SleepCoprocessor.html
new file mode 100644
index 0000000..162e366
--- /dev/null
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/client/AbstractTestCITimeout.SleepCoprocessor.html
@@ -0,0 +1,236 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
+<head>
+<title>Source code</title>
+<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
+</head>
+<body>
+<div class="sourceContainer">
+<pre><span class="sourceLineNo">001</span>/**<a name="line.1"></a>
+<span class="sourceLineNo">002</span> * Licensed to the Apache Software Foundation (ASF) under one<a name="line.2"></a>
+<span class="sourceLineNo">003</span> * or more contributor license agreements.  See the NOTICE file<a name="line.3"></a>
+<span class="sourceLineNo">004</span> * distributed with this work for additional information<a name="line.4"></a>
+<span class="sourceLineNo">005</span> * regarding copyright ownership.  The ASF licenses this file<a name="line.5"></a>
+<span class="sourceLineNo">006</span> * to you under the Apache License, Version 2.0 (the<a name="line.6"></a>
+<span class="sourceLineNo">007</span> * "License"); you may not use this file except in compliance<a name="line.7"></a>
+<span class="sourceLineNo">008</span> * with the License.  You may obtain a copy of the License at<a name="line.8"></a>
+<span class="sourceLineNo">009</span> *<a name="line.9"></a>
+<span class="sourceLineNo">010</span> *     http://www.apache.org/licenses/LICENSE-2.0<a name="line.10"></a>
+<span class="sourceLineNo">011</span> *<a name="line.11"></a>
+<span class="sourceLineNo">012</span> * Unless required by applicable law or agreed to in writing, software<a name="line.12"></a>
+<span class="sourceLineNo">013</span> * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.13"></a>
+<span class="sourceLineNo">014</span> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.14"></a>
+<span class="sourceLineNo">015</span> * See the License for the specific language governing permissions and<a name="line.15"></a>
+<span class="sourceLineNo">016</span> * limitations under the License.<a name="line.16"></a>
+<span class="sourceLineNo">017</span> */<a name="line.17"></a>
+<span class="sourceLineNo">018</span>package org.apache.hadoop.hbase.client;<a name="line.18"></a>
+<span class="sourceLineNo">019</span><a name="line.19"></a>
+<span class="sourceLineNo">020</span>import java.io.IOException;<a name="line.20"></a>
+<span class="sourceLineNo">021</span>import java.util.List;<a name="line.21"></a>
+<span class="sourceLineNo">022</span>import java.util.Optional;<a name="line.22"></a>
+<span class="sourceLineNo">023</span>import java.util.concurrent.atomic.AtomicLong;<a name="line.23"></a>
+<span class="sourceLineNo">024</span>import org.apache.hadoop.conf.Configuration;<a name="line.24"></a>
+<span class="sourceLineNo">025</span>import org.apache.hadoop.hbase.Cell;<a name="line.25"></a>
+<span class="sourceLineNo">026</span>import org.apache.hadoop.hbase.HBaseTestingUtility;<a name="line.26"></a>
+<span class="sourceLineNo">027</span>import org.apache.hadoop.hbase.HConstants;<a name="line.27"></a>
+<span class="sourceLineNo">028</span>import org.apache.hadoop.hbase.coprocessor.ObserverContext;<a name="line.28"></a>
+<span class="sourceLineNo">029</span>import org.apache.hadoop.hbase.coprocessor.RegionCoprocessor;<a name="line.29"></a>
+<span class="sourceLineNo">030</span>import org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment;<a name="line.30"></a>
+<span class="sourceLineNo">031</span>import org.apache.hadoop.hbase.coprocessor.RegionObserver;<a name="line.31"></a>
+<span class="sourceLineNo">032</span>import org.apache.hadoop.hbase.util.Bytes;<a name="line.32"></a>
+<span class="sourceLineNo">033</span>import org.apache.hadoop.hbase.util.Threads;<a name="line.33"></a>
+<span class="sourceLineNo">034</span>import org.apache.hadoop.hbase.wal.WALEdit;<a name="line.34"></a>
+<span class="sourceLineNo">035</span>import org.junit.AfterClass;<a name="line.35"></a>
+<span class="sourceLineNo">036</span>import org.junit.BeforeClass;<a name="line.36"></a>
+<span class="sourceLineNo">037</span>import org.junit.Rule;<a name="line.37"></a>
+<span class="sourceLineNo">038</span>import org.junit.rules.TestName;<a name="line.38"></a>
+<span class="sourceLineNo">039</span><a name="line.39"></a>
+<span class="sourceLineNo">040</span>/**<a name="line.40"></a>
+<span class="sourceLineNo">041</span> * Based class for testing timeout logic for {@link ConnectionImplementation}.<a name="line.41"></a>
+<span class="sourceLineNo">042</span> */<a name="line.42"></a>
+<span class="sourceLineNo">043</span>public abstract class AbstractTestCITimeout {<a name="line.43"></a>
+<span class="sourceLineNo">044</span><a name="line.44"></a>
+<span class="sourceLineNo">045</span>  protected static final HBaseTestingUtility TEST_UTIL = new HBaseTestingUtility();<a name="line.45"></a>
+<span class="sourceLineNo">046</span><a name="line.46"></a>
+<span class="sourceLineNo">047</span>  protected static final byte[] FAM_NAM = Bytes.toBytes("f");<a name="line.47"></a>
+<span class="sourceLineNo">048</span><a name="line.48"></a>
+<span class="sourceLineNo">049</span>  @Rule<a name="line.49"></a>
+<span class="sourceLineNo">050</span>  public final TestName name = new TestName();<a name="line.50"></a>
+<span class="sourceLineNo">051</span><a name="line.51"></a>
+<span class="sourceLineNo">052</span>  /**<a name="line.52"></a>
+<span class="sourceLineNo">053</span>   * This copro sleeps 20 second. The first call it fails. The second time, it works.<a name="line.53"></a>
+<span class="sourceLineNo">054</span>   */<a name="line.54"></a>
+<span class="sourceLineNo">055</span>  public static class SleepAndFailFirstTime implements RegionCoprocessor, RegionObserver {<a name="line.55"></a>
+<span class="sourceLineNo">056</span>    static final AtomicLong ct = new AtomicLong(0);<a name="line.56"></a>
+<span class="sourceLineNo">057</span>    static final String SLEEP_TIME_CONF_KEY = "hbase.coprocessor.SleepAndFailFirstTime.sleepTime";<a name="line.57"></a>
+<span class="sourceLineNo">058</span>    static final long DEFAULT_SLEEP_TIME = 20000;<a name="line.58"></a>
+<span class="sourceLineNo">059</span>    static final AtomicLong sleepTime = new AtomicLong(DEFAULT_SLEEP_TIME);<a name="line.59"></a>
+<span class="sourceLineNo">060</span><a name="line.60"></a>
+<span class="sourceLineNo">061</span>    public SleepAndFailFirstTime() {<a name="line.61"></a>
+<span class="sourceLineNo">062</span>    }<a name="line.62"></a>
+<span class="sourceLineNo">063</span><a name="line.63"></a>
+<span class="sourceLineNo">064</span>    @Override<a name="line.64"></a>
+<span class="sourceLineNo">065</span>    public Optional&lt;RegionObserver&gt; getRegionObserver() {<a name="line.65"></a>
+<span class="sourceLineNo">066</span>      return Optional.of(this);<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>    @Override<a name="line.69"></a>
+<span class="sourceLineNo">070</span>    public void postOpen(ObserverContext&lt;RegionCoprocessorEnvironment&gt; c) {<a name="line.70"></a>
+<span class="sourceLineNo">071</span>      RegionCoprocessorEnvironment env = c.getEnvironment();<a name="line.71"></a>
+<span class="sourceLineNo">072</span>      Configuration conf = env.getConfiguration();<a name="line.72"></a>
+<span class="sourceLineNo">073</span>      sleepTime.set(conf.getLong(SLEEP_TIME_CONF_KEY, DEFAULT_SLEEP_TIME));<a name="line.73"></a>
+<span class="sourceLineNo">074</span>    }<a name="line.74"></a>
+<span class="sourceLineNo">075</span><a name="line.75"></a>
+<span class="sourceLineNo">076</span>    @Override<a name="line.76"></a>
+<span class="sourceLineNo">077</span>    public void preGetOp(final ObserverContext&lt;RegionCoprocessorEnvironment&gt; e, final Get get,<a name="line.77"></a>
+<span class="sourceLineNo">078</span>        final List&lt;Cell&gt; results) throws IOException {<a name="line.78"></a>
+<span class="sourceLineNo">079</span>      Threads.sleep(sleepTime.get());<a name="line.79"></a>
+<span class="sourceLineNo">080</span>      if (ct.incrementAndGet() == 1) {<a name="line.80"></a>
+<span class="sourceLineNo">081</span>        throw new IOException("first call I fail");<a name="line.81"></a>
+<span class="sourceLineNo">082</span>      }<a name="line.82"></a>
+<span class="sourceLineNo">083</span>    }<a name="line.83"></a>
+<span class="sourceLineNo">084</span><a name="line.84"></a>
+<span class="sourceLineNo">085</span>    @Override<a name="line.85"></a>
+<span class="sourceLineNo">086</span>    public void prePut(final ObserverContext&lt;RegionCoprocessorEnvironment&gt; e, final Put put,<a name="line.86"></a>
+<span class="sourceLineNo">087</span>        final WALEdit edit, final Durability durability) throws IOException {<a name="line.87"></a>
+<span class="sourceLineNo">088</span>      Threads.sleep(sleepTime.get());<a name="line.88"></a>
+<span class="sourceLineNo">089</span>      if (ct.incrementAndGet() == 1) {<a name="line.89"></a>
+<span class="sourceLineNo">090</span>        throw new IOException("first call I fail");<a name="line.90"></a>
+<span class="sourceLineNo">091</span>      }<a name="line.91"></a>
+<span class="sourceLineNo">092</span>    }<a name="line.92"></a>
+<span class="sourceLineNo">093</span><a name="line.93"></a>
+<span class="sourceLineNo">094</span>    @Override<a name="line.94"></a>
+<span class="sourceLineNo">095</span>    public void preDelete(final ObserverContext&lt;RegionCoprocessorEnvironment&gt; e,<a name="line.95"></a>
+<span class="sourceLineNo">096</span>        final Delete delete, final WALEdit edit, final Durability durability) throws IOException {<a name="line.96"></a>
+<span class="sourceLineNo">097</span>      Threads.sleep(sleepTime.get());<a name="line.97"></a>
+<span class="sourceLineNo">098</span>      if (ct.incrementAndGet() == 1) {<a name="line.98"></a>
+<span class="sourceLineNo">099</span>        throw new IOException("first call I fail");<a name="line.99"></a>
+<span class="sourceLineNo">100</span>      }<a name="line.100"></a>
+<span class="sourceLineNo">101</span>    }<a name="line.101"></a>
+<span class="sourceLineNo">102</span><a name="line.102"></a>
+<span class="sourceLineNo">103</span>    @Override<a name="line.103"></a>
+<span class="sourceLineNo">104</span>    public Result preIncrement(final ObserverContext&lt;RegionCoprocessorEnvironment&gt; e,<a name="line.104"></a>
+<span class="sourceLineNo">105</span>        final Increment increment) throws IOException {<a name="line.105"></a>
+<span class="sourceLineNo">106</span>      Threads.sleep(sleepTime.get());<a name="line.106"></a>
+<span class="sourceLineNo">107</span>      if (ct.incrementAndGet() == 1) {<a name="line.107"></a>
+<span class="sourceLineNo">108</span>        throw new IOException("first call I fail");<a name="line.108"></a>
+<span class="sourceLineNo">109</span>      }<a name="line.109"></a>
+<span class="sourceLineNo">110</span>      return null;<a name="line.110"></a>
+<span class="sourceLineNo">111</span>    }<a name="line.111"></a>
+<span class="sourceLineNo">112</span><a name="line.112"></a>
+<span class="sourceLineNo">113</span>  }<a name="line.113"></a>
+<span class="sourceLineNo">114</span><a name="line.114"></a>
+<span class="sourceLineNo">115</span>  public static class SleepCoprocessor implements RegionCoprocessor, RegionObserver {<a name="line.115"></a>
+<span class="sourceLineNo">116</span>    public static final int SLEEP_TIME = 5000;<a name="line.116"></a>
+<span class="sourceLineNo">117</span><a name="line.117"></a>
+<span class="sourceLineNo">118</span>    @Override<a name="line.118"></a>
+<span class="sourceLineNo">119</span>    public Optional&lt;RegionObserver&gt; getRegionObserver() {<a name="line.119"></a>
+<span class="sourceLineNo">120</span>      return Optional.of(this);<a name="line.120"></a>
+<span class="sourceLineNo">121</span>    }<a name="line.121"></a>
+<span class="sourceLineNo">122</span><a name="line.122"></a>
+<span class="sourceLineNo">123</span>    @Override<a name="line.123"></a>
+<span class="sourceLineNo">124</span>    public void preGetOp(final ObserverContext&lt;RegionCoprocessorEnvironment&gt; e, final Get get,<a name="line.124"></a>
+<span class="sourceLineNo">125</span>        final List&lt;Cell&gt; results) throws IOException {<a name="line.125"></a>
+<span class="sourceLineNo">126</span>      Threads.sleep(SLEEP_TIME);<a name="line.126"></a>
+<span class="sourceLineNo">127</span>    }<a name="line.127"></a>
+<span class="sourceLineNo">128</span><a name="line.128"></a>
+<span class="sourceLineNo">129</span>    @Override<a name="line.129"></a>
+<span class="sourceLineNo">130</span>    public void prePut(final ObserverContext&lt;RegionCoprocessorEnvironment&gt; e, final Put put,<a name="line.130"></a>
+<span class="sourceLineNo">131</span>        final WALEdit edit, final Durability durability) throws IOException {<a name="line.131"></a>
+<span class="sourceLineNo">132</span>      Threads.sleep(SLEEP_TIME);<a name="line.132"></a>
+<span class="sourceLineNo">133</span>    }<a name="line.133"></a>
+<span class="sourceLineNo">134</span><a name="line.134"></a>
+<span class="sourceLineNo">135</span>    @Override<a name="line.135"></a>
+<span class="sourceLineNo">136</span>    public Result preIncrement(final ObserverContext&lt;RegionCoprocessorEnvironment&gt; e,<a name="line.136"></a>
+<span class="sourceLineNo">137</span>        final Increment increment) throws IOException {<a name="line.137"></a>
+<span class="sourceLineNo">138</span>      Threads.sleep(SLEEP_TIME);<a name="line.138"></a>
+<span class="sourceLineNo">139</span>      return null;<a name="line.139"></a>
+<span class="sourceLineNo">140</span>    }<a name="line.140"></a>
+<span class="sourceLineNo">141</span><a name="line.141"></a>
+<span class="sourceLineNo">142</span>    @Override<a name="line.142"></a>
+<span class="sourceLineNo">143</span>    public void preDelete(final ObserverContext&lt;RegionCoprocessorEnvironment&gt; e,<a name="line.143"></a>
+<span class="sourceLineNo">144</span>        final Delete delete, final WALEdit edit, final Durability durability) throws IOException {<a name="line.144"></a>
+<span class="sourceLineNo">145</span>      Threads.sleep(SLEEP_TIME);<a name="line.145"></a>
+<span class="sourceLineNo">146</span>    }<a name="line.146"></a>
+<span class="sourceLineNo">147</span>  }<a name="line.147"></a>
+<span class="sourceLineNo">148</span><a name="line.148"></a>
+<span class="sourceLineNo">149</span>  @BeforeClass<a name="line.149"></a>
+<span class="sourceLineNo">150</span>  public static void setUpBeforeClass() throws Exception {<a name="line.150"></a>
+<span class="sourceLineNo">151</span>    TEST_UTIL.getConfiguration().setBoolean(HConstants.STATUS_PUBLISHED, true);<a name="line.151"></a>
+<span class="sourceLineNo">152</span>    // Up the handlers; this test needs more than usual.<a name="line.152"></a>
+<span class="sourceLineNo">153</span>    TEST_UTIL.getConfiguration().setInt(HConstants.REGION_SERVER_HIGH_PRIORITY_HANDLER_COUNT, 10);<a name="line.153"></a>
+<span class="sourceLineNo">154</span>    TEST_UTIL.getConfiguration().setInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER, 5);<a name="line.154"></a>
+<span class="sourceLineNo">155</span>    TEST_UTIL.getConfiguration().setInt(HConstants.REGION_SERVER_HANDLER_COUNT, 3);<a name="line.155"></a>
+<span class="sourceLineNo">156</span>    TEST_UTIL.startMiniCluster(2);<a name="line.156"></a>
+<span class="sourceLineNo">157</span><a name="line.157"></a>
+<span class="sourceLineNo">158</span>  }<a name="line.158"></a>
+<span class="sourceLineNo">159</span><a name="line.159"></a>
+<span class="sourceLineNo">160</span>  @AfterClass<a name="line.160"></a>
+<span class="sourceLineNo">161</span>  public static void tearDownAfterClass() throws Exception {<a name="line.161"></a>
+<span class="sourceLineNo">162</span>    TEST_UTIL.shutdownMiniCluster();<a name="line.162"></a>
+<span class="sourceLineNo">163</span>  }<a name="line.163"></a>
+<span class="sourceLineNo">164</span>}<a name="line.164"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/0b638133/testdevapidocs/src-html/org/apache/hadoop/hbase/client/AbstractTestCITimeout.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/client/AbstractTestCITimeout.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/client/AbstractTestCITimeout.html
new file mode 100644
index 0000000..162e366
--- /dev/null
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/client/AbstractTestCITimeout.html
@@ -0,0 +1,236 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
+<head>
+<title>Source code</title>
+<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
+</head>
+<body>
+<div class="sourceContainer">
+<pre><span class="sourceLineNo">001</span>/**<a name="line.1"></a>
+<span class="sourceLineNo">002</span> * Licensed to the Apache Software Foundation (ASF) under one<a name="line.2"></a>
+<span class="sourceLineNo">003</span> * or more contributor license agreements.  See the NOTICE file<a name="line.3"></a>
+<span class="sourceLineNo">004</span> * distributed with this work for additional information<a name="line.4"></a>
+<span class="sourceLineNo">005</span> * regarding copyright ownership.  The ASF licenses this file<a name="line.5"></a>
+<span class="sourceLineNo">006</span> * to you under the Apache License, Version 2.0 (the<a name="line.6"></a>
+<span class="sourceLineNo">007</span> * "License"); you may not use this file except in compliance<a name="line.7"></a>
+<span class="sourceLineNo">008</span> * with the License.  You may obtain a copy of the License at<a name="line.8"></a>
+<span class="sourceLineNo">009</span> *<a name="line.9"></a>
+<span class="sourceLineNo">010</span> *     http://www.apache.org/licenses/LICENSE-2.0<a name="line.10"></a>
+<span class="sourceLineNo">011</span> *<a name="line.11"></a>
+<span class="sourceLineNo">012</span> * Unless required by applicable law or agreed to in writing, software<a name="line.12"></a>
+<span class="sourceLineNo">013</span> * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.13"></a>
+<span class="sourceLineNo">014</span> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.14"></a>
+<span class="sourceLineNo">015</span> * See the License for the specific language governing permissions and<a name="line.15"></a>
+<span class="sourceLineNo">016</span> * limitations under the License.<a name="line.16"></a>
+<span class="sourceLineNo">017</span> */<a name="line.17"></a>
+<span class="sourceLineNo">018</span>package org.apache.hadoop.hbase.client;<a name="line.18"></a>
+<span class="sourceLineNo">019</span><a name="line.19"></a>
+<span class="sourceLineNo">020</span>import java.io.IOException;<a name="line.20"></a>
+<span class="sourceLineNo">021</span>import java.util.List;<a name="line.21"></a>
+<span class="sourceLineNo">022</span>import java.util.Optional;<a name="line.22"></a>
+<span class="sourceLineNo">023</span>import java.util.concurrent.atomic.AtomicLong;<a name="line.23"></a>
+<span class="sourceLineNo">024</span>import org.apache.hadoop.conf.Configuration;<a name="line.24"></a>
+<span class="sourceLineNo">025</span>import org.apache.hadoop.hbase.Cell;<a name="line.25"></a>
+<span class="sourceLineNo">026</span>import org.apache.hadoop.hbase.HBaseTestingUtility;<a name="line.26"></a>
+<span class="sourceLineNo">027</span>import org.apache.hadoop.hbase.HConstants;<a name="line.27"></a>
+<span class="sourceLineNo">028</span>import org.apache.hadoop.hbase.coprocessor.ObserverContext;<a name="line.28"></a>
+<span class="sourceLineNo">029</span>import org.apache.hadoop.hbase.coprocessor.RegionCoprocessor;<a name="line.29"></a>
+<span class="sourceLineNo">030</span>import org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment;<a name="line.30"></a>
+<span class="sourceLineNo">031</span>import org.apache.hadoop.hbase.coprocessor.RegionObserver;<a name="line.31"></a>
+<span class="sourceLineNo">032</span>import org.apache.hadoop.hbase.util.Bytes;<a name="line.32"></a>
+<span class="sourceLineNo">033</span>import org.apache.hadoop.hbase.util.Threads;<a name="line.33"></a>
+<span class="sourceLineNo">034</span>import org.apache.hadoop.hbase.wal.WALEdit;<a name="line.34"></a>
+<span class="sourceLineNo">035</span>import org.junit.AfterClass;<a name="line.35"></a>
+<span class="sourceLineNo">036</span>import org.junit.BeforeClass;<a name="line.36"></a>
+<span class="sourceLineNo">037</span>import org.junit.Rule;<a name="line.37"></a>
+<span class="sourceLineNo">038</span>import org.junit.rules.TestName;<a name="line.38"></a>
+<span class="sourceLineNo">039</span><a name="line.39"></a>
+<span class="sourceLineNo">040</span>/**<a name="line.40"></a>
+<span class="sourceLineNo">041</span> * Based class for testing timeout logic for {@link ConnectionImplementation}.<a name="line.41"></a>
+<span class="sourceLineNo">042</span> */<a name="line.42"></a>
+<span class="sourceLineNo">043</span>public abstract class AbstractTestCITimeout {<a name="line.43"></a>
+<span class="sourceLineNo">044</span><a name="line.44"></a>
+<span class="sourceLineNo">045</span>  protected static final HBaseTestingUtility TEST_UTIL = new HBaseTestingUtility();<a name="line.45"></a>
+<span class="sourceLineNo">046</span><a name="line.46"></a>
+<span class="sourceLineNo">047</span>  protected static final byte[] FAM_NAM = Bytes.toBytes("f");<a name="line.47"></a>
+<span class="sourceLineNo">048</span><a name="line.48"></a>
+<span class="sourceLineNo">049</span>  @Rule<a name="line.49"></a>
+<span class="sourceLineNo">050</span>  public final TestName name = new TestName();<a name="line.50"></a>
+<span class="sourceLineNo">051</span><a name="line.51"></a>
+<span class="sourceLineNo">052</span>  /**<a name="line.52"></a>
+<span class="sourceLineNo">053</span>   * This copro sleeps 20 second. The first call it fails. The second time, it works.<a name="line.53"></a>
+<span class="sourceLineNo">054</span>   */<a name="line.54"></a>
+<span class="sourceLineNo">055</span>  public static class SleepAndFailFirstTime implements RegionCoprocessor, RegionObserver {<a name="line.55"></a>
+<span class="sourceLineNo">056</span>    static final AtomicLong ct = new AtomicLong(0);<a name="line.56"></a>
+<span class="sourceLineNo">057</span>    static final String SLEEP_TIME_CONF_KEY = "hbase.coprocessor.SleepAndFailFirstTime.sleepTime";<a name="line.57"></a>
+<span class="sourceLineNo">058</span>    static final long DEFAULT_SLEEP_TIME = 20000;<a name="line.58"></a>
+<span class="sourceLineNo">059</span>    static final AtomicLong sleepTime = new AtomicLong(DEFAULT_SLEEP_TIME);<a name="line.59"></a>
+<span class="sourceLineNo">060</span><a name="line.60"></a>
+<span class="sourceLineNo">061</span>    public SleepAndFailFirstTime() {<a name="line.61"></a>
+<span class="sourceLineNo">062</span>    }<a name="line.62"></a>
+<span class="sourceLineNo">063</span><a name="line.63"></a>
+<span class="sourceLineNo">064</span>    @Override<a name="line.64"></a>
+<span class="sourceLineNo">065</span>    public Optional&lt;RegionObserver&gt; getRegionObserver() {<a name="line.65"></a>
+<span class="sourceLineNo">066</span>      return Optional.of(this);<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>    @Override<a name="line.69"></a>
+<span class="sourceLineNo">070</span>    public void postOpen(ObserverContext&lt;RegionCoprocessorEnvironment&gt; c) {<a name="line.70"></a>
+<span class="sourceLineNo">071</span>      RegionCoprocessorEnvironment env = c.getEnvironment();<a name="line.71"></a>
+<span class="sourceLineNo">072</span>      Configuration conf = env.getConfiguration();<a name="line.72"></a>
+<span class="sourceLineNo">073</span>      sleepTime.set(conf.getLong(SLEEP_TIME_CONF_KEY, DEFAULT_SLEEP_TIME));<a name="line.73"></a>
+<span class="sourceLineNo">074</span>    }<a name="line.74"></a>
+<span class="sourceLineNo">075</span><a name="line.75"></a>
+<span class="sourceLineNo">076</span>    @Override<a name="line.76"></a>
+<span class="sourceLineNo">077</span>    public void preGetOp(final ObserverContext&lt;RegionCoprocessorEnvironment&gt; e, final Get get,<a name="line.77"></a>
+<span class="sourceLineNo">078</span>        final List&lt;Cell&gt; results) throws IOException {<a name="line.78"></a>
+<span class="sourceLineNo">079</span>      Threads.sleep(sleepTime.get());<a name="line.79"></a>
+<span class="sourceLineNo">080</span>      if (ct.incrementAndGet() == 1) {<a name="line.80"></a>
+<span class="sourceLineNo">081</span>        throw new IOException("first call I fail");<a name="line.81"></a>
+<span class="sourceLineNo">082</span>      }<a name="line.82"></a>
+<span class="sourceLineNo">083</span>    }<a name="line.83"></a>
+<span class="sourceLineNo">084</span><a name="line.84"></a>
+<span class="sourceLineNo">085</span>    @Override<a name="line.85"></a>
+<span class="sourceLineNo">086</span>    public void prePut(final ObserverContext&lt;RegionCoprocessorEnvironment&gt; e, final Put put,<a name="line.86"></a>
+<span class="sourceLineNo">087</span>        final WALEdit edit, final Durability durability) throws IOException {<a name="line.87"></a>
+<span class="sourceLineNo">088</span>      Threads.sleep(sleepTime.get());<a name="line.88"></a>
+<span class="sourceLineNo">089</span>      if (ct.incrementAndGet() == 1) {<a name="line.89"></a>
+<span class="sourceLineNo">090</span>        throw new IOException("first call I fail");<a name="line.90"></a>
+<span class="sourceLineNo">091</span>      }<a name="line.91"></a>
+<span class="sourceLineNo">092</span>    }<a name="line.92"></a>
+<span class="sourceLineNo">093</span><a name="line.93"></a>
+<span class="sourceLineNo">094</span>    @Override<a name="line.94"></a>
+<span class="sourceLineNo">095</span>    public void preDelete(final ObserverContext&lt;RegionCoprocessorEnvironment&gt; e,<a name="line.95"></a>
+<span class="sourceLineNo">096</span>        final Delete delete, final WALEdit edit, final Durability durability) throws IOException {<a name="line.96"></a>
+<span class="sourceLineNo">097</span>      Threads.sleep(sleepTime.get());<a name="line.97"></a>
+<span class="sourceLineNo">098</span>      if (ct.incrementAndGet() == 1) {<a name="line.98"></a>
+<span class="sourceLineNo">099</span>        throw new IOException("first call I fail");<a name="line.99"></a>
+<span class="sourceLineNo">100</span>      }<a name="line.100"></a>
+<span class="sourceLineNo">101</span>    }<a name="line.101"></a>
+<span class="sourceLineNo">102</span><a name="line.102"></a>
+<span class="sourceLineNo">103</span>    @Override<a name="line.103"></a>
+<span class="sourceLineNo">104</span>    public Result preIncrement(final ObserverContext&lt;RegionCoprocessorEnvironment&gt; e,<a name="line.104"></a>
+<span class="sourceLineNo">105</span>        final Increment increment) throws IOException {<a name="line.105"></a>
+<span class="sourceLineNo">106</span>      Threads.sleep(sleepTime.get());<a name="line.106"></a>
+<span class="sourceLineNo">107</span>      if (ct.incrementAndGet() == 1) {<a name="line.107"></a>
+<span class="sourceLineNo">108</span>        throw new IOException("first call I fail");<a name="line.108"></a>
+<span class="sourceLineNo">109</span>      }<a name="line.109"></a>
+<span class="sourceLineNo">110</span>      return null;<a name="line.110"></a>
+<span class="sourceLineNo">111</span>    }<a name="line.111"></a>
+<span class="sourceLineNo">112</span><a name="line.112"></a>
+<span class="sourceLineNo">113</span>  }<a name="line.113"></a>
+<span class="sourceLineNo">114</span><a name="line.114"></a>
+<span class="sourceLineNo">115</span>  public static class SleepCoprocessor implements RegionCoprocessor, RegionObserver {<a name="line.115"></a>
+<span class="sourceLineNo">116</span>    public static final int SLEEP_TIME = 5000;<a name="line.116"></a>
+<span class="sourceLineNo">117</span><a name="line.117"></a>
+<span class="sourceLineNo">118</span>    @Override<a name="line.118"></a>
+<span class="sourceLineNo">119</span>    public Optional&lt;RegionObserver&gt; getRegionObserver() {<a name="line.119"></a>
+<span class="sourceLineNo">120</span>      return Optional.of(this);<a name="line.120"></a>
+<span class="sourceLineNo">121</span>    }<a name="line.121"></a>
+<span class="sourceLineNo">122</span><a name="line.122"></a>
+<span class="sourceLineNo">123</span>    @Override<a name="line.123"></a>
+<span class="sourceLineNo">124</span>    public void preGetOp(final ObserverContext&lt;RegionCoprocessorEnvironment&gt; e, final Get get,<a name="line.124"></a>
+<span class="sourceLineNo">125</span>        final List&lt;Cell&gt; results) throws IOException {<a name="line.125"></a>
+<span class="sourceLineNo">126</span>      Threads.sleep(SLEEP_TIME);<a name="line.126"></a>
+<span class="sourceLineNo">127</span>    }<a name="line.127"></a>
+<span class="sourceLineNo">128</span><a name="line.128"></a>
+<span class="sourceLineNo">129</span>    @Override<a name="line.129"></a>
+<span class="sourceLineNo">130</span>    public void prePut(final ObserverContext&lt;RegionCoprocessorEnvironment&gt; e, final Put put,<a name="line.130"></a>
+<span class="sourceLineNo">131</span>        final WALEdit edit, final Durability durability) throws IOException {<a name="line.131"></a>
+<span class="sourceLineNo">132</span>      Threads.sleep(SLEEP_TIME);<a name="line.132"></a>
+<span class="sourceLineNo">133</span>    }<a name="line.133"></a>
+<span class="sourceLineNo">134</span><a name="line.134"></a>
+<span class="sourceLineNo">135</span>    @Override<a name="line.135"></a>
+<span class="sourceLineNo">136</span>    public Result preIncrement(final ObserverContext&lt;RegionCoprocessorEnvironment&gt; e,<a name="line.136"></a>
+<span class="sourceLineNo">137</span>        final Increment increment) throws IOException {<a name="line.137"></a>
+<span class="sourceLineNo">138</span>      Threads.sleep(SLEEP_TIME);<a name="line.138"></a>
+<span class="sourceLineNo">139</span>      return null;<a name="line.139"></a>
+<span class="sourceLineNo">140</span>    }<a name="line.140"></a>
+<span class="sourceLineNo">141</span><a name="line.141"></a>
+<span class="sourceLineNo">142</span>    @Override<a name="line.142"></a>
+<span class="sourceLineNo">143</span>    public void preDelete(final ObserverContext&lt;RegionCoprocessorEnvironment&gt; e,<a name="line.143"></a>
+<span class="sourceLineNo">144</span>        final Delete delete, final WALEdit edit, final Durability durability) throws IOException {<a name="line.144"></a>
+<span class="sourceLineNo">145</span>      Threads.sleep(SLEEP_TIME);<a name="line.145"></a>
+<span class="sourceLineNo">146</span>    }<a name="line.146"></a>
+<span class="sourceLineNo">147</span>  }<a name="line.147"></a>
+<span class="sourceLineNo">148</span><a name="line.148"></a>
+<span class="sourceLineNo">149</span>  @BeforeClass<a name="line.149"></a>
+<span class="sourceLineNo">150</span>  public static void setUpBeforeClass() throws Exception {<a name="line.150"></a>
+<span class="sourceLineNo">151</span>    TEST_UTIL.getConfiguration().setBoolean(HConstants.STATUS_PUBLISHED, true);<a name="line.151"></a>
+<span class="sourceLineNo">152</span>    // Up the handlers; this test needs more than usual.<a name="line.152"></a>
+<span class="sourceLineNo">153</span>    TEST_UTIL.getConfiguration().setInt(HConstants.REGION_SERVER_HIGH_PRIORITY_HANDLER_COUNT, 10);<a name="line.153"></a>
+<span class="sourceLineNo">154</span>    TEST_UTIL.getConfiguration().setInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER, 5);<a name="line.154"></a>
+<span class="sourceLineNo">155</span>    TEST_UTIL.getConfiguration().setInt(HConstants.REGION_SERVER_HANDLER_COUNT, 3);<a name="line.155"></a>
+<span class="sourceLineNo">156</span>    TEST_UTIL.startMiniCluster(2);<a name="line.156"></a>
+<span class="sourceLineNo">157</span><a name="line.157"></a>
+<span class="sourceLineNo">158</span>  }<a name="line.158"></a>
+<span class="sourceLineNo">159</span><a name="line.159"></a>
+<span class="sourceLineNo">160</span>  @AfterClass<a name="line.160"></a>
+<span class="sourceLineNo">161</span>  public static void tearDownAfterClass() throws Exception {<a name="line.161"></a>
+<span class="sourceLineNo">162</span>    TEST_UTIL.shutdownMiniCluster();<a name="line.162"></a>
+<span class="sourceLineNo">163</span>  }<a name="line.163"></a>
+<span class="sourceLineNo">164</span>}<a name="line.164"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/0b638133/testdevapidocs/src-html/org/apache/hadoop/hbase/client/TestCIBadHostname.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/client/TestCIBadHostname.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/client/TestCIBadHostname.html
new file mode 100644
index 0000000..b046cc4
--- /dev/null
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/client/TestCIBadHostname.html
@@ -0,0 +1,165 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
+<head>
+<title>Source code</title>
+<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
+</head>
+<body>
+<div class="sourceContainer">
+<pre><span class="sourceLineNo">001</span>/**<a name="line.1"></a>
+<span class="sourceLineNo">002</span> * Licensed to the Apache Software Foundation (ASF) under one<a name="line.2"></a>
+<span class="sourceLineNo">003</span> * or more contributor license agreements.  See the NOTICE file<a name="line.3"></a>
+<span class="sourceLineNo">004</span> * distributed with this work for additional information<a name="line.4"></a>
+<span class="sourceLineNo">005</span> * regarding copyright ownership.  The ASF licenses this file<a name="line.5"></a>
+<span class="sourceLineNo">006</span> * to you under the Apache License, Version 2.0 (the<a name="line.6"></a>
+<span class="sourceLineNo">007</span> * "License"); you may not use this file except in compliance<a name="line.7"></a>
+<span class="sourceLineNo">008</span> * with the License.  You may obtain a copy of the License at<a name="line.8"></a>
+<span class="sourceLineNo">009</span> *<a name="line.9"></a>
+<span class="sourceLineNo">010</span> *     http://www.apache.org/licenses/LICENSE-2.0<a name="line.10"></a>
+<span class="sourceLineNo">011</span> *<a name="line.11"></a>
+<span class="sourceLineNo">012</span> * Unless required by applicable law or agreed to in writing, software<a name="line.12"></a>
+<span class="sourceLineNo">013</span> * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.13"></a>
+<span class="sourceLineNo">014</span> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.14"></a>
+<span class="sourceLineNo">015</span> * See the License for the specific language governing permissions and<a name="line.15"></a>
+<span class="sourceLineNo">016</span> * limitations under the License.<a name="line.16"></a>
+<span class="sourceLineNo">017</span> */<a name="line.17"></a>
+<span class="sourceLineNo">018</span>package org.apache.hadoop.hbase.client;<a name="line.18"></a>
+<span class="sourceLineNo">019</span><a name="line.19"></a>
+<span class="sourceLineNo">020</span>import static org.junit.Assert.fail;<a name="line.20"></a>
+<span class="sourceLineNo">021</span><a name="line.21"></a>
+<span class="sourceLineNo">022</span>import org.apache.hadoop.hbase.HBaseTestingUtility;<a name="line.22"></a>
+<span class="sourceLineNo">023</span>import org.apache.hadoop.hbase.HConstants;<a name="line.23"></a>
+<span class="sourceLineNo">024</span>import org.apache.hadoop.hbase.ServerName;<a name="line.24"></a>
+<span class="sourceLineNo">025</span>import org.apache.hadoop.hbase.testclassification.ClientTests;<a name="line.25"></a>
+<span class="sourceLineNo">026</span>import org.apache.hadoop.hbase.testclassification.MediumTests;<a name="line.26"></a>
+<span class="sourceLineNo">027</span>import org.junit.AfterClass;<a name="line.27"></a>
+<span class="sourceLineNo">028</span>import org.junit.BeforeClass;<a name="line.28"></a>
+<span class="sourceLineNo">029</span>import org.junit.Test;<a name="line.29"></a>
+<span class="sourceLineNo">030</span>import org.junit.experimental.categories.Category;<a name="line.30"></a>
+<span class="sourceLineNo">031</span><a name="line.31"></a>
+<span class="sourceLineNo">032</span>import java.net.UnknownHostException;<a name="line.32"></a>
+<span class="sourceLineNo">033</span><a name="line.33"></a>
+<span class="sourceLineNo">034</span>/**<a name="line.34"></a>
+<span class="sourceLineNo">035</span> * Tests that we fail fast when hostname resolution is not working and do not cache<a name="line.35"></a>
+<span class="sourceLineNo">036</span> * unresolved InetSocketAddresses.<a name="line.36"></a>
+<span class="sourceLineNo">037</span> */<a name="line.37"></a>
+<span class="sourceLineNo">038</span>@Category({MediumTests.class, ClientTests.class})<a name="line.38"></a>
+<span class="sourceLineNo">039</span>public class TestCIBadHostname {<a name="line.39"></a>
+<span class="sourceLineNo">040</span>  private static HBaseTestingUtility testUtil;<a name="line.40"></a>
+<span class="sourceLineNo">041</span>  private static ConnectionImplementation conn;<a name="line.41"></a>
+<span class="sourceLineNo">042</span><a name="line.42"></a>
+<span class="sourceLineNo">043</span>  @BeforeClass<a name="line.43"></a>
+<span class="sourceLineNo">044</span>  public static void setupBeforeClass() throws Exception {<a name="line.44"></a>
+<span class="sourceLineNo">045</span>    testUtil = HBaseTestingUtility.createLocalHTU();<a name="line.45"></a>
+<span class="sourceLineNo">046</span>    testUtil.startMiniCluster();<a name="line.46"></a>
+<span class="sourceLineNo">047</span>    conn = (ConnectionImplementation) testUtil.getConnection();<a name="line.47"></a>
+<span class="sourceLineNo">048</span>  }<a name="line.48"></a>
+<span class="sourceLineNo">049</span><a name="line.49"></a>
+<span class="sourceLineNo">050</span>  @AfterClass<a name="line.50"></a>
+<span class="sourceLineNo">051</span>  public static void teardownAfterClass() throws Exception {<a name="line.51"></a>
+<span class="sourceLineNo">052</span>    conn.close();<a name="line.52"></a>
+<span class="sourceLineNo">053</span>    testUtil.shutdownMiniCluster();<a name="line.53"></a>
+<span class="sourceLineNo">054</span>  }<a name="line.54"></a>
+<span class="sourceLineNo">055</span><a name="line.55"></a>
+<span class="sourceLineNo">056</span>  @Test(expected = UnknownHostException.class)<a name="line.56"></a>
+<span class="sourceLineNo">057</span>  public void testGetAdminBadHostname() throws Exception {<a name="line.57"></a>
+<span class="sourceLineNo">058</span>    // verify that we can get an instance with the cluster hostname<a name="line.58"></a>
+<span class="sourceLineNo">059</span>    ServerName master = testUtil.getHBaseCluster().getMaster().getServerName();<a name="line.59"></a>
+<span class="sourceLineNo">060</span>    try {<a name="line.60"></a>
+<span class="sourceLineNo">061</span>      conn.getAdmin(master);<a name="line.61"></a>
+<span class="sourceLineNo">062</span>    } catch (UnknownHostException uhe) {<a name="line.62"></a>
+<span class="sourceLineNo">063</span>      fail("Obtaining admin to the cluster master should have succeeded");<a name="line.63"></a>
+<span class="sourceLineNo">064</span>    }<a name="line.64"></a>
+<span class="sourceLineNo">065</span><a name="line.65"></a>
+<span class="sourceLineNo">066</span>    // test that we fail to get a client to an unresolvable hostname, which<a name="line.66"></a>
+<span class="sourceLineNo">067</span>    // means it won't be cached<a name="line.67"></a>
+<span class="sourceLineNo">068</span>    ServerName badHost =<a name="line.68"></a>
+<span class="sourceLineNo">069</span>        ServerName.valueOf("unknownhost.invalid:" + HConstants.DEFAULT_MASTER_PORT,<a name="line.69"></a>
+<span class="sourceLineNo">070</span>        System.currentTimeMillis());<a name="line.70"></a>
+<span class="sourceLineNo">071</span>    conn.getAdmin(badHost);<a name="line.71"></a>
+<span class="sourceLineNo">072</span>    fail("Obtaining admin to unresolvable hostname should have failed");<a name="line.72"></a>
+<span class="sourceLineNo">073</span>  }<a name="line.73"></a>
+<span class="sourceLineNo">074</span><a name="line.74"></a>
+<span class="sourceLineNo">075</span>  @Test(expected = UnknownHostException.class)<a name="line.75"></a>
+<span class="sourceLineNo">076</span>  public void testGetClientBadHostname() throws Exception {<a name="line.76"></a>
+<span class="sourceLineNo">077</span>    // verify that we can get an instance with the cluster hostname<a name="line.77"></a>
+<span class="sourceLineNo">078</span>    ServerName rs = testUtil.getHBaseCluster().getRegionServer(0).getServerName();<a name="line.78"></a>
+<span class="sourceLineNo">079</span>    try {<a name="line.79"></a>
+<span class="sourceLineNo">080</span>      conn.getClient(rs);<a name="line.80"></a>
+<span class="sourceLineNo">081</span>    } catch (UnknownHostException uhe) {<a name="line.81"></a>
+<span class="sourceLineNo">082</span>      fail("Obtaining client to the cluster regionserver should have succeeded");<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>    // test that we fail to get a client to an unresolvable hostname, which<a name="line.85"></a>
+<span class="sourceLineNo">086</span>    // means it won't be cached<a name="line.86"></a>
+<span class="sourceLineNo">087</span>    ServerName badHost =<a name="line.87"></a>
+<span class="sourceLineNo">088</span>        ServerName.valueOf("unknownhost.invalid:" + HConstants.DEFAULT_REGIONSERVER_PORT,<a name="line.88"></a>
+<span class="sourceLineNo">089</span>        System.currentTimeMillis());<a name="line.89"></a>
+<span class="sourceLineNo">090</span>    conn.getAdmin(badHost);<a name="line.90"></a>
+<span class="sourceLineNo">091</span>    fail("Obtaining client to unresolvable hostname should have failed");<a name="line.91"></a>
+<span class="sourceLineNo">092</span>  }<a name="line.92"></a>
+<span class="sourceLineNo">093</span>}<a name="line.93"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/0b638133/testdevapidocs/src-html/org/apache/hadoop/hbase/client/TestCIDeleteOperationTimeout.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/client/TestCIDeleteOperationTimeout.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/client/TestCIDeleteOperationTimeout.html
new file mode 100644
index 0000000..561f13b
--- /dev/null
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/client/TestCIDeleteOperationTimeout.html
@@ -0,0 +1,104 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
+<head>
+<title>Source code</title>
+<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
+</head>
+<body>
+<div class="sourceContainer">
+<pre><span class="sourceLineNo">001</span>/**<a name="line.1"></a>
+<span class="sourceLineNo">002</span> * Licensed to the Apache Software Foundation (ASF) under one<a name="line.2"></a>
+<span class="sourceLineNo">003</span> * or more contributor license agreements.  See the NOTICE file<a name="line.3"></a>
+<span class="sourceLineNo">004</span> * distributed with this work for additional information<a name="line.4"></a>
+<span class="sourceLineNo">005</span> * regarding copyright ownership.  The ASF licenses this file<a name="line.5"></a>
+<span class="sourceLineNo">006</span> * to you under the Apache License, Version 2.0 (the<a name="line.6"></a>
+<span class="sourceLineNo">007</span> * "License"); you may not use this file except in compliance<a name="line.7"></a>
+<span class="sourceLineNo">008</span> * with the License.  You may obtain a copy of the License at<a name="line.8"></a>
+<span class="sourceLineNo">009</span> *<a name="line.9"></a>
+<span class="sourceLineNo">010</span> *     http://www.apache.org/licenses/LICENSE-2.0<a name="line.10"></a>
+<span class="sourceLineNo">011</span> *<a name="line.11"></a>
+<span class="sourceLineNo">012</span> * Unless required by applicable law or agreed to in writing, software<a name="line.12"></a>
+<span class="sourceLineNo">013</span> * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.13"></a>
+<span class="sourceLineNo">014</span> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.14"></a>
+<span class="sourceLineNo">015</span> * See the License for the specific language governing permissions and<a name="line.15"></a>
+<span class="sourceLineNo">016</span> * limitations under the License.<a name="line.16"></a>
+<span class="sourceLineNo">017</span> */<a name="line.17"></a>
+<span class="sourceLineNo">018</span>package org.apache.hadoop.hbase.client;<a name="line.18"></a>
+<span class="sourceLineNo">019</span><a name="line.19"></a>
+<span class="sourceLineNo">020</span>import java.io.IOException;<a name="line.20"></a>
+<span class="sourceLineNo">021</span>import org.apache.hadoop.hbase.testclassification.ClientTests;<a name="line.21"></a>
+<span class="sourceLineNo">022</span>import org.apache.hadoop.hbase.testclassification.LargeTests;<a name="line.22"></a>
+<span class="sourceLineNo">023</span>import org.junit.experimental.categories.Category;<a name="line.23"></a>
+<span class="sourceLineNo">024</span><a name="line.24"></a>
+<span class="sourceLineNo">025</span>@Category({ ClientTests.class, LargeTests.class })<a name="line.25"></a>
+<span class="sourceLineNo">026</span>public class TestCIDeleteOperationTimeout extends AbstractTestCIOperationTimeout {<a name="line.26"></a>
+<span class="sourceLineNo">027</span><a name="line.27"></a>
+<span class="sourceLineNo">028</span>  @Override<a name="line.28"></a>
+<span class="sourceLineNo">029</span>  protected void execute(Table table) throws IOException {<a name="line.29"></a>
+<span class="sourceLineNo">030</span>    table.delete(new Delete(FAM_NAM));<a name="line.30"></a>
+<span class="sourceLineNo">031</span>  }<a name="line.31"></a>
+<span class="sourceLineNo">032</span>}<a name="line.32"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>


Mime
View raw message