Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]Can't restore from backup #258

Closed
sam-hn opened this issue Feb 7, 2024 · 4 comments
Closed

[BUG]Can't restore from backup #258

sam-hn opened this issue Feb 7, 2024 · 4 comments

Comments

@sam-hn
Copy link

sam-hn commented Feb 7, 2024

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

@wenchaomeng
Copy link

Could you please tell your company and your scenarios?

@sam-hn
Copy link
Author

sam-hn commented Feb 7, 2024

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

@adzfolc
Copy link
Collaborator

adzfolc commented Feb 7, 2024

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.

@patpatbear
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants