-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-23113 IPC Netty Optimization #679
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,6 +36,7 @@ | |
| import org.apache.hbase.thirdparty.io.netty.channel.ChannelHandler; | ||
| import org.apache.hbase.thirdparty.io.netty.channel.ChannelOption; | ||
| import org.apache.hbase.thirdparty.io.netty.channel.ChannelPipeline; | ||
| import org.apache.hbase.thirdparty.io.netty.channel.WriteBufferWaterMark; | ||
| import org.apache.hbase.thirdparty.io.netty.handler.codec.LengthFieldBasedFrameDecoder; | ||
| import org.apache.hbase.thirdparty.io.netty.handler.timeout.IdleStateHandler; | ||
| import org.apache.hbase.thirdparty.io.netty.util.ReferenceCountUtil; | ||
|
|
@@ -257,6 +258,7 @@ private void connect() { | |
| .option(ChannelOption.TCP_NODELAY, rpcClient.isTcpNoDelay()) | ||
| .option(ChannelOption.SO_KEEPALIVE, rpcClient.tcpKeepAlive) | ||
| .option(ChannelOption.CONNECT_TIMEOUT_MILLIS, rpcClient.connectTO) | ||
| .option(ChannelOption.WRITE_BUFFER_WATER_MARK, new WriteBufferWaterMark(rpcClient.bufferLowWatermark, rpcClient.bufferHighWatermark)) | ||
|
||
| .handler(new BufferCallBeforeInitHandler()).localAddress(rpcClient.localAddr) | ||
| .remoteAddress(remoteId.address).connect().addListener(new ChannelFutureListener() { | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is only used for NettyRpcClient so better put this into the NettyRpcClient?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah,I referred to other constant of RpcClient like SOCKET_TIMEOUT_WRITE so that I put this into RpcClient.I will put these constants into NettyRpcClient.