Skip to content

http2: deflake RstStreamOverflowOnPendingFlushTimeout - #48791

Merged
RyanTheOptimist merged 2 commits into
envoyproxy:mainfrom
derekargueta:dargueta-deflake-http2-flood-flush-timeout
Nov 2, 2026
Merged

RyanTheOptimist merged 2 commits into
envoyproxy:mainfrom
derekargueta:dargueta-deflake-http2-flood-flush-timeout

Conversation

@derekargueta

@derekargueta derekargueta commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

Commit Message: http2: deflake RstStreamOverflowOnPendingFlushTimeout

The test set stream_idle_timeout to 400ms only to get a 400ms pending flush timer, since stream_flush_timeout defaults to it. The idle timer also covers the pre-fill stream, so that stream's upstream response had to start within 400ms of the request. On a slow runner the idle timeout fired first and left its local reply's two frames queued. The test then timed out waiting for 998 queued frames with "current value 2".

This sets stream_flush_timeout to 400ms instead and leaves the idle timeout at its default. The flush timeout, RST_STREAM and overflow path the test is about doesn't change.

Additional Description:
It failed on 9 changes between 10-05 and 10-22 under tsan, always on oghttp2 with "current value 2". #45189 reported the same symptom back in May. Delaying the autonomous upstream's response by 500ms reproduces it on both codecs, so the oghttp2 skew in CI is just that codec being slower.

AI Disclaimer: code change created with AI assistance, fully reviewed by me prior to opening.

Risk Level: Low (test only)
Testing:

  • 500ms delayed-response repro: 12/12 runs failed with the CI message before, 12/12 pass after (all four codec/IP params)
  • bazel test //test/integration:http2_flood_integration_test --runs_per_test=5: pass (macOS arm64, fastbuild)
    Docs Changes: N/A
    Release Notes: N/A
    Platform Specific Features: N/A

The test set stream_idle_timeout to 400ms only to get a 400ms pending flush
timer, since stream_flush_timeout defaults to it. The idle timer also
covers the pre-fill stream and is reset by decode-side events only, so the
pre-fill stream's whole response, 997 DATA frames proxied across threads,
had to arrive within 400ms of the request. On a slow runner the idle
timeout fired first, leaving its local reply's two frames queued, and the
test failed waiting for 998 queued frames with "current value 2".

Set stream_flush_timeout to 400ms instead and leave the idle timeout at its
default. Delaying the fake upstream's response by 500ms reproduces the CI
failure on every codec without this change and passes with it.

Signed-off-by: Derek Argueta <[email protected]>
@repokitteh-read-only

Copy link
Copy Markdown

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #48791 was opened by derekargueta.

see: more, trace.

Encoding response headers and data does reset the stream idle timer, so a
short stream_idle_timeout fires on the pre-fill stream only when its
upstream response is slow to start.

Signed-off-by: Derek Argueta <[email protected]>
@derekargueta
derekargueta marked this pull request as ready for review October 30, 2026 07:38
@RyanTheOptimist
RyanTheOptimist merged commit a42f23c into envoyproxy:main Nov 2, 2026
27 checks passed
phlax pushed a commit to phlax/envoy that referenced this pull request Nov 12, 2026
Commit Message: http2: deflake RstStreamOverflowOnPendingFlushTimeout

The test set `stream_idle_timeout` to 400ms only to get a 400ms pending
flush timer, since `stream_flush_timeout` defaults to it. The idle timer
also covers the pre-fill stream, so that stream's upstream response had
to start within 400ms of the request. On a slow runner the idle timeout
fired first and left its local reply's two frames queued. The test then
timed out waiting for 998 queued frames with "current value 2".

This sets `stream_flush_timeout` to 400ms instead and leaves the idle
timeout at its default. The flush timeout, RST_STREAM and overflow path
the test is about doesn't change.

Additional Description:
It failed on 9 changes between 10-05 and 10-22 under tsan, always on
oghttp2 with "current value 2". envoyproxy#45189 reported the same symptom back in
May. Delaying the autonomous upstream's response by 500ms reproduces it
on both codecs, so the oghttp2 skew in CI is just that codec being
slower.

AI Disclaimer: code change created with AI assistance, fully reviewed by
me prior to opening.

Risk Level: Low (test only)
Testing:
- 500ms delayed-response repro: 12/12 runs failed with the CI message
before, 12/12 pass after (all four codec/IP params)
- `bazel test //test/integration:http2_flood_integration_test
--runs_per_test=5`: pass (macOS arm64, fastbuild)
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

