Skip to content

Bug Fix: Record UO response flag on retry overflow circuit breaker.#1588

Merged
RomanDzhabarov merged 8 commits intomasterfrom
retry_overflow
Sep 8, 2017
Merged

Bug Fix: Record UO response flag on retry overflow circuit breaker.#1588
RomanDzhabarov merged 8 commits intomasterfrom
retry_overflow

Conversation

@RomanDzhabarov
Copy link
Copy Markdown
Member

@RomanDzhabarov RomanDzhabarov commented Sep 1, 2017

@lyft/network-team


if (!cluster_.resourceManager(priority_).retries().canCreate()) {
cluster_.stats().upstream_rq_retry_overflow_.inc();
callbacks_.requestInfo().setResponseFlag(Http::AccessLog::ResponseFlag::UpstreamOverflow);
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.

I'm not too crazy about passing the callbacks into this object. It feels too heavyweight. IMO I would recommend returning a tri-state enum from this function (basically [Yes, No, NoOverflow] or something) and setting the response flag in the router.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I was sort of planning to pass requestInfo itself into the RequestState, but returning state is fine

@RomanDzhabarov RomanDzhabarov changed the title Bug Fix: Record UO response flag on retry overflow circuit breaker. [wip] Bug Fix: Record UO response flag on retry overflow circuit breaker. Sep 6, 2017
@RomanDzhabarov RomanDzhabarov changed the title [wip] Bug Fix: Record UO response flag on retry overflow circuit breaker. Bug Fix: Record UO response flag on retry overflow circuit breaker. Sep 7, 2017
Copy link
Copy Markdown
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.

looks good, thanks. small nit.

* @return TRUE if a retry should take place. @param callback will be called at some point in the
* future. Otherwise a retry should not take place and the callback will never be called.
* @return RetryStatus if a retry should take place. @param callback will be called at some point
* in the future. Otherwise a retry should not take place and the callback will never be called.
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.

nit: reflow comment

@RomanDzhabarov
Copy link
Copy Markdown
Member Author

@mattklein123 fixed the nit.

@RomanDzhabarov RomanDzhabarov merged commit 1288ce9 into master Sep 8, 2017
@mattklein123 mattklein123 deleted the retry_overflow branch September 15, 2017 20:38
jpsim pushed a commit that referenced this pull request Nov 28, 2022
…col: alpn (#1588)

Risk Level: low
Testing: unit tests
Docs Changes: n/a
Release Notes: n/a
Part of #1548
Part of #1558

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
Signed-off-by: JP Simard <jp@jpsim.com>
jpsim pushed a commit that referenced this pull request Nov 29, 2022
…col: alpn (#1588)

Risk Level: low
Testing: unit tests
Docs Changes: n/a
Release Notes: n/a
Part of #1548
Part of #1558

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
Signed-off-by: JP Simard <jp@jpsim.com>
mathetake added a commit that referenced this pull request Mar 3, 2026
**Description**

This change the default encryption key used by MCP proxy to the same
value as the helm's default setting.

Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
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