Skip to content

Increase code coverage in conn_manager_impl#417

Merged
RomanDzhabarov merged 3 commits intomasterfrom
improve_test_coverage
Feb 6, 2017
Merged

Increase code coverage in conn_manager_impl#417
RomanDzhabarov merged 3 commits intomasterfrom
improve_test_coverage

Conversation

@RomanDzhabarov
Copy link
Member

+add proper HC stats on tracing.
@lyft/network-team

Buffer::OwnedImpl fake_input("1234");
conn_manager_->onData(fake_input);

// Make destruction of active stream so that we can capture tracing HC stat.
Copy link
Member

Choose a reason for hiding this comment

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

grammar

break;
case Tracing::Reason::HealthCheck:
connection_manager_.config_.tracingStats().health_check_.inc();
// At this point we have not run any filters, including HC one, so this should not happen.
Copy link
Member

Choose a reason for hiding this comment

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

then take this case statement out, add a default, and throw an invalid argument exception to crash (and add test to that effect).

Copy link
Member Author

Choose a reason for hiding this comment

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

sounds good, need to rearrange stuff a little bit for this, should be easy

@mattklein123 mattklein123 reopened this Feb 6, 2017
@RomanDzhabarov RomanDzhabarov merged commit e91ef20 into master Feb 6, 2017
@mattklein123 mattklein123 deleted the improve_test_coverage branch February 12, 2017 22:52
zuercher pushed a commit that referenced this pull request Jan 23, 2018
…#2387)

Description:
Extend the health check filter to optionally compute its HTTP response status
based on whether at least a specified percentage of servers in a specified set
of upstream clusters are healthy.

Risk Level: Medium

Testing: Unit tests included

Docs Changes: #425

Release Notes: Included in this PR

Fixes: #2362

API Changes: #417

Signed-off-by: Brian Pane bpane@pinterest.com
rshriram added a commit to rshriram/envoy that referenced this pull request Oct 30, 2018
* Revert "envoy sha update (envoyproxy#414)"

This reverts commit ebb5ef1.

* Revert "Fix mixer forward attribute bug. (envoyproxy#412)"

This reverts commit 4f07917.
rshriram pushed a commit to rshriram/envoy that referenced this pull request Oct 30, 2018
Automatic merge from submit-queue.

[DO NOT MERGE] Auto PR to update dependencies of mixerclient

This PR will be merged automatically once checks are successful.
```release-note
none
```
jpsim pushed a commit that referenced this pull request Nov 28, 2022
Updates the standard configuration to send requests over HTTP/2 by default.

Note that there are future improvements that should be made here to support negotiating between HTTP/1.1 and HTTP/2, being tracked in envoyproxy/envoy-mobile#502.

More info on the config change: https://www.envoyproxy.io/docs/envoy/latest/api-v2/api/v2/cds.proto#envoy-api-msg-cluster

Signed-off-by: Michael Rebello <me@michaelrebello.com>
Signed-off-by: JP Simard <jp@jpsim.com>
jpsim pushed a commit that referenced this pull request Nov 29, 2022
Updates the standard configuration to send requests over HTTP/2 by default.

Note that there are future improvements that should be made here to support negotiating between HTTP/1.1 and HTTP/2, being tracked in envoyproxy/envoy-mobile#502.

More info on the config change: https://www.envoyproxy.io/docs/envoy/latest/api-v2/api/v2/cds.proto#envoy-api-msg-cluster

Signed-off-by: Michael Rebello <me@michaelrebello.com>
Signed-off-by: JP Simard <jp@jpsim.com>
mathetake added a commit that referenced this pull request Mar 3, 2026
**Commit Message**

Previously, router instance shared the rng among multiple goroutines
which is not a thread safe. This fixes it by having a goroutine local
RNG.


**Related Issues/PRs (if applicable)**

Contributes to #53

---------

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