Skip to content

Conversation

@lhotari
Copy link
Member

@lhotari lhotari commented May 13, 2025

Motivation

Fixing Netty ByteBuf leaks in test code is needed for executing the plan explained in Enhancing Pulsar CI with Netty leak detection and reporting. The Pulsar CI Netty leak detection and reporting solution was added in #24272.

Modifications

  • Fix ByteBuf leaks in these tests
    • org.apache.pulsar.broker.service.persistent.PersistentStickyKeyDispatcherMultipleConsumersClassicTest (pulsar-broker)
    • org.apache.pulsar.broker.service.persistent.PersistentStickyKeyDispatcherMultipleConsumersTest (pulsar-broker)
    • org.apache.pulsar.client.impl.AcknowledgementsGroupingTrackerTest (pulsar-client)
    • org.apache.pulsar.client.impl.BinaryProtoLookupServiceTest (pulsar-client)
    • org.apache.pulsar.client.impl.ClientCnxTest (pulsar-client)

In addition, there are refactorings and improvements in the tests. For example, the redelivery test cases in PersistentStickyKeyDispatcherMultipleConsumersClassicTest and PersistentStickyKeyDispatcherMultipleConsumersTest weren't properly testing the behavior. This has been fixed by properly mocking relevant ManageCursor's methods.

Documentation

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

@lhotari lhotari added this to the 4.1.0 milestone May 13, 2025
@lhotari lhotari self-assigned this May 13, 2025
@lhotari lhotari requested a review from poorbarcode May 13, 2025 21:44
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label May 13, 2025
@codecov-commenter
Copy link

codecov-commenter commented May 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.18%. Comparing base (bbc6224) to head (71aecb6).
Report is 1097 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #24299      +/-   ##
============================================
+ Coverage     73.57%   74.18%   +0.61%     
+ Complexity    32624    32222     -402     
============================================
  Files          1877     1866      -11     
  Lines        139502   145059    +5557     
  Branches      15299    16581    +1282     
============================================
+ Hits         102638   107615    +4977     
- Misses        28908    28923      +15     
- Partials       7956     8521     +565     
Flag Coverage Δ
inttests 26.68% <ø> (+2.10%) ⬆️
systests 23.31% <ø> (-1.01%) ⬇️
unittests 73.69% <ø> (+0.84%) ⬆️

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

see 1083 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.

@dao-jun dao-jun merged commit 174245d into apache:master May 14, 2025
54 of 55 checks passed
lhotari added a commit that referenced this pull request May 14, 2025
lhotari added a commit that referenced this pull request May 14, 2025
lhotari added a commit that referenced this pull request May 14, 2025
manas-ctds pushed a commit to datastax/pulsar that referenced this pull request May 15, 2025
(cherry picked from commit 174245d)
(cherry picked from commit 03de43e)
manas-ctds pushed a commit to datastax/pulsar that referenced this pull request May 15, 2025
(cherry picked from commit 174245d)
(cherry picked from commit 1e3649c)
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request May 16, 2025
(cherry picked from commit 174245d)
(cherry picked from commit 03de43e)
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request May 18, 2025
(cherry picked from commit 174245d)
(cherry picked from commit 1e3649c)
nodece pushed a commit to ascentstream/pulsar that referenced this pull request May 28, 2025
KannarFr pushed a commit to CleverCloud/pulsar that referenced this pull request Sep 22, 2025
walkinggo pushed a commit to walkinggo/pulsar that referenced this pull request Oct 8, 2025
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.

3 participants