redis / ioredis

🚀 A robust, performance-focused, and full-featured Redis client for Node.js.
MIT License
14.31k stars 1.19k forks source link

Scanstream bug? #1836

Open yovanoc opened 10 months ago

yovanoc commented 10 months ago

I don't know if its a bug or not but if the same client perform 2 scanStream at the same time they will not gives all the keys. But creating a new client for each works good.

thanks in advance

bartoszhernas commented 10 months ago

I just had the same issue. Seems like SCAN needs to be done separately on each node. Example fix for scanning for BullMQ queues: https://github.com/taskforcesh/taskforce-connector/pull/82

It feels like this should be handled internally by ioredis.