You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@helix.apache.org by GitBox <gi...@apache.org> on 2020/04/13 22:32:15 UTC
[GitHub] [helix] narendly commented on a change in pull request #950: Fix
failure of dropping instance in TestCrushAutoRebalanceNonRack
narendly commented on a change in pull request #950: Fix failure of dropping instance in TestCrushAutoRebalanceNonRack
URL: https://github.com/apache/helix/pull/950#discussion_r407758221
##########
File path: helix-core/src/main/java/org/apache/helix/manager/zk/ZKHelixAdmin.java
##########
@@ -235,9 +236,10 @@ public void dropInstance(String clusterName, InstanceConfig instanceConfig) {
instanceConfig.getInstanceName(), e.getCause().getMessage());
retryCnt++;
} else {
- logger.error("Failed to drop instance {} (not retryable).",
- instanceConfig.getInstanceName(), e.getCause());
- throw e;
+ String errorMessage = "Failed to drop instance: " + instanceConfig.getInstanceName()
+ + ". Retry times: " + retryCnt;
+ logger.error(errorMessage, retryCnt, e.getCause());
Review comment:
`logger.error(errorMessage, e);` should be good enough?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org