-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix][ml]Fix EOFException after enabled topics offloading #24753
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
poorbarcode
merged 9 commits into
apache:master
from
poorbarcode:fix/BlobStoreBackedReadHandleImpl
Sep 22, 2025
Merged
[fix][ml]Fix EOFException after enabled topics offloading #24753
poorbarcode
merged 9 commits into
apache:master
from
poorbarcode:fix/BlobStoreBackedReadHandleImpl
Sep 22, 2025
+400
−62
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
Technoboy-
reviewed
Sep 18, 2025
...in/java/org/apache/bookkeeper/mledger/offload/jcloud/impl/BlobStoreBackedReadHandleImpl.java
Outdated
Show resolved
Hide resolved
zymap
approved these changes
Sep 18, 2025
Technoboy-
approved these changes
Sep 19, 2025
dao-jun
approved these changes
Sep 19, 2025
coderzc
approved these changes
Sep 22, 2025
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #24753 +/- ##
============================================
- Coverage 74.26% 74.18% -0.09%
+ Complexity 33635 33224 -411
============================================
Files 1900 1901 +1
Lines 148425 148474 +49
Branches 17209 17216 +7
============================================
- Hits 110225 110139 -86
- Misses 29426 29534 +108
- Partials 8774 8801 +27
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
lhotari
pushed a commit
that referenced
this pull request
Sep 22, 2025
(cherry picked from commit 3a98763)
KannarFr
pushed a commit
to CleverCloud/pulsar
that referenced
this pull request
Sep 22, 2025
poorbarcode
added a commit
that referenced
this pull request
Sep 23, 2025
(cherry picked from commit 3a98763)
poorbarcode
added a commit
that referenced
this pull request
Sep 23, 2025
(cherry picked from commit 3a98763)
walkinggo
pushed a commit
to walkinggo/pulsar
that referenced
this pull request
Oct 8, 2025
nodece
pushed a commit
to ascentstream/pulsar
that referenced
this pull request
Oct 30, 2025
(cherry picked from commit 3a98763)
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-4.0
cherry-picked/branch-4.1
doc-not-needed
Your PR changes do not impact docs
ready-to-test
release/3.0.14
release/4.0.7
release/4.1.1
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
The steps of reproducing the issue:
5entries, the last confirmed is4[0 ~ 3][0 ~ 4], the error will occur.Root cause
After the previous round of reading, the
offsetof the stream is the start position of the latest entry. If Pulsar tries to read[0 ~ LAC], it will encounter the bottom logic branch:skip the latest entry, then the next round look will receive anEOFExceptionbecause the stream is empty.https://github.com/apache/pulsar/blob/v4.1.0/tiered-storage/jcloud/src/main/java/org/apache/bookkeeper/mledger/offload/jcloud/impl/BlobStoreBackedReadHandleImpl.java#L210
Modifications
hashCode and equalsforOffloadIndexEntryImpl, since Pulsar callsequalshere: https://github.com/apache/pulsar/blob/v4.1.0/tiered-storage/jcloud/src/main/java/org/apache/bookkeeper/mledger/offload/jcloud/impl/BlobStoreBackedReadHandleImpl.java#L193DataInputStream.readIntif the value is unexpected.Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: x