dlg99 commented on a change in pull request #425: BOOKKEEPER-1105:
RackAwarePolicy: Failure to map node into rack may result in failure to add
other nodes.
URL: https://github.com/apache/bookkeeper/pull/425#discussion_r133094310
##########
File path:
bookkeeper-server/src/main/java/org/apache/bookkeeper/client/RackawareEnsemblePlacementPolicyImpl.java
##########
@@ -136,9 +208,11 @@ protected RackawareEnsemblePlacementPolicyImpl
initialize(DNSToSwitchMapping dns
int
maxWeightMultiple,
StatsLogger
statsLogger) {
this.statsLogger = statsLogger;
+ this.bookiesJoinedCounter = statsLogger == null ? null :
statsLogger.getOpStatsLogger(BookKeeperServerStats.BOOKIES_JOINED);
Review comment:
Unit tests pass null as logger. will update unit tests, disallow null.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services