Skip to content

accesslog: report on listener filter errors#12935

Merged
ggreenway merged 5 commits intoenvoyproxy:masterfrom
kyessenov:listener_log
Sep 3, 2020
Merged

accesslog: report on listener filter errors#12935
ggreenway merged 5 commits intoenvoyproxy:masterfrom
kyessenov:listener_log

Conversation

@kyessenov
Copy link
Copy Markdown
Contributor

@kyessenov kyessenov commented Sep 1, 2020

Commit Message: emit logs in case listener filter reject or timeout incoming connections. Moved the stream info ownership to the active TCP socket. There are three cases that have to be handled separately: ownership transfer to TCP connection (how it works today), deferred deletion of TCP socket (via unlinking), direct deletion of TCP socket
Fixes: #12809
Risk Level: low
Testing: unit
Docs Changes: none
Release Notes: none

Signed-off-by: Kuat Yessenov <kuat@google.com>
Signed-off-by: Kuat Yessenov <kuat@google.com>
@kyessenov
Copy link
Copy Markdown
Contributor Author

Not sure why ConnectionHandlerTest.RemoveListenerDuringRebalance fails on CI but passes locally with 1000 iterations

Signed-off-by: Kuat Yessenov <kuat@google.com>
EXPECT_CALL(dispatcher_, post(_)).WillOnce(SaveArg<0>(&post_cb));
Network::MockConnectionSocket* connection = new NiceMock<Network::MockConnectionSocket>();
current_handler->incNumConnections();
#ifndef NDEBUG
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the #ifndef needed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is #ifndef defined just below this. Honestly, I don't know why or why we have two variants of this test case.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it. Very strange, but the comment below, and linked comment in ~ActiveTcpListener, explain what's going on. This seems like it's not making anything worse then; just maintaining status quo.

Copy link
Copy Markdown
Member

@ggreenway ggreenway left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

No observeability into failures at listener_filter level

2 participants