Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ class BeamModulePlugin implements Plugin<Project> {

// Automatically use the official release version if we are performing a release
// otherwise append '-SNAPSHOT'
project.version = '2.45.47'
project.version = '2.45.48'
if (isLinkedin(project)) {
project.ext.mavenGroupId = 'com.linkedin.beam'
}
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ signing.gnupg.useLegacyGpg=true
# buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy.
# To build a custom Beam version make sure you change it in both places, see
# https://github.com/apache/beam/issues/21302.
version=2.45.47
sdk_version=2.45.47
version=2.45.48
sdk_version=2.45.48

javaVersion=1.8

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
*/
package org.apache.beam.runners.flink.metrics;

import static org.apache.beam.runners.core.metrics.MetricsContainerStepMap.asAttemptedOnlyMetricResults;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -84,9 +82,14 @@ public void updateMetrics(String stepName, List<MetricsApi.MonitoringInfo> monit
* given step.
*/
void updateMetrics(String stepName) {
MetricResults metricResults = asAttemptedOnlyMetricResults(metricsContainers);
MetricResults metricResults =
MetricsContainerStepMap.asAttemptedOnlyMetricResults(metricsContainers);
MetricQueryResults metricQueryResults =
metricResults.queryMetrics(MetricsFilter.builder().addStep(stepName).build());
metricResults.queryMetrics(
MetricsFilter.builder()
.addStep(stepName)
.addStep(GlobalMetricsUtils.GLOBAL_CONTAINER_STEP_NAME)
.build());
updateCounters(metricQueryResults.getCounters());
updateDistributions(metricQueryResults.getDistributions());
updateGauge(metricQueryResults.getGauges());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

/** Utility class for managing global metrics in a Flink environment. */
public class GlobalMetricsUtils {
private static final String GLOBAL_CONTAINER_STEP_NAME = "GLOBAL_METRICS";
static final String GLOBAL_CONTAINER_STEP_NAME = "GLOBAL_METRICS";

/**
* Sets the global metrics container if it is not already set.
Expand Down