-
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] Reducing the parse of MessageMetadata in compaction #23285
Conversation
@aloyszhang Please add the following content to your PR description and select a checkbox:
|
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
pulsar-broker/src/main/java/org/apache/pulsar/client/impl/RawBatchConverter.java
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/client/impl/RawBatchConverter.java
Show resolved
Hide resolved
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
pulsar-broker/src/main/java/org/apache/pulsar/client/impl/RawBatchConverter.java
Show resolved
Hide resolved
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #23285 +/- ##
============================================
+ Coverage 73.57% 74.51% +0.93%
+ Complexity 32624 2758 -29866
============================================
Files 1877 1927 +50
Lines 139502 145065 +5563
Branches 15299 15862 +563
============================================
+ Hits 102638 108088 +5450
+ Misses 28908 28704 -204
- Partials 7956 8273 +317
Flags with carried forward coverage won't be shown. Click here to find out more.
|
LGTM |
…apache#23285) Co-authored-by: Aloys Zhang <aloyszhang@apche.org>
Motivation
There are many redundant parses of MessageMetadata in topic compaction, including phase one and phase two
Modifications
reuse the MessageMetadata object in topic compaction
Verifying this change
(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
Documentation
doc-not-needed
Matching PR in forked repository
PR in forked repository: aloyszhang#23