question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Handle "LOADING Redis is loading the dataset in memory"

See original GitHub issue

Hi,

When a slave is first being connected to a master it needs to load the entire DB, which takes time. Any command that is send to that slave during this time will receive a LOADING Redis is loading the dataset in memory response.

I think we should handle this and retry the command (Maybe even to a different node within the same slot).

@luin thoughts?

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:2
  • Comments:20 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
shaharmorcommented, Feb 13, 2018

Hey @luin , I just encountered this issue again, and I think we should see how we can fix it.

0reactions
hktalentcommented, Dec 19, 2021

@shaharmor Mac OS:

rm -rf /usr/local/var/db/redis/*
brew services restart redis
redis-cli -n 4 FLUSHDB
Read more comments on GitHub >

github_iconTop Results From Across the Web

ERROR: LOADING Redis is loading the dataset in memory
In short, the error “LOADING Redis is loading the dataset in memory” occurs at Redis master startup or when the slave reconnects and...
Read more >
LOADING Redis is loading the dataset in memory (Redis
This really means Redis is still loading data. If Redis is running in --append-only mode, database file ( appendonly.aof ) will only get...
Read more >
Redis is loading the dataset in memory - python - Stack Overflow
Here I am handling the reconfiguration of the nodes. import redis # Initialize on system boot slave_node_1: redis.Redis = None slave_node_2: ...
Read more >
KeyDB Active Replica - LOADING Redis is loading the dataset ...
This results in errors like: LOADING Redis is loading the dataset in memory. The whole idea of this active replica setup is that...
Read more >
LOADING Redis is loading the dataset in memory - Drupal
Do you really have a setup with multiple redis nodes? If it's just one then it is more likely that you have a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found