GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [improve][broker] Reduce memory occupation of InMemoryRedeliveryTracker. by thetumbled · Pull Request #23640 · apache/pulsar

Conversation

@thetumbled

@thetumbled thetumbled commented Nov 26, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Motivation

Reduce memory occupation of the InMemoryRedeliveryTracker.

Modifications

Use Long2ObjectMap<Long2IntMap> to replace ConcurrentLongLongPairHashMap.

Verifying this change

  • Make sure that the change passes the CI checks.

(Please pick either of the following options)

This change is a trivial rework / code cleanup without any test coverage.

Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

  • Dependencies (add or upgrade a dependency)
  • The public API
  • The schema
  • The default values of configurations
  • The threading model
  • The binary protocol
  • The REST endpoints
  • The admin CLI options
  • The metrics
  • Anything that affects deployment

Documentation

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

Matching PR in forked repository

PR in forked repository: thetumbled#66

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@thetumbled
use Long2ObjectMap<Long2IntMap> to implement.
e11497f
@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Nov 26, 2024
@thetumbled
thetumbled requested review from coderzc, dao-jun, lhotari and nodece November 26, 2024 08:46
@thetumbled thetumbled mentioned this pull request Nov 26, 2024
[improve][broker] Reduce memory occupation of InMemoryRedeliveryTracker. thetumbled/pulsar#66
Closed
@thetumbled
fix checkstyle.
6c3dad8
lhotari
lhotari requested changes Nov 26, 2024
View reviewed changes
Comment thread pulsar-broker/src/main/java/org/apache/pulsar/broker/service/InMemoryRedeliveryTracker.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pulsar-broker/src/main/java/org/apache/pulsar/broker/service/InMemoryRedeliveryTracker.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@thetumbled
use composition instead of inheritance.
c37e605
@thetumbled
thetumbled requested a review from lhotari November 27, 2024 04:04
lhotari
lhotari reviewed Nov 27, 2024
View reviewed changes
Comment thread pulsar-broker/src/main/java/org/apache/pulsar/broker/service/InMemoryRedeliveryTracker.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

lhotari
lhotari approved these changes Nov 27, 2024
View reviewed changes

@lhotari lhotari left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM, good work @thetumbled

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

thetumbled reacted with laugh emoji
All reactions
  • 😄 1 reaction
@lhotari lhotari added this to the 4.1.0 milestone Nov 27, 2024
@lhotari lhotari added the release/4.0.2 label Nov 27, 2024
@codecov-commenter

codecov-commenter commented Nov 27, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 63.15789% with 14 lines in your changes missing coverage. Please review.

Project coverage is 74.34%. Comparing base (bbc6224) to head (c37e605).
Report is 751 commits behind head on master.

Files with missing lines Patch % Lines
...lsar/broker/service/InMemoryRedeliveryTracker.java 63.15% 12 Missing and 2 partials ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #23640      +/-   ##
============================================
+ Coverage     73.57%   74.34%   +0.76%     
- Complexity    32624    34997    +2373     
============================================
  Files          1877     1944      +67     
  Lines        139502   147224    +7722     
  Branches      15299    16246     +947     
============================================
+ Hits         102638   109453    +6815     
- Misses        28908    29322     +414     
- Partials       7956     8449     +493     
Flag Coverage Δ
inttests 27.22% <34.21%> (+2.63%) ⬆️
systests 24.29% <63.15%> (-0.03%) ⬇️
unittests 73.73% <63.15%> (+0.88%) ⬆️

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

Files with missing lines Coverage Δ
...lsar/broker/service/InMemoryRedeliveryTracker.java 65.11% <63.15%> (-30.13%) ⬇️

... and 660 files with indirect coverage changes

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lhotari
lhotari merged commit 6b694f6 into apache:master Nov 27, 2024
@lhotari lhotari added release/4.0.1 and removed release/4.0.2 labels Nov 29, 2024
lhotari pushed a commit that referenced this pull request Nov 29, 2024
@thetumbled @lhotari
[improve][broker] Reduce memory occupation of InMemoryRedeliveryTrack…
f448703
…er. (#23640)

(cherry picked from commit 6b694f6)
@lhotari lhotari added the cherry-picked/branch-4.0 label Nov 29, 2024
hanmz pushed a commit to hanmz/pulsar that referenced this pull request Feb 12, 2025
@thetumbled hanmz
[improve][broker] Reduce memory occupation of InMemoryRedeliveryTrack…
e56e484
…er. (apache#23640)
@codelipenghui codelipenghui mentioned this pull request Oct 23, 2026
[fix][broker] Fix message dispatch failures caused by ArrayIndexOutOfBoundsException in InMemoryRedeliveryTracker #27064
Merged
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@lhotari lhotari lhotari approved these changes
@dao-jun dao-jun Awaiting requested review from dao-jun
@nodece nodece Awaiting requested review from nodece
@coderzc coderzc Awaiting requested review from coderzc

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

cherry-picked/branch-4.0 doc-not-needed Your PR changes do not impact docs release/4.0.1

Projects

None yet

Milestone

4.1.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@thetumbled @codecov-commenter @lhotari
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.