[
https://issues.apache.org/jira/browse/IVY-1628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17308345#comment-17308345
]
Jaikiran Pai edited comment on IVY-1628 at 3/25/21, 4:22 AM:
-------------------------------------------------------------
I went ahead and added a test to verify that the fix works
[https://github.com/apache/ant-ivy/commit/f1093f67d43c29baaa76c42cb51488cd4d61fd81.]
Without the fix, the test consistently fails with the same exception that you
reported.
was (Author: jaikiran):
I went ahead and added a test to verify that the fix works
[https://github.com/apache/ant-ivy/commit/f1093f67d43c29baaa76c42cb51488cd4d61fd81.]
The test consistently fails without the fix.
> ConcurrentModificationException in MessageLoggerHelper.sumupProblems
> --------------------------------------------------------------------
>
> Key: IVY-1628
> URL: https://issues.apache.org/jira/browse/IVY-1628
> Project: Ivy
> Issue Type: Bug
> Components: Core
> Environment: Groovy 2.4.12
> Reporter: Monroe Walker
> Assignee: Jaikiran Pai
> Priority: Major
> Fix For: master
>
>
> Our Jenkins build job occasionally fails withÂ
> {code:java}
> java.util.ConcurrentModificationExceptionjava.util.ConcurrentModificationException
> at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:911) at
> java.util.ArrayList$Itr.next(ArrayList.java:861) at
> org.apache.ivy.util.MessageLoggerHelper.sumupProblems(MessageLoggerHelper.java:45)
> at
> org.apache.ivy.util.MessageLoggerEngine.sumupProblems(MessageLoggerEngine.java:136)
> at org.apache.ivy.util.Message.sumupProblems(Message.java:143) at
> org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:347) at
> org.apache.ivy.Ivy.resolve(Ivy.java:523)
> {code}
> It seems this must be due to a warning / error being logged while
> `sumupProblems` is printing the captured warning/errors.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)