Skip to content

[CELEBORN-2183] Fix client tries to start a connection with excluded workers#3517

Closed
r7raul1984 wants to merge 5 commits intoapache:mainfrom
r7raul1984:CELEBORN-2183
Closed

[CELEBORN-2183] Fix client tries to start a connection with excluded workers#3517
r7raul1984 wants to merge 5 commits intoapache:mainfrom
r7raul1984:CELEBORN-2183

Conversation

@r7raul1984
Copy link
Copy Markdown

What changes were proposed in this pull request?

Do not attempt to fetch from any worker that has already been added to fetchExcludedWorkers. Instead, try fetching from a peer worker within the same PartitionLocation.

Why are the changes needed?

With the configuration celeborn.client.fetch.excludeWorkerOnFailure.enabled=true and celeborn.client.push.replicate.enabled=true,
when a fetch operation fails for a specific worker, that worker is added to fetchExcludedWorkers. However, subsequent attempts still try to fetch from this worker, causing repeated errors and slowing down shuffle fetch performance.
The logic should be modified so that any worker already in fetchExcludedWorkers is completely excluded from further fetch operations.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Manual test by debug

@SteNicholas SteNicholas changed the title [CELEBORN-2183]Client always tries to start a connection with exclude… [CELEBORN-2183] Client always tries to start a connection with exclude wrokers Oct 23, 2025
Copy link
Copy Markdown
Member

@SteNicholas SteNicholas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@r7raul1984, thanks for contribution. Please run dev/reformat to format.

@r7raul1984
Copy link
Copy Markdown
Author

@r7raul1984, thanks for contribution. Please run dev/reformat to format.

ok

@SteNicholas SteNicholas changed the title [CELEBORN-2183] Client always tries to start a connection with exclude wrokers [CELEBORN-2183] Client always tries to start a connection with exclude workers Oct 23, 2025
@SteNicholas SteNicholas changed the title [CELEBORN-2183] Client always tries to start a connection with exclude workers [CELEBORN-2183] Client always tries to start a connection with excluded workers Oct 23, 2025
@SteNicholas SteNicholas changed the title [CELEBORN-2183] Client always tries to start a connection with excluded workers [CELEBORN-2183] Fix client tries to start a connection with excluded workers Oct 23, 2025
Comment thread client/src/main/java/org/apache/celeborn/client/read/CelebornInputStream.java Outdated
fetchChunkRetryCnt++;
if (location.hasPeer() && !readSkewPartitionWithoutMapRange) {
if (location.hasPeer()
&& !isExcluded(location.getPeer())
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It appears that isExcluded(location.getPeer()) now serves the same purpose as isExcluded(location) at line 455.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My idea is to add this here to prevent throwing a new CelebornIOException at line 456.

@SteNicholas
Copy link
Copy Markdown
Member

@r7raul1984, any update?

@r7raul1984
Copy link
Copy Markdown
Author

@r7raul1984, any update?

No more update

@SteNicholas SteNicholas requested a review from RexXiong November 17, 2025 06:02
@SteNicholas
Copy link
Copy Markdown
Member

@r7raul1984, the CI run failed. PTAL.

@r7raul1984
Copy link
Copy Markdown
Author

PTAL

ok

@r7raul1984
Copy link
Copy Markdown
Author

@r7raul1984, the CI run failed. PTAL.

how to rerun these checks?

@SteNicholas
Copy link
Copy Markdown
Member

@r7raul1984, you'd better to close this pull request and reopen.

@r7raul1984 r7raul1984 closed this Nov 19, 2025
@r7raul1984 r7raul1984 reopened this Nov 19, 2025
@r7raul1984 r7raul1984 closed this Nov 19, 2025
@r7raul1984 r7raul1984 reopened this Nov 19, 2025
@r7raul1984
Copy link
Copy Markdown
Author

@r7raul1984, you'd better to close this pull request and reopen.

It’s very strange — there are three checks that always fail randomly.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Dec 9, 2025

This PR is stale because it has been open 20 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@github-actions github-actions Bot added stale and removed stale labels Dec 9, 2025
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 6, 2026

This PR is stale because it has been open 20 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@github-actions github-actions Bot added the stale label Jan 6, 2026
@github-actions
Copy link
Copy Markdown

This issue was closed because it has been staled for 10 days with no activity.

@github-actions github-actions Bot closed this Jan 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants