-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix][proxy] Fix TooLongFrameException with Pulsar Proxy #24626
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
Merged
lhotari
merged 1 commit into
apache:master
from
lhotari:lh-fix-pulsar-proxy-TooLongFrameException-issue
Aug 14, 2025
Merged
[fix][proxy] Fix TooLongFrameException with Pulsar Proxy #24626
lhotari
merged 1 commit into
apache:master
from
lhotari:lh-fix-pulsar-proxy-TooLongFrameException-issue
Aug 14, 2025
Conversation
This file contains hidden or 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
approved these changes
Aug 14, 2025
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #24626 +/- ##
============================================
- Coverage 74.28% 74.25% -0.03%
+ Complexity 33153 32783 -370
============================================
Files 1881 1882 +1
Lines 146850 146853 +3
Branches 16866 16866
============================================
- Hits 109083 109051 -32
- Misses 29089 29128 +39
+ Partials 8678 8674 -4
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
pulsar-common/src/main/java/org/apache/pulsar/common/protocol/FrameDecoderUtil.java
Show resolved
Hide resolved
mattisonchao
approved these changes
Aug 14, 2025
lhotari
added a commit
that referenced
this pull request
Aug 14, 2025
(cherry picked from commit cde4948)
lhotari
added a commit
that referenced
this pull request
Aug 14, 2025
(cherry picked from commit cde4948)
lhotari
added a commit
that referenced
this pull request
Aug 14, 2025
(cherry picked from commit cde4948)
nodece
pushed a commit
to ascentstream/pulsar
that referenced
this pull request
Aug 26, 2025
(cherry picked from commit cde4948)
Technoboy-
pushed a commit
to Technoboy-/pulsar
that referenced
this pull request
Sep 10, 2025
(cherry picked from commit cde4948)
KannarFr
pushed a commit
to CleverCloud/pulsar
that referenced
this pull request
Sep 22, 2025
walkinggo
pushed a commit
to walkinggo/pulsar
that referenced
this pull request
Oct 8, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
cherry-picked/branch-3.0
cherry-picked/branch-3.3
cherry-picked/branch-4.0
doc-not-needed
Your PR changes do not impact docs
ready-to-test
release/3.0.14
release/3.3.9
release/4.0.7
type/bug
The PR fixed a bug or issue reported a bug
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
Using the Pulsar Proxy could result in a
TooLongFrameException.When the Pulsar Proxy switches to direct proxy mode, it removes the frame decoder:
pulsar/pulsar-proxy/src/main/java/org/apache/pulsar/proxy/server/DirectProxyHandler.java
Lines 419 to 426 in baa288a
However, this fails since the client changes the "frameDecoder" handler's name to "newFrameDecoder"
pulsar/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ClientCnx.java
Lines 396 to 404 in baa288a
A possible workaround is to use
proxyZeroCopyModeEnabled=truesince in the zero copy mode, the channel handlers are ignored. The Zero copy mode cannot be enabled when TLS is enabled between the Pulsar Proxy and Pulsar Brokers.Modifications
Documentation
docdoc-requireddoc-not-neededdoc-complete