jerqi commented on code in PR #159:
URL: https://github.com/apache/incubator-uniffle/pull/159#discussion_r948595254
##########
internal-client/src/main/java/org/apache/uniffle/client/impl/grpc/ShuffleServerGrpcClient.java:
##########
@@ -290,10 +278,22 @@ public RssSendShuffleDataResponse
sendShuffleData(RssSendShuffleDataRequest requ
return response;
}
- private SendShuffleDataResponse doSendData(SendShuffleDataRequest
rpcRequest) {
+ private SendShuffleDataResponse doSendData(String appId, int size,
RssSendShuffleDataRequest request,
+ Map.Entry<Integer, Map<Integer,
List<ShuffleBlockInfo>>> stb,
+ List<ShuffleData> shuffleData) {
int retryNum = 0;
while (retryNum < maxRetryAttempts) {
try {
+ long requireId = requirePreAllocation(size, request.getRetryMax(),
request.getRetryIntervalMax());
Review Comment:
Could we reuse RetryUtils?
##########
internal-client/src/main/java/org/apache/uniffle/client/impl/grpc/ShuffleServerGrpcClient.java:
##########
@@ -109,7 +109,7 @@ public ShuffleServerGrpcClient(String host, int port, int
maxRetryAttempts, bool
blockingStub = ShuffleServerGrpc.newBlockingStub(channel);
}
- private ShuffleServerBlockingStub getBlockingStub() {
+ public ShuffleServerBlockingStub getBlockingStub() {
Review Comment:
Could we use `default access modifier`? It seems enough to use
`package-private` .
```
ShuffleServerBlockingStub getBlockingStub()
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]