Skip to content

Fix ext_proc duplicate data issue - #37994

Merged
yanavlasov merged 2 commits into
envoyproxy:mainfrom
yanjunxiang-google:ext_proc_duplicate
Jan 16, 2025
Merged

yanavlasov merged 2 commits into
envoyproxy:mainfrom
yanjunxiang-google:ext_proc_duplicate

Conversation

@yanjunxiang-google

@yanjunxiang-google yanjunxiang-google commented Jan 14, 2025 •

Copy link
Copy Markdown
Contributor

Fixes: #36119

The issue is due to ext_proc failed to send the last empty chunk with end_stream = true to the backend server. This ends up causing a copy of the data stored in the decoding buffer for the retry purpose are sent again, which caused duplicate data is sent to backend server. The fix is simply having the ext_proc filter inject the last empty chunk to the filter chain and send to the backend server.

@repokitteh-read-only

Copy link
Copy Markdown

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #37994 was opened by yanjunxiang-google.

see: more, trace.

@yanjunxiang-google
yanjunxiang-google marked this pull request as ready for review January 14, 2025 16:48
@yanjunxiang-google

Copy link
Copy Markdown
Contributor Author

/retest

@yanjunxiang-google

Copy link
Copy Markdown
Contributor Author

/assign @yanavlasov

@yanavlasov
yanavlasov merged commit a8c1aa5 into envoyproxy:main Jan 16, 2025
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.

Ext-proc STREAMED mode with router Retry_policy will send duplicated request body

3 participants