What happened?
For portable runner pipeline result, it is found running PipelineResult.metrics().queryMetrics(...).getCounter/getDistribution/etc returns each metric twice, found in #31999 (comment)
The reson is in
|
monitoringInfoList.addAll(jobMetrics.getAttemptedList()); |
|
monitoringInfoList.addAll(jobMetrics.getCommittedList()); |
it adds both attempted list and committed list, which essentially has the same info, then in convert...MonitoringInfoTo... always creates attempted metrics, e.g. here
|
return MetricResult.create(key, false, decodeInt64Counter(counterMonInfo.getPayload())); |
(second parameter isCommitSupported=False)
Issue Priority
Priority: 2 (default / most bugs should be filed as P2)
Issue Components
What happened?
For portable runner pipeline result, it is found running
PipelineResult.metrics().queryMetrics(...).getCounter/getDistribution/etcreturns each metric twice, found in #31999 (comment)The reson is in
beam/runners/portability/java/src/main/java/org/apache/beam/runners/portability/PortableMetrics.java
Lines 93 to 94 in 4479281
it adds both attempted list and committed list, which essentially has the same info, then in
convert...MonitoringInfoTo...always creates attempted metrics, e.g. herebeam/runners/portability/java/src/main/java/org/apache/beam/runners/portability/PortableMetrics.java
Line 191 in 4479281
(second parameter isCommitSupported=False)
Issue Priority
Priority: 2 (default / most bugs should be filed as P2)
Issue Components