Redis-On-Rocks icon indicating copy to clipboard operation
Redis-On-Rocks copied to clipboard

[BUG]Can't restore from backup

Open sam-hn opened this issue 1 year ago • 4 comments

Describe the bug

Cannot restore data from dump.rdb file

To reproduce

  1. create a simple key set str1 str1 and execute save command to generate backup file dump.rdb
  2. copy dump.rdb to ROR install directory in another node
  3. restart the second node
  4. execute keys in second node and it returns empty record, but dbsize command returns 1
  5. info keyspace shows there is 1 key got evicted

Expected behavior

The same data is restored in second node

Additional information

We are using ROR 1.2.2

sam-hn avatar Feb 07 '24 08:02 sam-hn

Could you please tell your company and your scenarios?

wenchaomeng avatar Feb 07 '24 08:02 wenchaomeng

We are from Honor in China and just doing some basic tests about backup/restore, let me know if you have a wechat group and we can talk free

sam-hn avatar Feb 07 '24 08:02 sam-hn

We are from Honor in China and just doing some basic tests about backup/restore, let me know if you have a wechat group and we can talk free

I may post wechat group QR code in Readme.md later, y can add my wechat now. And my wechat id is adzfolc.

adzfolc avatar Feb 07 '24 08:02 adzfolc

Describe the bug

Cannot restore data from dump.rdb file

To reproduce

  1. create a simple key set str1 str1 and execute save command to generate backup file dump.rdb
  2. copy dump.rdb to ROR install directory in another node
  3. restart the second node
  4. execute keys in second node and it returns empty record, but dbsize command returns 1
  5. info keyspace shows there is 1 key got evicted

Expected behavior

The same data is restored in second node

Additional information

We are using ROR 1.2.2

What you observed is the expected behavior for ROR:

  • ROR loads all keys from RDB as cold(evicted) keys
  • KEYS command only outputs hot keys (KEYS command is not fully supported by ROR , because it would require all keys in memory, but swapping all cold keys into memory would be costly and exceed memory limit)

patpatbear avatar Feb 08 '24 01:02 patpatbear