massakam commented on code in PR #3356:
URL: https://github.com/apache/bookkeeper/pull/3356#discussion_r930666005
##########
bookkeeper-server/src/main/java/org/apache/bookkeeper/conf/ClientConfiguration.java:
##########
@@ -1288,6 +1289,33 @@ public ClientConfiguration
setEnsemblePlacementPolicySlowBookies(boolean enabled
return this;
}
+ /**
+ * Whether to enable BookieAddressResolver.
+ *
+ * @return flag to enable/disable BookieAddressResolver.
+ */
+ public boolean getEnableBookieAddressResolver() {
+ return getBoolean(ENABLE_BOOKIE_ADDRESS_RESOLVER, true);
+ }
+
+ /**
+ * Enable/Disable BookieAddressResolver.
+ *
+ * <p>
+ * If this flag is true, read bookie information from the metadata service
(e.g. ZooKeeper) to resolve the address
+ * from each bookie ID. If all bookie IDs in the cluster are
"address:port" or "hostname:port", you can set this
+ * flag to false to reduce requests to the metadata service.
+ * </p>
+ *
+ * @param enabled
+ * flag to enable/disable BookieAddressResolver.
+ * @return client configuration.
+ */
+ public ClientConfiguration setEnableBookieAddressResolver(boolean enabled)
{
Review Comment:
Renamed to "setBookieAddressResolverEnable**d**".
--
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]