HDDS-865. GrpcXceiverService is added twice to GRPC netty server. Contributed by Xiaoyu Yao.
This commit is contained in:
parent
34b6fa7d6b
commit
f42b2dfdf1
|
@ -90,10 +90,6 @@ public final class XceiverServerGrpc implements XceiverServerSpi {
|
||||||
}
|
}
|
||||||
datanodeDetails.setPort(
|
datanodeDetails.setPort(
|
||||||
DatanodeDetails.newPort(DatanodeDetails.Port.Name.STANDALONE, port));
|
DatanodeDetails.newPort(DatanodeDetails.Port.Name.STANDALONE, port));
|
||||||
server = ((NettyServerBuilder) ServerBuilder.forPort(port))
|
|
||||||
.maxInboundMessageSize(OzoneConsts.OZONE_SCM_CHUNK_MAX_SIZE)
|
|
||||||
.addService(new GrpcXceiverService(dispatcher))
|
|
||||||
.build();
|
|
||||||
NettyServerBuilder nettyServerBuilder =
|
NettyServerBuilder nettyServerBuilder =
|
||||||
((NettyServerBuilder) ServerBuilder.forPort(port))
|
((NettyServerBuilder) ServerBuilder.forPort(port))
|
||||||
.maxInboundMessageSize(OzoneConsts.OZONE_SCM_CHUNK_MAX_SIZE)
|
.maxInboundMessageSize(OzoneConsts.OZONE_SCM_CHUNK_MAX_SIZE)
|
||||||
|
|
Loading…
Reference in New Issue