You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@uniffle.apache.org by "EnricoMi (via GitHub)" <gi...@apache.org> on 2024/06/04 08:24:01 UTC
Re: [PR] [#1765] improvement(client): Improve shuffle unregister timeouts [incubator-uniffle]
EnricoMi commented on code in PR #1738:
URL: https://github.com/apache/incubator-uniffle/pull/1738#discussion_r1625577728
##########
client/src/main/java/org/apache/uniffle/client/impl/ShuffleWriteClientImpl.java:
##########
@@ -976,15 +1012,17 @@ 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);
+ LOG.warn("Error happened when unregistering from " + shuffleServerInfo, e);
Review Comment:
You are right, javadoc did not imply this works but it does, thanks!
--
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: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org