Skip to content

[fix][test] Fix flaky test org.apache.pulsar.broker.service.persistent.PersistentSubscriptionMessageDispatchStreamingDispatcherThrottlingTest#setup - #18115

Merged
Technoboy- merged 2 commits into
apache:masterfrom
lordcheng10:fix_flaky_test
Oct 20, 2022

Conversation

@lordcheng10

@lordcheng10 lordcheng10 commented Oct 19, 2022 •

Copy link
Copy Markdown
Contributor

Motivation

In PersistentSubscriptionMessageDispatchStreamingDispatcherThrottlingTest, the setup method is executed every time the method is executed, resulting in an error: java.lang.RuntimeException: broker already started

image

Successfully executed after being modified to BeforeClass

Documentation

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

Matching PR in forked repository

PR in forked repository: lordcheng10#34

…SubscriptionMessageDispatchStreamingDispatcherThrottlingTest#setup
@lordcheng10

Copy link
Copy Markdown
Contributor Author

@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Oct 19, 2022
@lordcheng10

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@codecov-commenter

codecov-commenter commented Oct 19, 2022 •

Copy link
Copy Markdown

Codecov Report

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

Additional details and impacted files

Impacted file tree graph

@@              Coverage Diff              @@
##             master   #18115       +/-   ##
=============================================
+ Coverage     34.91%   50.43%   +15.51%     
- Complexity     5707     8615     +2908     
=============================================
  Files           607      607               
  Lines         53396    53408       +12     
  Branches       5712     5719        +7     
=============================================
+ Hits          18644    26935     +8291     
+ Misses        32119    23488     -8631     
- Partials       2633     2985      +352     
Flag Coverage Δ
unittests 50.43% <ø> (+15.51%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 151 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.

@lordcheng10

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

2 similar comments
@lordcheng10

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@lordcheng10

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@Technoboy- Technoboy- mentioned this pull request Oct 20, 2022
1 of 4 tasks
@Technoboy-
Technoboy- merged commit 3eac221 into apache:master Oct 20, 2022
@Technoboy- Technoboy- added this to the 2.12.0 milestone Oct 20, 2022
@Technoboy- Technoboy- modified the milestones: 2.12.0, 2.11.0 Oct 20, 2022
Technoboy- pushed a commit that referenced this pull request Oct 20, 2022
…t.PersistentSubscriptionMessageDispatchStreamingDispatcherThrottlingTest#setup (#18115)
@lordcheng10
lordcheng10 deleted the fix_flaky_test branch October 20, 2022 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-picked/branch-2.11 doc-not-needed Your PR changes do not impact docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants