Skip to content

[fix][test] Fix flaky test testDoNotGetOffloadPoliciesMultipleTimesWhenTrimLedgers - #18147

Merged
Technoboy- merged 6 commits into
apache:masterfrom
Technoboy-:fix-test
Oct 27, 2022
Merged

Technoboy- merged 6 commits into
apache:masterfrom
Technoboy-:fix-test

Conversation

@Technoboy-

Copy link
Copy Markdown
Contributor

Motivation

Based on ##18146

https://github.com/apache/pulsar/actions/runs/3281165538/jobs/5414499054

Error:  Tests run: 161, Failures: 48, Errors: 0, Skipped: 50, Time elapsed: 48.407 s <<< FAILURE! - in org.apache.bookkeeper.mledger.impl.ManagedLedgerTest
  Error:  testDoNotGetOffloadPoliciesMultipleTimesWhenTrimLedgers(org.apache.bookkeeper.mledger.impl.ManagedLedgerTest)  Time elapsed: 0.196 s  <<< FAILURE!
  org.mockito.exceptions.verification.TooManyActualInvocations: 
  
  nullLedgerOffloader.getOffloadPolicies();
  Wanted 1 time:
  -> at org.apache.bookkeeper.mledger.impl.NullLedgerOffloader.getOffloadPolicies(NullLedgerOffloader.java:66)
  But was 2 times:
  -> at org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl.internalTrimLedgers(ManagedLedgerImpl.java:2473)
  -> at org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl.maybeOffload(ManagedLedgerImpl.java:2388)

Documentation

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

@Technoboy- Technoboy- self-assigned this Oct 21, 2022
@Technoboy- Technoboy- added this to the 2.12.0 milestone Oct 21, 2022
@Technoboy- Technoboy- added area/test doc-not-needed Your PR changes do not impact docs ready-to-test labels Oct 21, 2022
@codecov-commenter

codecov-commenter commented Oct 21, 2022 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 45.64%. Comparing base (6c65ca0) to head (c39d39a).
⚠️ Report is 3532 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@              Coverage Diff              @@
##             master   #18147       +/-   ##
=============================================
+ Coverage     34.91%   45.64%   +10.72%     
- Complexity     5707    17547    +11840     
=============================================
  Files           607     1579      +972     
  Lines         53396   128709    +75313     
  Branches       5712    14151     +8439     
=============================================
+ Hits          18644    58748    +40104     
- Misses        32119    63924    +31805     
- Partials       2633     6037     +3404     
Flag Coverage Δ
unittests 45.64% <ø> (+10.72%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 1171 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Technoboy-
Technoboy- force-pushed the fix-test branch 2 times, most recently from e9856a0 to 9e3ec14 Compare October 24, 2022 02:02

@codelipenghui codelipenghui left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@Technoboy- Looks like the test still get failed.

@Technoboy-

Copy link
Copy Markdown
Contributor Author

@Technoboy- Looks like the test still get failed.

fixed.

@Technoboy- Technoboy- closed this Oct 27, 2022
@Technoboy- Technoboy- reopened this Oct 27, 2022
@Technoboy-
Technoboy- merged commit c7990b9 into apache:master Oct 27, 2022
@Technoboy-
Technoboy- deleted the fix-test branch November 11, 2023 07:27
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