From ea9e1496aadd90853f81f83e202134950d486eff Mon Sep 17 00:00:00 2001 From: "nastassia.dailidava" Date: Mon, 16 Dec 2024 21:45:45 +0100 Subject: [PATCH] added log for empty load assignment --- .../servicemesh/envoycontrol/snapshot/EnvoySnapshotFactory.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/envoy-control-core/src/main/kotlin/pl/allegro/tech/servicemesh/envoycontrol/snapshot/EnvoySnapshotFactory.kt b/envoy-control-core/src/main/kotlin/pl/allegro/tech/servicemesh/envoycontrol/snapshot/EnvoySnapshotFactory.kt index c72de3d4b..d1f1d6318 100644 --- a/envoy-control-core/src/main/kotlin/pl/allegro/tech/servicemesh/envoycontrol/snapshot/EnvoySnapshotFactory.kt +++ b/envoy-control-core/src/main/kotlin/pl/allegro/tech/servicemesh/envoycontrol/snapshot/EnvoySnapshotFactory.kt @@ -283,9 +283,10 @@ class EnvoySnapshotFactory( endpointsFactory.filterEndpoints(endpoints, routeSpec.settings.routingPolicy).let { endpointsFactory.assignLocalityWeights(routeSpec, it).also { la -> if (la.endpointsList.any { el -> el.lbEndpointsList.isEmpty() }) { + @Suppress() logger.warn( "ClusterLoadAssignment for ${routeSpec.clusterName} has empty lbEndpoints, " + - "original clusterLoadAssignment: ${endpoints.toString()}" + "original clusterLoadAssignment: $endpoints" ) } }