-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
lease: fix deadlock with Renew lease when the checkpointor is set #10492
Conversation
/cc @WIZARD-CXY can you take a look? |
will do |
Codecov Report
@@ Coverage Diff @@
## master #10492 +/- ##
==========================================
- Coverage 71.83% 71.6% -0.23%
==========================================
Files 392 392
Lines 36518 36520 +2
==========================================
- Hits 26231 26150 -81
- Misses 8464 8542 +78
- Partials 1823 1828 +5
Continue to review full report at Codecov.
|
ci passed. PTAL |
Signed-off-by: nolouch <[email protected]>
/cc @jpbetz |
lgtm. defer to @jpbetz |
PTAL @jpbetz |
Signed-off-by: nolouch [email protected]
There is a deadlock issue which block the write. when we renew a lease that have remaining TTL cause by the long TTL setting, it write
lease checkpointing
entry to raft and wait it apply, but apply this entry also need acquire the same lock which already acquired byrenew
, and then meet the deadlock until timeout.