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

pytest: check reading chunks from storage in block_sync_archival.py #6376

Merged
merged 3 commits into from
Mar 2, 2022

Conversation

mina86
Copy link
Contributor

@mina86 mina86 commented Mar 2, 2022

The ShardManager keeps cache of encoded chunks going back 1024 heights
which means that nodes which request partial chunks for a recent block
will be satisfied by data in the cache. This means that since only
a hundred blocks are generated in block_sync_archival.py test, the
code path where data is read from storage is never executed.

Extend the test such that it generates 1500 blocks to make sure that
both code paths are executed.

Issue: #6242

The ShardManager keeps cache of encoded chunks going back 1024 heights
which means that nodes which request partial chunks for a recent block
will be satisfied by data in the cache.  This means that since only
a hundred blocks are generated in block_sync_archival.py test, the
code path where data is read from storage is never executed.

Extend the test such that it generates 1500 blocks to make sure that
both code paths are executed.

Issue: #6242
pytest/tests/sanity/block_sync_archival.py Outdated Show resolved Hide resolved
pytest/tests/sanity/block_sync_archival.py Outdated Show resolved Hide resolved
@mina86 mina86 merged commit 434a94f into master Mar 2, 2022
@mina86 mina86 deleted the mpn-a branch March 2, 2022 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants