-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Bank's call to account::squash() causes assert on testnet #3425
Comments
@sakridge , FYI |
hmmmm this assert implies that an account for fork wasn't unlocked...so there are still transactions running on an old frozen bank? |
@carllin that seems to be the case. |
So PohRecorder should clear its bank once you've voted on the next bank, which means no new transactions should be attempted to be played on that old bank because the reference changes here: https://github.com/solana-labs/solana/blob/master/core/src/banking_stage.rs#L368. It could be possible, however that the queue of transactions is so long that we're still attempting to process them by the time we try to freeze and squash this bank. |
So this check here makes sure we don't process transactions after we detect the bank has been cleared from PohRecorder: https://github.com/solana-labs/solana/blob/master/core/src/banking_stage.rs#L363. So for transactions to still be running, that must mean there is one ongoing iteration of this loop here: https://github.com/solana-labs/solana/blob/master/core/src/banking_stage.rs#L362, that isn't completed even after 32 slots have gone by. Ouch. |
it doesn't look like the transactions are pending...probably looks like the some accounts are not getting unlocked in certain condition, still looking to narrow down the issue |
#3447 i think covers this crash too |
I can cherry-pick it and try it on v12 |
still seeing the crash on tip which has #3447 merged |
@sambley, same here. It fixed another race for me though. |
Uploaded fix in #3458 |
Problem
The fullnode is crashing with the following assert
This has been observed on V0.12 but should apply to master branch as well.
This PR comments out the offending call in V0.12 for beacons release.
#3424
Proposed Solution
Reassess the crash on master branch. If it's a contained fix, pick it up to v0.12 and revert the change that's commenting out the call to squash.
The text was updated successfully, but these errors were encountered: