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] [Commented] (COCOON-2362) Unsynchronized HashMap.put leads to infinite loop
Date Thu, 21 Feb 2019 14:41:00 GMT

    [ 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)

Mime
View raw message