-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
wasm: allow execution of multiple instances of the same plugin. #13753
Conversation
@lizan I got the context by following related issues. @PiotrSikora If there's anything I can help, let me know |
Fixes envoyproxy#13690. Signed-off-by: Piotr Sikora <piotrsikora@google.com>
1987a19
to
697dc19
Compare
@mathetake this is ready for review now (@lizan could we add @mathetake to assignable?) |
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tested this against proxy-wasm-go-sdk's e2e and it works as well! LGTM after the fix of proxy-wasm-cpp-host repository location @PiotrSikora
Signed-off-by: mathetake <takeshi@tetrate.io>
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
…nfig_id Signed-off-by: Piotr Sikora <piotrsikora@google.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I realize that usign tls_slog->get()
would cause a crash during shutdown (e.g. handling SIGTERM) if it's not a release build: https://github.com/envoyproxy/envoy/blob/master/source/common/thread_local/thread_local_impl.cc#L66-L66
looks like using currentThreadRegistered
would be better to check if the slot exists
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Thanks for iterating, this looks much better. LMK when this is ready for review again and not pointing at your branch. /wait |
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
@mattklein123 this should be good to go, but it needs #13930 and #13932 to be merged first. |
OK just ping me when this is ready. /wait |
…nfig_id Signed-off-by: Piotr Sikora <piotrsikora@google.com>
…nfig_id Signed-off-by: Piotr Sikora <piotrsikora@google.com>
@mattklein123 all other PRs are now merged, so this is ready for review / merge. Thanks! cc @envoyproxy/dependency-shepherds for dependency update. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice cleanup, thanks.
Fixes #13690.
Signed-off-by: Piotr Sikora piotrsikora@google.com