You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "lining (JIRA)" <ji...@apache.org> on 2019/01/24 09:09:00 UTC
[jira] [Updated] (FLINK-11424)
org.apache.flink.metrics.datadog.DatadogHttpReporter#report remove will
throw exception
[ https://issues.apache.org/jira/browse/FLINK-11424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
lining updated FLINK-11424:
---------------------------
Description:
{code:java}
for (Map.Entry<Gauge, DGauge> entry : gauges.entrySet()) {
DGauge g = entry.getValue();
try {
// Will throw exception if the Gauge is not of Number type
// Flink uses Gauge to store many types other than Number
g.getMetricValue();
request.addGauge(g);
} catch (Exception e) {
// Remove that Gauge if it's not of Number type
gauges.remove(entry.getKey());
}
}
{code}
in this method remove will java.util.ConcurrentModificationException
> org.apache.flink.metrics.datadog.DatadogHttpReporter#report remove will throw exception
> ---------------------------------------------------------------------------------------
>
> Key: FLINK-11424
> URL: https://issues.apache.org/jira/browse/FLINK-11424
> Project: Flink
> Issue Type: Bug
> Components: Metrics
> Reporter: lining
> Priority: Major
>
> {code:java}
> for (Map.Entry<Gauge, DGauge> entry : gauges.entrySet()) {
> DGauge g = entry.getValue();
> try {
> // Will throw exception if the Gauge is not of Number type
> // Flink uses Gauge to store many types other than Number
> g.getMetricValue();
> request.addGauge(g);
> } catch (Exception e) {
> // Remove that Gauge if it's not of Number type
> gauges.remove(entry.getKey());
> }
> }
> {code}
> in this method remove will java.util.ConcurrentModificationException
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)