Skip to content

[bp/1.27] buffer: separate the BufferFragement release and drain tracker (#28770)#30788

Merged
phlax merged 2 commits intoenvoyproxy:release/v1.27from
soulxu:fix_buffer_1.27
Nov 21, 2023
Merged

[bp/1.27] buffer: separate the BufferFragement release and drain tracker (#28770)#30788
phlax merged 2 commits intoenvoyproxy:release/v1.27from
soulxu:fix_buffer_1.27

Conversation

@soulxu
Copy link
Copy Markdown
Member

@soulxu soulxu commented Nov 9, 2023

Commit Message: [bp/1.27] buffer: separate the BufferFragement release and drain tracker (#28770)
Additional Description:
This the backport of #28770

There is a requirement for the user space io handle and iouring io handle to move the write buffer to its own buffer and invoke the drain trackers. But becomes an issue for the BufferFragment, the BufferFragement's releasor is invoked by the drain tracker also. After moving with invoke drain trackers, the memory in the BufferFragment will be released too, which leads to the Buffer reference some memory already released.
Risk Level: high
Testing: unittest
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a
Fixes #28760
Related to issue: #28395

@soulxu soulxu requested a review from kyessenov as a code owner November 9, 2023 02:01
@soulxu
Copy link
Copy Markdown
Member Author

soulxu commented Nov 9, 2023

cc @phlax @ggreenway

@ggreenway
Copy link
Copy Markdown
Member

DCO failed

/wait

@soulxu
Copy link
Copy Markdown
Member Author

soulxu commented Nov 10, 2023

@phlax do you know what happened to the DCO? it seems failed on many old commits

@phlax
Copy link
Copy Markdown
Member

phlax commented Nov 10, 2023

not sure why DCO is failing - the message is pretty obviously signed

Signed-off-by: He Jie Xu <hejie.xu@intel.com>
@phlax phlax self-assigned this Nov 16, 2023
@soulxu
Copy link
Copy Markdown
Member Author

soulxu commented Nov 21, 2023

@phlax would you like to take a look at this? thanks!

Copy link
Copy Markdown
Member

@phlax phlax 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 @soulxu

@phlax phlax merged commit 1cea1f3 into envoyproxy:release/v1.27 Nov 21, 2023
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