---------

Signed-off-by: Derek Argueta <[email protected]>
Signed-off-by: Ryan Northey <[email protected]>
jwendell pushed a commit that referenced this pull request Nov 12, 2026
Commit Message: http2: deflake RstStreamOverflowOnPendingFlushTimeout

The test set `stream_idle_timeout` to 400ms only to get a 400ms pending
flush timer, since `stream_flush_timeout` defaults to it. The idle timer
also covers the pre-fill stream, so that stream's upstream response had
to start within 400ms of the request. On a slow runner the idle timeout
fired first and left its local reply's two frames queued. The test then
timed out waiting for 998 queued frames with "current value 2".

This sets `stream_flush_timeout` to 400ms instead and leaves the idle
timeout at its default. The flush timeout, RST_STREAM and overflow path
the test is about doesn't change.

Additional Description:
It failed on 9 changes between 10-05 and 10-22 under tsan, always on
oghttp2 with "current value 2". #45189 reported the same symptom back in
May. Delaying the autonomous upstream's response by 500ms reproduces it
on both codecs, so the oghttp2 skew in CI is just that codec being
slower.

AI Disclaimer: code change created with AI assistance, fully reviewed by
me prior to opening.

Risk Level: Low (test only)
Testing:
- 500ms delayed-response repro: 12/12 runs failed with the CI message
before, 12/12 pass after (all four codec/IP params)
- `bazel test //test/integration:http2_flood_integration_test
--runs_per_test=5`: pass (macOS arm64, fastbuild)
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

---------

Signed-off-by: Derek Argueta <[email protected]>
Signed-off-by: Ryan Northey <[email protected]>
phlax pushed a commit to phlax/envoy that referenced this pull request Nov 16, 2026
Commit Message: http2: deflake RstStreamOverflowOnPendingFlushTimeout

The test set `stream_idle_timeout` to 400ms only to get a 400ms pending
flush timer, since `stream_flush_timeout` defaults to it. The idle timer
also covers the pre-fill stream, so that stream's upstream response had
to start within 400ms of the request. On a slow runner the idle timeout
fired first and left its local reply's two frames queued. The test then
timed out waiting for 998 queued frames with "current value 2".

This sets `stream_flush_timeout` to 400ms instead and leaves the idle
timeout at its default. The flush timeout, RST_STREAM and overflow path
the test is about doesn't change.

Additional Description:
It failed on 9 changes between 10-05 and 10-22 under tsan, always on
oghttp2 with "current value 2". envoyproxy#45189 reported the same symptom back in
May. Delaying the autonomous upstream's response by 500ms reproduces it
on both codecs, so the oghttp2 skew in CI is just that codec being
slower.

AI Disclaimer: code change created with AI assistance, fully reviewed by
me prior to opening.

Risk Level: Low (test only)
Testing:
- 500ms delayed-response repro: 12/12 runs failed with the CI message
before, 12/12 pass after (all four codec/IP params)
- `bazel test //test/integration:http2_flood_integration_test
--runs_per_test=5`: pass (macOS arm64, fastbuild)
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

---------

Signed-off-by: Derek Argueta <[email protected]>
(cherry picked from commit a42f23c)
Signed-off-by: Ryan Northey <[email protected]>
phlax pushed a commit to phlax/envoy that referenced this pull request Nov 16, 2026
Commit Message: http2: deflake RstStreamOverflowOnPendingFlushTimeout

The test set `stream_idle_timeout` to 400ms only to get a 400ms pending
flush timer, since `stream_flush_timeout` defaults to it. The idle timer
also covers the pre-fill stream, so that stream's upstream response had
to start within 400ms of the request. On a slow runner the idle timeout
fired first and left its local reply's two frames queued. The test then
timed out waiting for 998 queued frames with "current value 2".

This sets `stream_flush_timeout` to 400ms instead and leaves the idle
timeout at its default. The flush timeout, RST_STREAM and overflow path
the test is about doesn't change.

Additional Description:
It failed on 9 changes between 10-05 and 10-22 under tsan, always on
oghttp2 with "current value 2". envoyproxy#45189 reported the same symptom back in
May. Delaying the autonomous upstream's response by 500ms reproduces it
on both codecs, so the oghttp2 skew in CI is just that codec being
slower.

