Skip to content

[ext_proc] Ext proc half close on destroy and defer reset till trailers received. #37083

Merged
tyxia merged 5 commits intoenvoyproxy:mainfrom
stevenzzzz:ext-proc-half-close-on-destroy-defer-reset
Nov 11, 2024
Merged

[ext_proc] Ext proc half close on destroy and defer reset till trailers received. #37083
tyxia merged 5 commits intoenvoyproxy:mainfrom
stevenzzzz:ext-proc-half-close-on-destroy-defer-reset

Conversation

@stevenzzzz
Copy link
Copy Markdown
Contributor

@stevenzzzz stevenzzzz commented Nov 10, 2024

Commit Message: [ext_proc] Ext proc half close on destroy and defer reset till trailers received.
Additional Description: In Grpc, the trailers carries the grpc-status header terminates a rpc stream. Our current flow ignores the trailers by closeStream and resetStream all together, the later resetStream call would signal the remote server a CANCEL, while clean the sidestream and ignore any possible trailers that might have been sent by ext_proc server.
This PR would defer the cleanup of the side stream till a trailers been received, or till a cleanup timer fires.

Risk Level: medium
Testing: unit tests
Docs Changes:
Release Notes:
Platform Specific Features:

…reset till trailers received or timer out

Signed-off-by: Xin Zhuang <[email protected]>
Signed-off-by: Xin Zhuang <[email protected]>
Signed-off-by: Xin Zhuang <[email protected]>
@stevenzzzz stevenzzzz changed the title [ext_proc] Ext proc half close on destroy and defer reset till trailers received. [draft] [ext_proc] Ext proc half close on destroy and defer reset till trailers received. Nov 10, 2024
@stevenzzzz
Copy link
Copy Markdown
Contributor Author

/retest

@stevenzzzz stevenzzzz changed the title [draft] [ext_proc] Ext proc half close on destroy and defer reset till trailers received. [ext_proc] Ext proc half close on destroy and defer reset till trailers received. Nov 10, 2024
Signed-off-by: Xin Zhuang <[email protected]>
Signed-off-by: Xin Zhuang <[email protected]>
Copy link
Copy Markdown
Member

@tyxia tyxia left a comment

Choose a reason for hiding this comment

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

LGTM, Thanks.

This is same as internal change, right?

@stevenzzzz
Copy link
Copy Markdown
Contributor Author

yeah, it's a patch from the internal CL.

@tyxia tyxia merged commit 0b90f64 into envoyproxy:main Nov 11, 2024
yanavlasov added a commit to yanavlasov/envoy that referenced this pull request Dec 12, 2024
… trailers received. (envoyproxy#37083)"

This reverts commit 0b90f64.

Signed-off-by: Yan Avlasov <[email protected]>
yanavlasov added a commit that referenced this pull request Dec 20, 2024
… trailers received. (#37083)" (#37639)

This PR is **suspected** of causing instability in prod. The cause is not yet fully diagnosed, but it is reverted as a safety measure.

Risk Level: Low
Testing: Unit tests
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

Signed-off-by: Yan Avlasov <[email protected]>
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