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] BGSAVE | Assertion Failed: rdb.cpp:1372 'ckeysExpired == db->expireSize()' is not true #868

Open
waska14 opened this issue Sep 30, 2024 · 4 comments

Comments

@waska14
Copy link

waska14 commented Sep 30, 2024

Because of this bug, BGSAVE failed (stuck) at 99.91% (current_fork_perc: 99.91). As a result, I can't take a backup and move to another server.

What should I do? What is the reason?
keydb-server.log

@keithchew
Copy link

Hi @waska14 have a read on this thread, hopefully you have a backup from an older version:

#743 (comment)

@waska14
Copy link
Author

waska14 commented Oct 3, 2024

Hi @keithchew .

Returned to Redis :) We don’t have time to deal with these kinds of issues in production, where there are over 30k requests per second.

Anyway, thanks. I saw that issue, but I was hoping it had been fixed by now.

@redneckdiver
Copy link

I just found out we're experiencing this in prod after 6.3.4 was pushed out with Rocky Linux patches. I'm probably going to revert everything to 6.2.2 in containers and then work out what to do with Redis instead. We have a lot of very important environments running as active-active across 2 datacenters.

@anadion
Copy link

anadion commented Dec 17, 2024

This bug is so painful in production. I can't restart server because I will lost data. I can't migrate to another version KeyDB (or Redis) because you cant add slave if BGSAVE doesn't work.
The only solution a could do is to dump and restore all keys to another server.

So if you on a same boat and you need to migrate your keys from server with broken BGSAVE you can use my python script.
It transfers keys with TTL (It uses commands SCAN, TTL, DUMP, RESTORE)
https://github.com/anadion/redis-keys-migrate-tool/

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