Technoboy- commented on a change in pull request #11171:
URL: https://github.com/apache/pulsar/pull/11171#discussion_r661338369



##########
File path: 
pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/impl/SimpleLoadManagerImpl.java
##########
@@ -317,29 +316,11 @@ private String getDynamicConfigurationFromStore(String 
path, String settingName,
     }
 
     private double getDynamicConfigurationDouble(String path, String 
settingName, double defaultValue) {
-        double result = defaultValue;
-        try {
-            String setting = this.getDynamicConfigurationFromStore(path, 
settingName, null);
-            if (setting != null) {
-                result = Double.parseDouble(setting);
-            }
-        } catch (Exception e) {
-            log.warn("Got exception when parsing configuration from path 
[{}]:", path, e);
-        }
-        return result;
+        return Double.parseDouble(getDynamicConfigurationFromStore(path, 
settingName, String.valueOf(defaultValue)));

Review comment:
       yes,I will rollback.




-- 
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]


Reply via email to