-
Notifications
You must be signed in to change notification settings - Fork 7
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: bench_kv sticks #160
Comments
Weird. No deadlock detected and no unreasonable idle task.🤔 |
Error raised in log:
Not related, QwQ. |
New founds: A new round of vote began when stuck:
|
The deadlock locates in fn append()When batch leader appending the log, it first locks the RunKV/storage/src/raft_log_store/log.rs Lines 198 to 204 in 7925e66
And when log rotation is needed, it will locks the RunKV/storage/src/raft_log_store/log.rs Line 279 in 7925e66
fn read()When reading, RunKV/storage/src/raft_log_store/log.rs Lines 332 to 351 in 7925e66
|
bench_kv
sticks. Maybe caused by deadlock, incorrect wait condition or incorrect CAS operations.Can debug with:
RUSTFLAGS="--cfg tokio_unstable" RUNKV_METRICS=true RUST_BACKTRACE=1 cargo run --features console,deadlock --release --package runkv-bench --bin bench_kv -- --loop 1000
The text was updated successfully, but these errors were encountered: