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

Eagerly receive records in sleepy tick producer #21832

Merged
merged 1 commit into from
Dec 14, 2021

Conversation

jstarry
Copy link
Member

@jstarry jstarry commented Dec 13, 2021

Problem

When the sleepy poh tick producer runs for tests, it doesn't process new Poh records while it sleeps. This causes some tests to get artificially delayed because they need to wait for the Poh recorder to confirm that each tx was recorded.

Summary of Changes

Move sleep duration to the record receiver timeout so that sleeps don't slow down new tx records

Fixes #

@jstarry
Copy link
Member Author

jstarry commented Dec 13, 2021

This knocked 5s off the test_rpc_subscriptions test on my local machine

@jstarry jstarry requested a review from ryoqun December 13, 2021 16:00
@jstarry jstarry force-pushed the fix-sleepy-producer branch from 13ae0c2 to 1003a70 Compare December 13, 2021 17:23
@jstarry jstarry requested review from CriesofCarrots and removed request for ryoqun December 13, 2021 19:54
@codecov
Copy link

codecov bot commented Dec 13, 2021

Codecov Report

Merging #21832 (1003a70) into master (a400b5e) will decrease coverage by 0.0%.
The diff coverage is 78.3%.

@@            Coverage Diff            @@
##           master   #21832     +/-   ##
=========================================
- Coverage    81.3%    81.3%   -0.1%     
=========================================
  Files         516      516             
  Lines      144033   144177    +144     
=========================================
+ Hits       117139   117223     +84     
- Misses      26894    26954     +60     

@jstarry
Copy link
Member Author

jstarry commented Dec 14, 2021

@CriesofCarrots do you mind giving this a quick look?

@CriesofCarrots
Copy link
Contributor

do you mind giving this a quick look?

Will do today, sorry for the delay!

Copy link
Contributor

@CriesofCarrots CriesofCarrots left a comment

Choose a reason for hiding this comment

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

Yep, makes sense to me. Thanks for noticing this!

@jstarry jstarry merged commit e4f7af0 into solana-labs:master Dec 14, 2021
@jstarry jstarry deleted the fix-sleepy-producer branch December 14, 2021 21:25
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