AI Disclaimer: code change created with AI assistance, fully reviewed by
me prior to opening.

Risk Level: Low (test only)
Testing:
- 500ms delayed-response repro: 12/12 runs failed with the CI message
before, 12/12 pass after (all four codec/IP params)
- `bazel test //test/integration:http2_flood_integration_test
--runs_per_test=5`: pass (macOS arm64, fastbuild)
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

---------

Signed-off-by: Derek Argueta <[email protected]>
(cherry picked from commit a42f23c)
Signed-off-by: Ryan Northey <[email protected]>
phlax pushed a commit to phlax/envoy that referenced this pull request Nov 16, 2026
Commit Message: http2: deflake RstStreamOverflowOnPendingFlushTimeout

The test set `stream_idle_timeout` to 400ms only to get a 400ms pending
flush timer, since `stream_flush_timeout` defaults to it. The idle timer
also covers the pre-fill stream, so that stream's upstream response had
to start within 400ms of the request. On a slow runner the idle timeout
fired first and left its local reply's two frames queued. The test then
timed out waiting for 998 queued frames with "current value 2".

This sets `stream_flush_timeout` to 400ms instead and leaves the idle
timeout at its default. The flush timeout, RST_STREAM and overflow path
the test is about doesn't change.

Additional Description:
It failed on 9 changes between 10-05 and 10-22 under tsan, always on
oghttp2 with "current value 2". envoyproxy#45189 reported the same symptom back in
May. Delaying the autonomous upstream's response by 500ms reproduces it
on both codecs, so the oghttp2 skew in CI is just that codec being
slower.

AI Disclaimer: code change created with AI assistance, fully reviewed by
me prior to opening.

Risk Level: Low (test only)
Testing:
- 500ms delayed-response repro: 12/12 runs failed with the CI message
before, 12/12 pass after (all four codec/IP params)
- `bazel test //test/integration:http2_flood_integration_test
--runs_per_test=5`: pass (macOS arm64, fastbuild)
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

---------

Signed-off-by: Derek Argueta <[email protected]>
(cherry picked from commit a42f23c)
Signed-off-by: Ryan Northey <[email protected]>
phlax pushed a commit to phlax/envoy that referenced this pull request Nov 16, 2026
Commit Message: http2: deflake RstStreamOverflowOnPendingFlushTimeout

The test set `stream_idle_timeout` to 400ms only to get a 400ms pending
flush timer, since `stream_flush_timeout` defaults to it. The idle timer
also covers the pre-fill stream, so that stream's upstream response had
to start within 400ms of the request. On a slow runner the idle timeout
fired first and left its local reply's two frames queued. The test then
timed out waiting for 998 queued frames with "current value 2".

This sets `stream_flush_timeout` to 400ms instead and leaves the idle
timeout at its default. The flush timeout, RST_STREAM and overflow path
the test is about doesn't change.

Additional Description:
It failed on 9 changes between 10-05 and 10-22 under tsan, always on
oghttp2 with "current value 2". envoyproxy#45189 reported the same symptom back in
May. Delaying the autonomous upstream's response by 500ms reproduces it
on both codecs, so the oghttp2 skew in CI is just that codec being
slower.

AI Disclaimer: code change created with AI assistance, fully reviewed by
me prior to opening.

Risk Level: Low (test only)
Testing:
- 500ms delayed-response repro: 12/12 runs failed with the CI message
before, 12/12 pass after (all four codec/IP params)
- `bazel test //test/integration:http2_flood_integration_test
--runs_per_test=5`: pass (macOS arm64, fastbuild)
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

---------

Signed-off-by: Derek Argueta <[email protected]>
(cherry picked from commit a42f23c)
Signed-off-by: Ryan Northey <[email protected]>
phlax pushed a commit to phlax/envoy that referenced this pull request Nov 16, 2026
Commit Message: http2: deflake RstStreamOverflowOnPendingFlushTimeout

The test set `stream_idle_timeout` to 400ms only to get a 400ms pending
flush timer, since `stream_flush_timeout` defaults to it. The idle timer
also covers the pre-fill stream, so that stream's upstream response had
to start within 400ms of the request. On a slow runner the idle timeout
fired first and left its local reply's two frames queued. The test then
timed out waiting for 998 queued frames with "current value 2".

This sets `stream_flush_timeout` to 400ms instead and leaves the idle
timeout at its default. The flush timeout, RST_STREAM and overflow path
the test is about doesn't change.

