upstream: Allow users of HttpPoolData to access the underlying pool.#16829
upstream: Allow users of HttpPoolData to access the underlying pool.#16829mum4k wants to merge 1 commit intoenvoyproxy:mainfrom
Conversation
Signed-off-by: Jakub Sobon <mumak@google.com>
|
@alyssawilk as fyi and to propose alternatives if needed. |
|
/retest |
|
Retrying Azure Pipelines: |
|
Ooh sorry about that breakage. I wonder if we should have an at least advisory nighthawk build in Envoy CI? Anyway, addressing today's problem, the goal here was to remove pool access because then folks can create streams directly, so adding an accessor would undo that. How about adding a wrapper function for adding a callback which nighthawk can call? |
|
@alyssawilk thank you for responding and don't worry about the breakage. As you pointed out, you really had no way of knowing. Turns out @yanavlasov was also working on this problem and came up with a solution via a pre-existing friend class that is purely local to Nighthawk (so for now preferred): My plan is to close this PR and discuss with @yanavlasov as to how we want to take this forward. I am really glad that you mentioned an advisory Nighthawk build in the Envoy CI. That is something we would very much like. Do we need to start a wider discussion before we send a PR adding one? |
|
glad you're sorted via the other PR. :-) For CI, I'd say if nighthawk breaks once a quarter it may not justify the CI cost. If it's more regular you could open an issue just to get other opinions (see if anyone objects really) and then do something like we do for Envoy filter examples, where we have that build as part of Envoy CI. |
A recent change (#16544) moved the
Http::ConnectionPool::Instance*returned fromThreadLocalCluster::httpConnPool()behind a new classHttpPoolDatawhich no longer exposes the pool instance.Nighthawk depends on the pool when terminating a benchmark here.
This PR proposes a
HttpPoolData::pool()method which exposes the pool to Nighthawk in order to retain the original functionality. Happy to discuss alternatives if this isn't acceptable. Note - this breakage in Nighthawk will prevent an Envoy import into Google until / unless we find a workaround.Risk Level: low, existing functionality isn't affected.
Testing: n/a, only accessor method added.
Docs Changes: n/a.
Release Notes: n/a.
Signed-off-by: Jakub Sobon mumak@google.com