You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a project I'm working on we're using ioredis with redis streams and some custom lua scripts.
Locally and also on our CI, we've observed that there are NOSCRIPT errors and most times they occur in the same tests.
In a project I'm working on we're using ioredis with redis streams and some custom lua scripts.
Locally and also on our CI, we've observed that there are
NOSCRIPT
errors and most times they occur in the same tests.I've digged down into the issue and found out that ioredis doesn't queue the second command as it thinks the script is already initialized. The problematic line is here: https://github.com/luin/ioredis/blob/master/lib/pipeline.ts#L321
Most likely we only want to set the variable once we get a successful
exists
check back from redis.So we could move the assignment after the
load
promise: https://github.com/luin/ioredis/blob/master/lib/pipeline.ts#L341Reproduction:
Output:
The text was updated successfully, but these errors were encountered: