Sentinel icon indicating copy to clipboard operation
Sentinel copied to clipboard

problem about the qps of paramFlowRule

Open hosaos opened this issue 7 years ago • 0 comments

Issue Description

Type: bug report or feature request

Describe what happened (or what feature you want)

@SentinelResource(value = "syncWyOrder", blockHandler = "handleWyOrderFlowException", blockHandlerClass = {SentinelExceptionUtil.class}) public WyOrderResult apiExecute(String sessionKey, Map<String, String> paramMap, String requestUrl) { }

thats my code to test param-flow-rule control,it was called by methtod queryOrderList ,when i do not apply any rules in dashboard, i can see the qps of this resource("syncWyOrder") on dashboard normally,the qps is the same as the method queryOrderList image

but when i apply the paramFlowControl rules to this resource,the qps of this resource go to 0,and the paramFlowControl does not works (apply flow control to this resource works fine and i can see the qps on the dashboard),you can see in the picture,the qps of syncWyOrder is 0

image

qps is different and is always 0,also i want to know why my resource is under queryOrderList,it should be under sentinel_default_context ? in my another program,when i use @SentinelResource annotation to specify a resource ,the resource is shown under sentinel_default_context,and in this situation the param flow rule control works well image

Describe what you expected to happen

i can see the qps and paramFlowControl works

How to reproduce it (as minimally and precisely as possible)

Tell us your environment

Anything else we need to know?

hosaos avatar Aug 13 '19 07:08 hosaos