Skip to content

Add comment for #2644#2657

Open
fsamuel-bs wants to merge 2 commits intodevelopfrom
ssouza/comment
Open

Add comment for #2644#2657
fsamuel-bs wants to merge 2 commits intodevelopfrom
ssouza/comment

Conversation

@fsamuel-bs
Copy link
Copy Markdown
Contributor

Before this PR

See #2644 (comment)

After this PR

==COMMIT_MSG==

==COMMIT_MSG==

Possible downsides?

…gChannel.java

Co-authored-by: Alexis Le Dantec <53899003+aldexis@users.noreply.github.com>
if (requestCanBeRetried() && shouldAttemptToRetry(clientSideThrowable)) {
callsiteStacktrace.ifPresent(clientSideThrowable::addSuppressed);
Meter retryReason = retryDueToThrowable.apply(clientSideThrowable);
// Retry immediately when we failed to reach the server, since it wasn't a capacity issue
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just because we are in this code path does not mean we failed to reach the server.

callsiteStacktrace.ifPresent(clientSideThrowable::addSuppressed);
Meter retryReason = retryDueToThrowable.apply(clientSideThrowable);
// Retry immediately when we failed to reach the server, since it wasn't a capacity issue
// Note that this should retry on another node with DialogueNodeSelectionStrategy.BALANCED,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

"should" feels like too strong of language here. There is no guarantee that we will retry on another node.

I would phrase this like "It is expected that most of the time the request will be retried on another node..."

@stale
Copy link
Copy Markdown

stale Bot commented Oct 18, 2025

This PR has been automatically marked as stale because it has not been touched in the last 14 days. If you'd like to keep it open, please leave a comment or add the 'long-lived' label, otherwise it'll be closed in 7 days.

@stale stale Bot added the stale label Oct 18, 2025
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