EnricoMi commented on code in PR #1738:
URL: 
https://github.com/apache/incubator-uniffle/pull/1738#discussion_r1628983158


##########
client/src/main/java/org/apache/uniffle/client/impl/ShuffleWriteClientImpl.java:
##########
@@ -984,11 +995,25 @@ public void unregisterShuffle(String appId, int 
shuffleId) {
                   ShuffleServerClientFactory.getInstance()
                       .getShuffleServerClient(clientType, shuffleServerInfo, 
rssConf);
               RssUnregisterShuffleResponse response = 
client.unregisterShuffle(request);
-              if (response.getStatusCode() != StatusCode.SUCCESS) {
-                LOG.warn("Failed to unregister shuffle to " + 
shuffleServerInfo);
+              if (response.getStatusCode() == StatusCode.SUCCESS) {
+                LOG.info("Successfully unregistered shuffle from {}", 
shuffleServerInfo);
+              } else {
+                LOG.warn("Failed to unregister shuffle from {}", 
shuffleServerInfo);
               }
             } catch (Exception e) {
-              LOG.warn("Error happened when unregistering to " + 
shuffleServerInfo, e);
+              if (e.getCause() != null && e.getCause() instanceof 
InterruptedException) {
+                // InterruptedException indicates timeout, give some advice

Review Comment:
   I could move detecting `ExecutorService.invokeAll` timeouts into 
`ThreadUtils.executeTasks`: 8ded662f9505733c01de97d1b1949a3e242fba89



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