Repository navigation
Conversation
|
Before to start the fixing, did we get a conclusion about the original problem? Ideally, the connect upgrade should ensure the filter state should be set only once? |
|
@wbpcode Per the response from @kyessenov here, it seems that the issue is happening as both the outer and the internal listeners are HTTP and the connections are getting pooled. The suggestion to implement a new hashable interface is from Kuat so that we can uniquely distinguish the state while picking the connections rather than re-using the connections across different requests having different filter metadata. cc @kyessenov |
|
So, as my previous guession, part of requests don't upgrade to connect? (Not use connect) |
Signed-off-by: Rohit Agrawal <[email protected]>
d5b17a9 to
90a0854
Compare
@wbpcode The outer (downstream) listener accepts mixed traffic and based on the route matching rules, send the raw TCP requests to the internal listener for decapsulating. Internal listener should just be receiving only one type of traffic i.e. with raw TCP which needs decapsulating but given the behavior of receiving mixed traffic on the outer listener, is it possible that somehow the connections to internal listener are being shared? I am not very familiar with this code but implementing the hashing solved the issue and we no longer see any state sharing. |
|
Assigning stakeholders from the issue. |
|
We need to root cause the linked issue since it is unexpected with pure TCP streams before adding features. I'll try to reproduce locally when I get a chance. /wait |
|
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
|
@kyessenov Just checking if you got a chance to take a look at the underlying issue. I can share anything else you need for a local repro. |
|
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
|
This pull request has been automatically closed because it has not had activity in the last 37 days. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
Background
See: #35711
Changes
This PR adds a new generic string object factory with hashing interface in filter state with key
envoy.hashable_stringwhich could be used when unique upstream connection needs to be picked based on the hash of the value of filter state being shared.Commit Message: filter_state: add new envoy.hashable_string object factory.
Additional Description: See Background Section.
Risk Level: Low
Testing: Unit Tests
Docs Changes: Added the description of the new object factory.
Release Notes: Added
Platform Specific Features: N/A
Signed-off-by: Rohit Agrawal [email protected]