You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A few details about this specific envoy, I'm running an external_processor filter, followed by a wasm filter. The envoy's clusters and routes are configured dynamically from an xds-server.
One interesting part is that all my replicas seem to be crashing in the same time. So this made me look towards the common xds service, but I can't exclude some lifecycle race condition somewhere that occurs after failures from my external_processor grpc service.
I tried reproducing, with a similar setup, ext_proc + wasm, having the ext_proc timeout for half the requests, while also sending cds updates every 10ms, but it works as expected.
Does the team here have any ideas what could cause this or how to investigate further? It just seems the response_headers handler is called after the context is removed (on_done).
The text was updated successfully, but these errors were encountered:
It seems that your Proxy-Wasm plugin receives HTTP response for a HTTP request that it didn't receive.
One scenario that comes to mind (but I didn't verify it) is that your ext_proc filter (or something else, really) is returning a local error response, and Envoy sends it through the whole filter chain, which then triggers proxy_on_response_headers without a prior proxy_on_request_headers in your plugin.
This might explain this behavior, and there was a number of issues related to sending locally generated error responses through the whole filter chain in the past.
If you could run Envoy with logging at the trace level, it would include all Proxy-Wasm calls, and we could see the whole flow for the request that's panicking to confirm if that's the case.
I'm facing a weird panic, which does happen in my app, however not frequently, and I can't seem to reproduce it.
The panic is this one:
A few details about this specific envoy, I'm running an external_processor filter, followed by a wasm filter. The envoy's clusters and routes are configured dynamically from an xds-server.
One interesting part is that all my replicas seem to be crashing in the same time. So this made me look towards the common xds service, but I can't exclude some lifecycle race condition somewhere that occurs after failures from my external_processor grpc service.
I tried reproducing, with a similar setup, ext_proc + wasm, having the ext_proc timeout for half the requests, while also sending cds updates every 10ms, but it works as expected.
Does the team here have any ideas what could cause this or how to investigate further? It just seems the response_headers handler is called after the context is removed (on_done).
The text was updated successfully, but these errors were encountered: