sijie opened a new pull request #1323: Improve "Failed to resolve network 
location" logging
   Descriptions of the changes in this PR:
   Rackware/Region-Aware is using a script based DNS resolver for resolving 
network topology. If the network topology script is not
   configured, the DNS resolver will return `null` as network location. It 
results in using `default-rack` as the network location
   and log "Failed to resolve network location" for each resolution.
   If a script file is not provided, throw a runtime exception. So the 
rackaware/region-aware placement policy can fallback to use
   the default-rack resolver. It would avoid the logging flood.
   Before this change, it will log following statement for each DNS resolution:
   "Failed to resolve network location".
   After this change, it will only log following statement during 
   INFO  - [Time-limited test:RackawareEnsemblePlacementPolicyImpl@313] - 
Failed to initialize DNS Resolver, 
used default subnet resolver.
   java.lang.RuntimeException: No network topology script is found when using 
script based DNS resolver.
        at org.apache.bookkeeper.client.BookKeeper.<init>(

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:

With regards,
Apache Git Services

Reply via email to