sds: don't throw exceptions in initialize()#11223
Conversation
Redux of envoyproxy#4377. Fixes envoyproxy#10976 Risk level: Low Testing: Unit/integration test added. Signed-off-by: Harvey Tuch <htuch@google.com>
snowp
left a comment
There was a problem hiding this comment.
Seems right to me, just one comment
Signed-off-by: Harvey Tuch <htuch@google.com>
|
@snowp turns out there is a slight problem in moving the subscription config to the constructor. Check out this config fragment from one of the integration tests:
because I think the "cleanest" solution here might be to have envoy/source/common/config/utility.cc Line 139 in cf2d4df |
|
I like that idea, hopefully it will future proof us against other new uses cases where we need to reference a static cluster. |
Signed-off-by: Harvey Tuch <htuch@google.com>
Signed-off-by: Harvey Tuch <htuch@google.com>
Signed-off-by: Harvey Tuch <htuch@google.com>
|
@snowp this is now updated, PTAL. |
Signed-off-by: Harvey Tuch <htuch@google.com>
Similar root cause to #4377 - we can't throw exceptions in initialize().
Fixes #10976
Risk level: Low
Testing: Unit/integration test added.
Signed-off-by: Harvey Tuch htuch@google.com