Skip to content

[improve] [broker] Avoid PersistentSubscription.expireMessages logic check backlog twice. - #20416

Merged
Technoboy- merged 1 commit into
apache:masterfrom
lifepuzzlefun:avoid_check_twice_backlog
May 29, 2023
Merged

Technoboy- merged 1 commit into
apache:masterfrom
lifepuzzlefun:avoid_check_twice_backlog

Conversation

@lifepuzzlefun

@lifepuzzlefun lifepuzzlefun commented May 27, 2023 •

Copy link
Copy Markdown
Contributor

Motivation

PersistentSubscription.expireMessages will first backlog is zero and if not will check if backlog is below threshold.

those two check should be save in variable to avoid check twice.

Modifications

save backlog to variable.

Documentation

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

Matching PR in forked repository

PR in forked repository:

@lifepuzzlefun lifepuzzlefun changed the title [improv] [broker] Avoid expireMessages logic check backlog twice. [improve] [broker] Avoid expireMessages logic check backlog twice. May 27, 2023
@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label May 27, 2023
@lifepuzzlefun lifepuzzlefun changed the title [improve] [broker] Avoid expireMessages logic check backlog twice. [improve] [broker] Avoid PersistentSubscription.expireMessages logic check backlog twice. May 27, 2023
@AnonHxy

AnonHxy commented May 29, 2023

Copy link
Copy Markdown
Contributor

LGTM

@AnonHxy

AnonHxy commented May 29, 2023

Copy link
Copy Markdown
Contributor

Please add the link of PR in forked repository, thanks

@codecov-commenter

codecov-commenter commented May 29, 2023 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 72.93%. Comparing base (aa3bfcd) to head (5e1d23f).
Report is 1854 commits behind head on master.

Files with missing lines Patch % Lines
...ker/service/persistent/PersistentSubscription.java 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #20416      +/-   ##
============================================
+ Coverage     72.90%   72.93%   +0.02%     
- Complexity    31864    31897      +33     
============================================
  Files          1864     1864              
  Lines        138416   138416              
  Branches      15188    15188              
============================================
+ Hits         100919   100954      +35     
+ Misses        29477    29458      -19     
+ Partials       8020     8004      -16     
Flag Coverage Δ
inttests 24.26% <0.00%> (+0.09%) ⬆️
systests 24.92% <0.00%> (-0.14%) ⬇️
unittests 72.23% <50.00%> (+0.05%) ⬆️

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

Files with missing lines Coverage Δ
...ker/service/persistent/PersistentSubscription.java 75.43% <50.00%> (ø)

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

@michaeljmarshall

Copy link
Copy Markdown
Member

As discussed on the mailing list https://lists.apache.org/thread/w4jzk27qhtosgsz7l9bmhf1t7o9mxjhp, there is no plan to release 2.9.6, so I am going to remove the release/2.9.6 label

Technoboy- pushed a commit that referenced this pull request Jul 4, 2023
nicoloboschi pushed a commit to datastax/pulsar that referenced this pull request Jul 17, 2023
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.

5 participants