config dump, listeners are added to warming list if workers are not started yet#7511
config dump, listeners are added to warming list if workers are not started yet#7511mattklein123 merged 2 commits intoenvoyproxy:masterfrom incfly:listener-dump
Conversation
Signed-off-by: Jianfei Hu <jianfeih@google.com>
|
/cc @silentdai @asraa @mattklein123 for review. |
mattklein123
left a comment
There was a problem hiding this comment.
Thanks, this is low risk and makes sense to me. @asraa @silentdai any concerns?
|
Make perfect sense. Thank you! |
|
This looks good to me. Mind if you add in envoy/test/integration/ads_integration_test.cc Lines 968 to 971 in 79b071c |
|
Waiting on @asraa comment. /wait |
Signed-off-by: Jianfei Hu <jianfeih@google.com>
| test_server_->waitForGaugeGe("listener_manager.total_listeners_active", 1); | ||
| // Before server is started, even though listeners are added to active list | ||
| // we mark them as "warming" in config dump since they're not initialized yet. | ||
| EXPECT_EQ(getListenersConfigDump().dynamic_warming_listeners().size(), 1); |
|
/retest |
|
🔨 rebuilding |
|
/retest |
|
🔨 rebuilding |
|
Tests now all passed. @mattklein123 could you take another look or this is ready to go? |
mattklein123
left a comment
There was a problem hiding this comment.
Thanks, will merge once 1.11 is cut.
Signed-off-by: Jianfei Hu jianfeih@google.com
For an explanation of how to fill out the fields, please see the relevant section
in PULL_REQUESTS.md
Description: Listeners config dump changed to warming_listeners if the workers are not started.
Risk Level: Low
Testing: Unit test, (existing unit test is good enough, with workers started before and after)
Docs Changes:
Release Notes: Listeners config dump changed to warming_listeners if the workers are not started.
[Optional Fixes #Issue] #6904
[Optional Deprecated:]