[client] Throw Exception when retry several times when downloading log.#1752
Open
loserwang1024 wants to merge 1 commit into
Open
[client] Throw Exception when retry several times when downloading log.#1752loserwang1024 wants to merge 1 commit into
loserwang1024 wants to merge 1 commit into
Conversation
Contributor
Author
|
@wuchong , CC |
a7076d3 to
21b2484
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
This PR aims to address issue #1751 (RemoteLogDownloader deadlock on download failures) by changing remote log download failure handling to retry a fixed number of times and then surface an exception to the client, plus plumbing failures through the fetch buffer/collector so the scanner can fail instead of stalling.
Changes:
- Add retry + exception propagation for remote log segment download failures.
- Propagate pending-fetch completion failures through
LogFetchBufferviaFetchException. - Add/extend unit tests covering fetch exception behavior in downloader/buffer/collector.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
fluss-client/src/main/java/org/apache/fluss/client/table/scanner/log/RemoteLogDownloader.java |
Adds retry/error handling path for remote downloads (but currently has retry logic issues). |
fluss-client/src/main/java/org/apache/fluss/client/table/scanner/log/LogFetchBuffer.java |
Adds exception propagation via stored throwable and throws FetchException from peek/poll. |
fluss-client/src/main/java/org/apache/fluss/client/table/scanner/log/LogFetcher.java |
Updates collectFetch signature and (implicitly) relies on new exception propagation behavior. |
fluss-client/src/test/java/org/apache/fluss/client/table/scanner/log/RemoteLogDownloaderTest.java |
Adds test for downloader failure behavior (contains an unused variable). |
fluss-client/src/test/java/org/apache/fluss/client/table/scanner/log/LogFetchCollectorTest.java |
Adds test ensuring fetch exceptions propagate out of the collector. |
fluss-client/src/test/java/org/apache/fluss/client/table/scanner/log/LogFetchBufferTest.java |
Adds test ensuring buffer surfaces exceptions on peek/poll. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
a7f0c1a to
737b2a1
Compare
Contributor
Author
|
@wuchong , fix this test |
737b2a1 to
416c8e7
Compare
Contributor
Author
|
@wuchong , CC, it's important for me. |
2 tasks
416c8e7 to
0d91d8b
Compare
Contributor
Author
|
@swuferhong , I have rebased this PR, CC |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Purpose
Linked issue: close #1751
Brief change log
Tests
API and Format
Documentation