huaxiangsun commented on a change in pull request #3113:
URL: https://github.com/apache/hbase/pull/3113#discussion_r608243054



##########
File path: 
hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/RpcConnection.java
##########
@@ -89,7 +90,18 @@ protected RpcConnection(Configuration conf, HashedWheelTimer 
timeoutTimer, Conne
       MetricsConnection metrics) throws IOException {
     this.timeoutTimer = timeoutTimer;
     this.codec = codec;
-    this.compressor = compressor;
+    if (compressor != null) {
+      // Only enable compression for remote rpcs.
+      InetSocketAddress remoteAddr = 
Address.toSocketAddress(remoteId.getAddress());

Review comment:
       will do.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to