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 ReplicatorRateLimiterTest #23369

Conversation

Demogorgon314
Copy link
Member

Motivation

The ReplicatorRateLimiterTest will always fail with StackOverflowError , because in #23322 the getRateLimiter always recursive call to itself.

ReplicatorRateLimiterTest.testReplicatorRateLimiterMessageNotReceivedAllMessages
java.lang.StackOverflowError
at org.apache.pulsar.broker.service.ReplicatorRateLimiterTest.getRateLimiter(ReplicatorRateLimiterTest.java:614)

Documentation

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

@Demogorgon314 Demogorgon314 self-assigned this Sep 29, 2024
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Sep 29, 2024
@BewareMyPower
Copy link
Contributor

It seems that this failed test was not detected by CI. At least it was not exposed in the latest PR:

image

We'd better ensure this test failure can be detected by CI, even if it's not required.

@lhotari Do you have any idea?

@BewareMyPower BewareMyPower added this to the 4.0.0 milestone Sep 29, 2024
@lhotari
Copy link
Member

lhotari commented Sep 29, 2024

It seems that this failed test was not detected by CI.

@BewareMyPower the test is in the quarantine group. The reporting is very unnoticeable at the moment. It's another solution for flaky tests. Tests get run but don't block the build.
The reason for quarantine is that the tests are so flaky that they fail almost on every run. There should be a issue about fixing it. The tests should get fixed, but there aren't many who care about addressing the problem.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.57%. Comparing base (bbc6224) to head (fbd4315).
Report is 609 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #23369      +/-   ##
============================================
+ Coverage     73.57%   74.57%   +0.99%     
- Complexity    32624    33955    +1331     
============================================
  Files          1877     1934      +57     
  Lines        139502   145132    +5630     
  Branches      15299    15870     +571     
============================================
+ Hits         102638   108229    +5591     
+ Misses        28908    28614     -294     
- Partials       7956     8289     +333     
Flag Coverage Δ
inttests 27.71% <ø> (+3.12%) ⬆️
systests 24.56% <ø> (+0.24%) ⬆️
unittests 73.90% <ø> (+1.06%) ⬆️

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

see 600 files with indirect coverage changes

@Demogorgon314 Demogorgon314 merged commit 5e832a1 into apache:master Sep 29, 2024
50 checks passed
@BewareMyPower
Copy link
Contributor

the test is in the quarantine group. The reporting is very unnoticeable at the moment.

Where do these tests run? Could you point out a workflow for example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/test doc-not-needed Your PR changes do not impact docs ready-to-test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants