Skip to content

[fix][test] Fix flaky MultiTopicsReaderTest.testMultiNonPartitionedTopicWithRollbackDuration - #24318

Merged
liangyepianzhou merged 1 commit into
apache:masterfrom
hanmz:flaky-MultiTopicsReaderTest.testMultiNonPartitionedTopicWithRollbackDuration
May 21, 2025
Merged

liangyepianzhou merged 1 commit into
apache:masterfrom
hanmz:flaky-MultiTopicsReaderTest.testMultiNonPartitionedTopicWithRollbackDuration

Conversation

@hanmz

@hanmz hanmz commented May 20, 2025 •

Copy link
Copy Markdown

Motivation

image

The root cause of this problem is that the reader is not cleaned up after the unit test shouldSupportCancellingReadNextAsync is executed.

Modifications

Add @cleanup on reader in test shouldSupportCancellingReadNextAsync.

Documentation

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

@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label May 20, 2025

@lhotari lhotari left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@codecov-commenter

codecov-commenter commented May 21, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.25%. Comparing base (bbc6224) to head (a83b1f6).
⚠️ Report is 1763 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #24318      +/-   ##
============================================
+ Coverage     73.57%   74.25%   +0.68%     
- Complexity    32624    32638      +14     
============================================
  Files          1877     1866      -11     
  Lines        139502   145102    +5600     
  Branches      15299    16591    +1292     
============================================
+ Hits         102638   107747    +5109     
+ Misses        28908    28830      -78     
- Partials       7956     8525     +569     
Flag Coverage Δ
inttests 26.77% <ø> (+2.18%) ⬆️
systests 23.30% <ø> (-1.03%) ⬇️
unittests 73.75% <ø> (+0.90%) ⬆️

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

@liangyepianzhou liangyepianzhou added this to the 4.1.0 milestone May 21, 2025
@liangyepianzhou
liangyepianzhou merged commit 9d6ac0e into apache:master May 21, 2025
KannarFr pushed a commit to CleverCloud/pulsar that referenced this pull request Sep 22, 2025
…picWithRollbackDuration (apache#24318)

### Motivation
![image](https://github.com/user-attachments/assets/ddd6e926-b4c4-438f-9c9a-2b8407fcbd09)
The root cause of this problem is that the `reader` is not cleaned up after the unit test `shouldSupportCancellingReadNextAsync` is executed.


### Modifications
Add @cleanup on `reader` in test `shouldSupportCancellingReadNextAsync`.
walkinggo pushed a commit to walkinggo/pulsar that referenced this pull request Oct 8, 2025
…picWithRollbackDuration (apache#24318)

### Motivation
![image](https://github.com/user-attachments/assets/ddd6e926-b4c4-438f-9c9a-2b8407fcbd09)
The root cause of this problem is that the `reader` is not cleaned up after the unit test `shouldSupportCancellingReadNextAsync` is executed.


### Modifications
Add @cleanup on `reader` in test `shouldSupportCancellingReadNextAsync`.
poorbarcode pushed a commit to poorbarcode/pulsar that referenced this pull request Nov 26, 2026
…picWithRollbackDuration (apache#24318)

### Motivation
![image](https://github.com/user-attachments/assets/ddd6e926-b4c4-438f-9c9a-2b8407fcbd09)
The root cause of this problem is that the `reader` is not cleaned up after the unit test `shouldSupportCancellingReadNextAsync` is executed.

### Modifications
Add @cleanup on `reader` in test `shouldSupportCancellingReadNextAsync`.

(cherry picked from commit 9d6ac0e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants