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

Deadlock when reading corrupted WAL file #13333

Open
morguldir opened this issue Jan 25, 2025 · 1 comment
Open

Deadlock when reading corrupted WAL file #13333

morguldir opened this issue Jan 25, 2025 · 1 comment

Comments

@morguldir
Copy link

Hi, recently I had some out of space issues, which (probably due to other bugs? maybe similar to #12467?) resulted in WAL corruption. Usually we just switch to pointintime or alternatively do a rocksdb repair, recently this started deadlocking however.

This was definitely a newer issue, since it's worked fine before, so i started bisecting and narrowed it down to #12643

We don't use WAL compression currently, so maybe that's why the patch doesn't work in our case?

Anyway reverting that patch makes it successfully read the uncorrupted parts of the WAL and put it into lost, and we're sailing smoothly again

When i run ./ldb dump_wal --db=$HOME/test/out-of-space/ --ignore_unknown_options --walfile=$HOME/test/out-of-space/2268638.log with the patch, it it gets to the same point as normally, but gets stuck spinning (100% cpu usage) at the end

gdb shows that it's happening inside https://github.com/facebook/rocksdb/blob/v9.9.3/db/log_reader.cc#L463

Let me know if there's any additional information i can provide

@zaidoon1
Copy link
Contributor

@hx235 thoughts on this?

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

2 participants