Convert match_delegate and composite filter as dual filter (2nd approach)#33013
Conversation
…ach) Signed-off-by: Yanjun Xiang <yanjunxiang@google.com>
Signed-off-by: Yanjun Xiang <yanjunxiang@google.com>
Signed-off-by: Yanjun Xiang <yanjunxiang@google.com>
|
/assign @wbpcode @tyxia @juanmolle |
|
@juanmolle cannot be assigned to this issue. |
Signed-off-by: Yanjun Xiang <yanjunxiang@google.com>
|
/assign @tyxia |
|
/wait (label was removed by my comment...) |
|
I have left a comment in the old PR, not an issue I guess but could need to verify
From @yanjunxiang-google investigation:
|
…ter test Signed-off-by: Yanjun Xiang <yanjunxiang@google.com>
Signed-off-by: Yanjun Xiang <yanjunxiang@google.com>
Signed-off-by: Yanjun Xiang <yanjunxiang@google.com>
tyxia
left a comment
There was a problem hiding this comment.
Nice work!
Mostly LGTM, modulo some comments. Thanks!
Signed-off-by: Yanjun Xiang <yanjunxiang@google.com>
Signed-off-by: Yanjun Xiang <yanjunxiang@google.com>
Signed-off-by: Yanjun Xiang <yanjunxiang@google.com>
Signed-off-by: Yanjun Xiang <yanjunxiang@google.com>
Signed-off-by: Yanjun Xiang <yanjunxiang@google.com>
wbpcode
left a comment
There was a problem hiding this comment.
LGTM overall with nit comment. Thanks.
|
/wait-any |
I think the original concern is that if the filter is upstream filter chain, and in case of hedging or retries, how the filter state should behave? In that case, I guess the logic here can handle it: . i.e, it always update the filter state to the latestion action_name.You raised a good point that the composite filter might be configured in both downstream and upstream filter chain. Is your concern that as there is just one key: , that will cause conflicts?Anyway, I raised an issue #33343 to track this. If the consensus is to skip writing the filter state if the composite filter is in upstream, I will create a separate PR to address it. |
Signed-off-by: Yanjun Xiang <yanjunxiang@google.com>
Signed-off-by: Yanjun Xiang <yanjunxiang@google.com>
Signed-off-by: Yanjun Xiang <yanjunxiang@google.com>
|
Kind ping! |
|
Would it work if you split this review in two, one for each filter, to make it easier to review? /wait-any |
Thanks for the comments! |
…ach) (envoyproxy#33013) --------- Signed-off-by: Yanjun Xiang <yanjunxiang@google.com>
Convert match_delegate and composite filter as dual filter.
As match_delegate filter has downstream filter factory logic, treat it as special case. i.e, Having it inherit from
NamedHttpFilterConfigFactory, and UpstreamHttpFilterConfigFactory, kind like DualFactoryBase.
This PR is an alternative approach of #32777.
Commit Message:
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:]