[MGNLGROOVY-181] Concurrency exception when iterating through multiple scripts Created: 04/Jul/19 Updated: 04/Jul/19 |
|
| Status: | Open |
| Project: | Magnolia Groovy Module |
| Component/s: | None |
| Affects Version/s: | 2.6.4 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Andrei Ichimescu | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
| Description |
|
Jenkins run encounter a concurrent exception when running the GroovyModuleVersionHandlerTest.cleanInstallBootstrapsSamples test. The stacktrace: groovy.lang.GroovyRuntimeException: Failed to create Script instance for class: class samples.commands.GroovyMailCommand. Reason: java.util.ConcurrentModificationException at java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:719) at java.util.LinkedHashMap$LinkedEntryIterator.next(LinkedHashMap.java:752) at java.util.LinkedHashMap$LinkedEntryIterator.next(LinkedHashMap.java:750) at org.codehaus.groovy.runtime.InvokerHelper.createScript(InvokerHelper.java:467) at info.magnolia.module.groovy.console.MgnlGroovyConsole.parse(MgnlGroovyConsole.java:195) at groovy.lang.GroovyShell.parse(GroovyShell.java:725) at groovy.lang.GroovyShell.parse(GroovyShell.java:716) at info.magnolia.module.groovy.setup.GroovyModuleVersionHandlerTest.cleanInstallBootstrapsSamples(GroovyModuleVersionHandlerTest.java:430) running the maven tests locally, or from the ide reveals no exceptions. |