You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2023/01/10 14:19:10 UTC
[GitHub] [flink-kubernetes-operator] gyfora commented on a diff in pull request #502: [FLINK-30574] Detect ineffective scale up operations to avoid scaling further
gyfora commented on code in PR #502:
URL: https://github.com/apache/flink-kubernetes-operator/pull/502#discussion_r1065839944
##########
flink-kubernetes-operator/src/main/java/org/apache/flink/kubernetes/operator/autoscaler/ScalingMetricCollector.java:
##########
@@ -387,19 +389,18 @@ protected Map<String, FlinkMetric> getFilteredVertexMetricNames(
}
requiredMetrics.forEach(
- flinkMetric -> {
- filteredMetrics.put(
- flinkMetric
- .findAny(allMetricNames)
- .orElseThrow(
- () ->
- new RuntimeException(
- "Could not find required metric "
- + flinkMetric.name()
- + " for "
- + jobVertexID)),
- flinkMetric);
- });
+ flinkMetric ->
+ filteredMetrics.put(
+ flinkMetric
+ .findAny(allMetricNames)
+ .orElseThrow(
+ () ->
+ new RuntimeException(
+ "Could not find required metric "
+ + flinkMetric.name()
+ + " for "
+ + jobVertexID)),
+ flinkMetric));
Review Comment:
yes, I removed some unnecessary curly braces
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org