yu199195 commented on a change in pull request #2990:
URL: https://github.com/apache/incubator-shenyu/pull/2990#discussion_r821388899



##########
File path: 
shenyu-plugin/shenyu-plugin-hystrix/src/main/java/org/apache/shenyu/plugin/hystrix/handler/HystrixPluginDataHandler.java
##########
@@ -39,10 +41,17 @@
 
     @Override
     public void handlerRule(final RuleData ruleData) {
-        HystrixPropertiesFactory.reset();
         Optional.ofNullable(ruleData.getHandle()).ifPresent(rule -> {
             HystrixHandle hystrixHandle = 
GsonUtils.getInstance().fromJson(rule, HystrixHandle.class);
-            
CACHED_HANDLE.get().cachedHandle(CacheKeyUtils.INST.getKey(ruleData), 
hystrixHandle);
+            String key = CacheKeyUtils.INST.getKey(ruleData);
+            
Optional.ofNullable(CACHED_HANDLE.get().obtainHandle(key)).ifPresent(hystrixHandleCache
 -> {
+                if (hystrixHandleCache.getMaxConcurrentRequests() != 
hystrixHandle.getMaxConcurrentRequests()) {

Review comment:
       only MaxConcurrentRequests change, and reset?




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