redis icon indicating copy to clipboard operation
redis copied to clipboard

Properly handle LOADING Redis is loading the dataset in memory errors

Open danog opened this issue 4 years ago • 3 comments

Hi,

It would be awesome if the lib could internally handle and avoid LOADING Redis is loading the dataset in memory errors, returned if the server has just started up :)

danog avatar Dec 31 '20 11:12 danog

How should it handle them?

kelunik avatar Dec 31 '20 11:12 kelunik

I assume connection could be retried automatically within a certain timeout; I did simply add a systemd service dependency to redis to fix the issue in my case, but still, it still kind of feels like a problem that can be abstracted away.

danog avatar Dec 31 '20 11:12 danog

There are many variables at play here that might need tuning, e.g. retry count, retry delay, etc. I think this should be solved with a decorator of another QueryExecutor.

kelunik avatar Jan 03 '21 20:01 kelunik