sijie 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_r132523343
########## File path: bookkeeper-server/src/main/java/org/apache/bookkeeper/client/RackawareEnsemblePlacementPolicy.java ########## @@ -66,6 +66,17 @@ protected RackawareEnsemblePlacementPolicy initialize(DNSToSwitchMapping dnsReso } return this; } + + public RackawareEnsemblePlacementPolicy withDefaultRack(String rack) { + if (rack == null) { Review comment: nit: guava checkNotNull? ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services