[ 
https://issues.apache.org/jira/browse/BEAM-4374?focusedWorklogId=417125&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-417125
 ]

ASF GitHub Bot logged work on BEAM-4374:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 06/Apr/20 21:09
            Start Date: 06/Apr/20 21:09
    Worklog Time Spent: 10m 
      Work Description: lukecwik commented on pull request #11325: [BEAM-4374, 
BEAM-6189] Delete and remove deprecated Metrics proto
URL: https://github.com/apache/beam/pull/11325#discussion_r404389323
 
 

 ##########
 File path: 
runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/fn/control/BeamFnMapTaskExecutor.java
 ##########
 @@ -341,30 +339,16 @@ void updateProgress() {
           grpcWriteOperation.abortWait();
         }
 
-        // TODO(BEAM-6189): Replace getProcessBundleProgress with 
getMonitoringInfos when Metrics
-        // is deprecated.
         ProcessBundleProgressResponse processBundleProgressResponse =
             MoreFutures.get(bundleProcessOperation.getProcessBundleProgress());
 
         final List<MonitoringInfo> monitoringInfosList =
             processBundleProgressResponse.getMonitoringInfosList();
 
-        // Supporting deprecated metrics until all supported runners are 
migrated to using
-        // MonitoringInfos
-        Metrics metrics = processBundleProgressResponse.getMetrics();
-        double elementsConsumed =
-            
bundleProcessOperation.getInputElementsConsumed(monitoringInfosList);
-
-        if (elementsConsumed == 0) {
-          elementsConsumed = 
bundleProcessOperation.getInputElementsConsumed(metrics);
-        }
-
         updateMetrics(monitoringInfosList);
-        updateMetricsDeprecated(metrics);
 
 Review comment:
   Go SDK has, @lostluck and I worked on the changes. See: 
https://github.com/apache/beam/blob/aff446171b5ed77cdca6347ab6e3e597c096af91/sdks/go/pkg/beam/core/runtime/harness/monitoring.go#L204
 
----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 417125)
    Time Spent: 39h 20m  (was: 39h 10m)

> Update existing metrics in the FN API to use new Metric Schema
> --------------------------------------------------------------
>
>                 Key: BEAM-4374
>                 URL: https://issues.apache.org/jira/browse/BEAM-4374
>             Project: Beam
>          Issue Type: New Feature
>          Components: beam-model
>            Reporter: Alex Amato
>            Priority: Major
>          Time Spent: 39h 20m
>  Remaining Estimate: 0h
>
> Update existing metrics to use the new proto and cataloging schema defined in:
> [_https://s.apache.org/beam-fn-api-metrics_]
>  * Check in new protos
>  * Define catalog file for metrics
>  * Port existing metrics to use this new format, based on catalog 
> names+metadata



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to