Closed nullishamy closed 1 year ago
What version of Redis are you using? Both for development and for production? Also, what version of Node Redis is listed in your package.json?
I suspect that this is a garden variety bug that happens when search returns no results. But if that suspicion is true, it could be in either Redis OM or Node Redis.
Also, I might be able to hop on a Zoom call and help troubleshoot this this afternoon (Eastern Time).
package.json
"redis": "^4.6.7",
"redis-om": "^0.4.0-beta.3",
Development redis (was not locked to a version in the compose so it just pulled latest at the time)
root@cebcd0cf25bb:/# /opt/redis-stack//bin/redis-server --version
Redis server v=6.2.12 sha=00000000:0 malloc=jemalloc-5.1.0 bits=64 build=4dbc2487343b0024
Production redis
root@f6301f93c7bb:/# /opt/redis-stack//bin/redis-server --version
Redis server v=6.2.13 sha=00000000:0 malloc=jemalloc-5.1.0 bits=64 build=9bc624588a181ec8
root@f6301f93c7bb:/#
Development runs the redis/redis-stack
image. Production runs redis/redis-stack-server
.
I was unfortunately unavailable yesterday, as I did not see your comment, but I would not have been available anyways because I live in GMT. Feel free to ask for more information if you need it, hope this helps!
Okay. All those versions should work. I did release 0.4.0 as a non-beta, but it's just 0.4.0-beta3 with a new name. ;) Lemme see if I can reproduce this.
Hey @leibale, do you think this could be a bug with Node Redis?
How much data are you querying against in prod? There are some gotchas in RediSearch when queries timeout. Default timeout is 500ms, I believe.
How much data are you querying against in prod? There are some gotchas in RediSearch when queries timeout. Default timeout is 500ms, I believe.
Oops, never saw this! Really shouldn't be too much data. We only cache for 3 minutes or so, so less than 5000 entries (with indexed searching of course). It could be a timeout but I doubt it. How would i go about verifying / disproving this theory?
Hm. Since opening and discussing this, the issue seems to have subsided. Not entirely sure what caused it initially or what fixed it, but it seems to be resolved. Closing.
The OM encounters an error when using the search functionality. The cause is unknown, and has only started happening recently, when we deployed to prod. We never encountered this during development. This problem only happens intermittently, and does not seem to follow any pattern etc.
Driver:
Schema:
Stack: