Properly handle default values for allowMaximumSizeToDivergeFromCoreSize#1435
Conversation
…ize when configuring properties using Archaius
| To give a bit more context: the default value for private static boolean getValueOnce(String propertyPrefix, HystrixThreadPoolKey key, String instanceProperty, boolean builderOverrideValue, boolean defaultValue) { return forBoolean() .add(propertyPrefix + ".threadpool." + key.name() + "." + instanceProperty, builderOverrideValue) .add(propertyPrefix + ".threadpool.default." + instanceProperty, defaultValue) .build() .get(); }will never try to read the value for A workaround for the current code is to either configure it programatically using |
| I just built a jar with this PR and deployed it into an environment with hystrix-1.5.8. It has a regression - when the property is set to false, the default maximum (10) is getting picked up. I'm reviewing the code to determine where that happens. |
| I am a bit late to the party, but I did run 1.5.9 against my test case and verified that it works as expected. Thanks for accepting it! 👍 |
| Thanks for the contribution! |
Properly handle default values for
allowMaximumSizeToDivergeFromCoreSizewhen configuring properties using Archaius.Fixes #1434