Skip to content

Conversation

@poorbarcode
Copy link
Contributor

Motivation

After PR #8611, the acquiring permits can be larger than configured msg-rate if used by subscribing. But doc was not updated in time.

Modifications

fix the outdated doc

Documentation

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

Matching PR in forked repository

PR in forked repository:

  • no needed.

@github-actions github-actions bot added the doc Your PR contains doc changes, no matter whether the changes are in markdown or code files. label Dec 21, 2022
@poorbarcode poorbarcode changed the title [fix] [doc] Fix outdated doc of rate limiter [fix] [doc] Fix outdated java-doc of rate limiter Dec 21, 2022
@Technoboy- Technoboy- added this to the 2.12.0 milestone Dec 21, 2022
@poorbarcode poorbarcode force-pushed the doc/fix_outdated_of_rate_limiter branch from d5a1f5e to 54d18b5 Compare December 21, 2022 08:16
public boolean tryDispatchPermit(long msgPermits, long bytePermits) {
boolean acquiredMsgPermit = msgPermits <= 0 || dispatchRateLimiterOnMessage == null
// acquiring permits must be < configured msg-rate;
// In dispatch mode, acquiring permits can be larger than configured msg-rate.
Copy link
Contributor

@congbobo184 congbobo184 Dec 23, 2022

Choose a reason for hiding this comment

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

dispatch mode represents what? it is singleDispatcher and multiDispatcher, right?

Copy link
Contributor Author

@poorbarcode poorbarcode Dec 27, 2022

Choose a reason for hiding this comment

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

dispatch mode represents what? it is singleDispatcher and multiDispatcher, right?

Yes, I have removed these two java-doc because it is outedated.

@github-actions
Copy link

The pr had no activity for 30 days, mark with Stale label.

@codecov-commenter
Copy link

codecov-commenter commented Apr 11, 2023

Codecov Report

Merging #19014 (55a07c0) into master (08591d9) will increase coverage by 21.48%.
The diff coverage is n/a.

Impacted file tree graph

@@              Coverage Diff              @@
##             master   #19014       +/-   ##
=============================================
+ Coverage     49.85%   71.33%   +21.48%     
- Complexity     8658    31993    +23335     
=============================================
  Files           500     1942     +1442     
  Lines         54930   142522    +87592     
  Branches       5867    15624     +9757     
=============================================
+ Hits          27386   101673    +74287     
- Misses        24464    32764     +8300     
- Partials       3080     8085     +5005     
Flag Coverage Δ
inttests 23.37% <ø> (?)
systests 24.03% <ø> (?)
unittests 71.27% <ø> (+21.42%) ⬆️

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

Impacted Files Coverage Δ
...broker/service/persistent/DispatchRateLimiter.java 81.34% <ø> (+5.97%) ⬆️

... and 1814 files with indirect coverage changes

@RobertIndie RobertIndie modified the milestones: 3.1.0, 3.0.0 Apr 11, 2023
@RobertIndie RobertIndie merged commit 81971e2 into apache:master Apr 11, 2023
Demogorgon314 pushed a commit to Demogorgon314/pulsar that referenced this pull request Apr 11, 2023
### Motivation
After PR apache#8611, the acquiring permits can be larger than configured msg-rate if used by subscribing. But doc was not updated in time.

### Modifications

fix the outdated doc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Your PR contains doc changes, no matter whether the changes are in markdown or code files. ready-to-test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants