[jira] [Commented] (COCOON-2362) Unsynchronized HashMap.put leads to infinite loop

"Alfred Nathaniel (JIRA)" <[email protected]>
Newsgroups gmane.text.xml.cocoon.devel
Message-ID <[email protected]>
    [ https://issues.apache.org/jira/browse/COCOON-2362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16774123#comment-16774123 ] 

Alfred Nathaniel commented on COCOON-2362:
------------------------------------------

Fix committed to 2.1.13-dev.
http://svn.apache.org/viewvc?view=revision&revision=1853824 

> 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
>            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)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.