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/08/02 19:56:00 UTC

[jira] [Commented] (FLINK-10035) ConcurrentModificationException with flink-metrics-slf4j

    [ https://issues.apache.org/jira/browse/FLINK-10035?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16567424#comment-16567424 ] 

Chesnay Schepler commented on FLINK-10035:
------------------------------------------

This isn't really an issue, and applies to several reporters. This only happens if metrics are (un-)registered while a report is going on

For long living this isn't an issue as all it does is delay a report, and for short living jobs scheduled reporters are unreliable anyway.

> ConcurrentModificationException with flink-metrics-slf4j
> --------------------------------------------------------
>
>                 Key: FLINK-10035
>                 URL: https://issues.apache.org/jira/browse/FLINK-10035
>             Project: Flink
>          Issue Type: Bug
>          Components: Metrics
>    Affects Versions: 1.5.2
>            Reporter: Nico Kruber
>            Priority: Major
>
> {code}
> 2018-08-02 15:45:08,052 WARN  org.apache.flink.runtime.metrics.MetricRegistryImpl           - Error while reporting metrics
> java.util.ConcurrentModificationException
> 	at java.util.HashMap$HashIterator.nextNode(HashMap.java:1437)
> 	at java.util.HashMap$EntryIterator.next(HashMap.java:1471)
> 	at java.util.HashMap$EntryIterator.next(HashMap.java:1469)
> 	at org.apache.flink.metrics.slf4j.Slf4jReporter.report(Slf4jReporter.java:95)
> 	at org.apache.flink.runtime.metrics.MetricRegistryImpl$ReporterTask.run(MetricRegistryImpl.java:427)
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> 	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
> 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
> 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> 	at java.lang.Thread.run(Thread.java:748)
> {code}
> https://api.travis-ci.org/v3/job/411307171/log.txt



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