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
{{ message }}
Repository navigation
Body duplication when using the ExtProc filter and enabling retry policy #45470
Title: Body duplication when using the ExtProc filter and enabling retry policy
Description:
Envoy version: 1.35.6
When using the ExtProc filter with requestBodyProcessingMode=FULL_DUPLEX_STREAMED, the request body is duplicated when retries are enabled.
The size of the HTTP request body is indeed 24 bytes, but a duplicate body with a size of 48 bytes is sent to the server.
When running envoy in debug mode, I saw the following:
The ExtProc filter injects 24 bytes.
The router filter receives data and it sends this data. Since retry is enabled, the router buffers this data.
Then ExtProc receives TrailersResponse and calls continueDecoding().
decodeData() is called for the router filter, where data from the buffer is passed as the data parameter.
The log shows that decodeData() for the router filter was called twice.
The first time with data injected by ExtProc (24 bytes).
The second time with the data that is in the buffer, that is, the same 24 bytes.
If retries is disabled, the data is not buffered and an empty buffer is sent to decodeData for the second time and nothing additional is sent.
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions.
Activity
nezdolik commentedon Jun 7, 2026
cc @yanavlasov @yanjunxiang-google
yanjunxiang-google commentedon Jun 25, 2026
@Zagitori Could you please enable Envoy trace log and share the logs when the problem is happening?
Zagitori commentedon Jun 29, 2026
Full trace logs:
yanjunxiang-google commentedon Jun 30, 2026
Interesting, from the logs above, the decoder path, the "decodeData(24") only show up once, same for "Injecting 24 bytes"
Zagitori commentedon Jul 1, 2026
The size of the HTTP request body is indeed 24 bytes, but a duplicate body with a size of 48 bytes is sent to the server.
When running envoy in debug mode, I saw the following:
The log shows that decodeData() for the router filter was called twice.
The first time with data injected by ExtProc (24 bytes).
The second time with the data that is in the buffer, that is, the same 24 bytes.
If retries is disabled, the data is not buffered and an empty buffer is sent to decodeData for the second time and nothing additional is sent.
github-actions commentedon Jul 31, 2026
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.
github-actions commentedon Aug 7, 2026
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions.