lwclover commented on code in PR #4113:
URL: https://github.com/apache/rocketmq/pull/4113#discussion_r844565879
##########
namesrv/src/main/java/org/apache/rocketmq/namesrv/routeinfo/RouteInfoManager.java:
##########
@@ -195,11 +194,13 @@ public RegisterBrokerResult registerBroker(
}
}
}
- } finally {
+ } catch (Exception e) {
+ log.error("registerBroker Exception", e);
+ }finally {
this.lock.writeLock().unlock();
}
- } catch (Exception e) {
- log.error("registerBroker Exception", e);
+ } catch (InterruptedException e) {
+ log.error("registerBroker fail due to an InterruptedException");
Review Comment:
I think caused param will be better
--
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]