huaxiangsun commented on a change in pull request #3113:
URL: https://github.com/apache/hbase/pull/3113#discussion_r608242892
##########
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) {
Review comment:
Checking if compressor is null is that it can avoid a dns resolution if
compressor is null (no compression is configured), which is the common use case.
--
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:
[email protected]