[BUG]Can't restore from backup
Describe the bug
Cannot restore data from dump.rdb file
To reproduce
- create a simple key
set str1 str1and executesavecommand to generate backup file dump.rdb - copy dump.rdb to ROR install directory in another node
- restart the second node
- execute
keysin second node and it returns empty record, butdbsizecommand returns 1 info keyspaceshows 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
Could you please tell your company and your scenarios?
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
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.
Describe the bug
Cannot restore data from dump.rdb file
To reproduce
- create a simple key
set str1 str1and executesavecommand to generate backup file dump.rdb- copy dump.rdb to ROR install directory in another node
- restart the second node
- execute
keysin second node and it returns empty record, butdbsizecommand returns 1info keyspaceshows there is 1 key got evictedExpected 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)