Skip to content

Commit

Permalink
added log for empty load assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
nastassia-dailidava committed Dec 17, 2024
1 parent ea9e149 commit a796b9b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,8 @@ class EnvoySnapshotFactory(
// commonly used
endpointsFactory.filterEndpoints(endpoints, routeSpec.settings.routingPolicy).let {
endpointsFactory.assignLocalityWeights(routeSpec, it).also { la ->
if (la.endpointsList.any { el -> el.lbEndpointsList.isEmpty() }) {
@Suppress()
if (la.endpointsList.any { el -> el.lbEndpointsList.isEmpty() } &&
routeSpec.settings.routingPolicy.autoServiceTag) {
logger.warn(
"ClusterLoadAssignment for ${routeSpec.clusterName} has empty lbEndpoints, " +
"original clusterLoadAssignment: $endpoints"
Expand Down

0 comments on commit a796b9b

Please sign in to comment.