Repository navigation
wasm: remove unused public interfaces - #36941
Merged
Merged
Conversation
Change-Id: I171afa0d240065d3f4872730fc71d70a46c03a93 Signed-off-by: Kuat Yessenov <[email protected]>
kyessenov
enabled auto-merge (squash)
October 31, 2024 19:56
wbpcode
approved these changes
Nov 1, 2024
wbpcode
added a commit
that referenced
this pull request
Aug 28, 2026
Commit Message: wasm: fix multiple bug of vm key and plugin key calculation Additional Description: This PR fixed tow bugs of wasm vm cache key and wasm plugin cache key: - now, the whole PluginConfig will be used to calculate the cache key. Before this change, the plugins with different `allow_on_headers_stop_iteration` may hit same cached plugin handle and make unexpected behavior. - now, the `capability_restriction_config` and `runtime` will be used to calculate the vm cache key. Before this change, the plugin VMs with different `capability_restriction_config` and `runtime` may hit same cache and result in unexpected behavior. --- Now, we also removed the traffic direction from the plugin cache key. It's safe because it's unnecessary now. Long time ago, before the #31365, we cannot extract the listener info from the connection info, so the WASM will get the traffic direction and listener metadata from the FactoryContext and store the reference at the cached plugin. Then when `get_property` ABI is used, the plugin could serve the related attributes. And to avoid the wasm plugins that be configured in different listeners (with different direction/metadata) hit same plugin cache, we added the listener metadata and traffic direction in to plugin cache key calculation at #17243. But at the #36619 , we have did a great refactoring and removed the dependencies to the traffic direction and listener metadata from the FactoryContext. The `get_property` ABI will get attributes from the stream info and stream level context. So, after that, it's unnecessary to use the listener metadata and traffic direction as cache key. And at the #36941, we removed the traffic direction and listener metadata from the cached plugin completely. After that, the traffic direction/metadata make nonsense in the cache key. Risk Level: low. Testing: n/a. Docs Changes: n/a. Release Notes: added. Platform Specific Features: n/a. --------- Signed-off-by: wbpcode <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change-Id: I171afa0d240065d3f4872730fc71d70a46c03a93
Commit Message: remove listener info accessors in plugin config since they are dead code
Risk Level: low