This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 137
[improvement] Use Direct ByteBuffers after upgrade to 2.8.x #1631
Open
eolivelli
wants to merge
10
commits into
streamnative:master
Choose a base branch
from
eolivelli:impl/kafka-client-use-bytebuf
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[improvement] Use Direct ByteBuffers after upgrade to 2.8.x #1631
eolivelli
wants to merge
10
commits into
streamnative:master
from
eolivelli:impl/kafka-client-use-bytebuf
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
eolivelli
requested review from
BewareMyPower and
Demogorgon314
as code owners
December 16, 2022 08:49
BewareMyPower
suggested changes
Dec 19, 2022
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.
The code itself LGTM. Please fix the code style.
kafka-impl/src/main/java/io/streamnative/pulsar/handlers/kop/KafkaCommandDecoder.java
Outdated
Show resolved
Hide resolved
eolivelli
force-pushed
the
impl/kafka-client-use-bytebuf
branch
from
March 7, 2023 12:57
8de0f49
to
8e40ffe
Compare
eolivelli
changed the title
[improvement] Use pooled Direct ByteBufs after upgrade to 2.8.x
[improvement] Use Direct ByteBuffers after upgrade to 2.8.x
Mar 7, 2023
@BewareMyPower @Demogorgon314 I have rebased and also applied a few more enhancement that we developed while running performance testing at very high rates (tens of millions of messages per second) |
some tests are failing, I will check them out later |
Codecov Report
@@ Coverage Diff @@
## master #1631 +/- ##
============================================
- Coverage 16.05% 16.02% -0.04%
Complexity 626 626
============================================
Files 165 165
Lines 12311 12338 +27
Branches 1128 1131 +3
============================================
Hits 1977 1977
- Misses 10171 10198 +27
Partials 163 163
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
With the upgrade to 2.8.0 we switched to use more heap and less DirectMemory.
Modifications
Use pooled Netty direct memory ByteBufs
Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Need to update docs?
doc-required
(If you need help on updating docs, create a doc issue)
no-need-doc
(Please explain why)
doc
(If this PR contains doc changes)