Skip to content

test: clearing up a TODO - #16853

Merged
yanavlasov merged 3 commits into
envoyproxy:mainfrom
alyssawilk:todo
Jun 8, 2021
Merged

yanavlasov merged 3 commits into
envoyproxy:mainfrom
alyssawilk:todo

Conversation

@alyssawilk

Copy link
Copy Markdown
Contributor

I don't know why tweaking test params made this flake deterministic, but we're definitely
reading all the requests
readDisabling the TCP socket
failing to send responses.
which is not going to work. The pause filter is a regression test and I hesitate to rewrite it to be more trustworthy, so I'm just disabling the test for H3.

Risk Level: n/a (test only)
Testing: n/a
Docs Changes: n/a
Release Notes: n/a

Signed-off-by: Alyssa Wilk <[email protected]>
Signed-off-by: Alyssa Wilk <[email protected]>
Signed-off-by: Alyssa Wilk <[email protected]>
@danzh2010

Copy link
Copy Markdown
Contributor

I don't know why tweaking test params made this flake deterministic, but we're definitely
reading all the requests
readDisabling the TCP socket
failing to send responses.

The pause filter read disable QUIC client streams, and all the requests are read before sending back first response, so there is not way to trigger unblocking, and the response are stuck in stream sequencer. But a H2 stream can still read even if it is read disabled. (It only stops shifting flow control window).

The number_of_decode_calls_ref_ and number_of_encode_calls_ref_ counters aren't getting reset in between Http2 test and Http3 test because pause filter is a plug-in. So sometimes it doesn't call the downstream connection's onWriteBufferHighWatermark(). Splitting these two test params into separated test suites can reset the counters, and causes the downstream connection to go above high watermark deterministically so the test fails deterministically.

@yanavlasov
yanavlasov merged commit 0c3b05f into envoyproxy:main Jun 8, 2021
antoniovicente pushed a commit that referenced this pull request Jun 11, 2021
Debugging #16853 it turned out that since we added read limits for packets, TCP downstreams were vastly out-sending UDP upstreams. Changing the upstream limit to be a factor of streams rather than flat rate.

Signed-off-by: Alyssa Wilk <[email protected]>
leyao-daily pushed a commit to leyao-daily/envoy that referenced this pull request Sep 30, 2021
leyao-daily pushed a commit to leyao-daily/envoy that referenced this pull request Sep 30, 2021
Debugging envoyproxy#16853 it turned out that since we added read limits for packets, TCP downstreams were vastly out-sending UDP upstreams. Changing the upstream limit to be a factor of streams rather than flat rate.

Signed-off-by: Alyssa Wilk <[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.

4 participants