cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alfred Nathaniel (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (COCOON-2362) Unsynchronized HashMap.put leads to infinite loop
Date Thu, 21 Feb 2019 17:27:00 GMT

     [ https://issues.apache.org/jira/browse/COCOON-2362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alfred Nathaniel closed COCOON-2362.
------------------------------------
    Resolution: Fixed
      Assignee: Alfred Nathaniel

> Unsynchronized HashMap.put leads to infinite loop
> -------------------------------------------------
>
>                 Key: COCOON-2362
>                 URL: https://issues.apache.org/jira/browse/COCOON-2362
>             Project: Cocoon
>          Issue Type: Bug
>          Components: * Cocoon Core
>    Affects Versions: 2.1.12
>            Reporter: Alfred Nathaniel
>            Assignee: Alfred Nathaniel
>            Priority: Major
>             Fix For: 2.1.13
>
>
> Under load a Cocoon thread occasionally starts spinning at 100% in an infinite loop.
 The reason is concurrent writing to a HashMap without proper synchronization.  The two stack
traces are:
> {noformat}
> java.util.HashMap.put (HashMap.java:420)
> org.apache.cocoon.components.language.generator.GeneratorSelector.select (GeneratorSelector.java:125)
> {noformat}
> {noformat}
> java.util.HashMap.getEntry(HashMap.java:465)
> java.util.HashMap.get(HashMap.java:417)
> org.apache.cocoon.reading.ResourceReader.getLastModified(ResourceReader.java:242)
> {noformat}



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

Mime
View raw message