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 16, 2024
1 parent 46a320b commit ea9e149
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
}
}
Expand Down

0 comments on commit ea9e149

Please sign in to comment.