Skip to content

[fix][broker] Fix HashedWheelTimer leak in PulsarService by stopping it in shutdown #24275

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

Merged
merged 1 commit into from
May 8, 2025

Conversation

lhotari
Copy link
Member

@lhotari lhotari commented May 8, 2025

Motivation

Netty leak detector detects also HashedWheelTimer leaks besides ByteBuf leaks. It reports in some tests that HashedWheelTimer has leaked. This leak doesn't seem to happen in all cases and doesn't really impact production usage.
Fixing this is needed for executing the plan explained in Enhancing Pulsar CI with Netty leak detection and reporting.

Modifications

  • stop the timer in shutdown

Documentation

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

@lhotari lhotari added this to the 4.1.0 milestone May 8, 2025
@lhotari lhotari requested review from nodece and dao-jun May 8, 2025 08:41
@lhotari lhotari self-assigned this May 8, 2025
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label May 8, 2025
@codecov-commenter
Copy link

codecov-commenter commented May 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.15%. Comparing base (bbc6224) to head (3cca273).
Report is 1088 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #24275      +/-   ##
============================================
+ Coverage     73.57%   74.15%   +0.58%     
+ Complexity    32624    32191     -433     
============================================
  Files          1877     1866      -11     
  Lines        139502   145050    +5548     
  Branches      15299    16580    +1281     
============================================
+ Hits         102638   107562    +4924     
- Misses        28908    28955      +47     
- Partials       7956     8533     +577     
Flag Coverage Δ
inttests 26.75% <0.00%> (+2.17%) ⬆️
systests 23.28% <0.00%> (-1.05%) ⬇️
unittests 73.64% <100.00%> (+0.79%) ⬆️

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

Files with missing lines Coverage Δ
...n/java/org/apache/pulsar/broker/PulsarService.java 83.67% <100.00%> (+1.30%) ⬆️

... and 1079 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.

@lhotari lhotari merged commit 1280672 into apache:master May 8, 2025
55 checks passed
lhotari added a commit that referenced this pull request May 9, 2025
lhotari added a commit that referenced this pull request May 9, 2025
lhotari added a commit that referenced this pull request May 9, 2025
manas-ctds pushed a commit to datastax/pulsar that referenced this pull request May 14, 2025
…it in shutdown (apache#24275)

(cherry picked from commit 1280672)
(cherry picked from commit 5e734b6)
manas-ctds pushed a commit to datastax/pulsar that referenced this pull request May 14, 2025
…it in shutdown (apache#24275)

(cherry picked from commit 1280672)
(cherry picked from commit d8eb65d)
manas-ctds pushed a commit to datastax/pulsar that referenced this pull request May 14, 2025
…it in shutdown (apache#24275)

(cherry picked from commit 1280672)
(cherry picked from commit 5e734b6)
manas-ctds pushed a commit to datastax/pulsar that referenced this pull request May 14, 2025
…it in shutdown (apache#24275)

(cherry picked from commit 1280672)
(cherry picked from commit d8eb65d)
manas-ctds pushed a commit to datastax/pulsar that referenced this pull request May 15, 2025
…it in shutdown (apache#24275)

(cherry picked from commit 1280672)
(cherry picked from commit d8eb65d)
manas-ctds pushed a commit to datastax/pulsar that referenced this pull request May 15, 2025
…it in shutdown (apache#24275)

(cherry picked from commit 1280672)
(cherry picked from commit d8eb65d)
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request May 16, 2025
…it in shutdown (apache#24275)

(cherry picked from commit 1280672)
(cherry picked from commit d8eb65d)
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request May 18, 2025
…it in shutdown (apache#24275)

(cherry picked from commit 1280672)
(cherry picked from commit 5e734b6)
nodece pushed a commit to ascentstream/pulsar that referenced this pull request May 28, 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.

4 participants