Skip to content

[BUG] ratelimiter plugin slidewindos and concurrent is error #3771

@moremind

Description

@moremind

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

2022-07-29 23:15:27 [parallel-1] INFO org.apache.shenyu.plugin.base.AbstractShenyuPlugin - rateLimiter selector success match , selector name :/http
2022-07-29 23:15:27 [parallel-1] INFO org.apache.shenyu.plugin.base.AbstractShenyuPlugin - rateLimiter rule success match , rule name :/http/post/hi
2022-07-29 23:16:25 [lettuce-nioEventLoop-7-1] ERROR org.apache.shenyu.plugin.ratelimiter.handler.ShenyuReactiveScriptExecutor - Redis execute exception: Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: ERR value is not an integer or out of range script: 48f0fefe93d66b9f97f70f566935d4672953851c, on @user_script:52.

image

Expected Behavior

rate limit is right

Steps To Reproduce

No response

Environment

ShenYu version(s):2.5.0

Debug logs

2022-07-29 23:15:27 [parallel-1] INFO  org.apache.shenyu.plugin.base.AbstractShenyuPlugin - rateLimiter selector success match , selector name :/http
2022-07-29 23:15:27 [parallel-1] INFO  org.apache.shenyu.plugin.base.AbstractShenyuPlugin - rateLimiter rule success match , rule name :/http/post/hi
2022-07-29 23:16:25 [lettuce-nioEventLoop-7-1] ERROR org.apache.shenyu.plugin.ratelimiter.handler.ShenyuReactiveScriptExecutor - Redis execute exception: Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: ERR value is not an integer or out of range script: 48f0fefe93d66b9f97f70f566935d4672953851c, on @user_script:52.

Anything else?

No response

Metadata

Metadata

Assignees

Labels

type: bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions