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

http: tracking object scope on the encode path #7603

Merged
merged 3 commits into from
Jul 23, 2019

Conversation

alyssawilk
Copy link
Contributor

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

@mattklein123 mattklein123 self-assigned this Jul 17, 2019
@alyssawilk
Copy link
Contributor Author

/retest

@repokitteh-read-only
Copy link

🔨 rebuilding ci/circleci: Build Error (failed build)

🐱

Caused by: a #7603 (comment) was created by @alyssawilk.

see: more, trace.

@alyssawilk
Copy link
Contributor Author

I think this is good for review!

Copy link
Member

@mattklein123 mattklein123 left a 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());
Copy link
Member

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]>
@alyssawilk
Copy link
Contributor Author

/retest

@repokitteh-read-only
Copy link

🤷‍♀️ nothing to rebuild.

🐱

Caused by: a #7603 (comment) was created by @alyssawilk.

see: more, trace.

Copy link
Member

@mattklein123 mattklein123 left a 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());
Copy link
Member

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.

@alyssawilk alyssawilk merged commit e20113a into envoyproxy:master Jul 23, 2019
@alyssawilk alyssawilk deleted the dumpOnEncode branch July 31, 2019 20:33
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.

2 participants