[jira] [Updated] (JS2-1294) Concurrency Issue with SessionPathResolverCache

"David Sean Taylor (JIRA)" <[email protected]>
Newsgroups gmane.comp.jakarta.jetspeed.devel
Message-ID <JIRA.12693436.1391632344098.30852.1405188484613@arcas>
     [ https://issues.apache.org/jira/browse/JS2-1294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Sean Taylor updated JS2-1294:
-----------------------------------

    Fix Version/s: 2.2.3

> Concurrency Issue with SessionPathResolverCache
> -----------------------------------------------
>
>                 Key: JS2-1294
>                 URL: https://issues.apache.org/jira/browse/JS2-1294
>             Project: Jetspeed 2
>          Issue Type: Bug
>          Components: Components Core
>    Affects Versions: 2.2.0, 2.2.1, 2.2.2
>         Environment: websphere, IBM Java
>            Reporter: Joachim Mueller
>            Assignee: David Sean Taylor
>             Fix For: 2.2.3, 2.3.0
>
>         Attachments: JS2-1294.patch
>
>
> A race condition can occur in SessionPathResolverCache since the internal cache is initialized with a non-threadsave HashMap.
> Under websphere we can observe blocking threads while accessing the map at:
> ...
> at java/util/HashMap.findNonNullKeyEntry(HashMap.java:601(Compiled Code)) 
> at java/util/HashMap.getEntry(HashMap.java:585(Compiled Code)) 
> at java/util/HashMap.get(HashMap.java:571(Compiled Code)) 
> at org/apache/jetspeed/decoration/caches/HashMapPathResolverCache.getPath(HashMapPathResolverCache.java:49(Compiled Code)) 
> ...
> The base class HashMapPathResolverCache is not used and can be removed completely, all methods can be migrated to SessionPathResolverCache.
> Additional a spelling typo has been fixed.
> patch follows...



--
This message was sent by Atlassian JIRA
(v6.2#6252)
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.