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

Boyang Jerry Peng updated FLINK-19468:
--------------------------------------
    Attachment: StreamingJob.java

> Metrics return empty when data stream / operator name contains "+"
> ------------------------------------------------------------------
>
>                 Key: FLINK-19468
>                 URL: https://issues.apache.org/jira/browse/FLINK-19468
>             Project: Flink
>          Issue Type: Bug
>          Components: API / DataStream
>    Affects Versions: 1.9.0, 1.9.2, 1.9.3, 2.0.0
>            Reporter: Boyang Jerry Peng
>            Assignee: Boyang Jerry Peng
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: StreamingJob.java
>
>
> If I submit a Flink job in which the stream name has a "+" character, the 
> metrics returned for the stream is always empty.  Consider the following 
> example:
> ```
> env.addSource(new TestSource()).name("testing + plus");
>  ```
>  
> If I try to get the metrics
>  ```
> $ curl 
> [http://localhost:8081/jobs/5d4f28a221b2e5762f8404398a462eb0/vertices/cbc357ccb763df2852fee8c4fc7d55f2/metrics?get=0.Source__testing_+_plus.numRecordsOut]
> []
>  ```
> The metrics will always return empty.  However if I remove the "+" from the 
> name of the stream.  Metrics are returned non-empty.
> Maybe it has something to do with this method:
> [https://github.com/apache/flink/blob/master/flink-runtime/src/main/java/org/apache/flink/runtime/metrics/dump/MetricQueryService.java#L208]
> It does not consider "+" character?



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

Reply via email to