-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
http: tracking object scope on the encode path #7603
Conversation
Signed-off-by: Alyssa Wilk <[email protected]>
/retest |
🔨 rebuilding |
Signed-off-by: Alyssa Wilk <[email protected]>
I think this is good for review! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with a small question.
/wait-any
@@ -98,6 +99,8 @@ class RouterTestBase : public testing::Test { | |||
|
|||
// Make the "system time" non-zero, because 0 is considered invalid by DateUtil. | |||
test_time_.setMonotonicTime(std::chrono::milliseconds(50)); | |||
|
|||
EXPECT_CALL(callbacks_.dispatcher_, setTrackedObject(_)).Times(AnyNumber()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this needed due to a strict mock? If so can you comment? If not can we remove? Same below?
Signed-off-by: Alyssa Wilk <[email protected]>
/retest |
🤷♀️ nothing to rebuild. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
@@ -91,6 +91,7 @@ class RouterUpstreamLogTest : public testing::Test { | |||
router_proto)); | |||
router_.reset(new TestFilter(*config_)); | |||
router_->setDecoderFilterCallbacks(callbacks_); | |||
EXPECT_CALL(callbacks_.dispatcher_, setTrackedObject(_)).Times(testing::AnyNumber()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry can you add a similar comment here about the strict mock? Fine to do in your next change if you want.
Tracking the active stream on the encode path, for crash logging.
Risk Level: Medium (touching the router)
Testing: new unit tests
Docs Changes: n/a
Release Notes: n/a
#7300