-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Update leader slot in poh recorder if we skipped it #3451
Conversation
Codecov Report
@@ Coverage Diff @@
## v0.12 #3451 +/- ##
=======================================
- Coverage 81.2% 81.1% -0.1%
=======================================
Files 132 132
Lines 20737 20748 +11
=======================================
+ Hits 16843 16844 +1
- Misses 3894 3904 +10 |
Codecov Report
@@ Coverage Diff @@
## v0.12 #3451 +/- ##
=======================================
- Coverage 81.2% 81.1% -0.1%
=======================================
Files 132 132
Lines 20737 20749 +12
=======================================
+ Hits 16843 16844 +1
- Misses 3894 3905 +11 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep this prevents the bug I was seeing earlier. Some kind of test would be super nice, please cherrypick to v0.12
Oh when I apply this to v0.12, I'm hitting this assert: solana/core/src/replay_stage.rs Line 290 in 3285cf8
STR:
|
@mvines , so it doesn't assert on master? It has a similar check there. |
On master without this patch I got
when I tried the STR at #3451 (comment) a couple times, wasn't 100% reproducible but I also didn't try too hard to reproduce. (But be sure to pick up #3456 or the STR will fail much earlier due to staking account setup failures.) On master with this patch I got the assert in the STR right away:
|
@mvines I just pushed an updated patch. It's getting a bit hacky now. Maybe if it works for v0.12, we can use as a short term solution. |
When I run it locally, I get this error the second time:
|
#3456 fixed that error, rebase :) |
oh cool |
It seems to work for me |
Ah, your latest patch works for me on master too. I still get |
cool. so we merge it for v12? |
yes please |
…s#3451) The use of fifo compaction in rocksdb is deprecated (as of v2.0). The current behavior emits a warning if fifo is set. This change removes "fifo" as an option, leaving "level" as the only valid value for --rocksdb-shred-compaction
…port of solana-labs#3451) (solana-labs#3464) Disallow --rocksdb-shred-compaction fifo in the validator (solana-labs#3451) The use of fifo compaction in rocksdb is deprecated (as of v2.0). The current behavior emits a warning if fifo is set. This change removes "fifo" as an option, leaving "level" as the only valid value for --rocksdb-shred-compaction (cherry picked from commit fddc554) Co-authored-by: steviez <[email protected]>
…s#3451) The use of fifo compaction in rocksdb is deprecated (as of v2.0). The current behavior emits a warning if fifo is set. This change removes "fifo" as an option, leaving "level" as the only valid value for --rocksdb-shred-compaction
Problem
In a single node setup with existing ledger, the leader skip its leader slot without voting. The Poh recorder doesn't know when the node should become the leader again.
Summary of Changes
Reset the poh recorder if the node is skipping its leader slot.