-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[improve][broker] Pin executor to managed ledger instance to cache the string hashing #18078
Merged
AnonHxy
merged 8 commits into
apache:master
from
merlimat:managed-ledger-executor-cache
Nov 30, 2022
Merged
[improve][broker] Pin executor to managed ledger instance to cache the string hashing #18078
AnonHxy
merged 8 commits into
apache:master
from
merlimat:managed-ledger-executor-cache
Nov 30, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
merlimat
added
the
type/enhancement
The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
label
Oct 17, 2022
merlimat
requested review from
lhotari,
hangc0276,
eolivelli and
codelipenghui
October 17, 2022 21:30
merlimat
added
doc-not-needed
Your PR changes do not impact docs
and removed
doc-label-missing
labels
Oct 17, 2022
github-actions
bot
added
doc-label-missing
and removed
doc-not-needed
Your PR changes do not impact docs
labels
Oct 17, 2022
merlimat
added
doc-not-needed
Your PR changes do not impact docs
and removed
doc-label-missing
labels
Oct 17, 2022
github-actions
bot
added
doc-label-missing
and removed
doc-not-needed
Your PR changes do not impact docs
labels
Oct 17, 2022
@merlimat Please add the following content to your PR description and select a checkbox:
|
github-actions
bot
added
doc-not-needed
Your PR changes do not impact docs
and removed
doc-label-missing
labels
Oct 17, 2022
merlimat
changed the title
[Broker] Pin executor to managed ledger instance to cache the string hashing
[improve] Pin executor to managed ledger instance to cache the string hashing
Oct 17, 2022
Technoboy-
changed the title
[improve] Pin executor to managed ledger instance to cache the string hashing
[improve][broker] Pin executor to managed ledger instance to cache the string hashing
Oct 18, 2022
4 tasks
Codecov Report
@@ Coverage Diff @@
## master #18078 +/- ##
============================================
- Coverage 47.06% 46.56% -0.50%
- Complexity 8956 10342 +1386
============================================
Files 592 698 +106
Lines 56313 68326 +12013
Branches 5844 7332 +1488
============================================
+ Hits 26503 31817 +5314
- Misses 26946 32886 +5940
- Partials 2864 3623 +759
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Technoboy-
approved these changes
Oct 20, 2022
AnonHxy
approved these changes
Oct 20, 2022
Technoboy-
force-pushed
the
managed-ledger-executor-cache
branch
from
October 22, 2022 14:16
c27ba86
to
a971e4c
Compare
codelipenghui
approved these changes
Oct 24, 2022
coderzc
approved these changes
Oct 24, 2022
/pulsarbot rerun-failure-checks |
tisonkun
approved these changes
Nov 2, 2022
/pulsarbot rerun-failure-checks |
Technoboy-
force-pushed
the
managed-ledger-executor-cache
branch
from
November 5, 2022 01:06
a971e4c
to
46f1b28
Compare
Technoboy-
force-pushed
the
managed-ledger-executor-cache
branch
from
November 19, 2022 05:13
46f1b28
to
7082989
Compare
5 tasks
Technoboy-
force-pushed
the
managed-ledger-executor-cache
branch
from
November 23, 2022 01:50
7082989
to
814a24c
Compare
lifepuzzlefun
approved these changes
Nov 24, 2022
AnonHxy
force-pushed
the
managed-ledger-executor-cache
branch
from
November 28, 2022 16:24
8a7a7ce
to
9783b6b
Compare
AnonHxy
force-pushed
the
managed-ledger-executor-cache
branch
from
November 29, 2022 05:05
9783b6b
to
66fc80a
Compare
michaeljmarshall
approved these changes
Nov 30, 2022
lifepuzzlefun
pushed a commit
to lifepuzzlefun/pulsar
that referenced
this pull request
Dec 9, 2022
…e string hashing (apache#18078) Co-authored-by: Jiwe Guo <[email protected]> Co-authored-by: houxiaoyu <[email protected]>
lifepuzzlefun
pushed a commit
to lifepuzzlefun/pulsar
that referenced
this pull request
Jan 10, 2023
…e string hashing (apache#18078) Co-authored-by: Jiwe Guo <[email protected]> Co-authored-by: houxiaoyu <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
doc-not-needed
Your PR changes do not impact docs
ready-to-test
type/enhancement
The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
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.
Motivation
In many operations we're hashing on the managed ledger name to ensure all the callbacks are triggered from same thread. Instead of hashing the string each, let's pin the thread and always use the same, for a given managed ledger instance.
This will avoid the hashing overhead.
Tests in merlimat#3
doc
doc-required
doc-not-needed
doc-complete