-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
-
support-core:1237.vdd0b_ed646870
Discovered in a test failure that there is a possible ConcurrentModificationException originating from the Agent Statistics component:
WARNING c.c.j.support.SupportPlugin#writeBundle: Could not attach ''nodes/slave/agent1/command-stats.md'' to support bundle
java.util.ConcurrentModificationException
at java.base/java.util.HashMap$ValueSpliterator.forEachRemaining(HashMap.java:1698)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.LongPipeline.reduce(LongPipeline.java:474)
at java.base/java.util.stream.LongPipeline.sum(LongPipeline.java:432)
at com.cloudbees.jenkins.support.impl.SlaveCommandStatistics$Statistics.print(SlaveCommandStatistics.java:184)
at com.cloudbees.jenkins.support.impl.SlaveCommandStatistics$Statistics.access$500(SlaveCommandStatistics.java:119)
at com.cloudbees.jenkins.support.impl.SlaveCommandStatistics$1.printTo(SlaveCommandStatistics.java:92)
at com.cloudbees.jenkins.support.api.PrintedContent.writeTo(PrintedContent.java:56)
at com.cloudbees.jenkins.support.SupportPlugin.writeBundle(SupportPlugin.java:383)
at com.cloudbees.jenkins.support.SupportPlugin.writeBundle(SupportPlugin.java:322)
at com.cloudbees.jenkins.support.SupportAction.prepareBundle(SupportAction.java:385)
at com.cloudbees.jenkins.support.SupportAction.doGenerateAllBundles(SupportAction.java:335)
We use stream on a synchronized map. It should be synchronized https://github.com/openjdk/jdk11u/blob/master/src/java.base/share/classes/java/util/Collections.java#L2079.
- links to