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 flaky test V1_ProducerConsumerTest.testConcurrentConsumerReceiveWhileReconnect #24019

Conversation

poorbarcode
Copy link
Contributor

@poorbarcode poorbarcode commented Feb 24, 2025

Motivation

  [INFO] Results:
  [INFO] 
  Error:  Failures: 
  Error:    V1_ProducerConsumerTest.testConcurrentConsumerReceiveWhileReconnect:594 expected [90] but found [80]
  [INFO] 
  Error:  Tests run: 366, Failures: 1, Errors: 0, Skipped: 1

Root cause: when the verification starts, maybe there is in-flight messages dispatching

Modifications

Instead of verifying directly, use a Awaitility.await().untilAsserted(...)

Documentation

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

Matching PR in forked repository

PR in forked repository: x

@poorbarcode poorbarcode added this to the 4.1.0 milestone Feb 24, 2025
@poorbarcode poorbarcode self-assigned this Feb 24, 2025
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Feb 24, 2025
@codecov-commenter
Copy link

codecov-commenter commented Feb 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.21%. Comparing base (bbc6224) to head (11865d1).
Report is 937 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #24019      +/-   ##
============================================
+ Coverage     73.57%   74.21%   +0.63%     
+ Complexity    32624    32348     -276     
============================================
  Files          1877     1856      -21     
  Lines        139502   144143    +4641     
  Branches      15299    16413    +1114     
============================================
+ Hits         102638   106970    +4332     
+ Misses        28908    28760     -148     
- Partials       7956     8413     +457     
Flag Coverage Δ
inttests 26.71% <ø> (+2.13%) ⬆️
systests 23.22% <ø> (-1.10%) ⬇️
unittests 73.72% <ø> (+0.87%) ⬆️

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

see 1051 files with indirect coverage changes

@merlimat merlimat merged commit 2c686d0 into apache:master Feb 25, 2025
55 of 58 checks passed
lhotari pushed a commit that referenced this pull request Feb 25, 2025
…merReceiveWhileReconnect (#24019)

(cherry picked from commit 2c686d0)
lhotari pushed a commit that referenced this pull request Feb 25, 2025
…merReceiveWhileReconnect (#24019)

(cherry picked from commit 2c686d0)
lhotari pushed a commit that referenced this pull request Feb 25, 2025
…merReceiveWhileReconnect (#24019)

(cherry picked from commit 2c686d0)
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Feb 27, 2025
…merReceiveWhileReconnect (apache#24019)

(cherry picked from commit 2c686d0)
(cherry picked from commit cd8640b)
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Feb 27, 2025
…merReceiveWhileReconnect (apache#24019)

(cherry picked from commit 2c686d0)
(cherry picked from commit c8d8b6f)
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Feb 28, 2025
…merReceiveWhileReconnect (apache#24019)

(cherry picked from commit 2c686d0)
(cherry picked from commit cd8640b)
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request Feb 28, 2025
…merReceiveWhileReconnect (apache#24019)

(cherry picked from commit 2c686d0)
(cherry picked from commit c8d8b6f)
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.

4 participants