EnricoMi opened a new issue, #1713:
URL: https://github.com/apache/incubator-uniffle/issues/1713

   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   
   
   ### Search before asking
   
   - [X] I have searched in the 
[issues](https://github.com/apache/incubator-uniffle/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What would you like to be improved?
   
   Some async calls may not have finished when `ShuffleWriteClientImpl.close()` 
/ `RegisterHeartBeat.shutdown()` is called, which creates warnings in the log. 
This pollutes logs and makes tracing unrelated issues harder:
   
   ```
   WARN impl.ShuffleWriteClientImpl: Error happened when unregistering to 
ShuffleServerInfo{host[10.109.9.45], grpc port[19999]}
   io.grpc.StatusRuntimeException: CANCELLED: Thread interrupted
           at 
io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:268)
           at io.grpc.stub.ClientCalls.getUnchecked(ClientCalls.java:249)
           at io.grpc.stub.ClientCalls.blockingUnaryCall(ClientCalls.java:167)
           at 
org.apache.uniffle.proto.ShuffleServerGrpc$ShuffleServerBlockingStub.unregisterShuffleByAppId(ShuffleServerGrpc.java:772)
           at 
org.apache.uniffle.client.impl.grpc.ShuffleServerGrpcClient.doUnregisterShuffleByAppId(ShuffleServerGrpcClient.java:345)
           at 
org.apache.uniffle.client.impl.grpc.ShuffleServerGrpcClient.unregisterShuffleByAppId(ShuffleServerGrpcClient.java:352)
           at 
org.apache.uniffle.client.impl.ShuffleWriteClientImpl.lambda$unregisterShuffle$28(ShuffleWriteClientImpl.java:1020)
           at 
org.apache.uniffle.common.util.ThreadUtils.lambda$executeTasks$0(ThreadUtils.java:110)
           at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
           at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
           at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
           at java.base/java.lang.Thread.run(Unknown Source)
   Caused by: java.lang.InterruptedException
           at 
io.grpc.stub.ClientCalls$ThreadlessExecutor.throwIfInterrupted(ClientCalls.java:750)
           at 
io.grpc.stub.ClientCalls$ThreadlessExecutor.waitAndDrain(ClientCalls.java:718)
           at io.grpc.stub.ClientCalls.blockingUnaryCall(ClientCalls.java:159)
           ... 9 more
   ```
   
   ### How should we improve?
   
   Once `close` and `shutdown` has been called, ongoing async calls are 
expected to fail, so the log message should indicate this.
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!


-- 
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]

Reply via email to