Additional Description:
It failed on 9 changes between 10-05 and 10-22 under tsan, always on
oghttp2 with "current value 2". envoyproxy#45189 reported the same symptom back in
May. Delaying the autonomous upstream's response by 500ms reproduces it
on both codecs, so the oghttp2 skew in CI is just that codec being
slower.

AI Disclaimer: code change created with AI assistance, fully reviewed by
me prior to opening.

Risk Level: Low (test only)
Testing:
- 500ms delayed-response repro: 12/12 runs failed with the CI message
before, 12/12 pass after (all four codec/IP params)
- `bazel test //test/integration:http2_flood_integration_test
--runs_per_test=5`: pass (macOS arm64, fastbuild)
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

---------

Signed-off-by: Derek Argueta <[email protected]>
(cherry picked from commit a42f23c)
Signed-off-by: Ryan Northey <[email protected]>
phlax pushed a commit to phlax/envoy that referenced this pull request Nov 17, 2026
Commit Message: http2: deflake RstStreamOverflowOnPendingFlushTimeout

The test set `stream_idle_timeout` to 400ms only to get a 400ms pending
flush timer, since `stream_flush_timeout` defaults to it. The idle timer
also covers the pre-fill stream, so that stream's upstream response had
to start within 400ms of the request. On a slow runner the idle timeout
fired first and left its local reply's two frames queued. The test then
timed out waiting for 998 queued frames with "current value 2".

This sets `stream_flush_timeout` to 400ms instead and leaves the idle
timeout at its default. The flush timeout, RST_STREAM and overflow path
the test is about doesn't change.

Additional Description:
It failed on 9 changes between 10-05 and 10-22 under tsan, always on
oghttp2 with "current value 2". envoyproxy#45189 reported the same symptom back in
May. Delaying the autonomous upstream's response by 500ms reproduces it
on both codecs, so the oghttp2 skew in CI is just that codec being
slower.

AI Disclaimer: code change created with AI assistance, fully reviewed by
me prior to opening.

Risk Level: Low (test only)
Testing:
- 500ms delayed-response repro: 12/12 runs failed with the CI message
before, 12/12 pass after (all four codec/IP params)
- `bazel test //test/integration:http2_flood_integration_test
--runs_per_test=5`: pass (macOS arm64, fastbuild)
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

---------

Signed-off-by: Derek Argueta <[email protected]>
(cherry picked from commit a42f23c)
Signed-off-by: Ryan Northey <[email protected]>
phlax pushed a commit to phlax/envoy that referenced this pull request Nov 17, 2026
Commit Message: http2: deflake RstStreamOverflowOnPendingFlushTimeout

The test set `stream_idle_timeout` to 400ms only to get a 400ms pending
flush timer, since `stream_flush_timeout` defaults to it. The idle timer
also covers the pre-fill stream, so that stream's upstream response had
to start within 400ms of the request. On a slow runner the idle timeout
fired first and left its local reply's two frames queued. The test then
timed out waiting for 998 queued frames with "current value 2".

This sets `stream_flush_timeout` to 400ms instead and leaves the idle
timeout at its default. The flush timeout, RST_STREAM and overflow path
the test is about doesn't change.

Additional Description:
It failed on 9 changes between 10-05 and 10-22 under tsan, always on
oghttp2 with "current value 2". envoyproxy#45189 reported the same symptom back in
May. Delaying the autonomous upstream's response by 500ms reproduces it
on both codecs, so the oghttp2 skew in CI is just that codec being
slower.

AI Disclaimer: code change created with AI assistance, fully reviewed by
me prior to opening.

Risk Level: Low (test only)
Testing:
- 500ms delayed-response repro: 12/12 runs failed with the CI message
before, 12/12 pass after (all four codec/IP params)
- `bazel test //test/integration:http2_flood_integration_test
--runs_per_test=5`: pass (macOS arm64, fastbuild)
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

---------

Signed-off-by: Derek Argueta <[email protected]>
(cherry picked from commit a42f23c)
Signed-off-by: Ryan Northey <[email protected]>
phlax pushed a commit to phlax/envoy that referenced this pull request Nov 17, 2026
Commit Message: http2: deflake RstStreamOverflowOnPendingFlushTimeout

