beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raghu Angadi (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (BEAM-4521) Backlog metrics not showing up
Date Fri, 08 Jun 2018 16:22:00 GMT

     [ https://issues.apache.org/jira/browse/BEAM-4521?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Raghu Angadi reassigned BEAM-4521:
----------------------------------

    Assignee: Aljoscha Krettek  (was: Raghu Angadi)

> Backlog metrics not showing up
> ------------------------------
>
>                 Key: BEAM-4521
>                 URL: https://issues.apache.org/jira/browse/BEAM-4521
>             Project: Beam
>          Issue Type: Bug
>          Components: runner-flink
>    Affects Versions: 2.4.0
>            Reporter: Jozef Vilcek
>            Assignee: Aljoscha Krettek
>            Priority: Minor
>
> Hello,
> I wanted to track _backlog_bytes_ and _backlog_elements_ metrics from SinkMetrics for
kafka. I see in the code that KafkaUnboundedReader is reporting them but was not able to get
them visible (running on Flink).
> Metrics are reported here:
> [https://github.com/apache/beam/blob/master/sdks/java/io/kafka/src/main/java/org/apache/beam/sdk/io/kafka/KafkaUnboundedReader.java#L668]
> In Flink runtime I noticed this message:
> {code:java}
> 2018-06-07 08:53:53,216 ERROR org.apache.beam.sdk.metrics.MetricsEnvironment     
          - Unable to update metrics on the current thread. Most likely caused by using
metrics outside the managed work-execution thread.
> {code}
> I see that backlog is reported from getCheckpointMark(), which is done by some other
thread. Not sure why it is done there. 
> I tested locally to move it to the advance() method, where bytes_read is reported and
it worked. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message