Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 关于redis-scan操作带来的 Cursor must not be empty异常 #1128

Closed
yaoxiaojian-code opened this issue Oct 25, 2023 · 2 comments
Closed

Comments

@yaoxiaojian-code
Copy link

环境信息:

    1. 部署方式 编译wvp-pro + zlm都是编译部署
    1. 部署环境 centos

描述错误
关于scan操作导致的异常

截图
当前redis值设置操作存在一分钟过期时间
image

进行sacn操作
image
image

出现异常
image

补充描述
由于SCAN操作是基于游标的迭代操作,它需要进行多次迭代来获取所有匹配的键。当redis键过期的时候进行迭代操作会出现游标为空,然后在尝试继续迭代时触发此错误。

@yaoxiaojian-code yaoxiaojian-code changed the title BUG BUG-关于redis-scan操作带来的 Cursor must not be empty异常 Oct 25, 2023
@aidelingyu
Copy link

可以尝试把scan的操作去掉。本来循环全部的key就不被推荐。

@648540858
Copy link
Owner

这个后面新版优化下吧,尽量精确查找不使用scan

@648540858 648540858 changed the title BUG-关于redis-scan操作带来的 Cursor must not be empty异常 [BUG] 关于redis-scan操作带来的 Cursor must not be empty异常 Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants