Skip to content

fix(selective_channel): isolate backup responses and add race regress…#3294

Merged
chenBright merged 1 commit into
apache:masterfrom
altman08:master
May 13, 2026
Merged

fix(selective_channel): isolate backup responses and add race regress…#3294
chenBright merged 1 commit into
apache:masterfrom
altman08:master

Conversation

@altman08
Copy link
Copy Markdown
Contributor

…ion test

What problem does this PR solve?

Issue Number: resolve

Problem Summary:
In SelectiveChannel backup-request flows, two concurrent subcalls may race on response lifecycle and produce inconsistent response data (e.g. unexpected repeated field sizes). In worse timing windows, this can lead to memory corruption and crash during protobuf cleanup (observed in RepeatedPtrFieldBase::DestroyProtos while clearing sub-responses).

What is changed and the side effects?

Changed:

Side effects:

  • Performance effects:

  • Breaking backward compatibility:


Check List:

@wwbmmm
Copy link
Copy Markdown
Contributor

wwbmmm commented May 13, 2026

LGTM

Copy link
Copy Markdown
Contributor

@chenBright chenBright left a comment

Choose a reason for hiding this comment

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

LGTM

@chenBright chenBright merged commit 321c789 into apache:master May 13, 2026
28 of 30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants