Skip to content

Delete failed Plugin/VMs via fail callbacks. #181

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Aug 11, 2021

Conversation

mathetake
Copy link
Contributor

Towards envoyproxy/envoy#16726

Signed-off-by: Takeshi Yoneda [email protected]

Signed-off-by: Takeshi Yoneda <[email protected]>
Copy link
Member

@PiotrSikora PiotrSikora left a comment

Choose a reason for hiding this comment

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

Would it be possible to add some basic tests for this behavior to verify that:

  1. Failed VMs and Plugins are not reused.
  2. VMs and Plugins can be restarted using the same keys.

I think this works fine right now, so those tests are primarly about protecting us against future regressions.

@mathetake mathetake force-pushed the add-failabackcall branch 2 times, most recently from 9cded75 to d04a12b Compare August 4, 2021 05:56
@mathetake mathetake marked this pull request as ready for review August 4, 2021 05:57
@mathetake
Copy link
Contributor Author

OK added test!

@mathetake mathetake changed the title Add addFailCallback to WasmBase. Delete failed Plugin/VMs via fail callbacks. Aug 4, 2021
@mathetake mathetake requested a review from PiotrSikora August 4, 2021 06:14
Copy link
Member

@PiotrSikora PiotrSikora left a comment

Choose a reason for hiding this comment

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

LGTM, but did you see envoyproxy/envoy#17386 (comment)? Would it be possible to add PluginHandleManager here? It could be in a separate PR.

@mathetake
Copy link
Contributor Author

mathetake commented Aug 10, 2021

sorry, I am thinking I will do that in a separate PR since this PR itself is a little bit large, plus this requires no code change in Envoy. Thanks!

@PiotrSikora
Copy link
Member

You might consider waiting with merging this until the next PR is ready to minimize the window when we cannot update Envoy.

@mathetake
Copy link
Contributor Author

well I think this PR requires no change in Envoy so this won't block anyone even after I merge this right now.

@mathetake mathetake merged commit 668bc99 into proxy-wasm:master Aug 11, 2021
@mathetake mathetake deleted the add-failabackcall branch August 11, 2021 00:47
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.

2 participants