You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Chesnay Schepler (JIRA)" <ji...@apache.org> on 2018/04/24 08:09:00 UTC
[jira] [Closed] (FLINK-9241) Usage docs for ScalaGauge doesn't work
[ https://issues.apache.org/jira/browse/FLINK-9241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chesnay Schepler closed FLINK-9241.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.4.3
1.5.0
Documentation was corrected.
master: cdf4744ba962aade9c6f4cda28b9a6d82448004f
1.5: 1b55747685477bc3b42c200fca9fa148f614885a
1.4: ebd821c88e3ef5ffe3591f8f92b41d8d643582f8
> Usage docs for ScalaGauge doesn't work
> --------------------------------------
>
> Key: FLINK-9241
> URL: https://issues.apache.org/jira/browse/FLINK-9241
> Project: Flink
> Issue Type: Bug
> Components: Documentation, Metrics
> Affects Versions: 1.5.0, 1.4.2
> Reporter: Julio Biason
> Assignee: Chesnay Schepler
> Priority: Major
> Fix For: 1.5.0, 1.4.3
>
>
> In the docs, the example for [using a gauge metric in scala|https://ci.apache.org/projects/flink/flink-docs-release-1.4/monitoring/metrics.html#gauge] doesn't even compile:
> {{[error] /vagrant/src/main/scala/net/juliobiason/pipeline/sideoutputs.scala:34: overloaded method value gauge with alternatives:}}
> {{[error] [T, G <: org.apache.flink.metrics.Gauge[T]](x$1: String, x$2: G)G <and>}}
> {{[error] [T, G <: org.apache.flink.metrics.Gauge[T]](x$1: Int, x$2: G)G}}
> {{[error] cannot be applied to (String, org.apache.flink.api.scala.metrics.ScalaGauge[Int])}}
> {{[error] .gauge("meanLateness", ScalaGauge[Int] ( () => meanLateness ))}}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)