The test set `stream_idle_timeout` to 400ms only to get a 400ms pending
flush timer, since `stream_flush_timeout` defaults to it. The idle timer
also covers the pre-fill stream, so that stream's upstream response had
to start within 400ms of the request. On a slow runner the idle timeout
fired first and left its local reply's two frames queued. The test then
timed out waiting for 998 queued frames with "current value 2".

This sets `stream_flush_timeout` to 400ms instead and leaves the idle
timeout at its default. The flush timeout, RST_STREAM and overflow path
the test is about doesn't change.

Additional Description:
It failed on 9 changes between 10-05 and 10-22 under tsan, always on
oghttp2 with "current value 2". envoyproxy#45189 reported the same symptom back in
May. Delaying the autonomous upstream's response by 500ms reproduces it
on both codecs, so the oghttp2 skew in CI is just that codec being
slower.

AI Disclaimer: code change created with AI assistance, fully reviewed by
me prior to opening.

Risk Level: Low (test only)
Testing:
- 500ms delayed-response repro: 12/12 runs failed with the CI message
before, 12/12 pass after (all four codec/IP params)
- `bazel test //test/integration:http2_flood_integration_test
--runs_per_test=5`: pass (macOS arm64, fastbuild)
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

---------

Signed-off-by: Derek Argueta <[email protected]>
(cherry picked from commit a42f23c)
Signed-off-by: Ryan Northey <[email protected]>
phlax pushed a commit that referenced this pull request Nov 17, 2026
Commit Message: http2: deflake RstStreamOverflowOnPendingFlushTimeout

The test set `stream_idle_timeout` to 400ms only to get a 400ms pending
flush timer, since `stream_flush_timeout` defaults to it. The idle timer
also covers the pre-fill stream, so that stream's upstream response had
to start within 400ms of the request. On a slow runner the idle timeout
fired first and left its local reply's two frames queued. The test then
timed out waiting for 998 queued frames with "current value 2".

This sets `stream_flush_timeout` to 400ms instead and leaves the idle
timeout at its default. The flush timeout, RST_STREAM and overflow path
the test is about doesn't change.

Additional Description:
It failed on 9 changes between 10-05 and 10-22 under tsan, always on
oghttp2 with "current value 2". #45189 reported the same symptom back in
May. Delaying the autonomous upstream's response by 500ms reproduces it
on both codecs, so the oghttp2 skew in CI is just that codec being
slower.

AI Disclaimer: code change created with AI assistance, fully reviewed by
me prior to opening.

Risk Level: Low (test only)
Testing:
- 500ms delayed-response repro: 12/12 runs failed with the CI message
before, 12/12 pass after (all four codec/IP params)
- `bazel test //test/integration:http2_flood_integration_test
--runs_per_test=5`: pass (macOS arm64, fastbuild)
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

---------

Signed-off-by: Derek Argueta <[email protected]>
(cherry picked from commit a42f23c)
Signed-off-by: Ryan Northey <[email protected]>
phlax pushed a commit to phlax/envoy that referenced this pull request Nov 18, 2026
Commit Message: http2: deflake RstStreamOverflowOnPendingFlushTimeout

The test set `stream_idle_timeout` to 400ms only to get a 400ms pending
flush timer, since `stream_flush_timeout` defaults to it. The idle timer
also covers the pre-fill stream, so that stream's upstream response had
to start within 400ms of the request. On a slow runner the idle timeout
fired first and left its local reply's two frames queued. The test then
timed out waiting for 998 queued frames with "current value 2".

This sets `stream_flush_timeout` to 400ms instead and leaves the idle
timeout at its default. The flush timeout, RST_STREAM and overflow path
the test is about doesn't change.

Additional Description:
It failed on 9 changes between 10-05 and 10-22 under tsan, always on
oghttp2 with "current value 2". envoyproxy#45189 reported the same symptom back in
May. Delaying the autonomous upstream's response by 500ms reproduces it
on both codecs, so the oghttp2 skew in CI is just that codec being
slower.

AI Disclaimer: code change created with AI assistance, fully reviewed by
me prior to opening.

Risk Level: Low (test only)
Testing:
- 500ms delayed-response repro: 12/12 runs failed with the CI message
before, 12/12 pass after (all four codec/IP params)
- `bazel test //test/integration:http2_flood_integration_test
--runs_per_test=5`: pass (macOS arm64, fastbuild)
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A

---------

Signed-off-by: Derek Argueta <[email protected]>
(cherry picked from commit a42f23c)
Signed-off-by: Ryan Northey <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants