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

[fix][test] Fix quiet time implementation in BrokerTestUtil.receiveMessages #23876

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

lhotari
Copy link
Member

@lhotari lhotari commented Jan 22, 2025

Motivation

There's a test method BrokerTestUtil.receiveMessages that is used in some Key_Shared tests to asynchronously read messages from multiple consumers until no more new messages are arrived after a quiet time.
The current implementation is wrong. Currently each consumer is handled separately and if an individual consumer times out, it would stop waiting for new messages even if a recent message arrived on another consumer.
This makes some Key_Shared blocking tests to fail with short time outs. This makes some tests flaky or fail when they shouldn't.
Instead, the quiet time condition should be across all active consumers.

Modifications

Fix the quiet time implementation in BrokerTestUtil.receiveMessages.

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

@codecov-commenter
Copy link

codecov-commenter commented Jan 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.19%. Comparing base (bbc6224) to head (2df6d9c).
Report is 859 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #23876      +/-   ##
============================================
+ Coverage     73.57%   74.19%   +0.61%     
+ Complexity    32624    32205     -419     
============================================
  Files          1877     1853      -24     
  Lines        139502   143619    +4117     
  Branches      15299    16311    +1012     
============================================
+ Hits         102638   106551    +3913     
+ Misses        28908    28668     -240     
- Partials       7956     8400     +444     
Flag Coverage Δ
inttests 26.77% <ø> (+2.18%) ⬆️
systests 23.17% <ø> (-1.16%) ⬇️
unittests 73.70% <ø> (+0.86%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 1026 files with indirect coverage changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants