Skip to content

Commit 75a1537

Browse files
committed
review comments
Signed-off-by: Dhi Aurrahman <[email protected]>
1 parent a7c9ec9 commit 75a1537

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

docs/root/configuration/overview/v2_overview.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ the shared ADS channel.
564564
Management Server Unreachability
565565
--------------------------------
566566

567-
When Envoy instance loses connectivity with the management server, Envoy will latch on to
567+
When an Envoy instance loses connectivity with the management server, Envoy will latch on to
568568
the previous configuration while actively retrying in the background to reestablish the
569569
connection with the management server.
570570

source/common/upstream/logical_dns_cluster.cc

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,12 @@ LogicalDnsCluster::LogicalDnsCluster(const envoy::api::v2::Cluster& cluster,
3535
: Config::Utility::translateClusterHosts(cluster.hosts())) {
3636
const auto& locality_lb_endpoints = load_assignment_.endpoints();
3737
if (locality_lb_endpoints.size() != 1 || locality_lb_endpoints[0].lb_endpoints().size() != 1) {
38-
throw EnvoyException(fmt::format("LOGICAL_DNS clusters must have {}",
39-
cluster.has_load_assignment()
40-
? "a single locality_lb_endpoint and a single lb_endpoint"
41-
: "a single host"));
38+
if (cluster.has_load_assignment()) {
39+
throw EnvoyException(
40+
"LOGICAL_DNS clusters must have a single locality_lb_endpoint and a single lb_endpoint");
41+
} else {
42+
throw EnvoyException("LOGICAL_DNS clusters must have a single host");
43+
}
4244
}
4345

4446
switch (cluster.dns_lookup_family()) {

0 commit comments

Comments
 (0)