hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mi...@apache.org
Subject [24/51] [partial] hbase-site git commit: Published site at 07b623670647686084f8f5fd2038e2bafcfdac54.
Date Wed, 30 Dec 2015 22:15:45 GMT
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/e5c3dcd1/devapidocs/src-html/org/apache/hadoop/hbase/ipc/RpcClientImpl.Connection.CallSender.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/ipc/RpcClientImpl.Connection.CallSender.html b/devapidocs/src-html/org/apache/hadoop/hbase/ipc/RpcClientImpl.Connection.CallSender.html
index 03ccec3..298a8bd 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/ipc/RpcClientImpl.Connection.CallSender.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/ipc/RpcClientImpl.Connection.CallSender.html
@@ -27,88 +27,88 @@
 <span class="sourceLineNo">019</span><a name="line.19"></a>
 <span class="sourceLineNo">020</span>package org.apache.hadoop.hbase.ipc;<a name="line.20"></a>
 <span class="sourceLineNo">021</span><a name="line.21"></a>
-<span class="sourceLineNo">022</span>import com.google.common.annotations.VisibleForTesting;<a name="line.22"></a>
-<span class="sourceLineNo">023</span>import com.google.protobuf.Descriptors.MethodDescriptor;<a name="line.23"></a>
-<span class="sourceLineNo">024</span>import com.google.protobuf.Message;<a name="line.24"></a>
-<span class="sourceLineNo">025</span>import com.google.protobuf.Message.Builder;<a name="line.25"></a>
-<span class="sourceLineNo">026</span>import com.google.protobuf.RpcCallback;<a name="line.26"></a>
-<span class="sourceLineNo">027</span><a name="line.27"></a>
-<span class="sourceLineNo">028</span>import org.apache.commons.logging.Log;<a name="line.28"></a>
-<span class="sourceLineNo">029</span>import org.apache.commons.logging.LogFactory;<a name="line.29"></a>
-<span class="sourceLineNo">030</span>import org.apache.hadoop.conf.Configuration;<a name="line.30"></a>
-<span class="sourceLineNo">031</span>import org.apache.hadoop.hbase.CellScanner;<a name="line.31"></a>
-<span class="sourceLineNo">032</span>import org.apache.hadoop.hbase.DoNotRetryIOException;<a name="line.32"></a>
-<span class="sourceLineNo">033</span>import org.apache.hadoop.hbase.HConstants;<a name="line.33"></a>
-<span class="sourceLineNo">034</span>import org.apache.hadoop.hbase.ServerName;<a name="line.34"></a>
-<span class="sourceLineNo">035</span>import org.apache.hadoop.hbase.classification.InterfaceAudience;<a name="line.35"></a>
-<span class="sourceLineNo">036</span>import org.apache.hadoop.hbase.client.MetricsConnection;<a name="line.36"></a>
-<span class="sourceLineNo">037</span>import org.apache.hadoop.hbase.codec.Codec;<a name="line.37"></a>
-<span class="sourceLineNo">038</span>import org.apache.hadoop.hbase.exceptions.ConnectionClosingException;<a name="line.38"></a>
-<span class="sourceLineNo">039</span>import org.apache.hadoop.hbase.protobuf.ProtobufUtil;<a name="line.39"></a>
-<span class="sourceLineNo">040</span>import org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos;<a name="line.40"></a>
-<span class="sourceLineNo">041</span>import org.apache.hadoop.hbase.protobuf.generated.RPCProtos.CellBlockMeta;<a name="line.41"></a>
-<span class="sourceLineNo">042</span>import org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader;<a name="line.42"></a>
-<span class="sourceLineNo">043</span>import org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ExceptionResponse;<a name="line.43"></a>
-<span class="sourceLineNo">044</span>import org.apache.hadoop.hbase.protobuf.generated.RPCProtos.RequestHeader;<a name="line.44"></a>
-<span class="sourceLineNo">045</span>import org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ResponseHeader;<a name="line.45"></a>
-<span class="sourceLineNo">046</span>import org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation;<a name="line.46"></a>
-<span class="sourceLineNo">047</span>import org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfo;<a name="line.47"></a>
-<span class="sourceLineNo">048</span>import org.apache.hadoop.hbase.security.AuthMethod;<a name="line.48"></a>
-<span class="sourceLineNo">049</span>import org.apache.hadoop.hbase.security.HBaseSaslRpcClient;<a name="line.49"></a>
-<span class="sourceLineNo">050</span>import org.apache.hadoop.hbase.security.SaslUtil.QualityOfProtection;<a name="line.50"></a>
-<span class="sourceLineNo">051</span>import org.apache.hadoop.hbase.security.SecurityInfo;<a name="line.51"></a>
-<span class="sourceLineNo">052</span>import org.apache.hadoop.hbase.security.User;<a name="line.52"></a>
-<span class="sourceLineNo">053</span>import org.apache.hadoop.hbase.security.UserProvider;<a name="line.53"></a>
-<span class="sourceLineNo">054</span>import org.apache.hadoop.hbase.security.token.AuthenticationTokenSelector;<a name="line.54"></a>
-<span class="sourceLineNo">055</span>import org.apache.hadoop.hbase.util.EnvironmentEdgeManager;<a name="line.55"></a>
-<span class="sourceLineNo">056</span>import org.apache.hadoop.hbase.util.ExceptionUtil;<a name="line.56"></a>
-<span class="sourceLineNo">057</span>import org.apache.hadoop.hbase.util.Pair;<a name="line.57"></a>
-<span class="sourceLineNo">058</span>import org.apache.hadoop.hbase.util.PoolMap;<a name="line.58"></a>
-<span class="sourceLineNo">059</span>import org.apache.hadoop.io.IOUtils;<a name="line.59"></a>
-<span class="sourceLineNo">060</span>import org.apache.hadoop.io.Text;<a name="line.60"></a>
-<span class="sourceLineNo">061</span>import org.apache.hadoop.io.compress.CompressionCodec;<a name="line.61"></a>
-<span class="sourceLineNo">062</span>import org.apache.hadoop.ipc.RemoteException;<a name="line.62"></a>
-<span class="sourceLineNo">063</span>import org.apache.hadoop.net.NetUtils;<a name="line.63"></a>
-<span class="sourceLineNo">064</span>import org.apache.hadoop.security.SecurityUtil;<a name="line.64"></a>
-<span class="sourceLineNo">065</span>import org.apache.hadoop.security.UserGroupInformation;<a name="line.65"></a>
-<span class="sourceLineNo">066</span>import org.apache.hadoop.security.token.Token;<a name="line.66"></a>
-<span class="sourceLineNo">067</span>import org.apache.hadoop.security.token.TokenIdentifier;<a name="line.67"></a>
-<span class="sourceLineNo">068</span>import org.apache.hadoop.security.token.TokenSelector;<a name="line.68"></a>
-<span class="sourceLineNo">069</span>import org.apache.htrace.Span;<a name="line.69"></a>
-<span class="sourceLineNo">070</span>import org.apache.htrace.Trace;<a name="line.70"></a>
-<span class="sourceLineNo">071</span>import org.apache.htrace.TraceScope;<a name="line.71"></a>
-<span class="sourceLineNo">072</span><a name="line.72"></a>
-<span class="sourceLineNo">073</span>import javax.net.SocketFactory;<a name="line.73"></a>
-<span class="sourceLineNo">074</span>import javax.security.sasl.SaslException;<a name="line.74"></a>
-<span class="sourceLineNo">075</span>import java.io.BufferedInputStream;<a name="line.75"></a>
-<span class="sourceLineNo">076</span>import java.io.BufferedOutputStream;<a name="line.76"></a>
-<span class="sourceLineNo">077</span>import java.io.Closeable;<a name="line.77"></a>
-<span class="sourceLineNo">078</span>import java.io.DataInputStream;<a name="line.78"></a>
-<span class="sourceLineNo">079</span>import java.io.DataOutputStream;<a name="line.79"></a>
-<span class="sourceLineNo">080</span>import java.io.IOException;<a name="line.80"></a>
-<span class="sourceLineNo">081</span>import java.io.InputStream;<a name="line.81"></a>
-<span class="sourceLineNo">082</span>import java.io.InterruptedIOException;<a name="line.82"></a>
-<span class="sourceLineNo">083</span>import java.io.OutputStream;<a name="line.83"></a>
-<span class="sourceLineNo">084</span>import java.net.ConnectException;<a name="line.84"></a>
-<span class="sourceLineNo">085</span>import java.net.InetSocketAddress;<a name="line.85"></a>
-<span class="sourceLineNo">086</span>import java.net.Socket;<a name="line.86"></a>
-<span class="sourceLineNo">087</span>import java.net.SocketAddress;<a name="line.87"></a>
-<span class="sourceLineNo">088</span>import java.net.SocketTimeoutException;<a name="line.88"></a>
-<span class="sourceLineNo">089</span>import java.net.UnknownHostException;<a name="line.89"></a>
-<span class="sourceLineNo">090</span>import java.nio.ByteBuffer;<a name="line.90"></a>
-<span class="sourceLineNo">091</span>import java.security.PrivilegedExceptionAction;<a name="line.91"></a>
-<span class="sourceLineNo">092</span>import java.util.HashMap;<a name="line.92"></a>
-<span class="sourceLineNo">093</span>import java.util.HashSet;<a name="line.93"></a>
-<span class="sourceLineNo">094</span>import java.util.Iterator;<a name="line.94"></a>
-<span class="sourceLineNo">095</span>import java.util.Map;<a name="line.95"></a>
-<span class="sourceLineNo">096</span>import java.util.Map.Entry;<a name="line.96"></a>
-<span class="sourceLineNo">097</span>import java.util.Random;<a name="line.97"></a>
-<span class="sourceLineNo">098</span>import java.util.Set;<a name="line.98"></a>
-<span class="sourceLineNo">099</span>import java.util.concurrent.ArrayBlockingQueue;<a name="line.99"></a>
-<span class="sourceLineNo">100</span>import java.util.concurrent.BlockingQueue;<a name="line.100"></a>
-<span class="sourceLineNo">101</span>import java.util.concurrent.ConcurrentSkipListMap;<a name="line.101"></a>
-<span class="sourceLineNo">102</span>import java.util.concurrent.atomic.AtomicBoolean;<a name="line.102"></a>
-<span class="sourceLineNo">103</span>import java.util.concurrent.atomic.AtomicInteger;<a name="line.103"></a>
+<span class="sourceLineNo">022</span>import java.io.BufferedInputStream;<a name="line.22"></a>
+<span class="sourceLineNo">023</span>import java.io.BufferedOutputStream;<a name="line.23"></a>
+<span class="sourceLineNo">024</span>import java.io.Closeable;<a name="line.24"></a>
+<span class="sourceLineNo">025</span>import java.io.DataInputStream;<a name="line.25"></a>
+<span class="sourceLineNo">026</span>import java.io.DataOutputStream;<a name="line.26"></a>
+<span class="sourceLineNo">027</span>import java.io.IOException;<a name="line.27"></a>
+<span class="sourceLineNo">028</span>import java.io.InputStream;<a name="line.28"></a>
+<span class="sourceLineNo">029</span>import java.io.InterruptedIOException;<a name="line.29"></a>
+<span class="sourceLineNo">030</span>import java.io.OutputStream;<a name="line.30"></a>
+<span class="sourceLineNo">031</span>import java.net.InetSocketAddress;<a name="line.31"></a>
+<span class="sourceLineNo">032</span>import java.net.Socket;<a name="line.32"></a>
+<span class="sourceLineNo">033</span>import java.net.SocketAddress;<a name="line.33"></a>
+<span class="sourceLineNo">034</span>import java.net.SocketTimeoutException;<a name="line.34"></a>
+<span class="sourceLineNo">035</span>import java.net.UnknownHostException;<a name="line.35"></a>
+<span class="sourceLineNo">036</span>import java.nio.ByteBuffer;<a name="line.36"></a>
+<span class="sourceLineNo">037</span>import java.security.PrivilegedExceptionAction;<a name="line.37"></a>
+<span class="sourceLineNo">038</span>import java.util.HashMap;<a name="line.38"></a>
+<span class="sourceLineNo">039</span>import java.util.HashSet;<a name="line.39"></a>
+<span class="sourceLineNo">040</span>import java.util.Iterator;<a name="line.40"></a>
+<span class="sourceLineNo">041</span>import java.util.Map;<a name="line.41"></a>
+<span class="sourceLineNo">042</span>import java.util.Map.Entry;<a name="line.42"></a>
+<span class="sourceLineNo">043</span>import java.util.Random;<a name="line.43"></a>
+<span class="sourceLineNo">044</span>import java.util.Set;<a name="line.44"></a>
+<span class="sourceLineNo">045</span>import java.util.concurrent.ArrayBlockingQueue;<a name="line.45"></a>
+<span class="sourceLineNo">046</span>import java.util.concurrent.BlockingQueue;<a name="line.46"></a>
+<span class="sourceLineNo">047</span>import java.util.concurrent.ConcurrentSkipListMap;<a name="line.47"></a>
+<span class="sourceLineNo">048</span>import java.util.concurrent.atomic.AtomicBoolean;<a name="line.48"></a>
+<span class="sourceLineNo">049</span>import java.util.concurrent.atomic.AtomicInteger;<a name="line.49"></a>
+<span class="sourceLineNo">050</span><a name="line.50"></a>
+<span class="sourceLineNo">051</span>import javax.net.SocketFactory;<a name="line.51"></a>
+<span class="sourceLineNo">052</span>import javax.security.sasl.SaslException;<a name="line.52"></a>
+<span class="sourceLineNo">053</span><a name="line.53"></a>
+<span class="sourceLineNo">054</span>import org.apache.commons.logging.Log;<a name="line.54"></a>
+<span class="sourceLineNo">055</span>import org.apache.commons.logging.LogFactory;<a name="line.55"></a>
+<span class="sourceLineNo">056</span>import org.apache.hadoop.conf.Configuration;<a name="line.56"></a>
+<span class="sourceLineNo">057</span>import org.apache.hadoop.hbase.CellScanner;<a name="line.57"></a>
+<span class="sourceLineNo">058</span>import org.apache.hadoop.hbase.DoNotRetryIOException;<a name="line.58"></a>
+<span class="sourceLineNo">059</span>import org.apache.hadoop.hbase.HConstants;<a name="line.59"></a>
+<span class="sourceLineNo">060</span>import org.apache.hadoop.hbase.ServerName;<a name="line.60"></a>
+<span class="sourceLineNo">061</span>import org.apache.hadoop.hbase.classification.InterfaceAudience;<a name="line.61"></a>
+<span class="sourceLineNo">062</span>import org.apache.hadoop.hbase.client.MetricsConnection;<a name="line.62"></a>
+<span class="sourceLineNo">063</span>import org.apache.hadoop.hbase.codec.Codec;<a name="line.63"></a>
+<span class="sourceLineNo">064</span>import org.apache.hadoop.hbase.exceptions.ConnectionClosingException;<a name="line.64"></a>
+<span class="sourceLineNo">065</span>import org.apache.hadoop.hbase.protobuf.ProtobufUtil;<a name="line.65"></a>
+<span class="sourceLineNo">066</span>import org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos;<a name="line.66"></a>
+<span class="sourceLineNo">067</span>import org.apache.hadoop.hbase.protobuf.generated.RPCProtos.CellBlockMeta;<a name="line.67"></a>
+<span class="sourceLineNo">068</span>import org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader;<a name="line.68"></a>
+<span class="sourceLineNo">069</span>import org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ExceptionResponse;<a name="line.69"></a>
+<span class="sourceLineNo">070</span>import org.apache.hadoop.hbase.protobuf.generated.RPCProtos.RequestHeader;<a name="line.70"></a>
+<span class="sourceLineNo">071</span>import org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ResponseHeader;<a name="line.71"></a>
+<span class="sourceLineNo">072</span>import org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation;<a name="line.72"></a>
+<span class="sourceLineNo">073</span>import org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfo;<a name="line.73"></a>
+<span class="sourceLineNo">074</span>import org.apache.hadoop.hbase.security.AuthMethod;<a name="line.74"></a>
+<span class="sourceLineNo">075</span>import org.apache.hadoop.hbase.security.HBaseSaslRpcClient;<a name="line.75"></a>
+<span class="sourceLineNo">076</span>import org.apache.hadoop.hbase.security.SaslUtil.QualityOfProtection;<a name="line.76"></a>
+<span class="sourceLineNo">077</span>import org.apache.hadoop.hbase.security.SecurityInfo;<a name="line.77"></a>
+<span class="sourceLineNo">078</span>import org.apache.hadoop.hbase.security.User;<a name="line.78"></a>
+<span class="sourceLineNo">079</span>import org.apache.hadoop.hbase.security.UserProvider;<a name="line.79"></a>
+<span class="sourceLineNo">080</span>import org.apache.hadoop.hbase.security.token.AuthenticationTokenSelector;<a name="line.80"></a>
+<span class="sourceLineNo">081</span>import org.apache.hadoop.hbase.util.EnvironmentEdgeManager;<a name="line.81"></a>
+<span class="sourceLineNo">082</span>import org.apache.hadoop.hbase.util.ExceptionUtil;<a name="line.82"></a>
+<span class="sourceLineNo">083</span>import org.apache.hadoop.hbase.util.Pair;<a name="line.83"></a>
+<span class="sourceLineNo">084</span>import org.apache.hadoop.hbase.util.PoolMap;<a name="line.84"></a>
+<span class="sourceLineNo">085</span>import org.apache.hadoop.io.IOUtils;<a name="line.85"></a>
+<span class="sourceLineNo">086</span>import org.apache.hadoop.io.Text;<a name="line.86"></a>
+<span class="sourceLineNo">087</span>import org.apache.hadoop.io.compress.CompressionCodec;<a name="line.87"></a>
+<span class="sourceLineNo">088</span>import org.apache.hadoop.ipc.RemoteException;<a name="line.88"></a>
+<span class="sourceLineNo">089</span>import org.apache.hadoop.net.NetUtils;<a name="line.89"></a>
+<span class="sourceLineNo">090</span>import org.apache.hadoop.security.SecurityUtil;<a name="line.90"></a>
+<span class="sourceLineNo">091</span>import org.apache.hadoop.security.UserGroupInformation;<a name="line.91"></a>
+<span class="sourceLineNo">092</span>import org.apache.hadoop.security.token.Token;<a name="line.92"></a>
+<span class="sourceLineNo">093</span>import org.apache.hadoop.security.token.TokenIdentifier;<a name="line.93"></a>
+<span class="sourceLineNo">094</span>import org.apache.hadoop.security.token.TokenSelector;<a name="line.94"></a>
+<span class="sourceLineNo">095</span>import org.apache.htrace.Span;<a name="line.95"></a>
+<span class="sourceLineNo">096</span>import org.apache.htrace.Trace;<a name="line.96"></a>
+<span class="sourceLineNo">097</span>import org.apache.htrace.TraceScope;<a name="line.97"></a>
+<span class="sourceLineNo">098</span><a name="line.98"></a>
+<span class="sourceLineNo">099</span>import com.google.common.annotations.VisibleForTesting;<a name="line.99"></a>
+<span class="sourceLineNo">100</span>import com.google.protobuf.Descriptors.MethodDescriptor;<a name="line.100"></a>
+<span class="sourceLineNo">101</span>import com.google.protobuf.Message;<a name="line.101"></a>
+<span class="sourceLineNo">102</span>import com.google.protobuf.Message.Builder;<a name="line.102"></a>
+<span class="sourceLineNo">103</span>import com.google.protobuf.RpcCallback;<a name="line.103"></a>
 <span class="sourceLineNo">104</span><a name="line.104"></a>
 <span class="sourceLineNo">105</span>/**<a name="line.105"></a>
 <span class="sourceLineNo">106</span> * Does RPC against a cluster.  Manages connections per regionserver in the cluster.<a name="line.106"></a>
@@ -1275,80 +1275,50 @@
 <span class="sourceLineNo">1267</span><a name="line.1267"></a>
 <span class="sourceLineNo">1268</span><a name="line.1268"></a>
 <span class="sourceLineNo">1269</span>  /**<a name="line.1269"></a>
-<span class="sourceLineNo">1270</span>   * Take an IOException and the address we were trying to connect to<a name="line.1270"></a>
-<span class="sourceLineNo">1271</span>   * and return an IOException with the input exception as the cause.<a name="line.1271"></a>
-<span class="sourceLineNo">1272</span>   * The new exception provides the stack trace of the place where<a name="line.1272"></a>
-<span class="sourceLineNo">1273</span>   * the exception is thrown and some extra diagnostics information.<a name="line.1273"></a>
-<span class="sourceLineNo">1274</span>   * If the exception is ConnectException or SocketTimeoutException,<a name="line.1274"></a>
-<span class="sourceLineNo">1275</span>   * return a new one of the same type; Otherwise return an IOException.<a name="line.1275"></a>
-<span class="sourceLineNo">1276</span>   *<a name="line.1276"></a>
-<span class="sourceLineNo">1277</span>   * @param addr target address<a name="line.1277"></a>
-<span class="sourceLineNo">1278</span>   * @param exception the relevant exception<a name="line.1278"></a>
-<span class="sourceLineNo">1279</span>   * @return an exception to throw<a name="line.1279"></a>
-<span class="sourceLineNo">1280</span>   */<a name="line.1280"></a>
-<span class="sourceLineNo">1281</span>  protected IOException wrapException(InetSocketAddress addr,<a name="line.1281"></a>
-<span class="sourceLineNo">1282</span>                                         IOException exception) {<a name="line.1282"></a>
-<span class="sourceLineNo">1283</span>    if (exception instanceof ConnectException) {<a name="line.1283"></a>
-<span class="sourceLineNo">1284</span>      //connection refused; include the host:port in the error<a name="line.1284"></a>
-<span class="sourceLineNo">1285</span>      return (ConnectException)new ConnectException(<a name="line.1285"></a>
-<span class="sourceLineNo">1286</span>         "Call to " + addr + " failed on connection exception: " + exception).initCause(exception);<a name="line.1286"></a>
-<span class="sourceLineNo">1287</span>    } else if (exception instanceof SocketTimeoutException) {<a name="line.1287"></a>
-<span class="sourceLineNo">1288</span>      return (SocketTimeoutException)new SocketTimeoutException("Call to " + addr +<a name="line.1288"></a>
-<span class="sourceLineNo">1289</span>        " failed because " + exception).initCause(exception);<a name="line.1289"></a>
-<span class="sourceLineNo">1290</span>    } else if (exception instanceof ConnectionClosingException){<a name="line.1290"></a>
-<span class="sourceLineNo">1291</span>      return (ConnectionClosingException) new ConnectionClosingException(<a name="line.1291"></a>
-<span class="sourceLineNo">1292</span>          "Call to " + addr + " failed on local exception: " + exception).initCause(exception);<a name="line.1292"></a>
-<span class="sourceLineNo">1293</span>    } else {<a name="line.1293"></a>
-<span class="sourceLineNo">1294</span>      return (IOException)new IOException("Call to " + addr + " failed on local exception: " +<a name="line.1294"></a>
-<span class="sourceLineNo">1295</span>        exception).initCause(exception);<a name="line.1295"></a>
-<span class="sourceLineNo">1296</span>    }<a name="line.1296"></a>
-<span class="sourceLineNo">1297</span>  }<a name="line.1297"></a>
-<span class="sourceLineNo">1298</span><a name="line.1298"></a>
-<span class="sourceLineNo">1299</span>  /**<a name="line.1299"></a>
-<span class="sourceLineNo">1300</span>   * Interrupt the connections to the given ip:port server. This should be called if the server<a name="line.1300"></a>
-<span class="sourceLineNo">1301</span>   *  is known as actually dead. This will not prevent current operation to be retried, and,<a name="line.1301"></a>
-<span class="sourceLineNo">1302</span>   *  depending on their own behavior, they may retry on the same server. This can be a feature,<a name="line.1302"></a>
-<span class="sourceLineNo">1303</span>   *  for example at startup. In any case, they're likely to get connection refused (if the<a name="line.1303"></a>
-<span class="sourceLineNo">1304</span>   *  process died) or no route to host: i.e. their next retries should be faster and with a<a name="line.1304"></a>
-<span class="sourceLineNo">1305</span>   *  safe exception.<a name="line.1305"></a>
-<span class="sourceLineNo">1306</span>   */<a name="line.1306"></a>
-<span class="sourceLineNo">1307</span>  @Override<a name="line.1307"></a>
-<span class="sourceLineNo">1308</span>  public void cancelConnections(ServerName sn) {<a name="line.1308"></a>
-<span class="sourceLineNo">1309</span>    synchronized (connections) {<a name="line.1309"></a>
-<span class="sourceLineNo">1310</span>      for (Connection connection : connections.values()) {<a name="line.1310"></a>
-<span class="sourceLineNo">1311</span>        if (connection.isAlive() &amp;&amp;<a name="line.1311"></a>
-<span class="sourceLineNo">1312</span>            connection.getRemoteAddress().getPort() == sn.getPort() &amp;&amp;<a name="line.1312"></a>
-<span class="sourceLineNo">1313</span>            connection.getRemoteAddress().getHostName().equals(sn.getHostname())) {<a name="line.1313"></a>
-<span class="sourceLineNo">1314</span>          LOG.info("The server on " + sn.toString() +<a name="line.1314"></a>
-<span class="sourceLineNo">1315</span>              " is dead - stopping the connection " + connection.remoteId);<a name="line.1315"></a>
-<span class="sourceLineNo">1316</span>          connection.interrupt(); // We're interrupting a Reader. It means we want it to finish.<a name="line.1316"></a>
-<span class="sourceLineNo">1317</span>                                  // This will close the connection as well.<a name="line.1317"></a>
-<span class="sourceLineNo">1318</span>        }<a name="line.1318"></a>
-<span class="sourceLineNo">1319</span>      }<a name="line.1319"></a>
-<span class="sourceLineNo">1320</span>    }<a name="line.1320"></a>
-<span class="sourceLineNo">1321</span>  }<a name="line.1321"></a>
-<span class="sourceLineNo">1322</span><a name="line.1322"></a>
-<span class="sourceLineNo">1323</span>  /**<a name="line.1323"></a>
-<span class="sourceLineNo">1324</span>   *  Get a connection from the pool, or create a new one and add it to the<a name="line.1324"></a>
-<span class="sourceLineNo">1325</span>   * pool. Connections to a given host/port are reused.<a name="line.1325"></a>
-<span class="sourceLineNo">1326</span>   */<a name="line.1326"></a>
-<span class="sourceLineNo">1327</span>  protected Connection getConnection(User ticket, Call call, InetSocketAddress addr)<a name="line.1327"></a>
-<span class="sourceLineNo">1328</span>  throws IOException {<a name="line.1328"></a>
-<span class="sourceLineNo">1329</span>    if (!running.get()) throw new StoppedRpcClientException();<a name="line.1329"></a>
-<span class="sourceLineNo">1330</span>    Connection connection;<a name="line.1330"></a>
-<span class="sourceLineNo">1331</span>    ConnectionId remoteId =<a name="line.1331"></a>
-<span class="sourceLineNo">1332</span>      new ConnectionId(ticket, call.md.getService().getName(), addr);<a name="line.1332"></a>
-<span class="sourceLineNo">1333</span>    synchronized (connections) {<a name="line.1333"></a>
-<span class="sourceLineNo">1334</span>      connection = connections.get(remoteId);<a name="line.1334"></a>
-<span class="sourceLineNo">1335</span>      if (connection == null) {<a name="line.1335"></a>
-<span class="sourceLineNo">1336</span>        connection = createConnection(remoteId, this.codec, this.compressor);<a name="line.1336"></a>
-<span class="sourceLineNo">1337</span>        connections.put(remoteId, connection);<a name="line.1337"></a>
-<span class="sourceLineNo">1338</span>      }<a name="line.1338"></a>
-<span class="sourceLineNo">1339</span>    }<a name="line.1339"></a>
-<span class="sourceLineNo">1340</span><a name="line.1340"></a>
-<span class="sourceLineNo">1341</span>    return connection;<a name="line.1341"></a>
-<span class="sourceLineNo">1342</span>  }<a name="line.1342"></a>
-<span class="sourceLineNo">1343</span>}<a name="line.1343"></a>
+<span class="sourceLineNo">1270</span>   * Interrupt the connections to the given ip:port server. This should be called if the server<a name="line.1270"></a>
+<span class="sourceLineNo">1271</span>   *  is known as actually dead. This will not prevent current operation to be retried, and,<a name="line.1271"></a>
+<span class="sourceLineNo">1272</span>   *  depending on their own behavior, they may retry on the same server. This can be a feature,<a name="line.1272"></a>
+<span class="sourceLineNo">1273</span>   *  for example at startup. In any case, they're likely to get connection refused (if the<a name="line.1273"></a>
+<span class="sourceLineNo">1274</span>   *  process died) or no route to host: i.e. their next retries should be faster and with a<a name="line.1274"></a>
+<span class="sourceLineNo">1275</span>   *  safe exception.<a name="line.1275"></a>
+<span class="sourceLineNo">1276</span>   */<a name="line.1276"></a>
+<span class="sourceLineNo">1277</span>  @Override<a name="line.1277"></a>
+<span class="sourceLineNo">1278</span>  public void cancelConnections(ServerName sn) {<a name="line.1278"></a>
+<span class="sourceLineNo">1279</span>    synchronized (connections) {<a name="line.1279"></a>
+<span class="sourceLineNo">1280</span>      for (Connection connection : connections.values()) {<a name="line.1280"></a>
+<span class="sourceLineNo">1281</span>        if (connection.isAlive() &amp;&amp;<a name="line.1281"></a>
+<span class="sourceLineNo">1282</span>            connection.getRemoteAddress().getPort() == sn.getPort() &amp;&amp;<a name="line.1282"></a>
+<span class="sourceLineNo">1283</span>            connection.getRemoteAddress().getHostName().equals(sn.getHostname())) {<a name="line.1283"></a>
+<span class="sourceLineNo">1284</span>          LOG.info("The server on " + sn.toString() +<a name="line.1284"></a>
+<span class="sourceLineNo">1285</span>              " is dead - stopping the connection " + connection.remoteId);<a name="line.1285"></a>
+<span class="sourceLineNo">1286</span>          connection.interrupt(); // We're interrupting a Reader. It means we want it to finish.<a name="line.1286"></a>
+<span class="sourceLineNo">1287</span>                                  // This will close the connection as well.<a name="line.1287"></a>
+<span class="sourceLineNo">1288</span>        }<a name="line.1288"></a>
+<span class="sourceLineNo">1289</span>      }<a name="line.1289"></a>
+<span class="sourceLineNo">1290</span>    }<a name="line.1290"></a>
+<span class="sourceLineNo">1291</span>  }<a name="line.1291"></a>
+<span class="sourceLineNo">1292</span><a name="line.1292"></a>
+<span class="sourceLineNo">1293</span>  /**<a name="line.1293"></a>
+<span class="sourceLineNo">1294</span>   *  Get a connection from the pool, or create a new one and add it to the<a name="line.1294"></a>
+<span class="sourceLineNo">1295</span>   * pool. Connections to a given host/port are reused.<a name="line.1295"></a>
+<span class="sourceLineNo">1296</span>   */<a name="line.1296"></a>
+<span class="sourceLineNo">1297</span>  protected Connection getConnection(User ticket, Call call, InetSocketAddress addr)<a name="line.1297"></a>
+<span class="sourceLineNo">1298</span>  throws IOException {<a name="line.1298"></a>
+<span class="sourceLineNo">1299</span>    if (!running.get()) throw new StoppedRpcClientException();<a name="line.1299"></a>
+<span class="sourceLineNo">1300</span>    Connection connection;<a name="line.1300"></a>
+<span class="sourceLineNo">1301</span>    ConnectionId remoteId =<a name="line.1301"></a>
+<span class="sourceLineNo">1302</span>      new ConnectionId(ticket, call.md.getService().getName(), addr);<a name="line.1302"></a>
+<span class="sourceLineNo">1303</span>    synchronized (connections) {<a name="line.1303"></a>
+<span class="sourceLineNo">1304</span>      connection = connections.get(remoteId);<a name="line.1304"></a>
+<span class="sourceLineNo">1305</span>      if (connection == null) {<a name="line.1305"></a>
+<span class="sourceLineNo">1306</span>        connection = createConnection(remoteId, this.codec, this.compressor);<a name="line.1306"></a>
+<span class="sourceLineNo">1307</span>        connections.put(remoteId, connection);<a name="line.1307"></a>
+<span class="sourceLineNo">1308</span>      }<a name="line.1308"></a>
+<span class="sourceLineNo">1309</span>    }<a name="line.1309"></a>
+<span class="sourceLineNo">1310</span><a name="line.1310"></a>
+<span class="sourceLineNo">1311</span>    return connection;<a name="line.1311"></a>
+<span class="sourceLineNo">1312</span>  }<a name="line.1312"></a>
+<span class="sourceLineNo">1313</span>}<a name="line.1313"></a>
 
 
 

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/e5c3dcd1/devapidocs/src-html/org/apache/hadoop/hbase/ipc/RpcClientImpl.Connection.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/ipc/RpcClientImpl.Connection.html b/devapidocs/src-html/org/apache/hadoop/hbase/ipc/RpcClientImpl.Connection.html
index 03ccec3..298a8bd 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/ipc/RpcClientImpl.Connection.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/ipc/RpcClientImpl.Connection.html
@@ -27,88 +27,88 @@
 <span class="sourceLineNo">019</span><a name="line.19"></a>
 <span class="sourceLineNo">020</span>package org.apache.hadoop.hbase.ipc;<a name="line.20"></a>
 <span class="sourceLineNo">021</span><a name="line.21"></a>
