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

fixes flakes in TestArchiveBlockChainSnapsDisabled #316

Merged
merged 3 commits into from
Oct 25, 2022

Conversation

darioush
Copy link
Collaborator

@darioush darioush commented Oct 24, 2022

tested by go test -count=100 -run=TestArchiveBlockChainSnapsDisabled ./core

closes: #245

If we don't synchronize on accept (leave it async) we can hit this line:

lastAcceptedBlock = bc.LastConsensusAcceptedBlock()

where LastAcceptedBlock differs from LastConsensusAcceptedBlock and the state for the lastAccepted would not be available (since Accept could be processing concurrently writes may not have made it to the DB).

@aaronbuchwald
Copy link
Collaborator

aaronbuchwald commented Oct 25, 2022

Could you add to the description how this fixes the issue and populate the tracking fields?

We should be able to call DrainAcceptorQueue after calling Accept on a sequence of blocks to ensure that they have been fully processed.

@darioush darioush added this to the subnet-evm@Future Release milestone Oct 25, 2022
@darioush darioush added the testing This primarly focuses on testing label Oct 25, 2022
Copy link
Collaborator

@aaronbuchwald aaronbuchwald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aaronbuchwald aaronbuchwald removed their assignment Oct 25, 2022
@aaronbuchwald aaronbuchwald merged commit eb9ac63 into master Oct 25, 2022
@aaronbuchwald aaronbuchwald deleted the TestStatefulPrecompiles branch October 25, 2022 16:53
arunraoshrap pushed a commit to neonmachine-shrapnel/subnet-evm that referenced this pull request Nov 8, 2022
ceyonur pushed a commit that referenced this pull request Sep 14, 2023
aaronbuchwald pushed a commit that referenced this pull request Sep 19, 2023
* Add SDK Router message handling (#316)

Co-authored-by: Stephen Buttolph <[email protected]>

* revert avago version bump

* Fix hanging requests after Shutdown (#326) (#859)

* Fix hanging requests after Shutdown (#326)

* fix requests hanging after shutdown

* fix build

---------

Signed-off-by: Stephen Buttolph <[email protected]>
Co-authored-by: Stephen Buttolph <[email protected]>

* Bump avago rc (#860)

* Update to 1.10.10-rc.2 (#328)

* update to avalanchego 1.10.10-rc.2

* nits

* nit

* add batchsize

* increase timeout dynamically

---------

Co-authored-by: Joshua Kim <[email protected]>

---------

---------
aaronbuchwald pushed a commit that referenced this pull request Sep 19, 2023
* Add SDK Router message handling (#316)

Co-authored-by: Stephen Buttolph <[email protected]>

* Fix hanging requests after Shutdown (#326)

* fix requests hanging after shutdown

* fix build

---------

Signed-off-by: Stephen Buttolph <[email protected]>
Co-authored-by: Stephen Buttolph <[email protected]>

* Update to 1.10.10-rc.2 (#328)

* update to avalanchego 1.10.10-rc.2

* nits

* nit

* Add P2P SDK Pull Gossip (#318)

* add batchsize

* sync changes

* Drop outbound gossip for non vdrs (#862)

* Drop outbound gossip requests for non-validators (#334)

* drop outbound gossip requests for non validators

* nit

* nit

* sync changes

---------

Co-authored-by: Joshua Kim <[email protected]>

---------

Co-authored-by: Joshua Kim <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing This primarly focuses on testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

flaky test TestArchiveBlockChain/TestStatefulPrecompiles
3 participants