Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

authz-tcp doctest flake #15505

Open
bleggett opened this issue Jul 31, 2024 · 1 comment
Open

authz-tcp doctest flake #15505

bleggett opened this issue Jul 31, 2024 · 1 comment

Comments

@bleggett
Copy link
Contributor

bleggett commented Jul 31, 2024

This was not-fixed by #15474 (comment)

(but the fact that we had a commented "make sure we nuke the env because preceeding tests aren't cleaning up" is suspicious)

The flake is random and is probably not due to authz-tcp tests themselves but to some preceding tests not properly cleaning up.

@craigbox
Copy link
Contributor

I've replicated the problem and it smells like something to do with how Envoy is buffering connections to the tcp-echo sample.

The test starts the tcp-echo server (source), waits for the deployment, and pipes text into netcat, expecting to get it back immediately. ("connection rejected" output is based on whether or not the response had 'hello' in it, which all responses should.)

for i in seq 1 100; do echo $i | nc localhost 9002; done on the tcp-echo container returns 100 hellos as you would expect.

$ for i in seq 1 100; do echo $i | nc 10.244.2.15 9002; done from the sleep container returns nothing.

When I use netcat manually, I can regularly cause it to not respond to the first line of text I send in. When you send a second line, you then get responses for both come through.

authz-tcp.faster.mov

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

No branches or pull requests

2 participants