-<span class="sourceLineNo">022</span>import com.google.common.annotations.VisibleForTesting;<a name="line.22"></a>
-<span class="sourceLineNo">023</span>import com.google.protobuf.Descriptors.MethodDescriptor;<a name="line.23"></a>
-<span class="sourceLineNo">024</span>import com.google.protobuf.Message;<a name="line.24"></a>
-<span class="sourceLineNo">025</span>import com.google.protobuf.Message.Builder;<a name="line.25"></a>
-<span class="sourceLineNo">026</span>import com.google.protobuf.RpcCallback;<a name="line.26"></a>
-<span class="sourceLineNo">027</span><a name="line.27"></a>
-<span class="sourceLineNo">028</span>import org.apache.commons.logging.Log;<a name="line.28"></a>
-<span class="sourceLineNo">029</span>import org.apache.commons.logging.LogFactory;<a name="line.29"></a>
-<span class="sourceLineNo">030</span>import org.apache.hadoop.conf.Configuration;<a name="line.30"></a>
-<span class="sourceLineNo">031</span>import org.apache.hadoop.hbase.CellScanner;<a name="line.31"></a>
-<span class="sourceLineNo">032</span>import org.apache.hadoop.hbase.DoNotRetryIOException;<a name="line.32"></a>
-<span class="sourceLineNo">033</span>import org.apache.hadoop.hbase.HConstants;<a name="line.33"></a>
-<span class="sourceLineNo">034</span>import org.apache.hadoop.hbase.ServerName;<a name="line.34"></a>
-<span class="sourceLineNo">035</span>import org.apache.hadoop.hbase.classification.InterfaceAudience;<a name="line.35"></a>
-<span class="sourceLineNo">036</span>import org.apache.hadoop.hbase.client.MetricsConnection;<a name="line.36"></a>
-<span class="sourceLineNo">037</span>import org.apache.hadoop.hbase.codec.Codec;<a name="line.37"></a>
-<span class="sourceLineNo">038</span>import org.apache.hadoop.hbase.exceptions.ConnectionClosingException;<a name="line.38"></a>
-<span class="sourceLineNo">039</span>import org.apache.hadoop.hbase.protobuf.ProtobufUtil;<a name="line.39"></a>
-<span class="sourceLineNo">040</span>import org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos;<a name="line.40"></a>
-<span class="sourceLineNo">041</span>import org.apache.hadoop.hbase.protobuf.generated.RPCProtos.CellBlockMeta;<a name="line.41"></a>
-<span class="sourceLineNo">042</span>import org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader;<a name="line.42"></a>
-<span class="sourceLineNo">043</span>import org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ExceptionResponse;<a name="line.43"></a>
-<span class="sourceLineNo">044</span>import org.apache.hadoop.hbase.protobuf.generated.RPCProtos.RequestHeader;<a name="line.44"></a>
-<span class="sourceLineNo">045</span>import org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ResponseHeader;<a name="line.45"></a>
-<span class="sourceLineNo">046</span>import org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation;<a name="line.46"></a>
-<span class="sourceLineNo">047</span>import org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfo;<a name="line.47"></a>
-<span class="sourceLineNo">048</span>import org.apache.hadoop.hbase.security.AuthMethod;<a name="line.48"></a>
-<span class="sourceLineNo">049</span>import org.apache.hadoop.hbase.security.HBaseSaslRpcClient;<a name="line.49"></a>
-<span class="sourceLineNo">050</span>import org.apache.hadoop.hbase.security.SaslUtil.QualityOfProtection;<a name="line.50"></a>
-<span class="sourceLineNo">051</span>import org.apache.hadoop.hbase.security.SecurityInfo;<a name="line.51"></a>
-<span class="sourceLineNo">052</span>import org.apache.hadoop.hbase.security.User;<a name="line.52"></a>
-<span class="sourceLineNo">053</span>import org.apache.hadoop.hbase.security.UserProvider;<a name="line.53"></a>
-<span class="sourceLineNo">054</span>import org.apache.hadoop.hbase.security.token.AuthenticationTokenSelector;<a name="line.54"></a>
-<span class="sourceLineNo">055</span>import org.apache.hadoop.hbase.util.EnvironmentEdgeManager;<a name="line.55"></a>
-<span class="sourceLineNo">056</span>import org.apache.hadoop.hbase.util.ExceptionUtil;<a name="line.56"></a>
-<span class="sourceLineNo">057</span>import org.apache.hadoop.hbase.util.Pair;<a name="line.57"></a>
-<span class="sourceLineNo">058</span>import org.apache.hadoop.hbase.util.PoolMap;<a name="line.58"></a>
-<span class="sourceLineNo">059</span>import org.apache.hadoop.io.IOUtils;<a name="line.59"></a>
-<span class="sourceLineNo">060</span>import org.apache.hadoop.io.Text;<a name="line.60"></a>
-<span class="sourceLineNo">061</span>import org.apache.hadoop.io.compress.CompressionCodec;<a name="line.61"></a>
-<span class="sourceLineNo">062</span>import org.apache.hadoop.ipc.RemoteException;<a name="line.62"></a>
-<span class="sourceLineNo">063</span>import org.apache.hadoop.net.NetUtils;<a name="line.63"></a>
-<span class="sourceLineNo">064</span>import org.apache.hadoop.security.SecurityUtil;<a name="line.64"></a>
-<span class="sourceLineNo">065</span>import org.apache.hadoop.security.UserGroupInformation;<a name="line.65"></a>
-<span class="sourceLineNo">066</span>import org.apache.hadoop.security.token.Token;<a name="line.66"></a>
-<span class="sourceLineNo">067</span>import org.apache.hadoop.security.token.TokenIdentifier;<a name="line.67"></a>
-<span class="sourceLineNo">068</span>import org.apache.hadoop.security.token.TokenSelector;<a name="line.68"></a>
-<span class="sourceLineNo">069</span>import org.apache.htrace.Span;<a name="line.69"></a>
-<span class="sourceLineNo">070</span>import org.apache.htrace.Trace;<a name="line.70"></a>
-<span class="sourceLineNo">071</span>import org.apache.htrace.TraceScope;<a name="line.71"></a>
-<span class="sourceLineNo">072</span><a name="line.72"></a>
-<span class="sourceLineNo">073</span>import javax.net.SocketFactory;<a name="line.73"></a>
-<span class="sourceLineNo">074</span>import javax.security.sasl.SaslException;<a name="line.74"></a>
-<span class="sourceLineNo">075</span>import java.io.BufferedInputStream;<a name="line.75"></a>
-<span class="sourceLineNo">076</span>import java.io.BufferedOutputStream;<a name="line.76"></a>
-<span class="sourceLineNo">077</span>import java.io.Closeable;<a name="line.77"></a>
-<span class="sourceLineNo">078</span>import java.io.DataInputStream;<a name="line.78"></a>
-<span class="sourceLineNo">079</span>import java.io.DataOutputStream;<a name="line.79"></a>
-<span class="sourceLineNo">080</span>import java.io.IOException;<a name="line.80"></a>
-<span class="sourceLineNo">081</span>import java.io.InputStream;<a name="line.81"></a>
-<span class="sourceLineNo">082</span>import java.io.InterruptedIOException;<a name="line.82"></a>
-<span class="sourceLineNo">083</span>import java.io.OutputStream;<a name="line.83"></a>
-<span class="sourceLineNo">084</span>import java.net.ConnectException;<a name="line.84"></a>
-<span class="sourceLineNo">085</span>import java.net.InetSocketAddress;<a name="line.85"></a>
-<span class="sourceLineNo">086</span>import java.net.Socket;<a name="line.86"></a>
-<span class="sourceLineNo">087</span>import java.net.SocketAddress;<a name="line.87"></a>
-<span class="sourceLineNo">088</span>import java.net.SocketTimeoutException;<a name="line.88"></a>
-<span class="sourceLineNo">089</span>import java.net.UnknownHostException;<a name="line.89"></a>
-<span class="sourceLineNo">090</span>import java.nio.ByteBuffer;<a name="line.90"></a>
-<span class="sourceLineNo">091</span>import java.security.PrivilegedExceptionAction;<a name="line.91"></a>
-<span class="sourceLineNo">092</span>import java.util.HashMap;<a name="line.92"></a>
-<span class="sourceLineNo">093</span>import java.util.HashSet;<a name="line.93"></a>
-<span class="sourceLineNo">094</span>import java.util.Iterator;<a name="line.94"></a>
-<span class="sourceLineNo">095</span>import java.util.Map;<a name="line.95"></a>
-<span class="sourceLineNo">096</span>import java.util.Map.Entry;<a name="line.96"></a>
-<span class="sourceLineNo">097</span>import java.util.Random;<a name="line.97"></a>
-<span class="sourceLineNo">098</span>import java.util.Set;<a name="line.98"></a>
-<span class="sourceLineNo">099</span>import java.util.concurrent.ArrayBlockingQueue;<a name="line.99"></a>
-<span class="sourceLineNo">100</span>import java.util.concurrent.BlockingQueue;<a name="line.100"></a>
-<span class="sourceLineNo">101</span>import java.util.concurrent.ConcurrentSkipListMap;<a name="line.101"></a>
-<span class="sourceLineNo">102</span>import java.util.concurrent.atomic.AtomicBoolean;<a name="line.102"></a>
-<span class="sourceLineNo">103</span>import java.util.concurrent.atomic.AtomicInteger;<a name="line.103"></a>
+<span class="sourceLineNo">022</span>import java.io.BufferedInputStream;<a name="line.22"></a>
+<span class="sourceLineNo">023</span>import java.io.BufferedOutputStream;<a name="line.23"></a>
+<span class="sourceLineNo">024</span>import java.io.Closeable;<a name="line.24"></a>
+<span class="sourceLineNo">025</span>import java.io.DataInputStream;<a name="line.25"></a>
+<span class="sourceLineNo">026</span>import java.io.DataOutputStream;<a name="line.26"></a>
+<span class="sourceLineNo">027</span>import java.io.IOException;<a name="line.27"></a>
+<span class="sourceLineNo">028</span>import java.io.InputStream;<a name="line.28"></a>
+<span class="sourceLineNo">029</span>import java.io.InterruptedIOException;<a name="line.29"></a>
+<span class="sourceLineNo">030</span>import java.io.OutputStream;<a name="line.30"></a>
+<span class="sourceLineNo">031</span>import java.net.InetSocketAddress;<a name="line.31"></a>
+<span class="sourceLineNo">032</span>import java.net.Socket;<a name="line.32"></a>
+<span class="sourceLineNo">033</span>import java.net.SocketAddress;<a name="line.33"></a>
+<span class="sourceLineNo">034</span>import java.net.SocketTimeoutException;<a name="line.34"></a>
+<span class="sourceLineNo">035</span>import java.net.UnknownHostException;<a name="line.35"></a>
+<span class="sourceLineNo">036</span>import java.nio.ByteBuffer;<a name="line.36"></a>
+<span class="sourceLineNo">037</span>import java.security.PrivilegedExceptionAction;<a name="line.37"></a>
+<span class="sourceLineNo">038</span>import java.util.HashMap;<a name="line.38"></a>
+<span class="sourceLineNo">039</span>import java.util.HashSet;<a name="line.39"></a>
+<span class="sourceLineNo">040</span>import java.util.Iterator;<a name="line.40"></a>
+<span class="sourceLineNo">041</span>import java.util.Map;<a name="line.41"></a>
+<span class="sourceLineNo">042</span>import java.util.Map.Entry;<a name="line.42"></a>
+<span class="sourceLineNo">043</span>import java.util.Random;<a name="line.43"></a>
+<span class="sourceLineNo">044</span>import java.util.Set;<a name="line.44"></a>
+<span class="sourceLineNo">045</span>import java.util.concurrent.ArrayBlockingQueue;<a name="line.45"></a>
+<span class="sourceLineNo">046</span>import java.util.concurrent.BlockingQueue;<a name="line.46"></a>
+<span class="sourceLineNo">047</span>import java.util.concurrent.ConcurrentSkipListMap;<a name="line.47"></a>
+<span class="sourceLineNo">048</span>import java.util.concurrent.atomic.AtomicBoolean;<a name="line.48"></a>
+<span class="sourceLineNo">049</span>import java.util.concurrent.atomic.AtomicInteger;<a name="line.49"></a>
+<span class="sourceLineNo">050</span><a name="line.50"></a>
+<span class="sourceLineNo">051</span>import javax.net.SocketFactory;<a name="line.51"></a>
+<span class="sourceLineNo">052</span>import javax.security.sasl.SaslException;<a name="line.52"></a>
+<span class="sourceLineNo">053</span><a name="line.53"></a>
+<span class="sourceLineNo">054</span>import org.apache.commons.logging.Log;<a name="line.54"></a>
+<span class="sourceLineNo">055</span>import org.apache.commons.logging.LogFactory;<a name="line.55"></a>
+<span class="sourceLineNo">056</span>import org.apache.hadoop.conf.Configuration;<a name="line.56"></a>
+<span class="sourceLineNo">057</span>import org.apache.hadoop.hbase.CellScanner;<a name="line.57"></a>
+<span class="sourceLineNo">058</span>import org.apache.hadoop.hbase.DoNotRetryIOException;<a name="line.58"></a>
+<span class="sourceLineNo">059</span>import org.apache.hadoop.hbase.HConstants;<a name="line.59"></a>
+<span class="sourceLineNo">060</span>import org.apache.hadoop.hbase.ServerName;<a name="line.60"></a>
+<span class="sourceLineNo">061</span>import org.apache.hadoop.hbase.classification.InterfaceAudience;<a name="line.61"></a>
+<span class="sourceLineNo">062</span>import org.apache.hadoop.hbase.client.MetricsConnection;<a name="line.62"></a>
+<span class="sourceLineNo">063</span>import org.apache.hadoop.hbase.codec.Codec;<a name="line.63"></a>
+<span class="sourceLineNo">064</span>import org.apache.hadoop.hbase.exceptions.ConnectionClosingException;<a name="line.64"></a>
+<span class="sourceLineNo">065</span>import org.apache.hadoop.hbase.protobuf.ProtobufUtil;<a name="line.65"></a>
+<span class="sourceLineNo">066</span>import org.apache.hadoop.hbase.protobuf.generated.AuthenticationProtos;<a name="line.66"></a>
+<span class="sourceLineNo">067</span>import org.apache.hadoop.hbase.protobuf.generated.RPCProtos.CellBlockMeta;<a name="line.67"></a>
+<span class="sourceLineNo">068</span>import org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ConnectionHeader;<a name="line.68"></a>
+<span class="sourceLineNo">069</span>import org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ExceptionResponse;<a name="line.69"></a>
+<span class="sourceLineNo">070</span>import org.apache.hadoop.hbase.protobuf.generated.RPCProtos.RequestHeader;<a name="line.70"></a>
+<span class="sourceLineNo">071</span>import org.apache.hadoop.hbase.protobuf.generated.RPCProtos.ResponseHeader;<a name="line.71"></a>
+<span class="sourceLineNo">072</span>import org.apache.hadoop.hbase.protobuf.generated.RPCProtos.UserInformation;<a name="line.72"></a>
+<span class="sourceLineNo">073</span>import org.apache.hadoop.hbase.protobuf.generated.TracingProtos.RPCTInfo;<a name="line.73"></a>
+<span class="sourceLineNo">074</span>import org.apache.hadoop.hbase.security.AuthMethod;<a name="line.74"></a>
+<span class="sourceLineNo">075</span>import org.apache.hadoop.hbase.security.HBaseSaslRpcClient;<a name="line.75"></a>
+<span class="sourceLineNo">076</span>import org.apache.hadoop.hbase.security.SaslUtil.QualityOfProtection;<a name="line.76"></a>
+<span class="sourceLineNo">077</span>import org.apache.hadoop.hbase.security.SecurityInfo;<a name="line.77"></a>
+<span class="sourceLineNo">078</span>import org.apache.hadoop.hbase.security.User;<a name="line.78"></a>
+<span class="sourceLineNo">079</span>import org.apache.hadoop.hbase.security.UserProvider;<a name="line.79"></a>
+<span class="sourceLineNo">080</span>import org.apache.hadoop.hbase.security.token.AuthenticationTokenSelector;<a name="line.80"></a>
+<span class="sourceLineNo">081</span>import org.apache.hadoop.hbase.util.EnvironmentEdgeManager;<a name="line.81"></a>
+<span class="sourceLineNo">082</span>import org.apache.hadoop.hbase.util.ExceptionUtil;<a name="line.82"></a>
+<span class="sourceLineNo">083</span>import org.apache.hadoop.hbase.util.Pair;<a name="line.83"></a>
+<span class="sourceLineNo">084</span>import org.apache.hadoop.hbase.util.PoolMap;<a name="line.84"></a>
+<span class="sourceLineNo">085</span>import org.apache.hadoop.io.IOUtils;<a name="line.85"></a>
+<span class="sourceLineNo">086</span>import org.apache.hadoop.io.Text;<a name="line.86"></a>
+<span class="sourceLineNo">087</span>import org.apache.hadoop.io.compress.CompressionCodec;<a name="line.87"></a>
+<span class="sourceLineNo">088</span>import org.apache.hadoop.ipc.RemoteException;<a name="line.88"></a>
+<span class="sourceLineNo">089</span>import org.apache.hadoop.net.NetUtils;<a name="line.89"></a>
+<span class="sourceLineNo">090</span>import org.apache.hadoop.security.SecurityUtil;<a name="line.90"></a>
+<span class="sourceLineNo">091</span>import org.apache.hadoop.security.UserGroupInformation;<a name="line.91"></a>
+<span class="sourceLineNo">092</span>import org.apache.hadoop.security.token.Token;<a name="line.92"></a>
+<span class="sourceLineNo">093</span>import org.apache.hadoop.security.token.TokenIdentifier;<a name="line.93"></a>
+<span class="sourceLineNo">094</span>import org.apache.hadoop.security.token.TokenSelector;<a name="line.94"></a>
+<span class="sourceLineNo">095</span>import org.apache.htrace.Span;<a name="line.95"></a>
+<span class="sourceLineNo">096</span>import org.apache.htrace.Trace;<a name="line.96"></a>
+<span class="sourceLineNo">097</span>import org.apache.htrace.TraceScope;<a name="line.97"></a>
+<span class="sourceLineNo">098</span><a name="line.98"></a>
+<span class="sourceLineNo">099</span>import com.google.common.annotations.VisibleForTesting;<a name="line.99"></a>
+<span class="sourceLineNo">100</span>import com.google.protobuf.Descriptors.MethodDescriptor;<a name="line.100"></a>
+<span class="sourceLineNo">101</span>import com.google.protobuf.Message;<a name="line.101"></a>
+<span class="sourceLineNo">102</span>import com.google.protobuf.Message.Builder;<a name="line.102"></a>
+<span class="sourceLineNo">103</span>import com.google.protobuf.RpcCallback;<a name="line.103"></a>
 <span class="sourceLineNo">104</span><a name="line.104"></a>
 <span class="sourceLineNo">105</span>/**<a name="line.105"></a>
 <span class="sourceLineNo">106</span> * Does RPC against a cluster.  Manages connections per regionserver in the cluster.<a name="line.106"></a>
@@ -1275,80 +1275,50 @@
 <span class="sourceLineNo">1267</span><a name="line.1267"></a>
 <span class="sourceLineNo">1268</span><a name="line.1268"></a>
 <span class="sourceLineNo">1269</span>  /**<a name="line.1269"></a>
-<span class="sourceLineNo">1270</span>   * Take an IOException and the address we were trying to connect to<a name="line.1270"></a>
-<span class="sourceLineNo">1271</span>   * and return an IOException with the input exception as the cause.<a name="line.1271"></a>
-<span class="sourceLineNo">1272</span>   * The new exception provides the stack trace of the place where<a name="line.1272"></a>
-<span class="sourceLineNo">1273</span>   * the exception is thrown and some extra diagnostics information.<a name="line.1273"></a>
-<span class="sourceLineNo">1274</span>   * If the exception is ConnectException or SocketTimeoutException,<a name="line.1274"></a>
-<span class="sourceLineNo">1275</span>   * return a new one of the same type; Otherwise return an IOException.<a name="line.1275"></a>
-<span class="sourceLineNo">1276</span>   *<a name="line.1276"></a>
-<span class="sourceLineNo">1277</span>   * @param addr target address<a name="line.1277"></a>
-<span class="sourceLineNo">1278</span>   * @param exception the relevant exception<a name="line.1278"></a>
-<span class="sourceLineNo">1279</span>   * @return an exception to throw<a name="line.1279"></a>
-<span class="sourceLineNo">1280</span>   */<a name="line.1280"></a>
-<span class="sourceLineNo">1281</span>  protected IOException wrapException(InetSocketAddress addr,<a name="line.1281"></a>
-<span class="sourceLineNo">1282</span>                                         IOException exception) {<a name="line.1282"></a>
-<span class="sourceLineNo">1283</span>    if (exception instanceof ConnectException) {<a name="line.1283"></a>
-<span class="sourceLineNo">1284</span>      //connection refused; include the host:port in the error<a name="line.1284"></a>
-<span class="sourceLineNo">1285</span>      return (ConnectException)new ConnectException(<a name="line.1285"></a>
-<span class="sourceLineNo">1286</span>         "Call to " + addr + " failed on connection exception: " + exception).initCause(exception);<a name="line.1286"></a>
-<span class="sourceLineNo">1287</span>    } else if (exception instanceof SocketTimeoutException) {<a name="line.1287"></a>
-<span class="sourceLineNo">1288</span>      return (SocketTimeoutException)new SocketTimeoutException("Call to " + addr +<a name="line.1288"></a>
-<span class="sourceLineNo">1289</span>        " failed because " + exception).initCause(exception);<a name="line.1289"></a>
-<span class="sourceLineNo">1290</span>    } else if (exception instanceof ConnectionClosingException){<a name="line.1290"></a>
-<span class="sourceLineNo">1291</span>      return (ConnectionClosingException) new ConnectionClosingException(<a name="line.1291"></a>
-<span class="sourceLineNo">1292</span>          "Call to " + addr + " failed on local exception: " + exception).initCause(exception);<a name="line.1292"></a>
-<span class="sourceLineNo">1293</span>    } else {<a name="line.1293"></a>
-<span class="sourceLineNo">1294</span>      return (IOException)new IOException("Call to " + addr + " failed on local exception: " +<a name="line.1294"></a>
-<span class="sourceLineNo">1295</span>        exception).initCause(exception);<a name="line.1295"></a>
-<span class="sourceLineNo">1296</span>    }<a name="line.1296"></a>
-<span class="sourceLineNo">1297</span>  }<a name="line.1297"></a>
-<span class="sourceLineNo">1298</span><a name="line.1298"></a>
-<span class="sourceLineNo">1299</span>  /**<a name="line.1299"></a>
-<span class="sourceLineNo">1300</span>   * Interrupt the connections to the given ip:port server. This should be called if the server<a name="line.1300"></a>
-<span class="sourceLineNo">1301</span>   *  is known as actually dead. This will not prevent current operation to be retried, and,<a name="line.1301"></a>
-<span class="sourceLineNo">1302</span>   *  depending on their own behavior, they may retry on the same server. This can be a feature,<a name="line.1302"></a>
-<span class="sourceLineNo">1303</span>   *  for example at startup. In any case, they're likely to get connection refused (if the<a name="line.1303"></a>
-<span class="sourceLineNo">1304</span>   *  process died) or no route to host: i.e. their next retries should be faster and with a<a name="line.1304"></a>
-<span class="sourceLineNo">1305</span>   *  safe exception.<a name="line.1305"></a>
-<span class="sourceLineNo">1306</span>   */<a name="line.1306"></a>
-<span class="sourceLineNo">1307</span>  @Override<a name="line.1307"></a>
-<span class="sourceLineNo">1308</span>  public void cancelConnections(ServerName sn) {<a name="line.1308"></a>
-<span class="sourceLineNo">1309</span>    synchronized (connections) {<a name="line.1309"></a>
-<span class="sourceLineNo">1310</span>      for (Connection connection : connections.values()) {<a name="line.1310"></a>
-<span class="sourceLineNo">1311</span>        if (connection.isAlive() &amp;&amp;<a name="line.1311"></a>
-<span class="sourceLineNo">1312</span>            connection.getRemoteAddress().getPort() == sn.getPort() &amp;&amp;<a name="line.1312"></a>
-<span class="sourceLineNo">1313</span>            connection.getRemoteAddress().getHostName().equals(sn.getHostname())) {<a name="line.1313"></a>
-<span class="sourceLineNo">1314</span>          LOG.info("The server on " + sn.toString() +<a name="line.1314"></a>
-<span class="sourceLineNo">1315</span>              " is dead - stopping the connection " + connection.remoteId);<a name="line.1315"></a>
-<span class="sourceLineNo">1316</span>          connection.interrupt(); // We're interrupting a Reader. It means we want it to finish.<a name="line.1316"></a>
-<span class="sourceLineNo">1317</span>                                  // This will close the connection as well.<a name="line.1317"></a>
-<span class="sourceLineNo">1318</span>        }<a name="line.1318"></a>
-<span class="sourceLineNo">1319</span>      }<a name="line.1319"></a>
-<span class="sourceLineNo">1320</span>    }<a name="line.1320"></a>
-<span class="sourceLineNo">1321</span>  }<a name="line.1321"></a>
-<span class="sourceLineNo">1322</span><a name="line.1322"></a>
-<span class="sourceLineNo">1323</span>  /**<a name="line.1323"></a>
-<span class="sourceLineNo">1324</span>   *  Get a connection from the pool, or create a new one and add it to the<a name="line.1324"></a>
-<span class="sourceLineNo">1325</span>   * pool. Connections to a given host/port are reused.<a name="line.1325"></a>
-<span class="sourceLineNo">1326</span>   */<a name="line.1326"></a>
-<span class="sourceLineNo">1327</span>  protected Connection getConnection(User ticket, Call call, InetSocketAddress addr)<a name="line.1327"></a>
-<span class="sourceLineNo">1328</span>  throws IOException {<a name="line.1328"></a>
-<span class="sourceLineNo">1329</span>    if (!running.get()) throw new StoppedRpcClientException();<a name="line.1329"></a>
-<span class="sourceLineNo">1330</span>    Connection connection;<a name="line.1330"></a>
-<span class="sourceLineNo">1331</span>    ConnectionId remoteId =<a name="line.1331"></a>
-<span class="sourceLineNo">1332</span>      new ConnectionId(ticket, call.md.getService().getName(), addr);<a name="line.1332"></a>
-<span class="sourceLineNo">1333</span>    synchronized (connections) {<a name="line.1333"></a>
-<span class="sourceLineNo">1334</span>      connection = connections.get(remoteId);<a name="line.1334"></a>
-<span class="sourceLineNo">1335</span>      if (connection == null) {<a name="line.1335"></a>
-<span class="sourceLineNo">1336</span>        connection = createConnection(remoteId, this.codec, this.compressor);<a name="line.1336"></a>
-<span class="sourceLineNo">1337</span>        connections.put(remoteId, connection);<a name="line.1337"></a>
-<span class="sourceLineNo">1338</span>      }<a name="line.1338"></a>
-<span class="sourceLineNo">1339</span>    }<a name="line.1339"></a>
-<span class="sourceLineNo">1340</span><a name="line.1340"></a>
-<span class="sourceLineNo">1341</span>    return connection;<a name="line.1341"></a>
-<span class="sourceLineNo">1342</span>  }<a name="line.1342"></a>
-<span class="sourceLineNo">1343</span>}<a name="line.1343"></a>
+<span class="sourceLineNo">1270</span>   * Interrupt the connections to the given ip:port server. This should be called if the server<a name="line.1270"></a>
+<span class="sourceLineNo">1271</span>   *  is known as actually dead. This will not prevent current operation to be retried, and,<a name="line.1271"></a>
+<span class="sourceLineNo">1272</span>   *  depending on their own behavior, they may retry on the same server. This can be a feature,<a name="line.1272"></a>
+<span class="sourceLineNo">1273</span>   *  for example at startup. In any case, they're likely to get connection refused (if the<a name="line.1273"></a>
+<span class="sourceLineNo">1274</span>   *  process died) or no route to host: i.e. their next retries should be faster and with a<a name="line.1274"></a>
+<span class="sourceLineNo">1275</span>   *  safe exception.<a name="line.1275"></a>
+<span class="sourceLineNo">1276</span>   */<a name="line.1276"></a>
+<span class="sourceLineNo">1277</span>  @Override<a name="line.1277"></a>
+<span class="sourceLineNo">1278</span>  public void cancelConnections(ServerName sn) {<a name="line.1278"></a>
+<span class="sourceLineNo">1279</span>    synchronized (connections) {<a name="line.1279"></a>
+<span class="sourceLineNo">1280</span>      for (Connection connection : connections.values()) {<a name="line.1280"></a>
+<span class="sourceLineNo">1281</span>        if (connection.isAlive() &amp;&amp;<a name="line.1281"></a>
+<span class="sourceLineNo">1282</span>            connection.getRemoteAddress().getPort() == sn.getPort() &amp;&amp;<a name="line.1282"></a>
+<span class="sourceLineNo">1283</span>            connection.getRemoteAddress().getHostName().equals(sn.getHostname())) {<a name="line.1283"></a>
+<span class="sourceLineNo">1284</span>          LOG.info("The server on " + sn.toString() +<a name="line.1284"></a>
+<span class="sourceLineNo">1285</span>              " is dead - stopping the connection " + connection.remoteId);<a name="line.1285"></a>
+<span class="sourceLineNo">1286</span>          connection.interrupt(); // We're interrupting a Reader. It means we want it to finish.<a name="line.1286"></a>
+<span class="sourceLineNo">1287</span>                                  // This will close the connection as well.<a name="line.1287"></a>
+<span class="sourceLineNo">1288</span>        }<a name="line.1288"></a>
+<span class="sourceLineNo">1289</span>      }<a name="line.1289"></a>
+<span class="sourceLineNo">1290</span>    }<a name="line.1290"></a>
+<span class="sourceLineNo">1291</span>  }<a name="line.1291"></a>
+<span class="sourceLineNo">1292</span><a name="line.1292"></a>
+<span class="sourceLineNo">1293</span>  /**<a name="line.1293"></a>
+<span class="sourceLineNo">1294</span>   *  Get a connection from the pool, or create a new one and add it to the<a name="line.1294"></a>
+<span class="sourceLineNo">1295</span>   * pool. Connections to a given host/port are reused.<a name="line.1295"></a>
+<span class="sourceLineNo">1296</span>   */<a name="line.1296"></a>
+<span class="sourceLineNo">1297</span>  protected Connection getConnection(User ticket, Call call, InetSocketAddress addr)<a name="line.1297"></a>
+<span class="sourceLineNo">1298</span>  throws IOException {<a name="line.1298"></a>
+<span class="sourceLineNo">1299</span>    if (!running.get()) throw new StoppedRpcClientException();<a name="line.1299"></a>
+<span class="sourceLineNo">1300</span>    Connection connection;<a name="line.1300"></a>
+<span class="sourceLineNo">1301</span>    ConnectionId remoteId =<a name="line.1301"></a>
+<span class="sourceLineNo">1302</span>      new ConnectionId(ticket, call.md.getService().getName(), addr);<a name="line.1302"></a>
+<span class="sourceLineNo">1303</span>    synchronized (connections) {<a name="line.1303"></a>
+<span class="sourceLineNo">1304</span>      connection = connections.get(remoteId);<a name="line.1304"></a>
+<span class="sourceLineNo">1305</span>      if (connection == null) {<a name="line.1305"></a>
+<span class="sourceLineNo">1306</span>        connection = createConnection(remoteId, this.codec, this.compressor);<a name="line.1306"></a>
+<span class="sourceLineNo">1307</span>        connections.put(remoteId, connection);<a name="line.1307"></a>
+<span class="sourceLineNo">1308</span>      }<a name="line.1308"></a>
+<span class="sourceLineNo">1309</span>    }<a name="line.1309"></a>
+<span class="sourceLineNo">1310</span><a name="line.1310"></a>
+<span class="sourceLineNo">1311</span>    return connection;<a name="line.1311"></a>
+<span class="sourceLineNo">1312</span>  }<a name="line.1312"></a>
+<span class="sourceLineNo">1313</span>}<a name="line.1313"></a>
 
 
 


Mime
View raw message