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 — [fix][broker] Apply dispatcherMaxReadSizeBytes also for replay reads for Shared and Key_Shared subscriptions by lhotari · Pull Request #23894 · apache/pulsar

Conversation

@lhotari

@lhotari lhotari commented Jan 24, 2025

Copy link
Copy Markdown
Member

Fixes #23505

Motivation

See #23505. It is expected that dispatcherMaxReadSizeBytes also limits replay queue reads. Replay reads are currently unbounded in byte size, which is unexpected behavior.

Modifications

  • use org.apache.bookkeeper.mledger.ManagedCursor#applyMaxSizeCap also in replay queue reads
  • add test
    • test uses [improve][test] Support decorating topic, subscription, dispatcher, ManagedLedger and ManagedCursors instances in tests #23892. That PR should be merged first to clean up the diff of this PR.

Documentation

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

Sorry, something went wrong.

Uh oh!

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

All reactions
@lhotari lhotari added the ready-to-test label Jan 24, 2025
@lhotari lhotari added this to the 4.1.0 milestone Jan 24, 2025
@lhotari
lhotari requested review from merlimat and nodece January 24, 2025 22:03
@lhotari lhotari self-assigned this Jan 24, 2025
@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Jan 24, 2025
@lhotari
lhotari requested a review from heesung-sohn January 24, 2025 22:04
This was referenced Jan 24, 2025
[fix][broker] Fix repeatedly acquired pending reads quota #23869
Merged
[Bug] Redelivering messages doesn't take dispatcherMaxReadSizeBytes into account in Shared and Key_Shared subscriptions #23505
Closed
@codecov-commenter

codecov-commenter commented Jan 24, 2025 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 57.14286% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 74.16%. Comparing base (bbc6224) to head (6d65d41).
⚠️ Report is 1757 commits behind head on master.

Files with missing lines Patch % Lines
...sistent/PersistentDispatcherMultipleConsumers.java 57.14% 2 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #23894      +/-   ##
============================================
+ Coverage     73.57%   74.16%   +0.59%     
+ Complexity    32624    32212     -412     
============================================
  Files          1877     1854      -23     
  Lines        139502   143644    +4142     
  Branches      15299    16320    +1021     
============================================
+ Hits         102638   106539    +3901     
+ Misses        28908    28719     -189     
- Partials       7956     8386     +430     
Flag Coverage Δ
inttests 26.69% <42.85%> (+2.11%) ⬆️
systests 23.13% <28.57%> (-1.20%) ⬇️
unittests 73.69% <57.14%> (+0.85%) ⬆️

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

Files with missing lines Coverage Δ
...sistent/PersistentDispatcherMultipleConsumers.java 74.38% <57.14%> (+0.05%) ⬆️

... and 1027 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.
All reactions

Sorry, something went wrong.

Uh oh!

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

lhotari added 2 commits January 25, 2025 11:00
@lhotari
Limit replay messages by bytes size
9f27595
@lhotari
Test limiting by bytes size
6d65d41
@lhotari
lhotari force-pushed the lh-limit-replay-messages-by-size branch from c8a23a0 to 6d65d41 Compare January 25, 2025 09:02
@lhotari

lhotari commented Jan 25, 2025

Copy link
Copy Markdown
Member Author

@heesung-sn This PR has been rebased now. Please review

All reactions

Sorry, something went wrong.

Uh oh!

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

@lhotari
lhotari requested review from BewareMyPower, Technoboy-, crossoverJie, eolivelli, equanz, nicoloboschi, poorbarcode, shibd and thetumbled January 25, 2025 13:15
heesung-sohn
heesung-sohn approved these changes Jan 25, 2025
View reviewed changes
@lhotari
lhotari merged commit 11a615e into apache:master Jan 27, 2025
@lhotari lhotari added the release/4.0.3 label Jan 27, 2025
lhotari added a commit that referenced this pull request Jan 27, 2025
@lhotari
[fix][broker] Apply dispatcherMaxReadSizeBytes also for replay reads …
32a0fd5
…for Shared and Key_Shared subscriptions (#23894)

(cherry picked from commit 11a615e)
@lhotari lhotari added the cherry-picked/branch-4.0 label Jan 27, 2025
hanmz pushed a commit to hanmz/pulsar that referenced this pull request Feb 12, 2025
@lhotari hanmz
[fix][broker] Apply dispatcherMaxReadSizeBytes also for replay reads …
f7cbb24
…for Shared and Key_Shared subscriptions (apache#23894)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@heesung-sohn heesung-sohn heesung-sohn approved these changes
@merlimat merlimat Awaiting requested review from merlimat
@nodece nodece Awaiting requested review from nodece
@poorbarcode poorbarcode Awaiting requested review from poorbarcode
@equanz equanz Awaiting requested review from equanz
@Technoboy- Technoboy- Awaiting requested review from Technoboy-
@eolivelli eolivelli Awaiting requested review from eolivelli
@crossoverJie crossoverJie Awaiting requested review from crossoverJie
@BewareMyPower BewareMyPower Awaiting requested review from BewareMyPower
@nicoloboschi nicoloboschi Awaiting requested review from nicoloboschi
@shibd shibd Awaiting requested review from shibd
@thetumbled thetumbled Awaiting requested review from thetumbled

Uh oh!

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

Assignees

@lhotari lhotari

Labels

cherry-picked/branch-4.0 doc-not-needed Your PR changes do not impact docs ready-to-test release/4.0.3

Projects

None yet

Milestone

4.1.0

Development

Successfully merging this pull request may close these issues.

[Bug] Redelivering messages doesn't take dispatcherMaxReadSizeBytes into account in Shared and Key_Shared subscriptions

Uh oh!

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

3 participants

@lhotari @codecov-commenter @heesung-sohn
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.