Skip to content

dym sdk: add on destory event hook#43673

Merged
mathetake merged 2 commits into
envoyproxy:mainfrom
wbpcode:dev-add-on-destory-to-filter
Feb 27, 2026
Merged

dym sdk: add on destory event hook#43673
mathetake merged 2 commits into
envoyproxy:mainfrom
wbpcode:dev-add-on-destory-to-filter

Conversation

@wbpcode
Copy link
Copy Markdown
Member

@wbpcode wbpcode commented Feb 27, 2026

Commit Message: dym skd: add on destory event hook
Additional Description:

Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

Signed-off-by: wbpcode/wangbaiping <wbphub@gmail.com>
@wbpcode wbpcode changed the title dym skd: add on destory event hook dym sdk: add on destory event hook Feb 27, 2026
* after onStreamComplete and access logs are flushed. This is a good place to release
* any per-stream resources.
*/
virtual void onDestroy() = 0;
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.

I'm sure this is not necessary to be idiomatic Rust for Rust SDK where we can use Drop trait already but isn't it the same for C++ here? This is essentially the same as Deconstructor ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is designed initially for golang where users doesn't want to use the finalizer, and then I think keep cpp and golang be same make no side effect anyway, esp they are almost same in all other positions. So, I also added it for cpp. I have no strong point if you want to remove it.

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.

yeah not strong as long as Rust doesn't have it

Copy link
Copy Markdown
Member

@agrawroh agrawroh 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!

@mathetake mathetake merged commit c96a763 into envoyproxy:main Feb 27, 2026
28 checks passed
@adisuissa
Copy link
Copy Markdown
Contributor

This PR seems to be breaking CI (https://github.com/envoyproxy/envoy/actions/runs/22502826468/job/65194038428#step:19:498). I'm not sure how it passed CI in the first place. Should this be reverted?

@mathetake
Copy link
Copy Markdown
Member

#43689

@mathetake mathetake mentioned this pull request Feb 27, 2026
mathetake added a commit that referenced this pull request Feb 27, 2026
Follow up on #43673

Signed-off-by: Takeshi Yoneda <tyoneda@netflix.com>
@wbpcode wbpcode deleted the dev-add-on-destory-to-filter branch February 28, 2026 00:46
bmjask pushed a commit to bmjask/envoy that referenced this pull request Mar 14, 2026
Commit Message: dym skd: add on destory event hook
Additional Description:

Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional [API
Considerations](https://github.com/envoyproxy/envoy/blob/main/api/review_checklist.md):]

Signed-off-by: wbpcode/wangbaiping <wbphub@gmail.com>
Signed-off-by: bjmask <11672696+bjmask@users.noreply.github.com>
bmjask pushed a commit to bmjask/envoy that referenced this pull request Mar 14, 2026
Follow up on envoyproxy#43673

Signed-off-by: Takeshi Yoneda <tyoneda@netflix.com>
Signed-off-by: bjmask <11672696+bjmask@users.noreply.github.com>
bvandewalle pushed a commit to bvandewalle/envoy that referenced this pull request Mar 17, 2026
Commit Message: dym skd: add on destory event hook
Additional Description:

Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional [API
Considerations](https://github.com/envoyproxy/envoy/blob/main/api/review_checklist.md):]

Signed-off-by: wbpcode/wangbaiping <wbphub@gmail.com>
bvandewalle pushed a commit to bvandewalle/envoy that referenced this pull request Mar 17, 2026
Follow up on envoyproxy#43673

Signed-off-by: Takeshi Yoneda <tyoneda@netflix.com>
fishcakez pushed a commit to fishcakez/envoy that referenced this pull request Mar 25, 2026
Commit Message: dym skd: add on destory event hook
Additional Description:

Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional [API
Considerations](https://github.com/envoyproxy/envoy/blob/main/api/review_checklist.md):]

Signed-off-by: wbpcode/wangbaiping <wbphub@gmail.com>
fishcakez pushed a commit to fishcakez/envoy that referenced this pull request Mar 25, 2026
Follow up on envoyproxy#43673

Signed-off-by: Takeshi Yoneda <tyoneda@netflix.com>
krinkinmu pushed a commit to grnmeira/envoy that referenced this pull request Apr 20, 2026
Commit Message: dym skd: add on destory event hook
Additional Description:

Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional [API
Considerations](https://github.com/envoyproxy/envoy/blob/main/api/review_checklist.md):]

Signed-off-by: wbpcode/wangbaiping <wbphub@gmail.com>
krinkinmu pushed a commit to grnmeira/envoy that referenced this pull request Apr 20, 2026
Follow up on envoyproxy#43673

Signed-off-by: Takeshi Yoneda <tyoneda@netflix.com>
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.

4 participants