portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joachim Mueller (JIRA)" <jetspeed-...@portals.apache.org>
Subject [jira] [Created] (JS2-1294) Concurrency Issue with SessionPathResolverCache
Date Wed, 05 Feb 2014 20:34:08 GMT
Joachim Mueller created JS2-1294:

             Summary: 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.2, 2.2.1, 2.2.0
         Environment: websphere, IBM Java
            Reporter: Joachim Mueller
             Fix For: 2.2.3

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

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

To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org

View raw message