RainYuY commented on code in PR #15594:
URL: https://github.com/apache/dubbo/pull/15594#discussion_r2250876518
##########
dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/retry/AbstractRetryTask.java:
##########
@@ -124,6 +124,9 @@ public void run(Timeout timeout) throws Exception {
logger.info(taskName + " : " + url);
}
try {
+ if (!registry.isAvailable()) {
+ throw new IllegalStateException("Registry is not available.");
Review Comment:
Please use log.error not exception. Because the Exception will be catched.
--
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]